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.

BT-MSPAUDSINK-RD

Other Parts Discussed in Thread: MSP430F5438A, MSP430F5229, CC2560

Hi

I am able to Pair & Connect the BT-MSPAUDSNK-RD and  also able to control the PLAY/PAUSE/NEXT and PREV options on the phone from Hyper terminal of my PC through DEBUG pins but not able to hear any music from speakers what would be the problem..Pl Help , Below is the Hyper Terminal Data

D_ADDR:     0x94007006E51D
StreamType:  SNK
StreamState: Started
A3DP Start: 0

A3DP+SNK>>>
etAUD_Stream_State_Change_Indication
BD_ADDR:     0x94007006E51D
StreamType:  SNK
StreamState: Suspended
A3DP Stop:  0

A3DP+SNK>>>
etAUD_Remote_Control_Open_Indication
BD_ADDR:     0x94007006E51D

A3DP+SNK>>>
etAUD_Stream_State_Change_Indication
BD_ADDR:     0x94007006E51D
StreamType:  SNK
StreamState: Started
A3DP Start: 0

  • Hi Ravi,

    I suspect there is nothing wrong from the software side, But to conform could you please provide me the complete  Hyper terminal logs. at the same time could you please confirm you are using Bluetopia 1.4 R1 version.

  • Hi Sundeep

    Yes i am using CC256x MSP430 Bluetopia SDK v1.4 (A3DP)

    Pl see the hyper terminal log data

    OpenStack().
    HCI_VS_InitializeAfterHCIReset
    HCI_VS_InitializeAfterHCIReset Success
    Bluetooth Stack ID: 1
    A3DP Sink Feature enabled.
    Device Chipset: 4.0
    BD_ADDR: 0x84DD20F0DE96

    ******************************************************************
    * Command Options: Pair, PINCodeResponse, PassKeyResponse,       *
    *                  UserConfirmationResponse, GetLocalAddress     *
    *                  OpenSink, CloseSink, RemotePlay, RemotePause, *
    *                  RemoteNext, RemotePrev, Help                  *
    ******************************************************************

    A3DP+SNK>>>Class of Device: 0x040424.
    Class of Device set to 0x040424.
    A3DP Endpoint opened successfully.
    Opened a3dp endpoint.

    atIOCapabilityResponse: 0x94007006E51D
    Capabilities: Display Yes/No, MITM

    A3DP+SNK>>>
    atIOCapabilityRequest: 0x94007006E51D

    Auth success.

    A3DP+SNK>>>
    atUserConfirmationRequest: 0x94007006E51D

    Auto Accepting: 177048

    GAP_Authentication_Response success.

    A3DP+SNK>>>Un-handled Auth. Event.

    A3DP+SNK>>>
    atLinkKeyCreation: 0x94007006E51D
    Link Key Stored.

    A3DP+SNK>>>
    etAUD_Signalling_Channel_Open_Indication
    BD_ADDR:  0x94007006E51D

    A3DP+SNK>>>
    etAUD_Stream_Open_Indication
    BD_ADDR:     0x94007006E51D
    MediaMTU:    800
    StreamType:  SNK
    A3DP Open:  0
    Stream Format:
       Frequency: 48000
       Channels:  2
       Flags:     0

    A3DP+SNK>>>
    etAUD_Stream_State_Change_Indication
    BD_ADDR:     0x94007006E51D
    StreamType:  SNK
    StreamState: Started
    A3DP Start: 0

    A3DP+SNK>>>
    etAUD_Supported_Stream_Formats_Indication
    BD_ADDR:        0x94007006E51D
    MediaCodecType: 0
    Supported formats:
       Frequency: 48000, Channels: 1, Flags: 0
       Frequency: 48000, Channels: 2, Flags: 0

    A3DP+SNK>>>
    etAUD_Stream_State_Change_Indication
    BD_ADDR:     0x94007006E51D
    StreamType:  SNK
    StreamState: Suspended
    A3DP Stop:  0

    A3DP+SNK>>>
    etAUD_Remote_Control_Open_Indication
    BD_ADDR:     0x94007006E51D

    A3DP+SNK>>>
    etAUD_Stream_State_Change_Indication
    BD_ADDR:     0x94007006E51D
    StreamType:  SNK
    StreamState: Started
    A3DP Start: 0

    A3DP+SNK>>>
    etAUD_Stream_State_Change_Indication
    BD_ADDR:     0x94007006E51D
    StreamType:  SNK
    StreamState: Suspended
    A3DP Stop:  0

    A3DP+SNK>>>
    etAUD_Stream_State_Change_Indication
    BD_ADDR:     0x94007006E51D
    StreamType:  SNK
    StreamState: Started
    A3DP Start: 0

    A3DP+SNK>>>RemotePause

    A3DP+SNK>>>
    etAUD_Stream_State_Change_Indication
    BD_ADDR:     0x94007006E51D
    StreamType:  SNK
    StreamState: Suspended
    A3DP Stop:  0

    A3DP+SNK>>>RemotePlay

    A3DP+SNK>>>
    etAUD_Stream_State_Change_Indication
    BD_ADDR:     0x94007006E51D
    StreamType:  SNK
    StreamState: Started
    A3DP Start: 0

    A3DP+SNK>>>

    Kindly Help me Proceed

    Thankyou

  • Hi Ravi,

    Two quick questions.

    1. You said you are using CC256x MSP430 Bluetopia SDK v1.4 (A3DP). So you mean that you are not using the latest v1.4R1 which was released on 20-Jan-2014?

    2. I did not see the "opensink" command being called from the logs you have provided. Can you please follow the below link step by step and see if you are still facing the problem

    http://processors.wiki.ti.com/index.php/CC256x_MSP430_Bluetopia_Basic_AssistedA2DPSinkDemo_APP

  • Oh great will get back to you after testing with V1.4R1

    Thank you

  • Hi Sundeep

    v1.4R1is not compatible with MSP430F5229 i think its designed for MSP430F5438A, is there anything els that i can try to make BT-MSPAUDSNK-RD Module work....

    thank you.....

  • Hi Ravi,

    two things,

    1. Please try the second point as per my previous post that is rinning the "opensink" after the "SetClassOfDevice" command.

    2. I think it should be compatible.  In the workspace tab, the configurations to load the device should be present. From the dropdown menu select the "Debug - A3DP SNK board ".

  • Hi Sundeep

    Like u suggested i was able to debug and download the code, i can see a little progress i.e now i am able to use the cap touch provided on the board to play and pause the song but still not able to listen to any music...

    i could not do anything with the "opensink" command

    Device name changed to RAVI

    see log data after running new code

    OpenStack().
    Bluetooth Stack ID: 1
    A3DP Sink Feature enabled.
    Device Chipset: 4.0
    BD_ADDR: 0x84DD20F0DE96
    EIR Data Configured Successfully (Device Name RAVI).
    A3DP Endpoint opened successfully.
    Class of Device: 0x040424.
    Supported formats:
       Frequency: 44100, Channels: 2, Flags: 0
       Frequency: 48000, Channels: 2, Flags: 0
       Frequency: 48000, Channels: 1, Flags: 0
       Frequency: 44100, Channels: 1, Flags: 0

    ******************************************************************
    * Command Options: SetDiscoverabilityMode, SetConnectabilityMode,*
    *                  SetPairabilityMode, GetLocalAddress,          *
    *                  SetBaudRate,  RemotePlay, RemotePause,        *
    *                  RemoteNext, RemotePrev, Help                  *
    ******************************************************************

    A3DP+SNK>
    atLinkKeyRequest: 0x40B0FA38A79C

    GAP_Authentication_Response success.

    A3DP+SNK>
    atIOCapabilityResponse: 0x40B0FA38A79C
    Capabilities: Display Yes/No

    A3DP+SNK>
    atIOCapabilityRequest: 0x40B0FA38A79C

    Auth success.

    A3DP+SNK>
    atUserConfirmationRequest: 0x40B0FA38A79C

    Auto Accepting: 253047

    GAP_Authentication_Response success.

    A3DP+SNK>Un-handled Auth. Event.

    A3DP+SNK>
    atLinkKeyCreation: 0x40B0FA38A79C
    Link Key Stored.

    A3DP+SNK>
    etAUD_Signalling_Channel_Open_Indication
    BD_ADDR:  0x40B0FA38A79C

    A3DP+SNK>
    etAUD_Stream_Open_Indication
    BD_ADDR:     0x40B0FA38A79C
    MediaMTU:    800
    StreamType:  SNK
    A3DP Open:  0
    Stream Format:
       Frequency: 44100
       Channels:  2
       Flags:     0

    A3DP+SNK>
    etAUD_Supported_Stream_Formats_Indication
    Supported formats:
       Frequency: 44100, Channels: 1, Flags: 0
       Frequency: 44100, Channels: 2, Flags: 0

    A3DP+SNK>
    etAUD_Remote_Control_Open_Indication
    BD_ADDR:     0x40B0FA38A79C

    A3DP+SNK>
    etAUD_Stream_State_Change_Indication
    BD_ADDR:     0x40B0FA38A79C
    StreamType:  SNK
    StreamState: Started
    A3DP Start: 0

    A3DP+SNK>
    etAUD_Stream_State_Change_Indication
    BD_ADDR:     0x40B0FA38A79C
    StreamType:  SNK
    StreamState: Suspended
    A3DP Stop:  0

    A3DP+SNK>
    etAUD_Stream_State_Change_Indication
    BD_ADDR:     0x40B0FA38A79C
    StreamType:  SNK
    StreamState: Started
    A3DP Start: 0

    A3DP+SNK>
    etAUD_Stream_State_Change_Indication
    BD_ADDR:     0x40B0FA38A79C
    StreamType:  SNK
    StreamState: Suspended
    A3DP Stop:  0

    A3DP+SNK>
    etAUD_Stream_State_Change_Indication
    BD_ADDR:     0x40B0FA38A79C
    StreamType:  SNK
    StreamState: Started
    A3DP Start: 0

    A3DP+SNK>

    Thank you

  • Hi Ravi,

    That is really a good progress.

    Now looking at the options that are displayed. I understand that the flag "__TI_A3DP_SNK_BOARD__" is not defined. Please enable this flag and see if you have any progress with "opensink" command(which will call "OpenA3DPEndpoint() function to initialize the A3DP subsystem")

    Please have a look at the file "A3DPDemo_SNK.c" to have a better understanding.

  • Hi Sundeep,

    I am using v1.4R1 sdk, and having a one question.

    I set up this board in "Release - A3DP SNK Board" mode, deleting the flag "__TI_A3DP_SNK_BOARD__", and then I let iphone connect the device as these steps(http://processors.wiki.ti.com/index.php/CC256x_MSP430_Bluetopia_Basic_AssistedA2DPSinkDemo_APP).

    And the problem is no music output !

    ----------------

    Bluetooth Stack ID: 1
    A3DP Sink Feature enabled.
    Device Chipset: 4.0
    BD_ADDR: 0x08002801F5C8
    Supported formats:
    Frequency: 44100, Channels: 2, Flags: 0
    Frequency: 48000, Channels: 2, Flags: 0
    Frequency: 48000, Channels: 1, Flags: 0
    Frequency: 44100, Channels: 1, Flags: 0

    ******************************************************************
    * Command Options: Inquiry, DisplayInquiryList, Pair, *
    * EndPairing, PINCodeResponse, PassKeyResponse, *
    * UserConfirmationResponse, *
    * SetDiscoverabilityMode, SetConnectabilityMode,*
    * SetPairabilityMode, SetBaudRate *
    * ChangeSimplePairingParameters, *
    * GetLocalAddress, GetLocalName, SetLocalName, *
    * GetClassOfDevice, SetClassOfDevice, *
    * GetRemoteName, OpenSink, CloseSink, *
    * RemotePlay, RemotePause, RemoteNext, *
    * RemotePrev, Help *
    ******************************************************************

    A3DP+SNK>SetLocalName 5220
    Local Device Name: 5220.

    A3DP+SNK>SetLocalName 5229
    Local Device Name: 5229.

    A3DP+SNK>SetClassOfDevice 0x040424
    Class of Device: 0x040424.

    A3DP+SNK>OpenSink
    A3DP Endpoint opened successfully.

    A3DP+SNK>
    atIOCapabilityResponse: 0xF4F15A61631C
    Capabilities: Display Yes/No

    A3DP+SNK>
    atIOCapabilityRequest: 0xF4F15A61631C

    Auth success.

    A3DP+SNK>
    atUserConfirmationRequest: 0xF4F15A61631C

    Auto Accepting: 114248

    GAP_Authentication_Response success.

    A3DP+SNK>Un-handled Auth. Event.

    A3DP+SNK>
    atLinkKeyCreation: 0xF4F15A61631C
    Link Key Stored.

    A3DP+SNK>
    etAUD_Remote_Control_Open_Indication
    BD_ADDR: 0xF4F15A61631C

    A3DP+SNK>
    etAUD_Signalling_Channel_Open_Indication
    BD_ADDR: 0xF4F15A61631C

    A3DP+SNK>
    etAUD_Stream_Open_Indication
    BD_ADDR: 0xF4F15A61631C
    MediaMTU: 672
    StreamType: SNK
    A3DP Open: 0
    Stream Format:
    Frequency: 44100
    Channels: 2
    Flags: 0

    A3DP+SNK>
    etAUD_Supported_Stream_Formats_Indication
    Supported formats:
    Frequency: 44100, Channels: 2, Flags: 3

    A3DP+SNK>RemotePlay
    AVRCP command sent successfully.

    A3DP+SNK>
    etAUD_Remote_Control_Command_Confirmation
    BD_ADDR: 0xF4F15A61631C
    TransactionID: 2
    ConfirmationStatus: 0
    Pass Through Response Code: 0x09
    Successfully started stream

    A3DP+SNK>
    etAUD_Stream_State_Change_Indication
    BD_ADDR: 0xF4F15A61631C
    StreamType: SNK
    StreamState: Started
    A3DP Start: 0

    A3DP+SNK>

  • I have already found the solution.

    In MainThread function, I enable the fuction "HAL_ConfigureCodec()", then the problem is solved.

  • Hi Shwan

    Can you pl share the code with me...

  • Hi Ravi,

    For first problem:

    To delete the "__TI_A3DP_SNK_BOARD__" in the red rectangular, 

    For second problem:

    U can modify code as follows in "MainThread" function in "Main.c".

    Before:

    +++++++++++++++++++++++

    BluetoothStackID = (unsigned int)Result;

    #ifdef __TI_A3DP_SNK_BOARD__
    HAL_ConfigureCodec();
    #endif
    +++++++++++++++++++++++

    After:

    +++++++++++++++++++++++

    BluetoothStackID = (unsigned int)Result;


    //shawn modify for SNK BOARD
    //#ifdef __TI_A3DP_SNK_BOARD__
    HAL_ConfigureCodec();
    //#endif

    ++++++++++++++++++++++

  • Hi Shwan

    One question, have you done any hardware modification in BT-MSPAUDSNK-RD board??

    I am using CC2564BRVMT bluetooth chip.....

    I tried deleting (__TI_A3DP_SNK_BOARD__) like u said, now i am able to pair but not able to connect my phone to the BT module

  • Hi Ravi,

    No, I only modify software and some configuration that have shown you.

    there are some configurations you should recheck:

    1. workspace: Release - A3DP SNK Board;

    2. deleting "__TI_A3DP_SNK_BOARD__" for the other mode, and then you can see "opensink" cmd;

    3. enable  the function "HAL_ConfigureCodec".

    That's all my modfications, and I suspect that you have some hardware problems.

  • Hi Shawn

    Pl tell me which chip u r using cc2560 or cc2564b, and i am a bit confused with your 2nd point b'coz if i delete __TI_A3DP_SNK_BOARD__ i am not able to connect my phone to bt module. anyhow will check my hardware and update ASAP.

    Thankyou

  • Hi Shawn

    can you pl share the binary (.d43) file which u are using...

  • Hi Ravi,

    Have solved this problem?

    The chip which i was using is CC2564B, and the attachment is the image. you can try this.7610.A3DPDemo_SNK.rar

  • Hi Shawn

    Hi Sundeep

    I tried your binary file and i am not able to detect my BT device :-(

    Check out the clk,s i am getting with previous version 7433.SIGNALS.rar

  • Hi Ravi,

    I am expecting a Audio Sink board early next week, I will give it a try and myself with the default images and let you know .

    So that we can decide on how to go forward on this.    

  • Hi sundeep

    Good news the BT-MSPAUDSNK-RD board is working.

  • Hi Ravi,

    Thanks for for the update.

    Is it possible for you to share what was the problem/solution?

    So that it will be helpful for others.

  • Hi Sundeep,


    The software is fine, but must very very careful with the assembling ( IC's and other components).