Code Docs

UbiSwitch, SwitchBlox Industrial - BloxOsLite

Port Status/Control

View PHY

[port <int>] phy show

Parameters

Property Type Description Required?
port int Switch port with PHY ✅

Quick Guides

Available on v1.2.0 or higher.

Change PHY Autoneg

[port <int>] phy set [autoneg {"off", "on"}] [speed <int>] [duplex {"full", "half"}]

Parameters

Property Type Description Required?
port int Switch port PHY number ✅
autoneg string String literal describing whether the port’s PHY should enable auto-negotiation. ❌
speed int PHY speed if auto-negotiation disabled. Must be (10, 100, 200, 1000, 2500, 5000, 10000). Required if auto-negotiation is disabled. ❌
duplex string PHY duplex if auto-negotiation disabled. String literal must be “full” or “half”. Required if auto-negotiation is disabled. ❌

Quick Guides

Available on v1.2.0 or higher.

Change PHY Link Mode Advertisement

[port <int>] phy set [advertise <int> <int> ...]

Parameters

Property Type Description Required?
port int Switch port PHY number ✅
advertise List[int] The advertised link modes supported by the PHY. You can add support for multiple link modes by providing a list of ints.
0x01 - 10BaseT half
0x02 - 10BaseT full
0x04 - 100BaseT half
0x08 - 100BaseT full
0x10 - 1000BaseT half
0x20 - 1000BaseT full ❌

Quick Guides

Available on v1.2.0 or higher.

Read temperature

*Currently only available on UbiSwitch

[port <int>] temperature

Parameters

Property Type Description Required?
port int Switch port PHY number ✅

Quick Guides

Available on v0.3.1 or higher.

Change EEE mode on PHY

*Currently only available on UbiSwitch

[port <int>] eee [{"on", "off"}] 

Parameters

Property Type Description Required?
port int Switch port PHY number ✅
eee string on for advertise EEE to link partner, off for no advertisement EEE to link partner ✅

Available on v0.4.0 or higher.

Change PHY power state

[port <int>] phy power {"on", "off"}

Parameters

Property Type Description Required?
port int Switch port number ✅
power string Power state of the PHY. String literal must be "on" or "off" ✅

Quick Guides

Available on v1.0.0 or higher.

View SFP EEPROM

[port <int>] sfp 

Parameters

Property Type Description Required?
port int Switch port number ✅

Available on v1.0.0 or higher.

Prior Versions

Table of Contents