XPoe
Communication with PD63000 PowerOverEthernet MCU.
- XPoe
Shortest form:
xp.Talk to a PD63000 Power-over-Ethernet controller on an I2C bus managed by the SDK (device
poe0). This is for Broadcom reference boards; a Trident 3 SONiC switch has no such controller, and the command printscannot open I2C device poe0.Sub-command words ignore case but cannot be abbreviated.
*selects all ports inportandmeasure; ports are channel numbers 0–23.Safety:
ver,status,port,measure,power statusandreadonly query the controller;power <value>andrawcan change PoE settings;debugandverboseonly change the shell’s output.Unvalidated
drivshell> xpoe verUnvalidated
drivshell> xpoe measure *- XPoe ver
Get the MCU software and hardware version. Read-only.
Unvalidated
drivshell> xpoe ver
- XPoe status
Get the system status (
No system status error.or decoded error bits). Read-only.Unvalidated
drivshell> xpoe status
- XPoe power [status | <value>]
Get the power-supply parameters, the main power source (
status), or set them (<value>; changes PoE budget).Unvalidated
drivshell> xpoe power status
- XPoe port <port_num | *>
Get one channel’s status (0–23) or all. Read-only.
Unvalidated
drivshell> xpoe port 0
- XPoe measure <port_num | *>
Get voltage, current and power of one channel or all. Read-only.
Unvalidated
drivshell> xpoe measure 0
- XPoe raw <byte0> … <byte14>
Send a raw 15-byte message (13 bytes with automatic checksum). Can change any MCU setting.
Unvalidated
drivshell> xpoe raw 0x02 0x01 0x00 0x00 0x4e 0x4e 0x4e 0x4e 0x4e 0x4e 0x4e 0x4e 0x4e
- XPoe read
Read one packet from the MCU and dump it (
Rx from PD63000). Read-only.Unvalidated
drivshell> xpoe read
- XPoe debug <on | off>
Turn the packet dump of messages to and from the MCU on or off. Shell output only.
Unvalidated
drivshell> xpoe debug on
- XPoe verbose <on | off>
Turn verbose output on (default) or off. Shell output only.
Unvalidated
drivshell> xpoe verbose off
Built-in help
Usages: xpoe ver - Get PD63000 software version. xpoe status - Get System Status. xpoe power <value> - Get/Set power supply parameters. xpoe power status - Get main power source supply parameters. xpoe port <port_num> - Get port status (use * for all ports). xpoe measure <port_num> - Get port measurements (use * for all ports). xpoe raw <byte0> ... <byte14> - Send raw data to PD63000. xpoe read - Read one packet from PD63000. xpoe debug on/off - Turn packet dump to/from PD63000 on/off. xpoe verbose on/off - Turn on/off verbose output (default is on).