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.

Stonestreet One SPP Demo on Custom Board board not discoverable

Other Parts Discussed in Thread: MSP430F5438A, CC2590, CC2560

Hi,

I am using MSP430F5438A and PAN1327. I have made changes according to documentation provided by StoneStreet one protocol stack. I am able to open stack successfully, when I try to use it as client and do Inquiry (through debug UART) I get error -14. Following is the debug log-

OpenStack().
Bluetooth Stack ID: 1
Device Chipset: 2.1
BD_ADDR: 0xC83E9910735F

******************************************************************
* Command Options: Server, Client, Help                          *
******************************************************************

Choose Mode>Client

******************************************************************
* Command Options: Inquiry, DisplayInquiryList, Pair,            *
*                  EndPairing, PINCodeResponse, PassKeyResponse, *
*                  UserConfirmationResponse,                     *
*                  SetDiscoverabilityMode, SetConnectabilityMode,*
*                  SetPairabilityMode,                           *
*                  ChangeSimplePairingParameters,                *
*                  GetLocalAddress, GetLocalName, SetLocalName,  *
*                  GetClassOfDevice, SetClassOfDevice,           *
*                  GetRemoteName, SniffMode, ExitSniffMode,      *
*                  Open, Close, Read, Write,                     *
*                  GetConfigParams, SetConfigParams,             *
*                  GetQueueParams, SetQueueParams,               *
*                  Loopback, DisplayRawModeData,                 *
*                  AutomaticReadMode, SetBaudRate, Send          *
*                  Help, Quit                                    *
******************************************************************

Client>Inquiry

Inquiry Failed: -14.
Function Error.

Client>

When I change following line in  function MainThread() Main.c-

HCI_DRIVER_SET_COMM_INFORMATION(&HCI_DriverInformation, 1, 115200, cpHCILL_RTS_CTS);

to

HCI_DRIVER_SET_COMM_INFORMATION(&HCI_DriverInformation, 1, 115200, cpUART_RTS_CTS);

I do not get error after Inquiry command, but I am not able to find other Bluetooth devices nearby.

