Multiplatform drivers for pegasus equipment written in Rust.
This driver is meant to communicate with all pegasus powerboxes on all major platforms.
Be sure to have rust installed (if you don't have rust check here and
simply run on your terminal/cmdshell cargo run
in your terminal type cargo build
in your terminal type cargo build --release
|Command|Description |Response |
|:-: |:-: |:-: |
|P#|Status|PPBAOK|
|PE:bbbb|Set Power Status on boot.
Every number represents 1-4 power outputs.
(0=OFF, 1=ON).|PE:1 |
|P2:nn|ON/OFF Power 8V DSLR
(0=OFF, 1=ON)
n can also accept values of: 3, 5, 8, 9, 12 (Volts)|P2:nn |
|P3:nnn|PWM Duty Cycle Power 5 (DewA)
X=0-255 (0-100%)|P3:nnn|
|P4:nnn|PWM Duty Cycle Power 6 (DewB)
X=0-255 (0-100%)|P4:nnn|
|PF|Reboot Device / Reload Firmware|[none]|
|PA|Print Power and Sensor Readings|[Check table below]|
|PS|Prints Power Consumption Statistics|PS:averageAmps:ampHours:wattHours:uptimeinmillisec|
|PC|Print Power Metrics|*Current is represented in Amps and does not require
conversion.
PC:totalcurrent:current12Voutputs:
currentdewA:currentdewB:uptimein millisec|
|PR|Prints discovered I2C devices plugged to EXT port|PR:HDC:DHT:XS
if there is a discovered device command will output its name
HDC = temp/humidity sensor TI HDC1050
DHT =stock temp/humidity sensor AM2301
XS: eXternal Motor (stepper) Controller
|
|DA|(Auto) Dew Aggressiveness from 0 to 255 (210 default value)|DA:nnn|
|PD:b|Enable/Disable Auto Dew Feature (X=0,1)
PD:99 Reports Auto Dew Aggressiveness value|PD:nnn|
|PV|Firmware Version|n.n|
|PI|Reset I2C channel|PI:1|
|PL:b|OF/OFF Led Indicator (0=OFF, 1=ON)|PL:b|