Format
<message start> <message sender ID> <message receiver ID> <message ID> <message number> <interface version number> <error code> <data length> <number of pairs and key-value pairs and values> <CRC>
Field |
Offset |
Size in bytes |
---|---|---|
Message start |
0 | 1 |
Message sender ID |
1 | 1 |
Message receiver ID |
2 | 1 |
Message ID |
3 | 1 |
Message number |
4 | 1 |
Data length |
5 ... 6 | 2 |
Interface version |
7 | 1 |
Error code |
8 | 1 |
Data: number of pairs and key-value pairs and values | 9 ... 119 | 111 |
CRC |
120 ... 121 | 2 |
Example
For example, MD30 has 2 external sensors: HMP113 and MT10, so the full product information contains 5 key value pairs.
0xab 0x01 0x00 0x11 0x02 0x71 0x00 0x44 0x00 0x05 0x0c 0x50 0x72 0x6f 0x64 0x75 0x63 0x74 0x20 0x4e 0x61 0x6d 0x65 0x04 0x4d 0x44 0x33 0x30 0x0d 0x53 0x65 0x72 0x69 0x61 0x6c 0x20 0x4e 0x75 0x6d 0x62 0x65 0x72 0x08 0x52 0x32 0x37 0x33 0x30 0x30 0x31 0x31 0x0a 0x53 0x57 0x20 0x56 0x65 0x72 0x73 0x69 0x6f 0x6e 0x05 0x31 0x2e 0x31 0x2e 0x30 0x07 0x4d 0x54 0x31 0x30 0x20 0x49 0x44 0x10 0x37 0x43 0x30 0x45 0x32 0x36 0x31 0x41 0x36 0x34 0x41 0x34 0x42 0x31 0x43 0x32 0x11 0x48 0x4d 0x50 0x20 0x53 0x65 0x72 0x69 0x61 0x6c 0x20 0x4e 0x75 0x6d 0x62 0x65 0x72 0x08 0x50 0x34 0x30 0x33 0x30 0x30 0x32 0x32 0x40 0x07
Field | Bytes | Value |
---|---|---|
Message start |
0xab | 0xab |
Message sender ID |
0x01 | 1 |
Message receiver ID |
0x00 | 0 |
Message ID |
0x11 | 0x11 |
Message number |
0x02 | 2 |
Data length |
0x71 0x00 | 113 |
Interface version |
0x44 | D |
Error code |
0x00 | 0 |
Data: number of pairs and key-value pairs and values | ||
Number of pairs | 0x05 | 5 |
Pair 1 key length | 0x0c | 12 |
Pair 1 key | 0x50 0x72 0x6f 0x64 0x75 0x63 0x74 0x20 0x4e 0x61 0x6d 0x65 | Product name |
Pair 1 value length | 0x04 | 4 |
Pair 1 value | 0x4d 0x44 0x33 0x30 | MD30 |
Pair 2 key length | 0x0d | 13 |
Pair 2 value | 0x53 0x65 0x72 0x69 0x61 0x6c 0x20 0x4e 0x75 0x6d 0x62 0x65 0x72 | Serial number |
Pair 2 value length | 0x08 | 8 |
Pair 2 value | 0x52 0x32 0x37 0x33 0x30 0x30 0x31 0x31 | R2730011 |
Pair 3 key length | 0x0a | 10 |
Pair 3 key | 0x53 0x57 0x20 0x56 0x65 0x72 0x73 0x69 0x6f 0x6e | SW version |
Pair 3 value length | 0x05 | 5 |
Pair 3 value | 0x31 0x2e 0x31 0x2e 0x30 | 1.1.0 |
Pair 4 key length | 0x07 | 7 |
Pair 4 key | 0x4d 0x54 0x31 0x30 0x20 0x49 0x44 | MT10 ID |
Pair 4 value length | 0x10 | 16 |
Pair 4 value | 0x37 0x43 0x30 0x45 0x32 0x36 0x31 0x41 0x36 0x34 0x41 0x34 0x42 0x31 0x43 0x32 | 7C0E261A64A4B1C2 |
Pair 5 key length | 0x11 | 17 |
Pair 5 key | 0x48 0x4d 0x50 0x20 0x53 0x65 0x72 0x69 0x61 0x6c 0x20 0x4e 0x75 0x6d 0x62 0x65 0x72 | HMP serial number |
Pair 5 value length | 0x08 | 8 |
Pair 5 value | 0x50 0x34 0x30 0x33 0x30 0x30 0x32 0x32 | P4030022 |
CRC |
0x40 0x07 | - |
The example response contains the following information:
- Unit ID: 1
- Client ID: 0
- Message ID: 0x11
- Message number: 6
- Length: 113
- Interface version: C
- Error code: 0
- Product name: MD30
- Serial number: P1830002
- SW version: 0.9.0
- MT10 ID: 700572D61114B1C2
- HMP serial number: P2130779