Interface Information
Warning
This section is intended for developers, and may be irrelevant unless you intend to modify or expand the functionality of Normal Use.
GoldPackets
GoldPackets is a custom designed packet standard, made by Team Gold for the EG-207 CMS.
The format is call/response based and detailed below:
Inst |
Byte |
Reply |
ACK |
Fail |
Note |
|---|---|---|---|---|---|
|
|
|
|
|
The “Version” Command will return the version as ascii. If it prints |
|
|
|
|
|
Print the EEPROM warning, 0 if there is none. |
|
|
|
|
|
Print the EEPROM error, 0 if there is none. |
|
|
|
|
|
Clear the EEPROM warning. Will return the warning cleared. |
|
|
|
|
|
Clear the EEPROM error. Will return the error cleared. |
|
|
|
|
|
DEBUG COMMAND, increments servo pos by 1 value and prints the new setpoint |
|
|
|
|
|
DEBUG COMMAND, decrements servo pos by 1 value and prints the nw setpoint |
|
|
|
|
|
DEBUG COMMAND, sets the servo pos to the |
|
|
|
|
|
DEBUG COMMAND, sets the servo pos to the |
|
|
|
|
|
Lowercase t will poll the DHT11 for its temperature value and return it at that time. |
|
|
|
|
|
Lowercase h will poll the DHT11 for its humidity value and return it at that time. |
|
|
|
|
|
Lowercase r will poll the rainflow sensor for its instant flow rate and print it out |
|
|
|
|
|
Lowercasee l will poll the CDS55 for the most recent average LUX reading. |
|
|
|
|
|
Lowercase U will poll the UV Sensor for the most recent average UV Index reading. |
|
|
|
|
|
DEBUG COMMAND, Create an artificial warning. |
|
|
|
|
|
DEBUG COMMAND, Create an artificial error. |
|
|
|
|
|
DEBUG COMMAND, Reset all tuning values to default. |
|
|
|
|
|
DEBUG COMMAND, used to write new coefficients to the lux sensor. |
Communication Example
> v
CDR-RELEASE-102-gaf0e-dirty
ok
> p
?70
ok
Error Matrix
Warnings:
Warning Code |
Note |
|---|---|
10 |
Sensor reading was out of scope or NaN |
15 |
Door was left ajar or rain sensor was left on |
69 |
Self-inflicted warn, written by the LabView to the arduino |
Errors:
Error Code |
Note |
|---|---|
69 |
Self-inflicted error, written by the LabView to the arduino |