Setup periodic sending of cmio states (status messages)
warning
Using common block API you can set periodic sending of cmio status messages.
Using Setup cmio sampling message you can select multiple cmio states. Then the states are periodically sent. The states are selected using cmio input id. You can set up to 4 ranges of states.
Message - Setup cmio sampling
info
All here listed messages are unicast with SID = 40
Payload byte | Data-type | Description |
---|---|---|
0 | uint8 | Which bank is being set: 8 = bank 0, 9 = bank 1, 10 = bank 2, 11 = bank 3 |
1 | uint8 | Start IID of set range |
2 | uint8 | End IID of set range |
3-4 | uint16 | Period of data sent in [ms] |
5-6 | uint16 | First period in [ms]. (How lond will device wait to send first message). Set to 0, to stop sending the bank. |
Response
info
Message is multicast The SID is different for each bank
- bank 0 SID = 42
- bank 1 SID = 43
- bank 2 SID = 44
- bank 3 SID = 45
The message length depends on the used interface. If the payload does not fit into a message, multiple messages are sent. Only the Offset is different.
Payload byte | Data-type | Description |
---|---|---|
0 | 0-6 | Product signature |
0 | 7 | Error bit - if ist value is 1 - common block is in error state. Send values may not be valid. |
1 | uint8 | Offset - IID of first state. |
2-3 | int16 | First state with IID = Offset |
4-5 | int16 | Second state with IID = Offset + 1 |
6-7 | int16 | Third state with IID = Offset + 2 |
... | int16 | Size of this message depends on used interface. |