Hi,
This is a followup on https://devzone.nordicsemi.com/f/nordic-q-a/119259/synchronisation-between-tx-and-rx-in-connectionless-direction-finding
We now have a synchronised counter being increment on TX and received at RX, which was the key issue in that post. Now, for additional accuracy in timing, we want to toggle a GPIO pin whenever a given packet with CTE is sent.
In the current setup, I set up the advertisement configuration as follows
and set up the `adv_sent_cb` as
This works and I am able to receive CTEs at the RX end.
However, with respect to the GPIO toggling, when I set up the following with the intention of toggling the GPIO whenever the payload has been sent with the updated counter value
I get the following output, with the trigger happening five times per extended advertisement packet
but I was only expecting one. My suspicion that it may be related to the fact that periodic advertisement is enabled, but I am not entirely sure, and as far as I can tell, that needs to be active for the periodic sync which receives CTEs on the RX side to function as intended.
Hopefully I've provided sufficient information, please let me know if I need to add additional details!
Kind regards
Glen