package
0.4.0
Repository: https://github.com/h3rby7/usbdmx-golang.git
Documentation: pkg.go.dev

# README

Enttec USB DMX Pro

Some Notes from the Enttec DMX USB Pro - API Document @v1.44

For latest version check their website

Examples

Write

Write DMX data using the serial device located at COM5.

go run ./example/write/main.go --name=COM5

Source

Note: If testing with a specific fixture, make sure to adapt the example

Read

Read DMX data using the serial device located at COM6.

go run ./example/read/main.go --name=COM6

Source

IN and OUT

DMX USB Pro has been designed to either receive or send a DMX stream at any one time, not both.

The DMX USB Pro’s input and output ports are physically connected to each other, therefore trying to recieve and send DMX streams would cause data degradation and flickering. Having the DMX IN and DMX OUT options it means that it can be integrated as part of a DMX chain when set to receive DMX data (in the same way you can daisy chain DMX in and out of a lighting fixture).

Source

Message-Format

Size in BytesDescription
1Start of message delimiter, 0x7E.
1Label to identify type of message. See Labels
1Data length LSB. Valid range for data length is 0 to 600.
1Data length MSB.
[data_length]Payload bytes (byte at index 1 contains channel 1. So byte 0 is unused)
1End of message delimiter, 0x7E.

For implementation see here

Labels

Label #Title (in API description)
1Reprogram Firmware Request
2Program Flash Page (Request/Reply)
3Get Widget Parameters (Request/Reply)
4Set Widget Parameters Request
5Received DMX Packet
6Output Only Send DMX Packet Request
7Send RDM Packet Request
8Receive DMX on Change
9Received DMX Change Of State Packet
10Get Widget Serial Number (Request/Reply)
11Send RDM Discovery Request

For implementation see here

Glossary

TermExplanation
LSBLeast Significant Bit
MSBMost Significant Bit

# Packages

No description provided by the author
No description provided by the author
No description provided by the author

# Functions

Detect valid Messages in an array of bytes.
Helper function for creating a new DMX USB PRO controller.

# Constants

Prefix for any log and error messages.

# Structs

Controller for Enttec DMX USB Pro device to handle communication.