Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp9955975rwp; Thu, 20 Jul 2023 12:14:39 -0700 (PDT) X-Google-Smtp-Source: APBJJlGgeXLwkdL0ikJKysTz6kNB5VjNg1HzZ88ht4Qv13eJy6YbzK4fnjOMm6Dh4dfdk2EaY5gw X-Received: by 2002:aa7:d9d2:0:b0:521:a4bb:374f with SMTP id v18-20020aa7d9d2000000b00521a4bb374fmr2938108eds.5.1689880479208; Thu, 20 Jul 2023 12:14:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689880479; cv=none; d=google.com; s=arc-20160816; b=qwBPrLyvJ5S78tKF8NM+Rqp80UDic3SaLciHpFp00JrdkDTbpl4ZJm3BOliA7EMioR 4n7tfPiMmsbPN89hsUkbmaW3sg7NEOLHDYdsPzfzUGbPa1zVy9L2lK0l5T9PSHi3agWn upogFBNP+fYx6nFqTAhB3eij+Mqh7v1VXS37IlfafjB99EmTAazCwzEQH+2Mu3h45VWI WDXVDOgY7pdDzCgWLVt0a1iqONsruKSTr/rmVENfDEJeW/FikgISOp8+rPQMtsO3iImX DyJyVUv+/8RZgWRjJPLWtm8vr7cqLtjb9udRyleXQ6ibiAGZ1tIOdZy55ANa/Fi8gLka +tUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=YwUeNMKfNG2aVHOiaLSmwzLqv5akrnYuI5vG7Wjwnz0=; fh=V2LL5OuZUBGeSu6TXDWykcThOoazTGUpkln19rrO2KM=; b=nPUuGObfb9sLCzdL8qRVpdH6rckAQdsHxqQDrQMy+MM2/sBnCcq3VVzz6BxAWaDXif SumXCB0R9YdqDS5fb0/b+QtkfYO5eSuE/kPVKYLvj7wrKGp4aPKM9eLxGvYHeAEIkpOn Mhq/vtVwM48w79DMyBmtaX8P3gVxhQcyLSKZ9x/yjKAFKst4A7nWg+ruV6xBSXXc9Tq4 QWX57DUXcMTwa7eawDcxHM2enuF+FmeUeGDGwEcKTBf5uwFpLuCw6lxNExQ2jm8Xrg8v NOljbBCnKua0j0yak09a8ftIaV2MiNtLXB/jDi9XLudAGvP0aMkXewmxx6BhHt/psq/U AFBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=J8KzXa2f; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y26-20020aa7d51a000000b00521953ce6efsi1162290edq.412.2023.07.20.12.14.14; Thu, 20 Jul 2023 12:14:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=J8KzXa2f; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229918AbjGTTCn (ORCPT + 99 others); Thu, 20 Jul 2023 15:02:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51822 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230040AbjGTTCj (ORCPT ); Thu, 20 Jul 2023 15:02:39 -0400 Received: from mail-pf1-x430.google.com (mail-pf1-x430.google.com [IPv6:2607:f8b0:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1E7A32D5E for ; Thu, 20 Jul 2023 12:02:33 -0700 (PDT) Received: by mail-pf1-x430.google.com with SMTP id d2e1a72fcca58-6686c74183cso991711b3a.1 for ; Thu, 20 Jul 2023 12:02:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689879752; x=1690484552; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=YwUeNMKfNG2aVHOiaLSmwzLqv5akrnYuI5vG7Wjwnz0=; b=J8KzXa2fLo4dhJMVnJEl7SRNYmzKGBY7UVw1u5iQqTKXcqdl04gSUOeUAQxDqKaxeK wjn3B9MCbO/sHV9pCzWGqGECcy++7AwKUuKuM85bcy+MX7H1Ra8ONm12CeeIXVQO6N9Z NPcOtKxJI7vUb8fva43Mp30ae/EqtLljydYDEjW9pwr6WvFBwadqZl6ynQaSlWs4ZQhP ebQcCS+Lb8clb/WoJDNa91dzq+FL43pGDswSltD5a4gk5wVfLMgxn8dFXN5704GYRrIe TKbvSKJvv0+TjJxKP5VYHBWnyrHMrvm5nHBPwBrYU0NGWctzXfNKl4dJeAac/0D/LMqb 5oyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689879752; x=1690484552; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=YwUeNMKfNG2aVHOiaLSmwzLqv5akrnYuI5vG7Wjwnz0=; b=UD7DbRf7BEZRU8vPg1orW8QfeuO2v+xemGJGsGeYKYsX2xfqFrN35yUqJ32cyjsBah lVKibV/O7P3qz/H6Qmb6nSBnTyZEERx/R4qXfgt2qUS+nHSs9hnVsxopFB/KEx4t/1rP mTLeZrrSxUc4OetNagc1sp/URHcFjRaqkmscRCxOM2P/wz9wEHBdRouguMMpB0eQYdDG 8tME7dJyLnBYEAJc9OehMXqhfsT8KyihQEPVs3w8p5HLW2Y6YfL1QQGM+IwnDSTmndNF 5BSmEi6oj8hI9nBMgZIMdYoc9Gbcz367O39EbWzU2wd47nLK1Ei7eeQfXGfglp9r8y/8 UGqg== X-Gm-Message-State: ABy/qLaTQFhZK6l1RPqWUW9sfigJz15bDhQJPle8QD8sGvxpHVE5K2yO rM1UCC+8rDR2xq78EspDxTURr62Ss2w= X-Received: by 2002:a05:6a20:3aa6:b0:137:db14:e88b with SMTP id d38-20020a056a203aa600b00137db14e88bmr85995pzh.29.1689879751672; Thu, 20 Jul 2023 12:02:31 -0700 (PDT) Received: from lvondent-mobl4.. (c-71-236-201-58.hsd1.or.comcast.net. [71.236.201.58]) by smtp.gmail.com with ESMTPSA id s3-20020aa78283000000b00682a9325ffcsm1544496pfm.5.2023.07.20.12.02.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Jul 2023 12:02:30 -0700 (PDT) From: Luiz Augusto von Dentz To: linux-bluetooth@vger.kernel.org Subject: [BlueZ PATCH v5 2/3] client: Add bluetoothctl-mgmt.1 man page Date: Thu, 20 Jul 2023 12:02:27 -0700 Message-ID: <20230720190228.446570-2-luiz.dentz@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230720190228.446570-1-luiz.dentz@gmail.com> References: <20230720190228.446570-1-luiz.dentz@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org From: Luiz Augusto von Dentz This adds bluetoothctl-mgmt.rst which is then converted to bluetooth-mgmt.1 using rst2man. --- Makefile.tools | 5 +- client/bluetoothctl-mgmt.rst | 559 +++++++++++++++++++++++++++++++++++ 2 files changed, 562 insertions(+), 2 deletions(-) create mode 100644 client/bluetoothctl-mgmt.rst diff --git a/Makefile.tools b/Makefile.tools index c1de187bf72b..10d29108ce19 100644 --- a/Makefile.tools +++ b/Makefile.tools @@ -348,7 +348,7 @@ profiles_iap_iapd_LDADD = gdbus/libgdbus-internal.la $(GLIB_LIBS) $(DBUS_LIBS) if MANPAGES man_MANS += tools/rctest.1 tools/l2ping.1 tools/btattach.1 tools/isotest.1 \ - tools/btmgmt.1 + tools/btmgmt.1 client/bluetoothctl-mgmt.1 endif if MESH @@ -469,7 +469,8 @@ manual_pages += tools/hciattach.1 tools/hciconfig.1 \ tools/hcitool.1 tools/hcidump.1 \ tools/rfcomm.1 tools/sdptool.1 tools/ciptool.1 \ tools/rctest.1 tools/l2ping.1 tools/btattach.1 \ - tools/bdaddr.1 tools/isotest.1 tools/btmgmt.1 + tools/bdaddr.1 tools/isotest.1 tools/btmgmt.1 \ + client/bluetoothctl-mgmt.1 if HID2HCI udevdir = $(UDEV_DIR) diff --git a/client/bluetoothctl-mgmt.rst b/client/bluetoothctl-mgmt.rst new file mode 100644 index 000000000000..4baed6480c14 --- /dev/null +++ b/client/bluetoothctl-mgmt.rst @@ -0,0 +1,559 @@ +================= +bluetoothctl-mgmt +================= + +------------------ +Management Submenu +------------------ + +:Version: BlueZ +:Copyright: Free use of this software is granted under ther terms of the GNU + Lesser General Public Licenses (LGPL). +:Date: July 2023 +:Manual section: 1 +:Manual group: Linux System Administration + +SYNOPSIS +======== + +**bluetoothctl** [--options] [mgmt.commands] + +Mgmt Commands +============= + +select +------ + +Select a different index + +:Usage: **# select ** + +revision +-------- + +Get the MGMT Revision + +:Usage: **# revision** + +commands +-------- + +List supported commands + +:Usage: **# commands** + +config +------ + +Show configuration info + +:Usage: **# config** + +info +---- + +Show controller info + +:Usage: **# info** + +extinfo +------- + +Show extended controller info + +:Usage: **# extinfo** + +auto-power +---------- + +Power all available features + +:Usage: **# auto-power** + +power +----- + +Toggle powered state + +:Usage: **# power ** + +discov +------ + +Toggle discoverable state + +:Usage: **# discov [timeout]** + +connectable +----------- + +Toggle connectable state + +:Usage: **# connectable ** + +fast-conn +--------- + +Toggle fast connectable state + +:Usage: **# fast-conn ** + +bondable +-------- + +Toggle bondable state + +:Usage: **# bondable ** + +pairable +-------- + +Toggle bondable state + +:Usage: **# pairable ** + +linksec +------- + +Toggle link level security + +:Usage: **# linksec ** + +ssp +--- + +Toggle SSP mode + +:Usage: **# spp ** + +sc +-- + +Toggle SC support + +:Usage: **# sc ** + +hs +-- + +Toggle HS support + +:Usage: **# hs ** + +le +-- + +Toggle LE support + +:Usage: **# le ** + +advertising +----------- + +Toggle LE advertising + +:Usage: **# advertise ** + +bredr +----- + +Toggle BR/EDR support + +:Usage: **# bredr ** + +privacy +------- + +Toggle privacy support + +:Usage: **# privacy [irk]** + +class +----- + +Set device major/minor class + +:Usage: **# class ** + +disconnect +---------- + +Disconnect device + +:Usage: **# disconnect [-t type] ** + +con +--- + +List connections + +:Usage: **# con** + +find +---- + +Discover nearby devices + +:Usage: **# find [-l|-b] [-L]** + +find-service +------------ + +Discover nearby service + +:Usage: **# find-service [-u UUID] [-r RSSI_Threshold] [-l|-b]** + +stop-find +--------- + +Stop discovery + +:Usage: **# stop-find [-l|-b]** + +name +---- + +Set local name + +:Usage: **# name [shortname]** + +pair +---- + +Pair with a remote device + +:Usage: **# pair [-c cap] [-t type] ** + +cancelpair +---------- + +Cancel pairing + +:Usage: **# cancelpair [-t type] ** + +unpair +------ + +Unpair device + +:Usage: **# unpair [-t type] ** + +keys +---- + +Load Link Keys + +:Usage: **keys** + +ltks +---- + +Load Long Term Keys + +:Usage: **# ltks** + +irks +---- + +Load Identity Resolving Keys + +:Usage: **# irks [--local index] [--file file path]** + +block +----- + +Block Device + +:Usage: **# block [-t type] ** + +unblock +------- + +Unblock Device + +:Usage: **# unblock [-t type] ** + +add-uuid +-------- + +Add UUID + +:Usage: **# add-uuid ** + +rm-uuid +------- + +Remove UUID + +:Usage: **# rm-uuid ** + +clr-uuids +--------- + +Clear UUIDs + +:Usage: **# clear-uuids** + +local-oob +--------- + +Local OOB data + +:Usage: **# local-oob** + +remote-oob +---------- + +Remote OOB data + +:Usage: **# remote-oob [-t ] [-r ] [-h ] + [-R ] [-H ] ** + +did +--- + +Set Device ID + +:Usage: **# did :::** + +static-addr +----------- + +Set static address + +:Usage: **# static-addr
** + +public-addr +----------- + +Set public address + +:Usage: **# public-addr
** + +ext-config +---------- + +External configuration + +:Usage: **# ext-config ** + +debug-keys +---------- + +Toggle debug keys + +:Usage: **# debug-keys ** + +conn-info +--------- + +Get connection information + +:Usage: **# conn-info [-t type] ** + +io-cap +------ + +Set IO Capability + +:Usage: **# io-cap ** + +scan-params +----------- + +Set Scan Parameters + +:Usage: **# scan-params ** + +get-clock +--------- + +Get Clock Information + +:Usage: **# get-clock [address]** + +add-device +---------- + +Add Device + +:Usage: **# add-device [-a action] [-t type]
** + +del-device +---------- + +Remove Device + +:Usage: **# del-device [-t type]
** + +clr-devices +----------- + +Clear Devices + +:Usage: **# clr-devices** + +bredr-oob +--------- + +Local OOB data (BR/EDR) + +:Usage: **# bredr-oob** + +le-oob +------ + +Local OOB data (LE) + +:Usage: **# le-oob** + +advinfo +------- + +Show advertising features + +:Usage: **# advinfo** + +advsize +------- + +Show advertising size info + +:Usage: **# advsize [options] ** + +add-adv +------- + +Add advertising instance + +:Usage: **# add-adv [options] ** + +rm-adv +------ + +Remove advertising instance + +:Usage: **# rm-adv ** + +clr-adv +------- + +Clear advertising instances + +:Usage: **# clr-adv** + +add-ext-adv-params +------------------ + +Add extended advertising params + +:Usage: **# add-ext-adv-parms [options] ** + +add-ext-adv-data +---------------- + +Add extended advertising data + +:Usage: **# add-ext-adv-data [options] ** + +appearance +---------- + +Set appearance + +:Usage: **# appearance ** + +phy +--- + +Get/Set PHY Configuration + +:Usage: **# phy [LE1MTX] [LE1MRX] [LE2MTX] [LE2MRX] [LECODEDTX] [LECODEDRX] + [BR1M1SLOT] [BR1M3SLOT] [BR1M5SLOT][EDR2M1SLOT] [EDR2M3SLOT] + [EDR2M5SLOT][EDR3M1SLOT] [EDR3M3SLOT] [EDR3M5SLOT]** + +wbs +--- + +Toggle Wideband-Speech support + +:Usage: **# wbs ** + +secinfo +------- + +Show security information + +:Usage: **# secinfo** + +expinfo +------- + +Show experimental features + +:Usage: **# expinfo** + +exp-debug +--------- + +Set debug feature + +:Usage: **# exp-debug ** + +exp-privacy +----------- + +Set LL privacy feature + +:Usage: **# exp-privacy ** + +exp-quality +----------- + +Set bluetooth quality report feature + +:Usage: **# exp-quality ** + +exp-offload +----------- + +Toggle codec support + +:Usage: **# exp-offload ** + +read-sysconfig +-------------- + +Read System Configuration + +:Usage: **# read-sysconfig** + +set-sysconfig +------------- + +Set System Configuration + +:Usage: **# set-sysconfig <-v|-h> [options...]** + +get-flags +--------- + +Get device flags + + +set-flags +--------- + +Set device flags + +:Usage: **# set-flags [-f flags] [-t type]
** + +RESOURCES +========= + +http://www.bluez.org + +REPORTING BUGS +============== + +linux-bluetooth@vger.kernel.org -- 2.41.0