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

Access Gazell Heartbeat Timer

Is there a way to access the Gazell heartbeat timer? Ideally I would have a callback to my application when the heartbeat occurs. The main motivation for this would be to try to use the Gazell heartbeat to synchronize clocks between Gazell devices and a host.

I am using an nRF51 dev kit (nRF51422).

Thanks,

Kevin

  • In my previous post, data was being transmitted as quickly as possible (device sends a packet about every 1.2 ms).

    With data transmitting from the device every 10 ms, there is still in increase in the number of heartbeats on the host but it is a smaller increase. With the device off there are consistently 1666 Timer2 Compare0 events per second on the host. With the device on number of Timer2 Compare0 events fluctuates around 1690-1750.

    I have been looking into ESB as well. I'm still not sure which is best for my application. ESB is interesting to me due to the increased packet payload size, however I like the pairing and encryption features provided with Gazell. Is there something in ESB that would facilitate clock synchronization?

  • I don't think Gazell will be able to do what you want here. The Gazell is built on top of ESB, using ESB you will have full control of when you actually transmit and receive packet, so when you transmit a packet you will always have a fixed offset from start of transmission on the device to packet is received on the host, a tolerance of a few ~us, and should be able to sync based on that. Maybe you can consider using Gazell to establish initial connection, and then exchange parameters to use with ESB, and then use ESB for synchronization.

    Best regards,
    Kenneth

Related