Crates.io | pegasus_astro |
lib.rs | pegasus_astro |
version | 0.1.0 |
source | src |
created_at | 2022-05-31 08:16:19.884886 |
updated_at | 2022-05-31 08:16:19.884886 |
description | Multiplatform drivers for PegasusAstro equipment with a bit of gRPC |
homepage | |
repository | https://github.com/devDucks/pegasus-rs/ |
max_upload_size | |
id | 597353 |
size | 62,754 |
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 | PPBA_OK |
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:uptime_in_millisec |
PC | Print Power Metrics | *Current is represented in Amps and does not require conversion. PC:total_current:current_12V_outputs: current_dewA:current_dewB:uptime_in_ 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 |