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.

CC2564: Multiple SPP connections with different UUID for each port

Part Number: CC2564

Hi,

On our project CC2564 is used in SPP server mode, and need to open two server ports (different UUID for each), which will connect with an android APP.

The SDK we are using is CC256x STM32 Bluetopia SDK v4.0.2.2.

We was trying to set up two ports MySPPDemo refering to the SPPDemo provided in the SDK, but can not find any sample on how to set the UUID for each port.

We did some research on function "SPP_Register_SDP_Record", but  have no idea on how to fill the third parameter "SPP_SDP_Service_Record_t *SDPServiceRecord".

Could you please give us your direction on this?

Many thanks

  

  • Hi,
    The UUID for SPP profile is fixed, as given in the BT specs. Did, you try just opening multiple ports?

    SerialPort
    0x1101
    Serial Port Profile (SPP)

    Thanks
  • Hi,

    We did not try opening multiple ports yet.
    Since Android requires different UUID for each SPP port, so we have to change the UUID on our device (with CC2564).
    As mentioned in the previous post, we did some research on how to change the UUID, and found that function "SPP_Register_SDP_Record" might be used to change UUID.
    But not sure how to fill the third parameter "SPP_SDP_Service_Record_t *SDPServiceRecord", could you please share your comments on this?

    BTPSAPI_DECLARATION int BTPSAPI SPP_Register_SDP_Record(unsigned int BluetoothStackID, unsigned int SerialPortID, SPP_SDP_Service_Record_t *SDPServiceRecord, char *ServiceName, DWord_t *SDPServiceRecordHandle);
    typedef struct _tagSPP_SDP_Service_Record_t
    {
    unsigned int NumberServiceClassUUID;
    SDP_UUID_Entry_t *SDPUUIDEntries;
    SDP_Data_Element_t *ProtocolList;
    } SPP_SDP_Service_Record_t;

    Many thanks
  • Is this issue resolved now? You can try with null for protocol list..

    Thanks