Lesson 02 of 09 · about 5 min

Decode the downlink

  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
  6. 6
  7. 7
  8. 8
  9. 9

Ground software reads those same bits back. Version is the top 3 bits of byte 0. The APID is the low 11 bits of the first word. The sequence count is the low 14 bits of the next word. The length field is the size of the data field minus one, not the size of the whole packet.

Temperature is the first big-endian uint16 in the data field, in centidegrees. Bus voltage is the second, in centivolts. A CRC, when the packet has one, sits after those four bytes and is included in the length. Deal another packet whenever you want a new one.

On the Knowledge page

Resources