Lines Matching +full:code +full:- +full:0
9 - Capabilities and Endpoint discovery
10 - Audio Stream Endpoint procedures
15 .. code-block:: console
17 bap --help
25 create_broadcast_sink : 0x<broadcast_id>
27 sync_broadcast : 0x<bis_index> [[[0x<bis_index>] 0x<bis_index>] ...]
28 [bcode <broadcast code> || bcode_str <broadcast code
58 [lang <ISO 639-3 lang>]
74 .. csv-table:: State Machine Transitions
80 "config","discover","idle/codec-configured/qos-configured","codec-configured"
81 "qos","config","codec-configured/qos-configured","qos-configured"
82 "enable","qos","qos-configured","enabling"
83 "connect","qos/enable","qos-configured/enabling","qos-configured/enabling"
86 "[stop]","disable","disabling","qos-configure/idle"
87 "release","config","any","releasing/codec-configure/idle"
97 .. code-block:: console
102 uart:~$ gatt exchange-mtu
104 uart:~$ bap config sink 0
111 .. code-block:: console
116 uart:~$ gatt exchange-mtu
118 uart:~$ bap config source 0
126 .. code-block:: console
136 .. code-block:: console
144 .. code-block:: console
154 .. code-block:: console
162 .. code-block:: console
172 The command :code:`bap create_broadcast_sink` will either use existing periodic advertising
176 .. code-block:: console
179 uart:~$ bap create_broadcast_sink 0xEF6716
181 Found broadcaster with ID 0xEF6716 and addr 03:47:95:75:C0:08 (random) and sid 0x00
183 PA synced to broadcast with broadcast ID 0xEF6716
185 Received BASE from sink 0x20019080:
188 Subgroup 0x20024182:
189 Codec Format: 0x06
190 Company ID : 0x0000
191 Vendor ID : 0x0000
192 codec cfg id 0x06 cid 0x0000 vid 0x0000 count 16
197 Front left (0x00000001)
198 Front right (0x00000002)
202 Unspecified (0x0001)
203 BIS index: 0x01
204 codec cfg id 0x06 cid 0x0000 vid 0x0000 count 6
207 Front left (0x00000001)
210 BIS index: 0x02
211 codec cfg id 0x06 cid 0x0000 vid 0x0000 count 6
214 Front right (0x00000002)
217 Possible indexes: 0x01 0x02
218 Sink 0x20019110 is ready to sync without encryption
219 uart:~$ bap sync_broadcast 0x01
223 ----------------------------------------------------------------
225 The command :code:`bap create_sink_by_name` will start scanning and sync to the periodic
228 .. code-block:: console
234 Found broadcaster with ID 0xEF6716 and addr 03:47:95:75:C0:08 (random) and sid 0x00
236 PA synced to broadcast with broadcast ID 0xEF6716
238 Received BASE from sink 0x20019080:
241 Subgroup 0x20024182:
242 Codec Format: 0x06
243 Company ID : 0x0000
244 Vendor ID : 0x0000
245 codec cfg id 0x06 cid 0x0000 vid 0x0000 count 16
250 Front left (0x00000001)
251 Front right (0x00000002)
255 Unspecified (0x0001)
256 BIS index: 0x01
257 codec cfg id 0x06 cid 0x0000 vid 0x0000 count 6
260 Front left (0x00000001)
263 BIS index: 0x02
264 codec cfg id 0x06 cid 0x0000 vid 0x0000 count 6
267 Front right (0x00000002)
270 Possible indexes: 0x01 0x02
271 Sink 0x20019110 is ready to sync without encryption
272 uart:~$ bap sync_broadcast 0x01
275 ------------------------------
277 If the broadcast is encrypted, the broadcast code can be entered with the :code:`bap sync_broadcast`
280 .. code-block:: console
282 Sink 0x20019110 is ready to sync with encryption
283 uart:~$ bap sync_broadcast 0x01 bcode 0102030405060708090a0b0c0d0e0f
285 The broadcast code can be 1-16 values, either as a string or a hexadecimal value.
287 .. code-block:: console
289 Sink 0x20019110 is ready to sync with encryption
290 uart:~$ bap sync_broadcast 0x01 bcode_str thisismycode
294 .. code-block:: console
302 The :code:`init` command register local PAC records which are necessary to be
305 .. csv-table:: State Machine Transitions
311 .. code-block:: console
318 Once connected the :code:`discover` command discover PAC records and ASE
321 .. csv-table:: State Machine Transitions
329 Use command :code:`gatt exchange-mtu` to make sure the MTU is configured
332 .. code-block:: console
334 uart:~$ gatt exchange-mtu
339 conn 0x2000b168: codec_cap 0x2001f8ec dir 0x02
340 codec cap id 0x06 cid 0x0000 vid 0x0000
343 8000 Hz (0x0001)
344 11025 Hz (0x0002)
345 16000 Hz (0x0004)
346 22050 Hz (0x0008)
347 24000 Hz (0x0010)
348 32000 Hz (0x0020)
349 44100 Hz (0x0040)
350 48000 Hz (0x0080)
351 88200 Hz (0x0100)
352 96000 Hz (0x0200)
353 176400 Hz (0x0400)
354 192000 Hz (0x0800)
355 384000 Hz (0x1000)
357 10 ms (0x02)
359 1 channel (0x01)
366 Conversational (0x0002)
367 Media (0x0004)
368 ep 0x81754e0
369 ep 0x81755d4
370 Discover complete: err 0
375 The :code:`preset` command can be used to either print the default preset
379 .. code-block:: console
382 preset - <sink, source, broadcast> [preset]
393 [lang <ISO 639-3 lang>]
403 codec cfg id 0x06 cid 0x0000 vid 0x0000 count 16
408 Front left (0x00000001)
409 Front right (0x00000002)
413 Game (0x0008)
414 QoS: interval 10000 framing 0x00 phy 0x02 sdu 40 rtn 2 latency 10 pd 40000
418 codec cfg id 0x06 cid 0x0000 vid 0x0000 count 16
423 Front left (0x00000001)
424 Front right (0x00000002)
428 Game (0x0008)
429 QoS: interval 10000 framing 0x00 phy 0x02 sdu 80 rtn 2 latency 10 pd 40000
435 The :code:`bap preset` command can also be used to configure the preset used for the subsequent
437 simply be run without the :code:`config` or :code:`meta` parameter. The parameters are using the
440 .. code-block:: console
444 codec cfg id 0x06 cid 0x0000 vid 0x0000 count 16
445 data #0: type 0x01 value_len 1
447 data #1: type 0x02 value_len 1
449 data #2: type 0x03 value_len 4
451 data #3: type 0x04 value_len 2
453 meta #0: type 0x02 value_len 2
455 QoS: interval 10000 framing 0x00 phy 0x02 sdu 80 rtn 2 latency 10 pd 40000
459 codec cfg id 0x06 cid 0x0000 vid 0x0000 count 16
460 data #0: type 0x01 value_len 1
461 00000000: 0a |. |
462 data #1: type 0x02 value_len 1
464 data #2: type 0x03 value_len 4
466 data #3: type 0x04 value_len 2
468 meta #0: type 0x02 value_len 2
470 QoS: interval 10000 framing 0x00 phy 0x02 sdu 80 rtn 2 latency 10 pd 40000
474 codec cfg id 0x06 cid 0x0000 vid 0x0000 count 16
475 data #0: type 0x01 value_len 1
476 00000000: 0a |. |
477 data #1: type 0x02 value_len 1
479 data #2: type 0x03 value_len 4
481 data #3: type 0x04 value_len 2
483 meta #0: type 0x02 value_len 2
485 meta #1: type 0x04 value_len 3
487 QoS: interval 10000 framing 0x00 phy 0x02 sdu 80 rtn 2 latency 10 pd 40000
492 The :code:`config` command attempts to configure a stream for the given
496 .. csv-table:: State Machine Transitions
500 "discover","idle/codec-configured/qos-configured","codec-configured"
502 .. code-block:: console
505 uart:~$ bap config sink 0
506 Setting location to 0x00000000
508 stream 0x2000df70 config operation rsp_code 0 reason 0
513 The :code:`stream_qos` Sets a new stream QoS.
515 .. code-block:: console
523 The :code:`qos` command attempts to configure the stream QoS using the preset
527 .. csv-table:: State Machine Transitions
531 "config","qos-configured/codec-configured","qos-configured"
533 .. code-block:: console
540 The :code:`enable` command attempts to enable the stream previously configured.
542 .. csv-table:: State Machine Transitions
546 "qos","qos-configured","enabling"
548 .. code-block:: console
556 The :code:`connect` command attempts to connect the stream previously configured.
560 .. csv-table:: State Machine Transitions
564 "qos/enable","qos-configured/enabling","qos-configured/enabling"
566 .. code-block:: console
573 The :code:`start` command is only necessary when starting a source stream.
575 .. csv-table:: State Machine Transitions
581 .. code-block:: console
588 The :code:`disable` command attempts to disable the stream previously enabled,
592 .. csv-table:: State Machine Transitions
598 .. code-block:: console
605 The :code:`stop` command is only necessary when acting as a sink as it indicates
608 .. csv-table:: State Machine Transitions
612 "disable","disabling","qos-configure/idle"
614 .. code-block:: console
621 The :code:`release` command releases the current stream and its configuration.
623 .. csv-table:: State Machine Transitions
627 "config","any","releasing/codec-configure/idle"
629 .. code-block:: console
636 The :code:`list` command list the available streams.
638 .. csv-table:: State Machine Transitions
644 .. code-block:: console
647 *0: ase 0x01 dir 0x01 state 0x01
652 The :code:`select_unicast` command set a unicast stream as default.
654 .. csv-table:: State Machine Transitions
660 .. code-block:: console
663 uart:~$ bap select 0x01
668 .. code-block:: console
670 uart:~$ bap select 0x01 broadcast
676 The :code:`send` command sends data over BAP Stream.
678 .. csv-table:: State Machine Transitions
684 .. code-block:: console