I short my problem is when cpHCILL_RTS_CTS is selected none of the command works whether its server mode or client mode.  And when I select cpUART_RTS_CTS all command works but my device is not in the discoverable mode and also I am not able to find any other devices nearby.

  • Hi Sharadanand,

    It looks like the Service pack you are using is wrong.

    NOTE: PAN1327 is no longer supported(so I have not found a service pack which I can share), For new designs we suggest using CC256xQFMEM( http://www.ti.com/tool/cc256xqfnem ) instead. 

  • Hi Sundeep,


    Thanks for your reply.

    Actually I am upgrading existing hardware's firmware, is there any way I can use stonestreet One stack for PAN1327, so that I can satisfy my existing customers?

    regards,

    Sharadanand

  • Hi Sundeep,


    Actually its PAN1325 not 1327.

    Can Stonestreet one work with PAN1325.

    regards,

    Sharadanand

  • Hi Sharadanand,

    Yes, PAN1325 should work with Bluetopia stack.

    Please get the correct service pack from http://processors.wiki.ti.com/index.php/CC256x_Downloads. And follow the below steps to update the correct service pack using the hardware evaluation tool

    1. Open the service pack
    2. Save it as “.h” file(array format).
    3. Take a back-up and change the BasePatch array in the file “MSP430_Experimentor\Bluetopia\btpsvend\CC256x.h”
    4. Rebuild the demo and download the demo. 
  • Hi Sundeep,

    Thanks for your reply.
    I followed the steps suggested by you, but it did not work.

    Also the link you provided does not mention service pack for PAN1325, it has link for PAN1325A.

    Is the service pack same for both?

    I tried all versions of service packs for PAN1325A but it did not work. I also tried service pack for PAN1315 (just out of curiosity) on my hardware but I could not open the stack itself.

    regards,

    Sharadanand

  • Hi Sharadanand,

    If I understand correctly from your previous post, you are trying to upgrade the firmware for PAN1325.

    If so there was no new service pack released for this module for a long time. Just try changing the baud rate to 3Mbps

    See: http://processors.wiki.ti.com/index.php/CC256x_PC_tool#A_Quick_Tour_of_the_CC256x_Bluetooth_Hardware_Evaluation_Tool

    If it did not help there is some problem with you UART configuration.

    Also make sure you are using 1.4R1 release of Bluetopia http://www.ti.com/tool/stonestreetone-bt-sdk  

    NOTE: PAN1325 is not recommended for new designs 

  • Hi Sundeep,

    Thanks for your reply. Still my problem is not solved but I found following links -

    http://www.panasonic.com/industrial/includes/pdf/PAN1325-NewProductIntroductionSheet.pdf

    This link says that PAN1325 and PAN1315 are based on CC2590. And one more link -

    http://www.panasonic.com/industrial/includes/pdf/PAN1325A-1315A-New-Product-Introduction-Sheet.pdf

    Says that PAN1325A and PAN1315A are based on CC2560. Is that the reason my code is not working? The datasheets I have does not say about this difference. I am confused about this. Can you help me out?

    warm regards,

    Sharadanand

  • Hi Sharasanand,

    Initially you started the thread that you are using PAN 1327, which I said is no longer supported.

    Then You said you are using PAN1325. If so, it contains CC2560 even from the link you have shared see below.

  • Hi Sundeep,


    Thanks, I was misguided by the block diagram.

    -Sharadanand

  • Hi Sundeep,


    As suggested by you, I checked my UART configuration, but did not find any problem.

    However following is the log I am getting-

    OpenStack().
    HCI_VS_InitializeAfterHCIReset
    PatchDevice[2] ret_val = -14 Status 0 Result 0
    Length = 32
           00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F  0123456789ABCDEF
     ------------------------------------------------------
     00000 02 1F                                            ..

    HCI_VS_InitializeAfterHCIReset Failure.

    Stack Init Failed: -4.
    Unable to open the stack.

    Following is the UART configuration-

    #define BT_SLOW_CLOCK_PORT_BASE        ((unsigned int)&P11IN)

    #define BT_SLOW_CLOCK_PORT_PIN         (BIT0)

    #define BT_DEVICE_RESET_PORT_BASE      ((unsigned int)&P7IN)

    #define BT_DEVICE_RESET_PORT_PIN       (BIT7)

    #define BT_UART_FLOW_RTS_PIN_BASE      ((unsigned int)&P7IN)

    #define BT_UART_FLOW_CTS_PIN_BASE      ((unsigned int)&P1IN)

    #define BT_UART_CTS_IV                 (PORT1_VECTOR)

    #define BT_UART_CTS_IVR                (P1IV)

    #define BT_UART_RTS_PIN                (BIT5)

    #define BT_UART_CTS_PIN                (BIT2)

    #define BT_UART_CTS_INT_NUM            (P1IV_P1IFG2)

    #define BT_UART_MODULE_BASE            ((unsigned int)&UCA2CTLW0)

    #define BT_UART_IV                     (USCI_A2_VECTOR)

    #define BT_UART_IVR                    (UCA2IV)

    #define BT_UART_PIN_PORT_BASE          ((unsigned int)&P9IN)

    #define BT_UART_PIN_TX                 (BIT4)

    #define BT_UART_PIN_RX                 (BIT5)

    I am using the Service Pack from this link

    http://processors.wiki.ti.com/images/d/da/CC2560_BT_SP_BTS.zip

    which is as suggested is for PAN1315, as per my understanding it should work for PAN1325.

    regards,

    Sharadanand Karanjkar

  • Hi Sharadanand,

    Are you using the latest bluetopia(V1.4R1 which was released on 20th Jan 2014)?

    If yes without making any modifications can you just download any app and try as you are using MSP430F5438A as your host processes(on which the demos are based). without even chaining the service pack .

    If you are still facing the problem, then

    Please check what is the part number of your device.

     

    If it is PAN1325B, then apply the patch as per the below link and see if it works

    http://processors.wiki.ti.com/index.php/CC256x_MSP430_Bluetopia_Basic_Demo_APPS#CC256XB_Information

    If your module is PAN1325A then Please get the service pack CC2560A_BT_SP_BTS.zip  from http://processors.wiki.ti.com/index.php/CC256x_Downloads. And follow the below steps to update the correct service pack using the hardware evaluation tool

    1. Open the service pack
    2. Disable sleep using the modify SP option.
    3. Save it as “.h” file(array format).
    4. Take a back-up and change the BasePatch array in the file “MSP430_Experimentor\Bluetopia\btpsvend\CC256x.h”
    5. Rebuild the demo and download the demo

    And see if it is working. 

  • Hi Sundeep,

    Thanks for your reply.

    Yes, I am using Bluetopia V1.4R1 since I started the activity.

    Right now I can run the demo and able to discover devices nearby and also I can see my device on my Windows PC and Android phone. Still I had to modify the Service Pack, I used service pack V2.44 from the link http://processors.wiki.ti.com/images/d/da/CC2560_BT_SP_BTS.zip

    And had to modify the Service Pack for baud rate 115200, as per download link it should work for 3Mbps baud rate but it did not work for me, hence I modified the service pack.

    I think our problem is solved now, I am moving for next process.

    warm regards,

    Sharadanand Karanjkar