Skip to content

Commit

Permalink
update doc for timesync
Browse files Browse the repository at this point in the history
  • Loading branch information
orgua committed Jan 22, 2024
1 parent 56ccc73 commit ac94837
Show file tree
Hide file tree
Showing 7 changed files with 41 additions and 1 deletion.
40 changes: 40 additions & 0 deletions software/test_timesync/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,3 +162,43 @@ Configure Logic 2 Software
## Observations

- phc2sys reports suddenly high offsets (>100us)


# TODO

- divide into separate readme
- add new pictures in text
- who is server
- describe iperf

```Shell
#sudo apt install flowgrind
sudo apt install iperf3

# mockup server: external device receiving data
iperf3 -s
# ptp-clients send
iperf3 -b 100M -c 10.0.0.200
```

- make sure governor is set to performance

```Shell
# check
cpufreq-info
# reset
sudo cpufreq-set --governor performance
```

- make sure time-sync is running, see pics

```shell
# check on each device
sudo journalctl -u ptp4l@eth0.service -b -f
sudo journalctl -u phc2sys@eth0.service -b -f
# or use logic analyzer
# if something is off, restart services
# note: if ptp is restarted, phc must also be restarted
sudo systemctl restart ptp4l@eth0.service
sudo systemctl restart phc2sys@eth0.service
```
2 changes: 1 addition & 1 deletion software/test_timesync/examples/sync_1channel.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from sync_analysis import LogicTraces
from sync_analysis import logger

path_here = Path(__file__).parent
path_here = Path(__file__).parent / "05_rpi_cm4"
save_pickle = False

ltraces = LogicTraces(path_here, glitch_ns=20)
Expand Down
Binary file added software/test_timesync/media/hw_setup_bbai64.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Binary file added software/test_timesync/media/hw_setup_rpi.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified software/test_timesync/media/sw_logic2_config.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified software/test_timesync/media/sw_logic2_synchronized.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit ac94837

Please sign in to comment.