DMX512 is the standard lighting control protocol of stage and architectural lighting: one universe carries up to 512 channels of 0 to 255. The Weble IoT Universal Gateway DMX driver sends channel values to DMX fixtures through an Enttec DMX USB Pro interface. The driver only writes: DMX fixtures do not report their state.
Typical use: control RGB or RGBW LED fixtures, dimmers or façade lighting from KNX, BACnet, a schedule or the logic module.
Driver key:
dmx— listed as DMX under Building Automation in Gateway driver. Licence: required, contact support@weble.ch. Platforms: Linux and Windows.
enttec-usb-dmx-pro in the interface field.%dmx: prefix, for example 1. The driver creates the four channel addresses %dmx:1/0 to %dmx:1/3 (DMX channels 1 to 4).255 to %dmx:1/0: the first channel of the fixture goes to full level.
Name, Cluster ID and Description are common to all drivers: see Gateways.
| Label | JSON key | Default | Description |
|---|---|---|---|
| Username (interface type) | json.driver |
enttec-usb-dmx-pro |
DMX interface. Only value offered: Enttec DMX USB Pro. |
| Serial Port | json.serialPort |
(empty) | USB port of the interface. |
| Turn off on startup | json.turnOffOnStartup |
false |
Checked: all 512 channels are set to 0 when the driver starts. Unchecked: the channels start from the values stored in the addresses. |
Saving the gateway restarts the driver.
{
"serialPort": "/dev/ttyUSB0",
"driver": "enttec-usb-dmx-pro",
"turnOffOnStartup": true
}
%dmx:<id>[/<index>]
| Part | Meaning | Values |
|---|---|---|
<id> |
Start channel of the group | 1 to 509 |
<index> |
Channel in the group, created by the driver | 0 to 3 |
Each address %dmx:<id> is a group of four channels: %dmx:<id>/<index> drives DMX channel <id> + <index>.
Examples:
%dmx:1 — group of channels 1 to 4; %dmx:1/0 is channel 1, %dmx:1/3 is channel 4.%dmx:5 — channels 5 to 8 (for example the red, green, blue and white channels of a fixture at DMX address 5).%dmx:9/2 — channel 11.Space the group addresses by 4 (
%dmx:1,%dmx:5,%dmx:9…). Groups closer than 4 share channels:%dmx:1/3and%dmx:2/2both drive channel 4.
| Label | JSON key | Default | Description |
|---|---|---|---|
| Name | name |
Start channel, after the %dmx: prefix. Create only the group address. |
|
| Description | description |
(empty) | Free text, for example the fixture name. |
| Log | log |
never | Logging policy, see Log and Store value policies. |
| Property | Value |
|---|---|
| Readable | No — the value shown is the last value written by the box |
| Writable | Yes |
| Created automatically | Yes — the four channel addresses of each group; they are deleted with the group |
| Routable | Yes |
| Loggable | Yes |
%dmx:<id>/<index>): a number from 0 to 255. Values outside the range are limited to 0 or 255. A non-numeric value is refused (INVALID_VALUE).%dmx:<id>): an array sets the channels in order, for example [255, 128, 0, 0]; missing elements keep their value. A single number sets the four channels to the same value.The value of the group address is always the array of its four channels. The driver sends the whole universe to the interface every second; writes received within 300 ms are grouped.
| Address | Purpose |
|---|---|
%dmx:5/0 |
Red, routed from a KNX dimming value (converted from 0-100 % to 0-255 in a route function) |
%dmx:5/1 |
Green |
%dmx:5/2 |
Blue |
%dmx:5/3 |
White |
%dmx:5 |
Scene: write [255, 80, 0, 0] for a warm orange |
| Symptom | Cause | What to do |
|---|---|---|
Gateway restarts in a loop; log missing license |
No licence for the driver. | Add the licence in Gateways › License manager. |
Gateway stops; log Unable to get serialPort |
The interface is not found. | Check the USB connection and Serial Port. |
| Gateway restarts | The interface was disconnected or the serial port closed. | Check the USB cable and the power of the interface. |
| Values change but the fixture does not react | Wrong start address, fixture mode or wiring. | Check the DMX address and mode of the fixture, the line termination and the polarity. |
| Two fixtures react together | Overlapping groups or fixtures with the same DMX address. | Space the groups by 4 and check the addresses of the fixtures. |
To read the driver log: open the gateway log (see Gateways).
Keep this gateway on Cluster ID
0: the driver restarts its process when the serial port fails, which would restart every gateway of a shared cluster.