This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

A3DPDemo_SRC, using SendPassThroughCommand to control volume up/down on bluetooth speaker

Hi All,

For A3DPDemo_SRC, I add in the SendPassThroughCommand  to try to control the vokume up/down on the paired Bluetooth speaker. It returns with status 

(-2033) BTAUD_ERROR_REMOTE_CONTROL_ROLE_NOT_INITIALIZED

I checked the Initialize_Source() and find the following lines:

------ start -------------

/* Initialize the stream configuration supported format list. */
BTPS_MemCopy(InitializationInfoSRC.StreamFormat, AudioSRCSupportedFormats, sizeof(AudioSRCSupportedFormats));

/* Set up the remote control role configuration. */
RemoteControlRoleInfo.SupportedFeaturesFlags = SDP_AVRCP_SUPPORTED_FEATURES_CONTROLLER_CATEGORY_1;
RemoteControlRoleInfo.ProviderName = "Stonestreet One";
RemoteControlRoleInfo.ServiceName = "MSP430 A3DP Source";

/* Set up the remaining AVRCP Controller configuration. */
InitializationInfoAVR.InitializationFlags = 0;
InitializationInfoAVR.TargetRoleInfo = &RemoteControlRoleInfo;
InitializationInfoAVR.ControllerRoleInfo = NULL;
InitializationInfoAVR.SupportedVersion = apvVersion1_0;

---------- end ---------------

What should I update with this code to get rid of the error?

Thanks,

Henry Nguyen

  • Hi Henry,

    When you are the source of the stream, you would play the AVRCP target role and not the controller.
    This means the remote device could send commands to the source (play/pause/next/prev/etc).

    Regards,
    Gigi Joseph.
  • Hi Joseph,

    So says for example, the media players or the cellphones used as a bluetooth audio source sending audio stream to the bluetooth speaker, how do you suggest methods for these source devices to control volume or mute of the speakers? Have you ever got into this issue? I have my cell paired with the Air Capsule, I can play, stop, change the volumes, ... What profile or protocols it uses to control the Air Capsule speaker? Too bad, I don't have the bluetooth sniffer and my cellphone is Window base, not Android!!!

    Thanks,
    Henry Nguyen