Energy Module API

From OpenMotics
Jump to navigation Jump to search

The documentation for the Energy Module RS485 API

1 2 3 4 5 6 7 8 9 10 11 12 13 14
Start Address CID mode Type LEN Data Stop
S T R 1 2 1 2 3 1 2 3 n CRC \r \n
83 84 82
start always STR
Address 1=type module, 2=address of that type
mode G=get,S=set in request and G=answer for GET request, S=set of data or command is done, N = No Ack and 1 data byte with nack number
CID Communication id
Type 3 bytes in ascii with discription of the data
LEN length of the data
Data in raw format, LSB first and first the first index
CRC CRC-7 of everything from Address to data