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.

CC2541: Question for CC2541

Part Number: CC2541

Hi Team,

The customer is experiencing below issue and needs your help.

static uint8 advertData[] =//Advertising Packet
{
                 // Flags; this sets the device to use limited discoverable
                 // mode (advertises for 30 seconds at a time) instead of general
                // discoverable mode (advertises indefinitely)
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 ),

};

advertData[] hasn't MAC information. Why does the mobile phone display the mac information of the slave module?

Thanks,

Annie

  • As I know, this is done in BLE Stack and application developer cannot change it.

  • Hi Annie,

    As YiKai says, according to the Bluetooth Core Spec advertisement packets must contain the Bluetooth address (BDA) of the advertiser device. 

    (In newer versionf of the Bluetooth core spec, 4.2 and newer, you can obscure your MAC address by using a random address as your BDA. However this is not possible with the Bluetoot 4.0 feature set that the CC2541 supports.)