Skip to content

Polling and Config (UDP)

Lucas Morgan edited this page Aug 4, 2019 · 5 revisions

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

The PxlNode device will respond to udp packets with bytes in this format (OPCODE of 200 == Poll) :

1-20 21
EnviralDesignPxlNode 200

The full Byte string to send over UDP to poll devices would look like this: 69,110,118,105,114,97,108,68,101,115,105,103,110,80,120,108,78,111,100,101,200

A PxlNode device will respond with a very similar header, the only difference the op code will be for Poll Reply (201).

A full PxlNode PollReply response will have a header that starts like this: 69,110,118,105,114,97,108,68,101,115,105,103,110,80,120,108,78,111,100,101,201

Lastly, It's also possible to configure a PxlNode with a UDP config message. This isn't the only way, if you like working with JSON see the Post Config wiki page for more on that method.

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]