Hi,
I would like to have accurate (1-5ms), synchronized timestamps for logging events from a set of nRF5x boards, spaced tens of meters apart. Each nRF5x board is connected to a Rapberry Pi, and each RPi forwards RTT logging messages using the JLink.exe program over its Ethernet port to a central location.
The purpose would be to correlate events in all nRF5x bards.
As the JLink.exe program just relays RTT traffic from the boards using TCP ("Telnet") to a central location, it is not easy to insert traffic into the RTT stream.
One possibility that I consider is to synchronize the RPis using ntpd(8), and somehow generate pulses from ntpd on a RPi GPIO pins, and to connect that pin to a nRF5x GPIO pin. The nRF5x GPIO pin would then generate an interrupt that sets the clock to a certain time. However, I have not seen any means of exporting e.g. PPS pulses from ntpd, only to import pulses. This idea requires a fair amount of work.
Do you have any other idea on how to synchronize logs with this accuracy?
regards Elm