| 12345678910111213141516171819202122 |
- // raw binary packet
- 0000000000000000000000000000000000000000000000000000000000011010000011000000000100000110000000000000000000000000000100100000000100000010000000000000000110010100000000000000000000000000000000011001010100000000000000000000000000000000000000000000000000000000000000000000000100000000000000001001110100010001
- // parsed packet
- 00000000000000000000000000000000 => 0 // 4B preamble
- 00000000000000000000000000011010 => 26 // 4B data size
- 00001100 => 12 // 1B codec 12
- 00000001 => 1 // 1B command quality 1
- 00000110 => 6 // 1B command type (response type)
- 00000000000000000000000000010010 => 18 // 4B command size / response length
- 00000001 => 1 // 1B N1 of One Byte IO
- 00000010 => 2 // 1'st N1 IO ID
- 00000000 => 0 // 1'st N2 IO Value
- 00000001 => 1 // 1B N2 of Two Bytes IO
- 10010100 => 148 // 1'st N2 IO ID
- 0000000000000000 => 0 // 1'st N2 IO Value
- 00000000 => 0 // 1B N4 of Four Bytes IO
- 00000001 => 1 // 1B N8 of Eight Bytes IO
- 10010101 => 149 // 1'st N8 IO ID
- 0000000000000000000000000000000000000000000000000000000000000000 => 0 // 1'st N8 IO Value
- 00000001 => 1 // 1B response quality 2
- 00000000000000001001110100010001 => 40209 // 4B CRC-16
|