K8062 for Linux

K8062 USB Protocol

The controller is a standard USB HID device. Data is sent by packets of 8 bytes. In the following tables, d0, d1, ... are DMX channel values and n is a number of consecutive channels whose value is 0.

The program needs to send the packets in sequence to transmit some DMX data on the DMX output of the interface. If all 512 channels are sent, it'll take about 25ms to send the whole DMX sequence.

Start of Data

4n+1d0d1d2d3 d4d5

This packet signals the start of the DMX channels data. Counter start back at channel 1.

The second byte gives the number of starting channel at value "0" (unused or turned off) increased by one (the channel "0" which is used for sync). This act as a shortcut as many of the 512 channels are unused in the DMX universe.

Data

2d0d1d2d3 d4d5d6

This packet sends the next 7 channels data. It can be repeated several times but you may NOT go over channel 512.

Single Data

3d0?????? ??????

This packet sends a single channel. It can be repeated several times and it has to be used for the last channels, when other commands would make more than 512 channel sent

Unused then Data

5nd0d1d2d3 d4d5

This packet instruct to leave n channel at "0" then set the next 6 channels. It works like the Start Data packet and allows to skip large unused channels ranges.