Energy Bus Error Codes

From OpenMotics
Jump to navigation Jump to search

Energy Bus Error Codes

These Error codes will not contain any Error payload.

ErrorType (byte) Description
0
Reply Idle -> No error, indicate that no NACK needs to be send (but an reply may be send)
1
NACK Internal -> Very general error to indicate that something has gone wrong internal (e.g. I2C error,...)
2
NACK Function not known -> Command type is not known, function to process the request is not known
3
NACK Index Not OK -> used in very generic places to indicate that an integer value is not correct
4
NACK out of bounds -> Used to indicate that a value is out of scope, can be very generic
5
NACK No Set -> to indicate that the following command does not have a 'SET' option
6
NACK No Get -> To indicate that the following command does not have a 'GET' option
7
NACK No Reply -> not an actual error, is used internally to signal that no reply is required.
8
Error Type 8 -> General errors with additional data information, see below.
10
Error Type 10 -> HVAC Module specific error.

General Errors with additional data information

The Data Payload has a variable length that can vary from 0 to maximum 8 bytes.

ErrorType (byte) ErrorData0 (byte) ErrorData1 (byte) ErrorData2 (byte) ErrorData3 (byte) ErrorData4 (byte) ErrorData5 (byte) ErrorData6 (byte) ErrorData7 (byte) Description
8
0
CRC calculated
CRC received
-
-
-
-
-
CRC mismatch between CRC calculated and CRC received

HVAC module Error Codes

The Data Payload has a variable length that can vary from 0 to maximum 8 bytes.

ErrorType (byte) ErrorData0 (byte) ErrorData1 (byte) ErrorData2 (byte) ErrorData3 (byte) ErrorData4 (byte) ErrorData5 (byte) ErrorData6 (byte) ErrorData7 (byte) Description
10
1
-
-
-
-
-
-
-
Unknown instruction received in Live mode
10
2
-
-
-
-
-
-
-
Unknown instruction received in Init mode
10
3
pid_nr
Max_pid_nr
-
-
-
-
-
pid_nr received is not in range
10
4
sensor_nr
Max_sensor_nr
-
-
-
-
-
sensor_nr received is not in range
10
5
eeprom_address.MSB
eeprom_address.LSB
-
-
-
-
-
Eeprom address out of range (must be <1024)
10
6
Nr_of_bytes
Max_Nr_of_bytes
-
-
-
-
-
Number of bytes to be read or written from eeprom is out of range
10
7
Output_nr
Max_Output_nr
-
-
-
-
-
Output number is out of range