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.

Not able to discover and establish connection using CC2564 (both in LE and classic mode)

Other Parts Discussed in Thread: CC2541, CC2564

Hi,

We are able to port SPP+LE stack on to MSP4305438A ,able to configure as server and client , but unable to detect the module in any mobiles.When "Startscanning" cmd is executed we are able to detect other LE module but not able to connect or establish connection with them.

Attach logs for refernce.

OpenStack().
Bluetooth Stack ID: 1.
Device Chipset: 4.0.
BD_ADDR: 0x84DD20EDAF99

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

SPP+LE>Server

******************************************************************
* Command Options General: Help, GetLocalAddress, SetBaudRate    *
*                          Quit,                                 *
* Command Options BR/EDR:  Inquiry, DisplayInquiryList, Pair,    *
*                          EndPairing, PINCodeResponse,          *
*                          PassKeyResponse,                      *
*                          UserConfirmationResponse,             *
*                          SetDiscoverabilityMode,               *
*                          SetConnectabilityMode,                *
*                          SetPairabilityMode,                   *
*                          ChangeSimplePairingParameters,        *
*                          GetLocalName, SetLocalName,           *
*                          GetClassOfDevice, SetClassOfDevice,   *
*                          GetRemoteName, SniffMode,             *
*                          ExitSniffMode, Open, Close, Read,     *
*                          Write, GetConfigParams,               *
*                          SetConfigParams, GetQueueParams,      *
*                          SetQueueParams, Loopback,             *
*                          DisplayRawModeData, AutomaticReadMode,*
*                          CBSend.                               *
* Command Options GAPLE:   SetDiscoverabilityMode,               *
*                          SetConnectabilityMode,                *
*                          SetPairabilityMode,                   *
*                          ChangePairingParameters,              *
*                          AdvertiseLE, StartScanning,           *
*                          StopScanning, ConnectLE,              *
*                          DisconnectLE, PairLE,                 *
*                          LEPasskeyResponse,                    *
*                          QueryEncryptionMode, SetPasskey,      *
*                          DiscoverGAPS, GetLocalName,           *
*                          SetLocalName, GetLERemoteName,        *
*                          SetLocalAppearance,                   *
*                          GetLocalAppearance,                   *
*                          GetRemoteAppearance,                  *
* Command Options SPPLE:   DiscoverSPPLE, RegisterSPPLE, LESend, *
*                          ConfigureSPPLE, LERead, Loopback,     *
*                          DisplayRawModeData, AutomaticReadMode *
******************************************************************

SPP+LE>registerspple
Sucessfully registered SPPLE Service.

SPP+LE>Advertisele
Usage: Advertise [(0 = Disable, 1 = Enable)]..

