You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remote device: embedded device running Linux 5.4.70
Additional context demo side log:
root@lina-OptiPlex-790:/home/lina/Git/btstack/port/libusb# ./a2dp_source_demo
Packet Log: /tmp/hci_dump.pklg
USB Path: 01-08
Local version information:
HCI Version 0x0006
HCI Revision 0x22bb
LMP Version 0x0006
LMP Subversion 0x22bb
Manufacturer 0x000a
BTstack up and running on 00:1A:7D:DA:71:11.
A2DP Source: Connected to address 20:4E:F6:BB:06:C6, a2dp cid 0x01, local seid 0x01.
A2DP Source: Received SBC codec configuration, sampling frequency 44100, a2dp_cid 0x01, local seid 0x01, remote seid 0x02.
Received media codec configuration:
num_channels: 2
sampling_frequency: 44100
channel_mode: 2
block_length: 16
subbands: 8
allocation_method: 0
bitpool_value [2, 53]
A2DP Source: Stream established a2dp_cid 0x01, local_seid 0x01, remote_seid 0x02
A2DP Source: Stream started, a2dp_cid 0x01, local_seid 0x01
AVRCP: Channel successfully opened: media_tracker.avrcp_cid 0x01
Remote supports EVENT_ID 0x01
Remote supports EVENT_ID 0x02
Remote supports EVENT_ID 0x03
Remote supports EVENT_ID 0x04
Remote supports EVENT_ID 0x08
Remote supports EVENT_ID 0x0a
Remote supports EVENT_ID 0x0b
Remote supports EVENT_ID 0x0d
automatically enable notifications
Responding to event 0x1b failed with status 0x0c
Responding to event 0x1b failed with status 0x0c
Responding to event 0x1b failed with status 0x0c
Responding to event 0x1b failed with status 0x0c
AVRCP Target: PLAY
AVRCP Target: PAUSE
A2DP Source: Stream paused, a2dp_cid 0x01, local_seid 0x01
AVRCP Target: PLAY
A2DP Source: Stream started, a2dp_cid 0x01, local_seid 0x01
Responding to event 0x1b failed with status 0x0c
AVRCP Target: operation 0x4b is not handled ---when enter next command in bluetooth-player app on remote device
AVRCP Target: operation 0x4c is not handled ---when enter previous command in bluetooth-player app on remote device
AVRCP Target: operation 0x4b is not handled ---when enter next command in bluetooth-player app on remote device
AVRCP Target: operation 0x4c is not handled ---when enter previous command in bluetooth-player app on remote device
AVRCP Target: PAUSE
A2DP Source: Stream paused, a2dp_cid 0x01, local_seid 0x01
AVRCP Target: STOP
A2DP Source: Stream released, a2dp_cid 0x01, local_seid 0x01
A2DP Source: Stream released.
AVRCP Target: Disconnected, avrcp_cid 0x01
A2DP Source: Signaling released.
[bluetooth]# pair 00:1A:7D:DA:71:11
Attempting to pair with 00:1A:7D:DA:71:11
[CHG] Device 00:1A:7D:DA:71:11 Connected: yes
[CHG] Device 00:1A:7D:DA:71:11 Modalias: bluetooth:v048Fp0001d0001
[CHG] Device 00:1A:7D:DA:71:11 UUIDs: 0000110a-0000-1000-8000-00805f9b34fb
[CHG] Device 00:1A:7D:DA:71:11 UUIDs: 0000110c-0000-1000-8000-00805f9b34fb
[CHG] Device 00:1A:7D:DA:71:11 UUIDs: 0000110e-0000-1000-8000-00805f9b34fb
[CHG] Device 00:1A:7D:DA:71:11 UUIDs: 00001200-0000-1000-8000-00805f9b34fb
[CHG] Device 00:1A:7D:DA:71:11 ServicesResolved: yes
[CHG] Device 00:1A:7D:DA:71:11 Paired: yes
Pairing successful
[A2DP Source 00:1A:7D:DA:71:11]# trust 00:1A:7D:DA:71:11
[CHG] Device 00:1A:7D:DA:71:11 Trusted: yes
Changing 00:1A:7D:DA:71:11 trust succeeded
[CHG] Device 00:1A:7D:DA:71:11 ServicesResolved: no
[CHG] Device 00:1A:7D:DA:71:11 Connected: no
[bluetooth]# connect 00:1A:7D:DA:71:11
Attempting to connect to 00:1A:7D:DA:71:11
[CHG] Device 00:1A:7D:DA:71:11 Connected: yes
Connection successful
[CHG] Device 00:1A:7D:DA:71:11 ServicesResolved: yes
[A2DP Source 00:1A:7D:DA:71:11]# paired-devices
Device 00:1A:7D:DA:71:11 A2DP Source 00:1A:7D:DA:71:11
[A2DP Source 00:1A:7D:DA:71:11]# quit
root@imx8mqevk:~# bluetooth-player
[NEW] Player /org/bluez/hci0/dev_00_1A_7D_DA_71_11/player0 [default]
[bluetooth]# [613341.821370] audit: type=1006 audit(1619598601.638:173): pid=86413 uid=0 old-auid=4294967295 auid=0 tty=(none) old-ses=4294967295 ses=172 res=1
[bluetooth]# play
Attempting to play
Play successful
[bluetooth]# pause
Attempting to pause
Pause successful
[CHG] Player /org/bluez/hci0/dev_00_1A_7D_DA_71_11/player0 Status: paused
[bluetooth]# play
Attempting to play
Play successful
[CHG] Player /org/bluez/hci0/dev_00_1A_7D_DA_71_11/player0 Status: playing
[CHG] Player /org/bluez/hci0/dev_00_1A_7D_DA_71_11/player0 Title: Nao-deceased
[CHG] Player /org/bluez/hci0/dev_00_1A_7D_DA_71_11/player0 TrackNumber: 0x000002
[CHG] Player /org/bluez/hci0/dev_00_1A_7D_DA_71_11/player0 NumberOfTracks: 0x000003
[CHG] Player /org/bluez/hci0/dev_00_1A_7D_DA_71_11/player0 Duration: 0x003039
[CHG] Player /org/bluez/hci0/dev_00_1A_7D_DA_71_11/player0 Album: A2DP Source Demo
[CHG] Player /org/bluez/hci0/dev_00_1A_7D_DA_71_11/player0 Artist: Decease
[CHG] Player /org/bluez/hci0/dev_00_1A_7D_DA_71_11/player0 Genre: vivid
[bluetooth]# next
Attempting to jump to next
Next successful
[bluetooth]# previous
Attempting to jump to previous
Previous successful
[bluetooth]# next
Attempting to jump to next
Next successful
[bluetooth]# previous
Attempting to jump to previous
Previous successful
[bluetooth]# pause
Attempting to pause
Pause successful
[CHG] Player /org/bluez/hci0/dev_00_1A_7D_DA_71_11/player0 Status: paused
[bluetooth]# stop
Attempting to stop
Stop successful
[DEL] Player /org/bluez/hci0/dev_00_1A_7D_DA_71_11/player0 [default]
[bluetooth]# quit
The text was updated successfully, but these errors were encountered:
lnjin
changed the title
AVRCP Commands next and previous failed in a2dp_source_demo
AVRCP Commands: next and previous failed in a2dp_source_demo
May 12, 2021
Hi. That's correct, next and previous are not implemented in the demo. It's not a problem of the AVRCP implementation itself. Good idea to let next/prev toggle between Nao Deceased and the Sine.
Describe the bug
AVRCP commands next and previous failed in a2dp_source_demo
To Reproduce
Steps to reproduce the behavior:
Expected behavior
next and previous commands should be supported
HCI Packet Logs
hci_dump.zip
Environment
Additional context
demo side log:
root@lina-OptiPlex-790:/home/lina/Git/btstack/port/libusb# ./a2dp_source_demo
Packet Log: /tmp/hci_dump.pklg
USB Path: 01-08
Local version information:
BTstack up and running on 00:1A:7D:DA:71:11.
A2DP Source: Connected to address 20:4E:F6:BB:06:C6, a2dp cid 0x01, local seid 0x01.
A2DP Source: Received SBC codec configuration, sampling frequency 44100, a2dp_cid 0x01, local seid 0x01, remote seid 0x02.
Received media codec configuration:
A2DP Source: Stream established a2dp_cid 0x01, local_seid 0x01, remote_seid 0x02
A2DP Source: Stream started, a2dp_cid 0x01, local_seid 0x01
AVRCP: Channel successfully opened: media_tracker.avrcp_cid 0x01
Remote supports EVENT_ID 0x01
Remote supports EVENT_ID 0x02
Remote supports EVENT_ID 0x03
Remote supports EVENT_ID 0x04
Remote supports EVENT_ID 0x08
Remote supports EVENT_ID 0x0a
Remote supports EVENT_ID 0x0b
Remote supports EVENT_ID 0x0d
automatically enable notifications
Responding to event 0x1b failed with status 0x0c
Responding to event 0x1b failed with status 0x0c
Responding to event 0x1b failed with status 0x0c
Responding to event 0x1b failed with status 0x0c
AVRCP Target: PLAY
AVRCP Target: PAUSE
A2DP Source: Stream paused, a2dp_cid 0x01, local_seid 0x01
AVRCP Target: PLAY
A2DP Source: Stream started, a2dp_cid 0x01, local_seid 0x01
Responding to event 0x1b failed with status 0x0c
AVRCP Target: operation 0x4b is not handled ---when enter next command in bluetooth-player app on remote device
AVRCP Target: operation 0x4c is not handled ---when enter previous command in bluetooth-player app on remote device
AVRCP Target: operation 0x4b is not handled ---when enter next command in bluetooth-player app on remote device
AVRCP Target: operation 0x4c is not handled ---when enter previous command in bluetooth-player app on remote device
AVRCP Target: PAUSE
A2DP Source: Stream paused, a2dp_cid 0x01, local_seid 0x01
AVRCP Target: STOP
A2DP Source: Stream released, a2dp_cid 0x01, local_seid 0x01
A2DP Source: Stream released.
AVRCP Target: Disconnected, avrcp_cid 0x01
A2DP Source: Signaling released.
remote device side log:
root@imx8mqevk:~# bluetoothctl
Agent registered
[bluetooth]# paired-devices
[bluetooth]# scan on
Discovery started
[CHG] Controller 20:4E:F6:BB:06:C6 Discovering: yes
[NEW] Device 50:6E:D4:67:61:E9 50-6E-D4-67-61-E9
[NEW] Device 73:53:06:39:4A:A6 73-53-06-39-4A-A6
[NEW] Device 61:E0:90:98:67:C3 61-E0-90-98-67-C3
[bluetooth]# pair 00:1A:7D:DA:71:11
Attempting to pair with 00:1A:7D:DA:71:11
[CHG] Device 00:1A:7D:DA:71:11 Connected: yes
[CHG] Device 00:1A:7D:DA:71:11 Modalias: bluetooth:v048Fp0001d0001
[CHG] Device 00:1A:7D:DA:71:11 UUIDs: 0000110a-0000-1000-8000-00805f9b34fb
[CHG] Device 00:1A:7D:DA:71:11 UUIDs: 0000110c-0000-1000-8000-00805f9b34fb
[CHG] Device 00:1A:7D:DA:71:11 UUIDs: 0000110e-0000-1000-8000-00805f9b34fb
[CHG] Device 00:1A:7D:DA:71:11 UUIDs: 00001200-0000-1000-8000-00805f9b34fb
[CHG] Device 00:1A:7D:DA:71:11 ServicesResolved: yes
[CHG] Device 00:1A:7D:DA:71:11 Paired: yes
Pairing successful
[A2DP Source 00:1A:7D:DA:71:11]# trust 00:1A:7D:DA:71:11
[CHG] Device 00:1A:7D:DA:71:11 Trusted: yes
Changing 00:1A:7D:DA:71:11 trust succeeded
[CHG] Device 00:1A:7D:DA:71:11 ServicesResolved: no
[CHG] Device 00:1A:7D:DA:71:11 Connected: no
[bluetooth]# connect 00:1A:7D:DA:71:11
Attempting to connect to 00:1A:7D:DA:71:11
[CHG] Device 00:1A:7D:DA:71:11 Connected: yes
Connection successful
[CHG] Device 00:1A:7D:DA:71:11 ServicesResolved: yes
[A2DP Source 00:1A:7D:DA:71:11]# paired-devices
Device 00:1A:7D:DA:71:11 A2DP Source 00:1A:7D:DA:71:11
[A2DP Source 00:1A:7D:DA:71:11]# quit
root@imx8mqevk:~# bluetooth-player
[NEW] Player /org/bluez/hci0/dev_00_1A_7D_DA_71_11/player0 [default]
[bluetooth]# [613341.821370] audit: type=1006 audit(1619598601.638:173): pid=86413 uid=0 old-auid=4294967295 auid=0 tty=(none) old-ses=4294967295 ses=172 res=1
[bluetooth]# play
Attempting to play
Play successful
[bluetooth]# pause
Attempting to pause
Pause successful
[CHG] Player /org/bluez/hci0/dev_00_1A_7D_DA_71_11/player0 Status: paused
[bluetooth]# play
Attempting to play
Play successful
[CHG] Player /org/bluez/hci0/dev_00_1A_7D_DA_71_11/player0 Status: playing
[CHG] Player /org/bluez/hci0/dev_00_1A_7D_DA_71_11/player0 Title: Nao-deceased
[CHG] Player /org/bluez/hci0/dev_00_1A_7D_DA_71_11/player0 TrackNumber: 0x000002
[CHG] Player /org/bluez/hci0/dev_00_1A_7D_DA_71_11/player0 NumberOfTracks: 0x000003
[CHG] Player /org/bluez/hci0/dev_00_1A_7D_DA_71_11/player0 Duration: 0x003039
[CHG] Player /org/bluez/hci0/dev_00_1A_7D_DA_71_11/player0 Album: A2DP Source Demo
[CHG] Player /org/bluez/hci0/dev_00_1A_7D_DA_71_11/player0 Artist: Decease
[CHG] Player /org/bluez/hci0/dev_00_1A_7D_DA_71_11/player0 Genre: vivid
[bluetooth]# next
Attempting to jump to next
Next successful
[bluetooth]# previous
Attempting to jump to previous
Previous successful
[bluetooth]# next
Attempting to jump to next
Next successful
[bluetooth]# previous
Attempting to jump to previous
Previous successful
[bluetooth]# pause
Attempting to pause
Pause successful
[CHG] Player /org/bluez/hci0/dev_00_1A_7D_DA_71_11/player0 Status: paused
[bluetooth]# stop
Attempting to stop
Stop successful
[DEL] Player /org/bluez/hci0/dev_00_1A_7D_DA_71_11/player0 [default]
[bluetooth]# quit
The text was updated successfully, but these errors were encountered: