- Thu Aug 31, 2017 11:13 pm
#196003
I have a Sparkfun Purpletooth Jamboree board, and it has an interesting problem.
When I pair it with my 2017 Honda Accord factory stereo, it works well for transmitting audio to the car stereo from its line input (in "Source" mode aka "SET CLASSIC_MODE=1").
When I monitor its serial command port, I am able to successfully send configuration commands to it. So far so good.
The problem is that when I press the controls on the car stereo, such as play, pause, next track, or previous track, I expect those commands to be instantly transmitted to the BC127 and have the "AVRCP_PLAY", "AVRCP_PAUSE" etc messages appear right away. However instead, there is often a long delay of several seconds before the command is received by the BC127.
If I press the "play/pause" button on the Jamboree board itself, then the "AVRCP_PLAY" message appears on the serial port instantly. It's only if I used the paired car stereo to send the command that there is the long delay.
And if I pair a different A2DP+AVRCP device to the same stereo, for example if I pair my smartphone to the stereo, the commands do behave instantly on those other devices. So I know it's not the stereo's fault.
I have tried turning off all of the various profiles that I don't need, for instance I have issued all of these commands but the problem still exists:
SET AUTOCONN=1
SET CLASSIC_ROLE=1
SET MUSIC_META_DATA=OFF
SET BLE_ROLE=0
SET ENABLE_SPP=OFF
SET ENABLE_PBAP=OFF
SET ENABLE_MAP=OFF
SET ENABLE_HFP=OFF
SET ENABLE_A2DP=ON
SET ENABLE_AVRCP=ON
SET INPUT_GAIN=8
WRITE
RESET
Any ideas of how to fix this slow command response? My whole purpose behind this project requires the response to be quick.
When I pair it with my 2017 Honda Accord factory stereo, it works well for transmitting audio to the car stereo from its line input (in "Source" mode aka "SET CLASSIC_MODE=1").
When I monitor its serial command port, I am able to successfully send configuration commands to it. So far so good.
The problem is that when I press the controls on the car stereo, such as play, pause, next track, or previous track, I expect those commands to be instantly transmitted to the BC127 and have the "AVRCP_PLAY", "AVRCP_PAUSE" etc messages appear right away. However instead, there is often a long delay of several seconds before the command is received by the BC127.
If I press the "play/pause" button on the Jamboree board itself, then the "AVRCP_PLAY" message appears on the serial port instantly. It's only if I used the paired car stereo to send the command that there is the long delay.
And if I pair a different A2DP+AVRCP device to the same stereo, for example if I pair my smartphone to the stereo, the commands do behave instantly on those other devices. So I know it's not the stereo's fault.
I have tried turning off all of the various profiles that I don't need, for instance I have issued all of these commands but the problem still exists:
SET AUTOCONN=1
SET CLASSIC_ROLE=1
SET MUSIC_META_DATA=OFF
SET BLE_ROLE=0
SET ENABLE_SPP=OFF
SET ENABLE_PBAP=OFF
SET ENABLE_MAP=OFF
SET ENABLE_HFP=OFF
SET ENABLE_A2DP=ON
SET ENABLE_AVRCP=ON
SET INPUT_GAIN=8
WRITE
RESET
Any ideas of how to fix this slow command response? My whole purpose behind this project requires the response to be quick.