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.

Connection between the BT-MSP-AUDSOURCE and BT-MSP_AUDSINK dev boards

Other Parts Discussed in Thread: MSP430F5229, MSP430F5438A, MSP430F5438, MSP430F5529

We are experimenting with streaming audio between these two dev boards, but have had a very difficult time getting them to connect.  If we reboot (or power cycle) them together, they seem to connect about 1 out of 20 times.  I have connected a UART to interact with the small command set the AUDSOURCE exposes to the user, but I can't seem to find any combination of commands or timing that makes them connect reliably,  The instructions we have found for this pair indicate you simply power them both up and they connect.

Here is the log from the AUDSOURCE:

A3DP+SRC>
Adding 0x20CD3919E3DD to auto-connect list.
Auto-connecting to 0x20CD3919E3DD via AUD...

A3DP+SRC>
atLinkKeyRequest: 0x20CD3919E3DD

GAP_Authentication_Response success.

A3DP+SRC>
atIOCapabilityRequest: 0x20CD3919E3DD

Auth success.

A3DP+SRC>
atIOCapabilityResponse: 0x20CD3919E3DD
Capabilities: No Input/Output

A3DP+SRC>
atUserConfirmationRequest: 0x20CD3919E3DD

Auto Accepting: 793065

GAP_Authentication_Response success.

A3DP+SRC>Un-handled Auth. Event.

A3DP+SRC>
atLinkKeyCreation: 0x20CD3919E3DD
Link Key Stored.

A3DP+SRC>
atAuthenticationStatus: 0 for 0x20CD3919E3DD

A3DP+SRC>
etEncryption_Change_Result for 0x20CD3919E3DD, Status: 0x00, Mode: Enabled.

A3DP+SRC>
etAUD_Signalling_Channel_Open_Indication
BD_ADDR: 0x20CD3919E3DD

A3DP+SRC>
etAUD_Stream_Open_Confirmation
Status: 0
BD_ADDR: 0x20CD3919E3DD
MediaMTU: 800
StreamType: SRC
A3DP Open (0049): 0
Reconfiguring codec...
...done.
Stream Format:
Frequency: 44100
Channels: 2
Flags: 0
Issued stream state change successfully.

A3DP+SRC>Unhandled captouch: 0

etAUD_Remote_Control_Open_Indication
BD_ADDR: 0x20CD3919E3DD

A3DP+SRC>
etAUD_Stream_Close_Indication
BD_ADDR: 0x20CD3919E3DD
StreamType: 1
DisconnectReason: 0
A3DP Close: 0

A3DP+SRC>
etAUD_Remote_Control_Close_Indication
BD_ADDR: 0x20CD3919E3DD
DisconnectReason: 0

A3DP+SRC>
etAUD_Signalling_Channel_Close_Indication
BD_ADDR: 0x20CD3919E3DD
DisconnectReason: 1

A3DP+SRC>

