Skip to content

PxlNode Protocol Structure

Lucas Morgan edited this page Dec 29, 2018 · 2 revisions

POLL Structure

  • ID[20]
    • ‘EnviralDesignPxlNode’
  • OpCode[1]
    • 0 - 99 chunkID
    • 100 = Update Frame Command
    • 101-199 = reserved for future use.
    • 200 = POLL
    • 201 = POLLREPLY

POLL Reply Structure

  • ID[20]
    • ‘EnviralDesignPxlNode’
  • OpCode[1]
    • 0 - 99 chunkID
    • 100 = Update Frame Command
    • 101-199 = reserved for future use.
    • 200 = POLL
    • 201 = POLLREPLY
  • 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.
  • 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