SET-Control-System/Code/Packet Formatting.txt
2024-09-29 21:34:30 -05:00

102 lines
5.9 KiB
Plaintext

CB to AB Initial Comms Sequence
CB Pinging AB:
ID 5
0 1
1 1
2 1
3 1
4 1
5 1
6 1
7 1
AB Acknowledges CB Ping:
ID 5
0 2
1 2
2 2
3 2
4 2
5 2
6 2
7 2
CB Acknowledges AB Acknowledgement
ID 5
0 3
1 3
2 3
3 3
4 3
5 3
6 3
7 3
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
CB to AB Normal Command Message:
ID 50
0 Supply Fill 0 = closed, 1 = open, 3 = AB should keep current desired state
1 Supply Vent 0 = closed, 1 = open, 3 = AB should keep current desired state
2 Run Tank Vent 0 = closed, 1 = open, 3 = AB should keep current desired state
3 BVAS 0 = closed, 1 = open, 3 = AB should keep current desired state
4 Igniter 0 = off, 1 = igniter,3 = AB should keep current desired state
5 0 = normal
6 0 = normal
7 0 = normal
CB to AB ABORT Command Message:
ID 5
0 Supply Fill 0 = closed, 1 = open
1 Supply Vent 0 = closed, 1 = open
2 Run Tank Vent 0 = closed, 1 = open
3 BVAS 0 = closed, 1 = open
4 Igniter 0 = off, 1 = igniter
5 9 = manual abort override
6 9 = manual abort override
7 9 = manual abort override
AB to CB Acknowledgement:
0 Supply Fill +0 for servo is supposed to be closed based on internal state tracking, +1 for servo is supposed to be open based on internal state tracking
+00 for valve is supposed to be off based on internal state tracking, +10 for valve is supposed to be on based on internal state tracking ***This line is only added to make it conform to the NonLatchingRelayLEDs class for the Control Box code
1 Supply Vent +0 for no voltage across relay, +1 for voltage across relay, +3 for voltage disagrees with internal tracking of relay state;
+00 for relay is supposed to be off based on internal state tracking, +10 for relay is supposed to be on based on internal state tracking, +30 because setpin failure detected; +50 because resetpin failure detected;
2 Run Tank Vent OFF +0 for latching solenoid thought to be off, +1 for latching solenoid thought to be on, +3 for desired state and predicted state disagree; ***Based on the AB actually seeing a 1s pulse across the respective relays
+00 for latching solenoid is desired to be off, +10 for latching solenoid is desired to be on +30 for pin failure to relay ***Based on AB receiving the CB command
+000 for relay working as expected +100 for relay not turning on +200 for relay not turning off
3 Run Tank Vent ON +0 for latching solenoid thought to be off, +1 for latching solenoid thought to be on, +3 for desired state and predicted state disagree; ***Based on the AB actually seeing a 1s pulse across the respective relays
+00 for latching solenoid is desired to be off, +10 for latching solenoid is desired to be on +30 for pin failure to relay ***Based on AB receiving the CB command
+000 for relay working as expected +100 for relay not turning on +200 for relay not turning off
4 BVAS OFF +0 for latching solenoid thought to be off, +1 for latching solenoid thought to be on, +3 for desired state and predicted state disagree; ***Based on the AB actually seeing a 1s pulse across the respective relays
+00 for latching solenoid is desired to be off, +10 for latching solenoid is desired to be on +30 for pin failure to relay ***Based on AB receiving the CB command
+000 for relay working as expected +100 for relay not turning on +200 for relay not turning off
5 BVAS ON +0 for latching solenoid thought to be off, +1 for latching solenoid thought to be on, +3 for desired state and predicted state disagree; ***Based on the AB actually seeing a 1s pulse across the respective relays
+00 for latching solenoid is desired to be off, +10 for latching solenoid is desired to be on +30 for pin failure to relay ***Based on AB receiving the CB command
+000 for relay working as expected +100 for relay not turning on +200 for relay not turning off
6 Igniter +0 for no voltage across relay, +1 for voltage across relay, +3 for voltage disagrees with internal tracking of relay state;
+00 for relay is supposed to be off based on internal state tracking, +10 for relay is supposed to be on based on internal state tracking, +30 because setpin failure detected; +050 because resetpin failure detected;
+000 for no igniter continuity, +100 for igniter continuity
7 Temp Degrees Fahrenheit above 0 degrees F (up to 255)
***NOTE WHEN USING SERVO FOR THE MAIN VALVE AND NOT THE PNEUMATIC BVAS, THE INDEX 3 AND INDEX 4 REPORTS CHANGE TO THE FOLLOWING
3 SERVO BVAS +0 for servo is supposed to be closed based on internal state tracking, +1 for servo is supposed to be open based on internal state tracking
+00 for valve is supposed to be off based on internal state tracking, +10 for valve is supposed to be on based on internal state tracking ***This line is only added to make it conform to the NonLatchingRelayLEDs class for the Control Box code
4 SERVO BVAS +0 for servo is supposed to be closed based on internal state tracking, +1 for servo is supposed to be open based on internal state tracking
+00 for valve is supposed to be off based on internal state tracking, +10 for valve is supposed to be on based on internal state tracking ***This line is only added to make it conform to the NonLatchingRelayLEDs class for the Control Box code
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------