|
|
# 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-DPv2 modes.
|
|
|
|
|
|
The WR switch acts as the Grandmaster(Layer 1) in this small network,
|
|
|
and three CUTEWR-DPV2 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 port is 0 or 1.
|
|
|
- The units of dtx\_value and drx\_value are picosecond.
|
|
|
- alpha value is depended on your fiber.
|
|
|
|
|
|
<!-- end list -->
|
|
|
|
|
|
sfp erase
|
|
|
sfp add SFP_PN port dtx_value drx_value alpha_value
|
|
|
|
|
|
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.
|
|
|
|
|
|
<!-- end list -->
|
|
|
|
|
|
ip set ip_addr_port0
|
|
|
|
|
|
Use the command below to start or stop the PTP of each port.
|
|
|
|
|
|
ptp start (start both two ports)
|
|
|
ptp start 0/1 (start the selected port)
|
|
|
ptp stop (stop both two ports)
|
|
|
ptp stop 0/1 (stop the selected port)
|
|
|
|
|
|
Use the command "gui" to get the PTP status of each port.
|
|
|
The results are shown as
|
|
|
below:
|
|
|
![](/uploads/1e0fa35579cff52e827b9ef41b4f254c/CUTEWR-DP-gui.png)
|
|
|
|
|
|
The demo synchronization results are shown as below, C1(yellow) is the
|
|
|
WR switch while C2/C3/C4 are CUTEWR-DP
|
|
|
boards:
|
|
|
![](/uploads/b675b9f61b659cc8cd3291a4fc2be556/CUTEWR-DP-PPS-results.png)
|
|
|
|