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.

LP-CC2652R7: Advertising, Scan response, Periodic Advertisement Data Format.

Part Number: LP-CC2652R7
Other Parts Discussed in Thread: SYSCONFIG

I am new to BLE and learning about different APIs used. While going through BLE5 Stack user guide of TI, I came came across this - 

  // Advertisement data
  static uint8_t advertData[] =
  {
    0x02,   // length of this data
    GAP_ADTYPE_FLAGS,
    DEFAULT_DISCOVERABLE_MODE | GAP_ADTYPE_FLAGS_BREDR_NOT_SUPPORTED,

    // service UUID, to notify central devices what services are included
    // in this peripheral
    0x03,   // length of this data
    GAP_ADTYPE_16BIT_MORE,      // some of the UUID's, but not all
    LO_UINT16(SIMPLEPROFILE_SERV_UUID),
    HI_UINT16(SIMPLEPROFILE_SERV_UUID)
  };

Similar functions are defined for scan response data and periodic advertisement data in the user guide.

Can you please share the source where I can read about the format in which these data has to be defined ?

  • Hi,

    I recommend you leverage SysConfig GUI to generate this data.

    That way, you'll see each piece of data starts with the data length (1 byte), then the type (1 byte) and the data itself.

    This format is the one defined by the Bluetooth specifications, so I would recommend you refer to these in case you need more details.

    Best regards,