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.

Ble-data packet format

Other Parts Discussed in Thread: CC2540

Hi,

Can someone please help me with time ble v.4.0 data packet format.

How to get timestamp from a ble data packet?

- what bytes of the packet contains the timestamp information

- how to extract it

- what will be its format.

Regards

  • Hello. All fields of the packet will be described in the spec. Note that there are various layers of the BLE stack which add various headers, etc. and you will not have access to the packet at all levels.

    Are you trying to find the time that every single packet (even empty packets) are received or specific data packets. If so, what layer data are you referring to (GATT / L2CAP)? In other words, how are you sending / receiving data?
  • Is there any update here?
  • Hi Tim,
    I am a newbie to this field so don't know much about it. 
    I am using cc2450 device with github.com/.../contiki
    H
    ere under the file ble-hal-cc26xx.c they have written  " len = RX_ENTRY_DATA_LENGTH(param->rx_queue_current) - 6 - 2; /* last 8 bytes are status, timestamp, ... */ "

    What I understand is they are ignoring last 8 bytes which contain timestamp information. I am interested in this info but I am not able to figure out the packet format.

  • You are linking to a contiki wiki but mentioning BLE. There is no relation between BLE and Contiki. Are you trying to use BLE or Contiki?

    Also you are mentioning CC2540 but referencing a CC26xx file. Which device are you using? The CC2540 only supports BLE.