5 Replies Latest reply on Sep 2, 2015 4:40 PM by MichaelF_56

    Is it possible to get timestamp of advertisement receiving event?

    prayook

      What I am doing is to synchronize multiple Bluetooth devices by broadcasting non-connectable advertisement (only 1 packet) to 2 devices which are scanning. I register advertisement report function using blecm_RegleAdvReportCb. In that function, I use bleapputils_currentNativeBtClk(); to get receiving timestamp. Then, I can know time offset on those 2 devices.

       

      In the situation that I transmit nothing else among those devices, the offset I get are very consistent. It varies only  1 - 3 unit (less than 1 ms; good enough). However, when I experimented in the situation that they transmit information continuously, the time offset is not consistent anymore with the range up to 35 units (~11 ms).

       

      Therefore, I conclude that the callback function might start quite late after it actually receive the advertisement packet. Then, I am finding for a way to get the timestamp at the point it is receiving (not in the callback) for more consistent time offset. Is it possible? or Is there any patch for that feature?

       

      I'm using WICED Sense.