nordic-auko / nRF5-ble-timesync-demo

nRF52 clock synchronization demo code
55 stars 50 forks source link

Device sometimes couldn't receive sync_pkt sent #6

Closed zhdylan closed 4 years ago

zhdylan commented 4 years ago

Hi Audun,

Have a good day. I tested this timesync-demo under SDK-16.0 and found that sometimes the device couldn't receive any sync packet sent from master(More specifically time sync stopped itself, a system reset could resume). However the BLE activity works well when the time sync is stopped. Is there any methods to debug this issue? I tried to re-init the time-sync functions but failed. If this issue occur how could we to resume the time-sync without system reset or SOFTDEVICE reset?

Appreciate your quick response.

Kindest Regards, Randy

nordic-auko commented 4 years ago

Hi Randy,

there are several things that could cause the error you see, I think. Let's try some steps to narrow down the issue.

First off, how do you monitor that the time sync is working? Is it via the GPIO toggling, calling the timestamp function, or something else?

If the GPIO has stopped toggling, it could be related to for example:

If the GPIO keeps toggling but you can see it is drifting out of sync, it could be for example:

Best regards, Audun