Skip to content

Teensy PxlNode Poll Reply Structure

Lucas Morgan edited this page Aug 4, 2019 · 1 revision

POLL Structure

  • OpCode[1]
    • 0 - 99 chunkID
    • 100 = Update Frame Command
    • 101-199 = reserved for future use.
    • 200 = POLL
    • 201 = POLLREPLY
    • 202 = CONFIG

POLL REPLY / CONFIG Structure

  • OpCode[1]
    • 0 - 99 chunkID
    • 100 = Update Frame Command
    • 101-199 = reserved for future use.
    • 200 = POLL
    • 201 = POLLREPLY
    • 202 = CONFIG
  • DeviceName[64]
    • Name can be anything, but must be padded with nulls to fit the device name length.
  • PixelsPerStrip[2]
    • Specify the number of pixels per strip as 16 bit int.
      • Highbyte
      • LowByte
  • ChunkSize[2]
    • Specify the transmission chunk size. This should not need to be above 255 but using 2 bytes for future proofing more capable devices / more pixels.
      • Highbyte
      • LowByte
  • UdpPort[2]
    • Specify the Port number using 2 bytes for full integer size. NOTE: this is not utilized by Teensys at all, but is left for consistency.
  • AmpsLimit[4]
    • Store Amps Limit as four bytes following the float32 standard.
    • (+/- sign) 1.(value) * 10 ^ (exponent)
      • Bit1: sign
      • Bit2-9: exponent
      • Bit10-32: value
  • MaPerPixel[2]
    • Store the milliamps per pixel as a 16 bit int.
      • Highbyte
      • LowByte
  • WarmUpColor[3]
    • Store the warmup color in 3 bytes
      • Red
      • Green
      • Blue