Common API
This API is for interaction with a common block. Usually reading controller input (gpio, din,...)
Common commands
Message type: unicast SID = 40 Big endian
Play beep
Payload byte | Value / type | Description |
---|---|---|
0 | 6 | Command - play beep |
1-2 | int16 | note |
3-4 | int16 | len |
5-6 | int16 | flags |
[More info about note, len and flags]
Get info
Payload byte | Value | Description |
---|---|---|
0 | 0 | Command - get info |
Response:
Payload byte | Value / type | Description |
---|---|---|
0 | 0x40 | Signalize succes |
1 | uint8_t | Device signature |
2-5 | uint32_t | Proccom API version (current is 2 ) |
Contactor control
Note:
Always check contactor settings. To setup contactor voltage, check parameters in /common/contactor.
If you want to control contactor using this message, make sure, that you disable contactor control from the driver - check parameter /common/contactor/opts
Payload byte | Value | Description |
---|---|---|
0 | 4 | Contactor command |
1 | 11 | Contactor command |
2 | UINT8 | Contactor number 0 = power switch 1-3 = contactor 1-3 |
3 | UINT8 | 0 = turn contactor off 1 = turn contactor on |
Response:
Payload byte | Value / type | Description |
---|---|---|
0 | 68 | Contactor command response |
1 | 11 | Contactor command response |
2 | int8_t | 0 = command succesfully accepted -1 = error (contactor do not exist, wrong message) |