codec12_parse_binary.txt 2.1 KB

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