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.

CC2541DK-MINI: Advertisement Packet header

Part Number: CC2541DK-MINI
Other Parts Discussed in Thread: CC2541, CC2540

Hi,

     When a keyfob is in advertisement mode it is sending advertisement packets after some fixed delay. Can i know what data it is sending like its header,type of Payload,Manufacturer data??

In Which part of code can i get this information?

Thanks in advance !

  • Hi Anshul,

    You can use a sniffer to find out exactly what your device is advertising. Examples of this is given in out BLE Sniffer Guide (  ). The advertisement data is given in the following (from keyfobdemo.c):

    // GAP - Advertisement data (max size = 31 bytes, though this is
    // best kept short to conserve power while advertisting)
    static uint8 advertData[] =
    {
      0x02,   // length of first data structure (2 bytes excluding length byte)
      GAP_ADTYPE_FLAGS,   // AD Type = Flags
      DEFAULT_DISCOVERABLE_MODE | GAP_ADTYPE_FLAGS_BREDR_NOT_SUPPORTED,
    
      // service UUID, to notify central devices what services are included
      // in this peripheral
      0x07,   // length of second data structure (7 bytes excluding length byte)
      GAP_ADTYPE_16BIT_MORE,   // list of 16-bit UUID's available, but not complete list
      LO_UINT16( LINK_LOSS_SERV_UUID ),        // Link Loss Service (Proximity Profile)
      HI_UINT16( LINK_LOSS_SERV_UUID ),
      LO_UINT16( IMMEDIATE_ALERT_SERV_UUID ),  // Immediate Alert Service (Proximity / Find Me Profile)
      HI_UINT16( IMMEDIATE_ALERT_SERV_UUID ),
      LO_UINT16( TX_PWR_LEVEL_SERV_UUID ),     // Tx Power Level Service (Proximity Profile)
      HI_UINT16( TX_PWR_LEVEL_SERV_UUID )
    };

  • Hi Marie,
    I want to capture packets send through my Key fob in advertisement mode. How this Packet sniffer will be used not able to understand because i think this software is not going to support CC2541.

    Thanks,
    Anshul
  • Hi Anshul,

    You would need a dedicated BLE packet sniffer, for example a CC2540 USB dongle running the SmartRF Protocol Packet Sniffer.