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.

SPPLEDemo TxPowerLevel

Other Parts Discussed in Thread: CC2564

Hi,

Is it possible to add tx power level adjust to the SSPLEDemo? If so how do I add the TPS include file? 

Or, is it possible to modify the PXPDemo to connect to 10 client devices through LE? 

Best regards,

Forrest Kimbriel

  • Hi,

    I don't see any problem, Have you tried it, by including the required Preprocessor path and the library, you can refer to the PXP demo.

    Yes, Please see the data sheet, It is already mentioned LE Features that, Support of Up to 10 (CC2564 and CC2564B) Simultaneous Connections.
    You might have to tweak the existing LE demos to fit your requirement.
  • As for the PXPDemo I have tied to connect more than one client device and I get an error saying device is already connected. I've tried looking through the code to increase the number of LE Devices but there is no such code. I haven't tried to add any code yet but, what file would I have to include?
    Also, once I have the clients connected to the server I would like to perform and automatic reconnect if the power is cycled on the server. I've heard this is possible but, I need to save the LTK file. Do you know how would to save the LTK file?
    Best regards,Forrest Kimbriel
  • Hi,

    Below is just a tweak to connect to more devices. as we are checking everytime if there is a connected device, If you want to maintain all the devices you need to maintain a structure of arrays to compare and check if the current device is in the connected list, and the same apples for the LTK, You can refer to the SPPLEDemo.

    static int ConnectLEDevice(unsigned int BluetoothStackID, BD_ADDR_t BD_ADDR, GAP_LE_Address_Type_t RemoteAddressType ,GAP_LE_Address_Type_t OwnAddressType, Boolean_t UseWhiteList)

    {

      int                            Result;

      unsigned int                   WhiteListChanged;

      GAP_LE_White_List_Entry_t      WhiteListEntry;

      GAP_LE_Connection_Parameters_t ConnectionParameters;

    ASSIGN_BD_ADDR(ConnectionBD_ADDR, 0, 0, 0, 0, 0, 0); /*temp*/

      /* First, determine if the input parameters appear to be semi-valid. */

      if((BluetoothStackID) && (!COMPARE_NULL_BD_ADDR(BD_ADDR)))

      {

         if(COMPARE_NULL_BD_ADDR(ConnectionBD_ADDR))