Skip to content

Teensy Polling Config

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

If you already have TouchDesigner installed, you can see the python examples of many of the command examples setup here: TouchDesigner\SERIAL\PXLNODE_SERIAL_commands.toe

The PxlNode device will respond to serial packets with containing a single byte value of 200 Unlike the UDP counterpart, no header identifier is needed.

A PxlNode serial device will respond with a packet starting with 201(Poll Reply), followed by data packed into a specific format. See [Protocol Description] for more info on how this breaks down.

OPCODE Definition data[bytes]
200 Poll: Pings device to get a formatted response No Data
201 PollReply: Response from the device after a ping DeviceName[64] PixelsPerStrip[2] ChunkSize[2] UdpPort[2] AmpLimitFloat[4] mAPerPixel[2] WarmUpColor[3]
202 Config: Configures the device with the following format DeviceName[64] PixelsPerStrip[2] ChunkSize[2] UdpPort[2] AmpLimitFloat[4] mAPerPixel[2] WarmUpColor[3]

NOTE: UdpPort is not used in the Teensy PxlNode code, but is left in the protocol for consistency.