I'm doing a small project with two Raspberry Pi's. I want to sync their clocks using Precision Time Protocol (one as master clock and another as slave clock).
Now I'm interested in logging the data you see when using the
-V command. I'm doing the following atm:
For RPi 1:
sudo ptpd --interface wlan0 -M -L
For RPi 2:
sudo ptpd --interface wlan0 -s -L -V > onewaydelay.csv
The output is the typical
#Timestamp, State, Clock ID, One Way Delay, Offset From Master, Slave to Master, Master to Slave, Observed Drift, Last Packet Received.
The thing is I'm only interested in logging the Timestamp and One Way Delay so that I can plot the One Way Delay and see how it changes over time. So my question is:
- Is it possible to edit the output (using the -V command) so that it only prints Timestamp and One Way Delay?
-V command the output looks (one line - comma separated):
2017-10-12 14:41:48.763883, slv, b827ebfffe9adfc7(unknown)/01, 0.045879356, -0.145651366, 0.319974024, -0.108966784, -500000.000000000, S