This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

random delay

Hello,

I'm trying to do a synchronization of two devices over BLE. I want to be able to open a scan window only for as little time as possible to receive a timed advertising packet. This is a little hard to achieve because of the random advertising delay according to the BLE SPEC Vol 6 4.4.2.2. If I read correctly, there is a delay between the start of two consecutive advertising packets which must be <= 10ms. Furthermore, there is another delay of 0-10ms after each advertising Interval. Are these two delays deterministic values based on a pseudo random number generator in the Softdevice (I am using SD130)? If yes, could I have these calculations so that I could implement a proper synchronization? According to the sniffer, the advDelay seems to be in the range of 10ms like in the spec and the start of two different advertisement packets is mostly within 4-7ms.

Could I maybe achieve synchronization by switching advertising on and off in specific intervals? How long will it take until the softdevice starts advertising after I call sd_ble_gap_adv_start?

Parents Reply Children
Related