SPP+LE>[A
Invalid Command: [A.

SPP+LE>advertisele 1
   GAP_LE_Advertising_Enable success.

SPP+LE>str
Invalid Command: STR.

SPP+LE>startscanning
Scan started successfully.

SPP+LE>
etLE_Advertising_Report with size 22.
  1 Responses.
  Advertising Type: rtConnectableUndirected.
  Address Type: atPublic.
  Address: 0x9059AF0B7A91.
  RSSI: -68.
  Data Length: 11.
  AD Type: 0x01.
  AD Length: 0x01.
  AD Data: 0x05 
  AD Type: 0x02.
  AD Length: 0x06.
  AD Data: 0x03 0x18 0x02 0x18 0x04 0x18 

SPP+LE>
etLE_Advertising_Report with size 22.
  1 Responses.
  Advertising Type: rtConnectableUndirected.
  Address Type: atPublic.
  Address: 0x9059AF0B7A91.
  RSSI: -61.
  Data Length: 11.
  AD Type: 0x01.
  AD Length: 0x01.
  AD Data: 0x05 
  AD Type: 0x02.
  AD Length: 0x06.
  AD Data: 0x03 0x18 0x02 0x18 0x04 0x18 

SPP+LE>stopscanning
Scan stopped successfully.

SPP+LE>connectle 9059af0b7a91
Unable to create connection: -512.
Function Error.

SPP+LE>[A  connectle 9059af0b7a91 1
Unable to create connection: -512.
Function Error.

SPP+LE>
OpenStack().
Bluetooth Stack ID: 1.
Device Chipset: 4.0.
BD_ADDR: 0x84DD20EDAF99

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

SPP+LE>Server

******************************************************************
* Command Options General: Help, GetLocalAddress, SetBaudRate    *
*                          Quit,                                 *
* Command Options BR/EDR:  Inquiry, DisplayInquiryList, Pair,    *
*                          EndPairing, PINCodeResponse,          *
*                          PassKeyResponse,                      *
*                          UserConfirmationResponse,             *
*                          SetDiscoverabilityMode,               *
*                          SetConnectabilityMode,                *
*                          SetPairabilityMode,                   *
*                          ChangeSimplePairingParameters,        *
*                          GetLocalName, SetLocalName,           *
*                          GetClassOfDevice, SetClassOfDevice,   *
*                          GetRemoteName, SniffMode,             *
*                          ExitSniffMode, Open, Close, Read,     *
*                          Write, GetConfigParams,               *
*                          SetConfigParams, GetQueueParams,      *
*                          SetQueueParams, Loopback,             *
*                          DisplayRawModeData, AutomaticReadMode,*
*                          CBSend.                               *
* Command Options GAPLE:   SetDiscoverabilityMode,               *
*                          SetConnectabilityMode,                *
*                          SetPairabilityMode,                   *
*                          ChangePairingParameters,              *
*                          AdvertiseLE, StartScanning,           *
*                          StopScanning, ConnectLE,              *
*                          DisconnectLE, PairLE,                 *
*                          LEPasskeyResponse,                    *
*                          QueryEncryptionMode, SetPasskey,      *
*                          DiscoverGAPS, GetLocalName,           *
*                          SetLocalName, GetLERemoteName,        *
*                          SetLocalAppearance,                   *
*                          GetLocalAppearance,                   *
*                          GetRemoteAppearance,                  *
* Command Options SPPLE:   DiscoverSPPLE, RegisterSPPLE, LESend, *
*                          ConfigureSPPLE, LERead, Loopback,     *
*                          DisplayRawModeData, AutomaticReadMode *
******************************************************************

SPP+LE>registerspple
Sucessfully registered SPPLE Service.

SPP+LE>Advertisele
Usage: Advertise [(0 = Disable, 1 = Enable)]..

SPP+LE>[A
Invalid Command: [A.

SPP+LE>advertisele 1
   GAP_LE_Advertising_Enable success.

SPP+LE>str
Invalid Command: STR.

SPP+LE>startscanning
Scan started successfully.

SPP+LE>
etLE_Advertising_Report with size 22.
  1 Responses.
  Advertising Type: rtConnectableUndirected.
  Address Type: atPublic.
  Address: 0x9059AF0B7A91.
  RSSI: -68.
  Data Length: 11.
  AD Type: 0x01.
  AD Length: 0x01.
  AD Data: 0x05 
  AD Type: 0x02.
  AD Length: 0x06.
  AD Data: 0x03 0x18 0x02 0x18 0x04 0x18 

SPP+LE>
etLE_Advertising_Report with size 22.
  1 Responses.
  Advertising Type: rtConnectableUndirected.
  Address Type: atPublic.
  Address: 0x9059AF0B7A91.
  RSSI: -61.
  Data Length: 11.
  AD Type: 0x01.
  AD Length: 0x01.
  AD Data: 0x05 
  AD Type: 0x02.
  AD Length: 0x06.
  AD Data: 0x03 0x18 0x02 0x18 0x04 0x18 

SPP+LE>stopscanning
Scan stopped successfully.

SPP+LE>connectle 9059af0b7a91
Unable to create connection: -512.
Function Error.

SPP+LE>[A  connectle 9059af0b7a91 1
Unable to create connection: -512.
Function Error.

SPP+LE>

  • Hi,

    Looking at your logs, I see that you are advertising and connecting out at the same time. You cannot connect out while advertising with a connectable packet as that is not allowed as per the Bluetooth Spec.

    Thanks,

    Stonestreet One.

  • Hi,

    We are using CC2541 Keyfob module to advertise. we are able to discover Keyfob address in our EXP430F5438 with cc2564 bench setup ported with SPP SPPLEDemo APP. using "start scanning" command.

    but couldn't able to connect using "connectle" command.

    Please could you suggest us necessary step/command needs required to establish SSPLE profile.

  • Hi,

      We followed the steps as specified in http://processors.wiki.ti.com/index.php/CC256x_MSP430_Bluetopia_Basic_SPPDemo_APP

    {Refered :Example connection using Blueterm} With blueterm app installed in LG Nexus4 phone with android 4.4 version .

    In Blueterm we are not able to detect CC2564 .Let us know the proper sequence to test with blueterm app. 

    OpenStack().
    Bluetooth Stack ID: 1.
    Device Chipset: 4.0.
    BD_ADDR: 0x84DD20EDAF99
    
    ******************************************************************
    * Command Options: Server, Client, Help                          *
    ******************************************************************
    
    SPP+LE>Server
    
    ******************************************************************
    * Command Options General: Help, GetLocalAddress, SetBaudRate    *
    *                          Quit,                                 *
    * Command Options BR/EDR:  Inquiry, DisplayInquiryList, Pair,    *
    *                          EndPairing, PINCodeResponse,          *
    *                          PassKeyResponse,                      *
    *                          UserConfirmationResponse,             *
    *                          SetDiscoverabilityMode,               *
    *                          SetConnectabilityMode,                *
    *                          SetPairabilityMode,                   *
    *                          ChangeSimplePairingParameters,        *
    *                          GetLocalName, SetLocalName,           *
    *                          GetClassOfDevice, SetClassOfDevice,   *
    *                          GetRemoteName, SniffMode,             *
    *                          ExitSniffMode, Open, Close, Read,     *
    *                          Write, GetConfigParams,               *
    *                          SetConfigParams, GetQueueParams,      *
    *                          SetQueueParams, Loopback,             *
    *                          DisplayRawModeData, AutomaticReadMode,*
    *                          CBSend.                               *
    * Command Options GAPLE:   SetDiscoverabilityMode,               *
    *                          SetConnectabilityMode,                *
    *                          SetPairabilityMode,                   *
    *                          ChangePairingParameters,              *
    *                          AdvertiseLE, StartScanning,           *
    *                          StopScanning, ConnectLE,              *
    *                          DisconnectLE, PairLE,                 *
    *                          LEPasskeyResponse,                    *
    *                          QueryEncryptionMode, SetPasskey,      *
    *                          DiscoverGAPS, GetLocalName,           *
    *                          SetLocalName, GetLERemoteName,        *
    *                          SetLocalAppearance,                   *
    *                          GetLocalAppearance,                   *
    *                          GetRemoteAppearance,                  *
    * Command Options SPPLE:   DiscoverSPPLE, RegisterSPPLE, LESend, *
    *                          ConfigureSPPLE, LERead, Loopback,     *
    *                          DisplayRawModeData, AutomaticReadMode *
    ******************************************************************
    
    SPP+LE>Open 1
    Server Opened: Server Port 1, Serial Port ID 1.
    Server Port Context Stored.
    
    SPP+LE>

  • Hi RamaKumar,

    You are looking at the correct link.

    But make sure that your CC256x is running as server port. as per the link below

    http://processors.wiki.ti.com/index.php/CC256x_MSP430_Bluetopia_Basic_SPPDemo_APP#Server_setup_on_the_demo_application

    and then start to initiate the connection from your Phone.

  • Hi Sundeep,

       As suggested in the link we have configured it as server and also opened port 1 , but still in Blueterm we are not able to detect CC2564 .Let us know the proper sequence to test with blueterm app.

    OpenStack().
    Bluetooth Stack ID: 1.
    Device Chipset: 4.0.
    BD_ADDR: 0x84DD20EDAF99
    
    ******************************************************************
    * Command Options: Server, Client, Help                          *
    ******************************************************************
    
    SPP+LE>Server
    
    ******************************************************************
    * Command Options General: Help, GetLocalAddress, SetBaudRate    *
    *                          Quit,                                 *
    * Command Options BR/EDR:  Inquiry, DisplayInquiryList, Pair,    *
    *                          EndPairing, PINCodeResponse,          *
    *                          PassKeyResponse,                      *
    *                          UserConfirmationResponse,             *
    *                          SetDiscoverabilityMode,               *
    *                          SetConnectabilityMode,                *
    *                          SetPairabilityMode,                   *
    *                          ChangeSimplePairingParameters,        *
    *                          GetLocalName, SetLocalName,           *
    *                          GetClassOfDevice, SetClassOfDevice,   *
    *                          GetRemoteName, SniffMode,             *
    *                          ExitSniffMode, Open, Close, Read,     *
    *                          Write, GetConfigParams,               *
    *                          SetConfigParams, GetQueueParams,      *
    *                          SetQueueParams, Loopback,             *
    *                          DisplayRawModeData, AutomaticReadMode,*
    *                          CBSend.                               *
    * Command Options GAPLE:   SetDiscoverabilityMode,               *
    *                          SetConnectabilityMode,                *
    *                          SetPairabilityMode,                   *
    *                          ChangePairingParameters,              *
    *                          AdvertiseLE, StartScanning,           *
    *                          StopScanning, ConnectLE,              *
    *                          DisconnectLE, PairLE,                 *
    *                          LEPasskeyResponse,                    *
    *                          QueryEncryptionMode, SetPasskey,      *
    *                          DiscoverGAPS, GetLocalName,           *
    *                          SetLocalName, GetLERemoteName,        *
    *                          SetLocalAppearance,                   *
    *                          GetLocalAppearance,                   *
    *                          GetRemoteAppearance,                  *
    * Command Options SPPLE:   DiscoverSPPLE, RegisterSPPLE, LESend, *
    *                          ConfigureSPPLE, LERead, Loopback,     *
    *                          DisplayRawModeData, AutomaticReadMode *
    ******************************************************************
    
    SPP+LE>Open 1
    Server Opened: Server Port 1, Serial Port ID 1.
    Server Port Context Stored.
    
    SPP+LE>
      

  • Hi Ramakumar,

    The name might not be CC2564. Please check the BD address displayed on your console.

    I am able to scan and connect with out any problem with the steps I have suggested you.

    FYI: I am also using Nexus 4 + Blue term.

  • Hi Sundeep,

    Below is the BD address :-0x84DD20EDAF99

    We are referring to CC256x MSP430 Bluetopia SDK V1.4 stack,can you let us know the stack version u are using ?

    OpenStack().
    Bluetooth Stack ID: 1.
    Device Chipset: 4.0.
    BD_ADDR: 0x84DD20EDAF99

  • Hi Ramakumar,

    Same as you are using V1.4.

    You should be able to see the above BD Address in you search results in Blue term app.

  • Hi Sundeep,

    Stil not able to discover CC2564 , is there any software tool to check the CC2564 hardware working?

  • Hi Ramakumar,

    Since the read BD address is working fine, CC2564 is initialized correctly.

    I am a little confused. In the above post, the discussion was about LE profiles and then you have started with Blue term app.

    To my understanding, we use Blue Term app only for testing SPP.

    If we want to test any LE profile we use “BLE Explorer (Alpha)” app from Play Store.

    and for testing see the link:  http://processors.wiki.ti.com/index.php/CC256x_MSP430_Bluetopia_Basic_SPPLEDemo_APP

  • Hello TI & StoneStreet One,

    I am developing SPP demo using CC256XQFNEM(CC2564B) + MSP-EXP430F5438A.

    when I test SPPDemo project, CC2564B initate correctly but i can not discovery CC2564 by any smart device with APP.

    when I test SPPLEDemo project, it show "BSC_Initialize Failed: -4" . Do i miss something to implement these demo? attachment is my HW setting and log.

    CC2654 SDK: 1.4_R1

    smart device: android 4.1.2

    1072.CC2564B.pdf

  • Hi,

    If i understand correctly you are using CC2564B device correct?

    If yes, please make sure that you have applied the below patch

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

    Not able to discover usual happens when you use wrong Service pack

    Note that SPPLEDemo project which is available as part of the 1.4 R1 SDK is running without any problem on CC2564B +MSP-EXP430F5438A EVM.