Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp6156858rwp; Mon, 17 Jul 2023 16:16:33 -0700 (PDT) X-Google-Smtp-Source: APBJJlE539JXg+Lbbmh2Ku5v0qVCKiNVclID3ujbD2PA/55DQHfLuhCWmXmuKSEoYDkVoO2M3FFG X-Received: by 2002:a05:6402:3445:b0:51b:f669:9df3 with SMTP id l5-20020a056402344500b0051bf6699df3mr12227555edc.4.1689635793681; Mon, 17 Jul 2023 16:16:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689635793; cv=none; d=google.com; s=arc-20160816; b=AIGcVgS/vg51KRfvGwwlLQLrvdLLrHr2v3HMQNyjKZAKbfoMF+NioMW0AKlkoV2XQO alLgswFdotb7YneJS9a9MpFFXsnD5HTVFqCuELlmBxHPE9FV0OzV7t/gZl2v7P1JuAcO WctuCDOk8EXG7A/hksBEMmD66YdLMImXQCQmu/ARdmuIGTh2q2mZRFZnySN680zpZIJn 8jWGr7zcCtV/eYXDr+8ZVS2ZtIyjnSzBRXLEMbnxglekWwmyHr1czh+YWF4bHyrXQy7R ZCJNO1k61OFZ4iwEROZKG2+Rm9nUef0aGdNFzpr5WYcf9HwRmdAaNkz7ZLzLlhaYIrMy VVEg== 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 :message-id:date:subject:to:from:dkim-signature; bh=T1jZ3obdwBFHUr8wXg6Wh9p0CpFibeSvnlGWTIhrYag=; fh=V2LL5OuZUBGeSu6TXDWykcThOoazTGUpkln19rrO2KM=; b=CLM3zsEKkBQO2g9nE4LkyusQtP1zNTJzXoYwBuT7o23kclVaYe+9BdofcPqd6P9TQ1 +/CEC5C1fjYOcA3PMGEatyQbVhjYB9SSdI0DvLcOLp2Ae/mcMKOWJwJ5LNoe4ZNvLU71 rJOrzYPuyUVcYe6X63HUpLkaBOP0EJ8TY0UnQ36KJd3Lr7YTs39Oi0uQnYwRN0eri2Pz S0Q1LP5AEBmkt+j3jV3XcqLHhitMgMr8F6UVQcvYMcoCAQlik5JSOKbDQKhMZbPxkyDM 65y63ksnoeyMJyVQkXWB+5/cjmNSrDwLNl9uTDmqAFWD/obxIvUu+jzGewhq6rIda2Ea J13g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=n2cXrzhn; 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 w1-20020aa7da41000000b00521728f8776si303195eds.200.2023.07.17.16.16.01; Mon, 17 Jul 2023 16:16:33 -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=n2cXrzhn; 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 S229780AbjGQXHS (ORCPT + 99 others); Mon, 17 Jul 2023 19:07:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57452 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229892AbjGQXHR (ORCPT ); Mon, 17 Jul 2023 19:07:17 -0400 Received: from mail-pf1-x42c.google.com (mail-pf1-x42c.google.com [IPv6:2607:f8b0:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 97BFF1738 for ; Mon, 17 Jul 2023 16:06:29 -0700 (PDT) Received: by mail-pf1-x42c.google.com with SMTP id d2e1a72fcca58-668730696a4so3364151b3a.1 for ; Mon, 17 Jul 2023 16:06:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689635088; x=1692227088; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=T1jZ3obdwBFHUr8wXg6Wh9p0CpFibeSvnlGWTIhrYag=; b=n2cXrzhntPUhFh3Hrud7zMoW+uERySb6EXOcQTCRjYJqRrXvq423uA52KSOz48Ir9e yWmL3jlY+CD4I7vo7PIdnA1hviJZtOm77VygFMJO+9yvpPSoXde8ze0nSwQ2YguYHlFC N7c+E0YKLgLWP/Q8wIT8XfG7/0qsj9dKyfiyM5aATWgFY4k23i+lg31+DzVmcM891fzN 3BAbUhLDBtwYbtPUuwC3qyUnylU8F6f8HpEg7XZM/AVWFV+5kYv8fuyv10KIKZ3eexAG bYd4YgMpQyn9rGp/a6XoZoZLGlG/Er6DtrzA/eKDzJJMXtcQJXQLozxHIKHnT4eZ6clS MWpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689635088; x=1692227088; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=T1jZ3obdwBFHUr8wXg6Wh9p0CpFibeSvnlGWTIhrYag=; b=Gk5Y9PQGP9C1mYnrA1kzupuGMi5JSU0SkPMPyy0Af/bVYpdDKcqVR/M6aSFC82JIyG OKbojwvi0T0D4yORLoM7hAA7/EtQ3KN+G1Zel55VnOVwjEfQRZblsD9REB6ucB1Zy8Kr r+iJEFfgFFCAFQDMZM72Qvuu4ca/qyUR7Ywa44LveJZulv1HSIc2Lsy1A101hV2CWZwy j8lAe/2oCNjiU4N5dMupumj0I4J6Py/LgtbbEMrMgyfwfVxsqduwMJ6NgwAvvD1ciXSR BWYZpQHpsoTeFFirVf9+ltcbPCywIZVQ1OWD95GiBPAMc9f3Q2ydWnD3CiXm+GS3zfJ3 V7hw== X-Gm-Message-State: ABy/qLbnc1X8rs76SYo3mskvpbVOcHqVI94/ES1yjhzbT9f8qBbjh+3r nimPFNvLDnDYGIDvvEL0egr+6GgXU68= X-Received: by 2002:a05:6a20:3d83:b0:126:9539:ec30 with SMTP id s3-20020a056a203d8300b001269539ec30mr14360642pzi.19.1689635087950; Mon, 17 Jul 2023 16:04:47 -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 a16-20020aa780d0000000b00678cb337353sm277169pfn.208.2023.07.17.16.04.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Jul 2023 16:04:47 -0700 (PDT) From: Luiz Augusto von Dentz To: linux-bluetooth@vger.kernel.org Subject: [PATCH BlueZ] btmgmt: Add man page Date: Mon, 17 Jul 2023 16:04:45 -0700 Message-ID: <20230717230445.168998-1-luiz.dentz@gmail.com> X-Mailer: git-send-email 2.41.0 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_NONE,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 btmgmt.rst which is then converted to btmgmt.1 using rst2man. --- Makefile.tools | 5 +- tools/btmgmt.rst | 163 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 166 insertions(+), 2 deletions(-) create mode 100644 tools/btmgmt.rst diff --git a/Makefile.tools b/Makefile.tools index 7d9697001b75..c1de187bf72b 100644 --- a/Makefile.tools +++ b/Makefile.tools @@ -347,7 +347,8 @@ profiles_iap_iapd_SOURCES = profiles/iap/main.c 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 +man_MANS += tools/rctest.1 tools/l2ping.1 tools/btattach.1 tools/isotest.1 \ + tools/btmgmt.1 endif if MESH @@ -468,7 +469,7 @@ 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/bdaddr.1 tools/isotest.1 tools/btmgmt.1 if HID2HCI udevdir = $(UDEV_DIR) diff --git a/tools/btmgmt.rst b/tools/btmgmt.rst new file mode 100644 index 000000000000..4a720dabccd1 --- /dev/null +++ b/tools/btmgmt.rst @@ -0,0 +1,163 @@ +====== +btmgmt +====== + +------------------------------------- +interactive bluetooth management tool +------------------------------------- + +: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 +======== + +**btmgmt** [--options] [commands] + +DESCRIPTION +=========== + +**btmgmt(1)** interactive bluetooth management tool. The tool issues commands +to the Kernel using the Bluetooth Management socket, some commands may require +net-admin capability in order to work. + + +OPTIONS +======= + +.. csv-table:: + :header: "Options", "Description" + :align: left + + *-i/--index*, Specify adapter index + *-m-/-monitor*, Enable monitor output + *-t/--timeout*, Timeout in seconds for non-interactive mode + *-v/--version*, Display version + *-i/--init-script*, Init script file + *-*h/--help*, Display help + +COMMANDS +======== + +.. csv-table:: + :header: "Command", "Arguments", "Description" + :align: left + + *select*, "", Select a different index + *revision*, , Get the MGMT Revision + *commands*, , List supported commands + *config*, , Show configuration info + *info*, , Show controller info + *extinfo*, , Show extended controller info + *auto-power*, , Power all available features + *power*, , Toggle powered state + *discov*, [timeout], Toggle discoverable state + *connectable*, , Toggle connectable state + *fast-conn*, , Toggle fast connectable state + *bondable*, , Toggle bondable state + *pairable*, , Toggle bondable state + *linksec*, , Toggle link level security + *ssp*, , Toggle SSP mode + *sc*, , Toggle SC support + *hs*, , Toggle HS support + *le*, , Toggle LE support + *advertising*, , Toggle LE advertising + *bredr*, , Toggle BR/EDR support + *privacy*, [irk], Toggle privacy support + *class*, , Set device major/minor class + *disconnect*, [-t type] , Disconnect device + *con*, , List connections + *find*, [-l|-b] [-L], Discover nearby devices + *find-service*, [-u UUID] [-r RSSI_Threshold] [-l|-b], Discover nearby service + *stop-find*, [-l|-b], Stop discovery + *name*, [shortname], Set local name + *pair*, [-c cap] [-t type] , Pair with a remote device + *cancelpair*, [-t type] , Cancel pairing + *unpair*, [-t type] , Unpair device + *keys*, ,Load Link Keys + *ltks*, ,Load Long Term Keys + *irks*, [--local index] [--file file path], Load Identity Resolving Keys + *block*, [-t type] Block Device + *unblock*, [-t type] , Unblock Device + *add-uuid*, , Add UUID + *rm-uuid*, , Remove UUID + *clr-uuids*, ,Clear UUIDs + *local-oob*, ,Local OOB data + *remote-oob*, [-t ] [-r ] [-h ] [-R ] [-H ] , Remote OOB data + *did*, :::, Set Device ID + *static-addr*,
, Set static address + *public-addr*,
, Set public address + *ext-config*, , External configuration + *debug-keys*, , Toggle debug keys + *conn-info*, [-t type] , Get connection information + *io-cap*, , Set IO Capability + *scan-params*, , Set Scan Parameters + *get-clock*, [address], Get Clock Information + *add-device*, [-a action] [-t type]
, Add Device + *del-device*, [-t type]
, Remove Device + *clr-devices*, ,Clear Devices + *bredr-oob*, ,Local OOB data (BR/EDR) + *le-oob*, ,Local OOB data (LE) + *advinfo*, ,Show advertising features + *advsize*, [options] , Show advertising size info + *add-adv*, [options] , Add advertising instance + *rm-adv*, , Remove advertising instance + *clr-adv*, ,Clear advertising instances + *add-ext-adv-params*, [options] , Add extended advertising params + *add-ext-adv-data*, [options] , Add extended advertising data + *appearance*, , Set appearance + *phy*, [LE1MTX] [LE1MRX] [LE2MTX] [LE2MRX] [LECODEDTX] [LECODEDRX] [BR1M1SLOT] [BR1M3SLOT] [BR1M5SLOT][EDR2M1SLOT] [EDR2M3SLOT] [EDR2M5SLOT][EDR3M1SLOT] [EDR3M3SLOT] [EDR3M5SLOT], Get/Set PHY Configuration + *wbs*, , Toggle Wideband-Speech support + *secinfo*, ,Show security information + *expinfo*, ,Show experimental features + *exp-debug*, , Set debug feature + *exp-privacy*, , Set LL privacy feature + *exp-quality*, , Set bluetooth quality report feature + *exp-offload*, , Toggle codec support + *read-sysconfig*, ,Read System Configuration + *set-sysconfig*, <-v|-h> [options...], Set System Configuration + *get-flags*, [-t type]
, Get device flags + *set-flags*, [-f flags] [-t type]
, Set device flags + *menu*, , Select submenu + *version*, ,Display version + *quit*, , Quit program + *exit*, , Quit program + *help*, , Display help about this program + *export*, ,Print environment variables + +AUTOMATION +========== +Two common ways to automate the tool are to pass the commands directly like in +the follow example: + +:: + + btmgmt <