Wrpc shell
current release.
NOTE: This page is outdated, please check the WRPC's shell commands in the documentation of thepll | ||
---|---|---|
init mode> | manually run spll_init() function to initialize SoftPll | |
cl channel> | check if SoftPLL is locked for the channel | |
sps channel> | set phase shift for the channel | |
gps channel> | get current and target phase shift for the channel | |
start channel> | start SoftPLL for the channel | |
stop channel> | stop SoftPLL for the channel | |
sdac index> | set the dac | |
gdac index> | get dac's value | |
gui | ||
starts GUI WRPC monitor | ||
stat | ||
prints one line log message | ||
cont | prints log message for each second (Esc to exit back to shell) | |
ptp | ||
start | start WR PTP daemon | |
stop | stops WR PTP daemon | |
mode | ||
prints the current WR PTP mode | ||
gm | sets WRPC to operate as Grandmaster clock (requires external 10MHz and 1-PPS reference)(*) | |
master | sets WRPC to operate as Free-running Master(*) | |
slave | sets WRPC to operate as Slave node(*) | |
calibration | ||
tries to read t2/4 phase transition from EEPROM, if not found runs calibration procedure | ||
force | starts calibration procedure that measures t2/4 phase transition, and stores the result to EEPROM | |
time | ||
prints current time from WRPC | ||
raw | prints current time in a raw format (seconds, nanoseconds) | |
set sec> | sets WRPC time | |
setsec sec> | sets only seconds part of WRPC time (useful for setting time in GrandMaster mode, when nanoseconds counter is aligned to external 1-PPS and 10MHz) | |
setnsec nsec> | sets only nanoseconds part of WRPC time | |
sfp | ||
detect | prints the ID of currently used SFP transceiver | |
erase | cleans the SFP database stored in FMC EEPROM | |
add ID> | stores calibration parameters for SFP to the database in FMC EEPROM | |
show | prints all SFP transceivers stored in database | |
match | tries to get calibration parameters from database for currently used SFP transceiver(****) | |
init | ||
erase | cleans initialization script in FMC EEPROM | |
add cmd> | adds shell command at the end of initialization script | |
show | prints all commands from the script stored in EEPROM | |
boot | executes the script stored in FMC EEPROM (the same action is done automatically when WRPC starts after resetting LM32) | |
mac | ||
get | prints WRPC's MAC address | |
getp | re-generates MAC address from 1-wire digital thermometer or EEPROM | |
set mac> | sets the MAC address of WRPC | |
setp mac> | sets MAC address to the 1-wire EEPROM (if available) | |
sdb | ||
prints devices connected to the Wishbone bus inside WRPC | ||
ip (*****) | ||
get | prints the IPv4 address of the WRPC | |
set ip> | sets the IPv4 address of the WRPC |
* after executing _mode_ command, _ptp start_ is required to start WR PTP daemon in new mode
** requires running _sfp detect_ first
* available only with Etherbone support compiled in
12 April 2013