# Step by step process of PTP sync GM to Slave testing method. ## Basic test environment ![image](https://hackmd.io/_uploads/rJNd5ziNT.png) ### Procedure #### Run this is commands in both GM and Slave device. 1. Open DHCP in for the ethernet port `dhclient` 2. Run setup file which run syncdriver and move other files to bin `sh /appdata/gen_setup.sh` 3. Verify the sync driver version `sync_timing_util -v` #### GM only commands 1. GNSS parameter and frequency setting. ```echo -n -e "\xB5\x62\x06\x3D\x1C\x00\x02\x00\x00\x00\x5F\x32\xED\xED\xE1\x98\x56\x1D\xA3\x65\x01\x10\x6A\x70\x00\x00\x3C\x00\x00\x00\x50\xC3\x00\x00\xFA\xD7" > /dev/ttyS1``` ```echo -n -e "\xB5\x62\x06\x31\x20\x00\x01\x01\x00\x00\x32\x00\x00\x00\x00\x12\x7A\x00\x00\x12\x7A\x00\x00\x00\x00\x80\x00\x00\x00\x80\x00\x00\x00\x00\x8F\x00\x00\x00\x32\xC2" > /dev/ttyS1``` 2. **Edit interface name** in ESMC config file and run the ESMC config for GM `esmcconfig start /etc/sync_timing_esmc_aruba_gnss_ptp_steered_rf_default_nxp.conf ` 3. **Edit interface name** in PTP config file and run the PTP config for GM `ptp2config start /etc/sync_timing_ptp2_t_gm_G_8275_2_unicast.conf` 4. Verify sync `ptp2config t i` #### Slave commands 1. **Edit interface name** in ESMC config file and run the ESMC config for slave `esmcconfig start /etc/sync_timing_esmc_aruba_ptp_steered_rf_default_nxp.conf ` 2. **Edit interface name** in PTP config file and run the PTP config for slave `ptp2config start /etc/sync_timing_ptp2_slave_clock_G_8275_2_unicast_pts_nxp.conf` 3. Verify sync `ptp2config t i` #### Verify log for both GM and slave 1. Log file for syncdriver `tail -f /var/log/synctimingdriver.log` 2. Log file for ptp `tail -f /var/log/synctimingptp2.log` 3. Log file for esmc `tail -f /var/log/synctimingesmc.log`