Lines Matching +full:code +full:- +full:0

15 :kconfig:option:`CONFIG_BT_ID_MAX`. To create a new identity, use :code:`bt id-create` command. You
16 can then use it by selecting it with its ID :code:`bt id-select <id>`. Finally, you can list all the
17 available identities with :code:`id-show`.
22 Start scanning by using the :code:`bt scan on` command. Depending on the environment you're in, you
23 may see a lot of lines printed on the shell. To stop the scan, run :code:`bt scan off`, the
28 .. code-block:: console
32 …6E:AE (random), AD evt type 0, RSSI -78 C:1 S:1 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Inter…
33 …B (random), AD evt type 3, RSSI -62 C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval:…
34 …8 (random), AD evt type 3, RSSI -74 C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval:…
35 …4 (random), AD evt type 3, RSSI -67 C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval:…
36 …6 (random), AD evt type 3, RSSI -73 C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval:…
37 …EVICE]: 0C:61:D1:B9:5D:9E (random), AD evt type 3, RSSI -87 C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Sec…
38 …B (random), AD evt type 3, RSSI -66 C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No packets, Interval:…
39 …: 25:3F:7A:EE:0F:55 (random), AD evt type 3, RSSI -83 C:0 S:0 D:0 SR:0 E:0 Prim: LE 1M, Secn: No …
45 address and by periodic advertising interval. To apply a filter, use the :code:`bt scan-set-filter`
50 .. code-block:: console
52 uart:~$ bt scan-filter-set name "test shell"
56 .. code-block:: console
58 uart:~$ bt scan-filter-set rssi -40
59 RSSI cutoff set at -40 dB
63 .. code-block:: console
65 uart:~$ bt scan-filter-clear all
67 You can use the command :code:`bt scan on` to create an *active* scanner, meaning that the scanner
69 can create a *passive scanner* by using the :code:`bt scan passive` command, so the scanner will not
76 :code:`bt connect` command with the address and the type as arguments.
80 .. code-block:: console
85 Remote LMP version 5.3 (0x0c) subversion 0xffff manufacturer 0x05f1
86 LE Features: 0x000000000001412f
88 LE conn param req: int (0x0018, 0x0028) lat 0 to 42
89 LE conn param updated: int 0x0028 lat 0 to 42
91 You can list the active connections of the shell using the :code:`bt connections` command. The shell
94 :code:`bt disconnect <address: XX:XX:XX:XX:XX:XX> <type: (public|random)>` command.
99 simply running the :code:`bt connect` command.
101 Alternatively, you can use the :code:`bt connect-name <name>` command to automatically
107 Begin advertising by using the :code:`bt advertise on` command. This will use the default parameters
109 identity address instead by running the :code:`bt advertise on identity` command. To stop
110 advertising use the :code:`bt advertise off` command.
113 :code:`bt adv-create` command. Parameters for the advertiser can be passed either at the creation of
114 it or by using the :code:`bt adv-param` command. To begin advertising with this newly created
115 advertiser, use the :code:`bt adv-start` command, and then the :code:`bt adv-stop` command to stop
119 to four options: :code:`conn-scan`, :code:`conn-nscan`, :code:`nconn-scan` and :code:`nconn-nscan`.
124 .. code-block:: console
126 uart:~$ bt adv-create conn-scan
127 Created adv id: 0, adv: 0x200022f0
128 uart:~$ bt adv-start
129 Advertiser[0] 0x200022f0 set started
134 .. code-block:: console
136 uart:~$ bt adv-stop
138 uart:~$ bt adv-data dev-name
139 uart:~$ bt adv-start
140 Advertiser[0] 0x200022f0 set started
143 using :code:`name <custom name>` instead of :code:`dev-name`. It is also possible to set the
144 advertising data manually with the :code:`bt adv-data` command. The following example shows how
147 .. code-block:: console
149 uart:~$ bt adv-create conn-scan
150 Created adv id: 0, adv: 0x20002348
151 uart:~$ bt adv-data 1009426C7565746F6F74682D5368656C6C
152 uart:~$ bt adv-start
153 Advertiser[0] 0x20002348 set started
157 the data type), the second one is the type of data, ``0x09`` is the Complete Local Name and the
159 *Bluetooth-Shell*.
162 To visualize those packets, you can add :code:`scan-reports` to the parameters of your advertiser.
169 after the parameter :code:`directed`. The :code:`low` parameter indicates that we want to use the
170 low duty cycle mode, and the :code:`dir-rpa` parameter is required if the remote device is
171 privacy-enabled and supports address resolution of the target address in directed advertisement.
173 .. code-block:: console
175 uart:~$ bt adv-create conn-scan directed D7:54:03:CE:F3:B4 random low dir-rpa
176 Created adv id: 0, adv: 0x20002348
184 ``ext-adv`` parameter.
186 .. code-block:: console
188 uart:~$ bt adv-create conn-nscan ext-adv name-ad
189 Created adv id: 0, adv: 0x200022f0
190 uart:~$ bt adv-start
191 Advertiser[0] 0x200022f0 set started
193 This will create an extended advertiser, that is connectable and non-scannable.
198 Zephyr has support for the Encrypted Advertising Data feature. The :code:`bt encrypted-ad`
199 sub-commands allow managing the advertising data of a given advertiser.
201 To encrypt the advertising data, key materials need to be provided, that can be done with :code:`bt
202 encrypted-ad set-keys <session key> <init vector>`. The session key is 16 bytes long and the
205 You can add advertising data by using :code:`bt encrypted-ad add-ad` and :code:`bt encrypted-ad
206 add-ead`. The former will take add one advertising data structure (as defined in the Core
208 encrypted advertising data structure. It's possible to mix encrypted and non-encrypted data, when
209 done adding advertising data, :code:`bt encrypted-ad commit-ad` can be used to apply the change to
211 previously. It's possible to clear the advertising data by using :code:`bt encrypted-ad clear-ad`.
215 :code:`bt encrypted-ad decrypt-scan on`.
219 To see the advertising data in the scan report :code:`bt scan-verbose-output` need to be
232 .. group-tab:: Peripheral
234 .. code-block:: console
238 uart:~$ bt adv-create conn-nscan ext-adv
239 Created adv id: 0, adv: 0x81769a0
240 … uart:~$ bt encrypted-ad set-keys 9ba22d3824efc70feb800c80294cba38 2e83f3d4d47695b6
242 … 00000000: 9b a2 2d 38 24 ef c7 0f eb 80 0c 80 29 4c ba 38 |..-8$... ....)L.8|
245 uart:~$ bt encrypted-ad add-ad 06097368656C6C
246 uart:~$ bt encrypted-ad add-ead 03ffdead03ffbeef
247 uart:~$ bt encrypted-ad commit-ad
248 Advertising data for Advertiser[0] 0x81769a0 updated.
249 uart:~$ bt adv-start
250 Advertiser[0] 0x81769a0 set started
252 .. group-tab:: Central
254 .. code-block:: console
258 uart:~$ bt scan-verbose-output on
259 … uart:~$ bt encrypted-ad set-keys 9ba22d3824efc70feb800c80294cba38 2e83f3d4d47695b6
261 … 00000000: 9b a2 2d 38 24 ef c7 0f eb 80 0c 80 29 4c ba 38 |..-8$... ....)L.8|
264 uart:~$ bt encrypted-ad decrypt-scan on
268 … (random), AD evt type 5, RSSI -59 shell C:1 S:0 D:0 SR:0 E:1 Prim: LE 1M, Secn: LE 2M, Interval…
269 [SCAN DATA START - EXT_ADV]
270 Type 0x09: shell
271 …Type 0x31: Encrypted Advertising Data: 0xe2, 0x17, 0xed, 0x04, 0xe7, 0x02, 0x1d, 0xc9, 0x40, 0x07,…
273 Type 0xff: 0xde, 0xad
274 Type 0xff: 0xbe, 0xef
285 .. code-block:: console
287 uart:~$ bt fal-add 47:38:76:EA:29:36 random
288 uart:~$ bt fal-add 66:C8:80:2A:05:73 random
289 uart:~$ bt fal-connect on
294 The Filter Accept List can also be used for scanning or advertising by using the option :code:`fal`.
298 .. code-block:: console
300 uart:~$ bt fal-add 65:4B:9E:83:AF:73 random
301 uart:~$ bt fal-add 73:72:82:B4:8F:B9 random
302 uart:~$ bt fal-add 5D:85:50:1C:72:64 random
318 To enable security, use the :code:`bt security <level>` command. For levels requiring authentication
320 :code:`bt auth all` command. After that, when you will set the security level, you will be asked to
322 :code:`bt auth-passkey-confirm`.
328 can make the shell not bondable using :code:`bt bondable off`. You can list all the devices you are
329 paired with using the command :code:`bt bonds`.
332 remove a paired device using :code:`bt clear <address: XX:XX:XX:XX:XX:XX> <type: (public|random)>`
333 or remove all paired devices with the command :code:`bt clear all`.