Any advice to make these connect more reliably would be welcome.

 

  • HI,

    Are you using the sample apps as is, or have you modified it? If yes, can you please use the original and see if you still see the problem?
    Also, can you confirm if "__SUPPORT_CC256XB_PATCH__" is defined in your project.

    Regards,
    Gigi Joseph.
  • Thanks for your response.  

    We are using the code that was already programmed on the dev boards, so yes, it's unmodified.

    I don't know whether __SUPPORT_CC256XB_PATCH__ is enabled or not because I don't have the source code.  The diagnostic terminal interface looks very similar to the Bluetopia 1.5 SDK sample projects we looked at previously except that the number of available commands that are displayed when you type "help" is much smaller with this current software.  This would lead me to believe we have some variant of a Bluetopia SDK sample project.

  • Hi,

    Can you flash the latest A3DP Source/Sink versions and see if it helps? I am not sure if what you are running is the latest.
    The source is available with the 1.5R2 SDK (A3DPDemo_SRC/SNK).

    Please also take a look at: processors.wiki.ti.com/.../CC256x_Audio_Sink_Quick_Start_User_Guide

    Regards,
    Gigi Joseph.
  • I previously compiled that source code when we were trying to get the Tiwi-UB2 devboards working on the MSP-EXP430F5438. However, the code does not compile after I change the processor type in IAR. I had to change it because the BT_MSP_AUDSOURCE dev board uses an MSP430F5229. There are hardware pins referenced in the source code that (apparently) aren't present on the 5229. Here's the output of the compile:

    HAL.c
    Error[Pe020]: identifier "PEOUT" is undefined C:\ti\Connectivity\CC256X BT\CC256x MSP430 Bluetopia SDK\v1.5 R2\MSP430_Experimentor\Hardware\MSP430_EXP5438\HAL.c 171
    Error[Pe020]: identifier "PEDIR" is undefined C:\ti\Connectivity\CC256X BT\CC256x MSP430 Bluetopia SDK\v1.5 R2\MSP430_Experimentor\Hardware\MSP430_EXP5438\HAL.c 172
    Error[Pe020]: identifier "PESEL" is undefined C:\ti\Connectivity\CC256X BT\CC256x MSP430 Bluetopia SDK\v1.5 R2\MSP430_Experimentor\Hardware\MSP430_EXP5438\HAL.c 174
    Error[Pe020]: identifier "P11OUT" is undefined C:\ti\Connectivity\CC256X BT\CC256x MSP430 Bluetopia SDK\v1.5 R2\MSP430_Experimentor\Hardware\MSP430_EXP5438\HAL.c 175
    Error[Pe020]: identifier "P11DIR" is undefined C:\ti\Connectivity\CC256X BT\CC256x MSP430 Bluetopia SDK\v1.5 R2\MSP430_Experimentor\Hardware\MSP430_EXP5438\HAL.c 176
    Error[Pe020]: identifier "P11SEL" is undefined C:\ti\Connectivity\CC256X BT\CC256x MSP430 Bluetopia SDK\v1.5 R2\MSP430_Experimentor\Hardware\MSP430_EXP5438\HAL.c 179
    Error[Pe020]: identifier "P8REN" is undefined C:\ti\Connectivity\CC256X BT\CC256x MSP430 Bluetopia SDK\v1.5 R2\MSP430_Experimentor\Hardware\MSP430_EXP5438\HAL.c 199
    Error[Pe020]: identifier "P8DIR" is undefined C:\ti\Connectivity\CC256X BT\CC256x MSP430 Bluetopia SDK\v1.5 R2\MSP430_Experimentor\Hardware\MSP430_EXP5438\HAL.c 200
    Error[Pe020]: identifier "P8SEL" is undefined C:\ti\Connectivity\CC256X BT\CC256x MSP430 Bluetopia SDK\v1.5 R2\MSP430_Experimentor\Hardware\MSP430_EXP5438\HAL.c 201
    Error while running C/C++ compiler

    ... and here's the reference to these identifiers in HAL.C:

    static void ConfigureBoardDefaults(void)
    {
    /* Tie unused pins as inputs. */
    PAOUT = 0;
    PADIR = 0xFFFF;
    PASEL = 0;
    PBOUT = 0;
    PBDIR = 0xFFFF;
    PBSEL = 0;
    PCOUT = 0;
    PCDIR = 0xFFFF;
    PCSEL = 0;
    PDOUT = 0;
    PDDIR = 0xFFFF;
    PDSEL = 0;

    /* P10.0 is tied to USB RST pin. */
    PEOUT = 0;
    PEDIR = 0xFEFF;

    PESEL = 0;
    P11OUT = 0;
    P11DIR = 0xFF;
    PJOUT = 0;
    PJDIR = 0xFF;
    P11SEL = 0;

    /* Shutdown the Microphone Amplifier (P6.4 = 0) and shutdown the */
    /* Audio Out Amplifier (P6.6 = 1 to raise SHTDWN). */
    P6DIR = (BIT6 | BIT4);
    P6OUT = BIT6;

    /* The MSP430 Experimenter board needs to configure the "bridge" pins*/
    /* on the RF3 jumper block to be inputs (with pull-up/pull-down */
    /* resistors disabled) as these will be driven by other pins. */

    /* PORT1, bits 2,5,6 are jumpered on RF3 to other pins, the other */
    /* pins control them, so these should be input, with pullup/pulldown */
    /* resistors disabled and the corresponding interrupt sources for */
    /* PORT1 interrupts should also be disabled, since these are */
    /* controlled by other pins care should be taken to mask them out */
    /* when reading the status of PORT1. The same is true for PORT8 PIN1*/
    P1REN &= ~(BIT2 | BIT5 | BIT6);
    P1DIR &= ~(BIT2 | BIT5 | BIT6);
    P1SEL &= ~(BIT2 | BIT5 | BIT6);
    P8REN &= ~(BIT1);
    P8DIR &= ~(BIT1);
    P8SEL &= ~(BIT1);
    P1IE &= ~(BIT2 | BIT5 | BIT6);
    }
  • Hi Todd,

    Please select "Debug - A3DP SNK Board" as target (as shown below). It should build fine without any change.




    Regards,
    Gigi Joseph.

  • That worked!  Thanks for your help.

  • Thanks for your previous help.  I have encountered another related problem.

    We are interested in getting the Bluetopia SPP demo app running on these boards as well, - but that project doesn't have the build option for the SNK/SOURCE boards like the A3DP demos do.  It complains that the target (MSP430F5229) mismatches the project setting (MSP430F5438A), but when I change manually I get compiler errors in HAL.C in "ConfigureBoardDefaults()" function:

    Error[Pe020]: identifier "PEOUT" is undefined C:\ti\Connectivity\CC256X BT\CC256x MSP430 Bluetopia SDK\v1.5 R2\MSP430_Experimentor\Hardware\MSP430_EXP5438\HAL.c 171
    Error[Pe020]: identifier "PEDIR" is undefined C:\ti\Connectivity\CC256X BT\CC256x MSP430 Bluetopia SDK\v1.5 R2\MSP430_Experimentor\Hardware\MSP430_EXP5438\HAL.c 172
    Error[Pe020]: identifier "PESEL" is undefined C:\ti\Connectivity\CC256X BT\CC256x MSP430 Bluetopia SDK\v1.5 R2\MSP430_Experimentor\Hardware\MSP430_EXP5438\HAL.c 174
    Error[Pe020]: identifier "P11OUT" is undefined C:\ti\Connectivity\CC256X BT\CC256x MSP430 Bluetopia SDK\v1.5 R2\MSP430_Experimentor\Hardware\MSP430_EXP5438\HAL.c 175
    Error[Pe020]: identifier "P11DIR" is undefined C:\ti\Connectivity\CC256X BT\CC256x MSP430 Bluetopia SDK\v1.5 R2\MSP430_Experimentor\Hardware\MSP430_EXP5438\HAL.c 176
    Error[Pe020]: identifier "P11SEL" is undefined C:\ti\Connectivity\CC256X BT\CC256x MSP430 Bluetopia SDK\v1.5 R2\MSP430_Experimentor\Hardware\MSP430_EXP5438\HAL.c 179
    Error[Pe020]: identifier "P8REN" is undefined C:\ti\Connectivity\CC256X BT\CC256x MSP430 Bluetopia SDK\v1.5 R2\MSP430_Experimentor\Hardware\MSP430_EXP5438\HAL.c 199
    Error[Pe020]: identifier "P8DIR" is undefined C:\ti\Connectivity\CC256X BT\CC256x MSP430 Bluetopia SDK\v1.5 R2\MSP430_Experimentor\Hardware\MSP430_EXP5438\HAL.c 200
    Error[Pe020]: identifier "P8SEL" is undefined C:\ti\Connectivity\CC256X BT\CC256x MSP430 Bluetopia SDK\v1.5 R2\MSP430_Experimentor\Hardware\MSP430_EXP5438\HAL.c 201

    The build options for the SPP demo are:

    "MSP430F5438 Exp" or "ez430" (each with a DEBUG and RELEASE variant), but none seem to work.

    Is there a way to get SPP demo working on the BT-MSP-AUDSOURCE and BT-MSP-AUDSINK dev boards?

  • Hi,

    I'm not sure if the A3DPDemo SNK/SRC boards have enough memory for both the profiles. But you can try integrating the SPPLEDemo_Lite (processors.wiki.ti.com/.../CC256x_TI_Bluetooth_Stack_SPPLEDemo_Lite_App) which supports MSP430F5529 .

    Regards,
    Gigi Joseph.
  • Thanks for you response.  Sorry for the confusion - I didn't need them both at the same time.  I'm just interested in having a pair of our dev boards use the SPP profile instead of the A3DP.  Is this possible on those dev boards, and if so, how do I compile to remove the warnings?

  • Hi,

    The A3DP dev boards are meant for the A3DP profile. I have not tried the SPP app on them. Like I said, you can try the SPPLEDemo_Lite application. This has both SPPLE & SPP.

    Regards,
    Gigi Joseph.
  • Hi,

    Please let me know if this thread can be closed.

    Regards,
    Gigi Joseph.