Run the Cute-WR-DP Demo code
This is to demonstrate the Cute-WR-DP that works in chain mode which contains a WRS and three Cute-WR-DP nodes.
The WR switch acts as the Grandmaster(Layer 1) in this small network,
and three Cute-WR-DP boards are connected one by one. They are in Layer
2/3/4 of this network seperately.
In each board, use the blue SFP (AXGE-1254-0531) in SFP0 and red SFP
(AXGE-3454-0531) in SFP1. (The label of each SFP is on the PCB)
Use the command below to change the parameters of each port.
- The SFP_PN is AXGE-1254-0531 or AXGE-3454-0531 if you use the SFPs produced by AXCEN.
- The units of dtx_value and drx_value are picosecond.
- alpha value is depended on your fiber.
- The port is 0 or 1. If without port, default value will be 0.
sfp erase
sfp add SFP_PN dtx_value drx_value alpha_value (port)
Use the command below to set the IP of each port.
- command "ip set ip_addr" will set the ip address of port 0. The ip address of port 1 will be ip address of port 0 adds 1.
ip set ip_addr_port0
Use the command below to start or stop the PTP of each port.
ptp start or ptp start 0(start port 0)
ptp start 1 (start port 1)
ptp stop or ptp stop 0(stop port 0)
ptp stop 1 (stop port 1)
Use the command "gui" to get the PTP status of each port.
The results are shown as
below:
The demo synchronization results are shown as below, C1(yellow) is the
WR switch while C2/C3/C4 are CUTEWR-DP
boards: