Media dmx

From damionrashford/media-os · View interactive version

Media dmx is an AI agent skill from the GitHub repository damionrashford/media-os. Stage lighting protocols: DMX512-A (ANSI E1.11 serial, 250 kbps RS-485, 512 slots per universe, RDM E1.20 bidirectional config), Art-Net 4 (UDP port 6454, ASCII Art-Net header + 15-bit universe addressing from Artistic Licence), sACN / E1.31 (UDP multicast 239.255.X.Y port 5568 with universe sync +

How to use this skill

Skill file

Media DMX

Context: $ARGUMENTS

Control stage lighting: DMX512 over serial, Art-Net over UDP/6454, sACN/E1.31 over UDP multicast/5568, plus Enttec USB Pro framing. Ships a pure-Python sACN sender (no OLA needed), plus wrappers around the OLA CLIs when available.

Quick start

When to use

Step 1 — Protocol cheat sheet

Step 2 — List devices

uv run ${CLAUDE_SKILL_DIR}/scripts/dmxctl.py list-devices

Requires OLA's olad running. Wraps ola_dev_info and ola_uni_info. Without OLA the command falls back to listing /dev/tty* serial ports on macOS/Linux so you can at least see Enttec USB Pro adapters.

Step 3 — Send a DMX frame (OLA path)

uv run ${CLAUDE_SKILL_DIR}/scripts/dmxctl.py send-dmx \
    --universe 1 --slots 255,0,128,64,200,10,5

Wraps ola_streaming_client. The OLA daemon handles the chosen output (USB Pro, Art-Net, sACN, serial) based on the patch.

Step 4 — Pure-Python sACN (no OLA needed)

uv run ${CLAUDE_SKILL_DIR}/scripts/dmxctl.py sacn-send \
    --universe 1 --slots 255,0,128,64 \
    --priority 100 --source-name "Claude"

Builds the ACN + E1.31 + DMP packet in stdlib and multicasts to 239.255.0.1 (for universe 1). Uses a small built-in sequence-number counter per universe.

# Continuous 44 Hz stream of the same frame until Ctrl-C
uv run ${CLAUDE_SKILL_DIR}/scripts/dmxctl.py sacn-send \
    --universe 1 --slots 255,0,0,0 --repeat --rate 44

Step 5 — Art-Net poll (discovery)

uv run ${CLAUDE_SKILL_DIR}/scripts/dmxctl.py artnet-poll --timeout 2

Broadcasts OpPoll=0x2000 to 255.255.255.255 on UDP 6454 and collects OpPollReply=0x2100 responses. Reports node IP, short/long name, firmware, and published universes.

Step 6 — Record / stream shows

# Stream from stdin (one frame per line, comma-separated slots)
uv run ${CLAUDE_SKILL_DIR}/scripts/dmxctl.py stream --universe 1

# Record an OLA show
uv run ${CLAUDE_SKILL_DIR}/scripts/dmxctl.py record --universe 1 --out show.ola

Step 7 — RDM

uv run ${CLAUDE_SKILL_DIR}/scripts/dmxctl.py rdm-scan --universe 1

Wraps ola_rdm_discover. Returns the list of UIDs on the universe. ola_rdm_get / ola_rdm_set are available via --get PID / --set PID=VALUE.

Gotchas

Examples

Example 1 — Fade a single channel from OSC

uv run ${CLAUDE_SKILL_DIR}/scripts/dmxctl.py sacn-send \
    --universe 1 --slots 255,0,0,0 --priority 100 --source-name fade

Example 2 — Blackout everything on universe 1

uv run ${CLAUDE_SKILL_DIR}/scripts/dmxctl.py sacn-send \
    --universe 1 --slots $(python -c 'print(",".join(["0"]*512))')

Example 3 — Discover Art-Net nodes on the LAN

uv run ${CLAUDE_SKILL_DIR}/scripts/dmxctl.py artnet-poll --timeout 3 --format json

Example 4 — Dry-run see the sACN packet bytes

uv run ${CLAUDE_SKILL_DIR}/scripts/dmxctl.py sacn-send \
    --universe 1 --slots 255,128,0 --dry-run --verbose

Reference docs

CLI alternatives

Troubleshooting

OLA command "unable to connect to olad"

Cause: olad daemon not running.

Solution: brew services start ola (macOS) or sudo systemctl start olad (Linux).

sACN packets sent but receiver sees nothing

Cause: Multicast blocked by router/firewall, or wrong universe → wrong multicast group.

Solution: Check sudo tcpdump -i any -nn udp port 5568 for outgoing packets. Verify universe 1 = 239.255.0.1, not 239.255.1.0.

Art-Net node unresponsive to ArtPoll

Cause: Node bound to different IP range (Artistic Licence primary 2.x.x.x) vs your LAN.

Solution: Unicast an OpPoll to the node's known IP, or set the node's IP to match your subnet via its web UI.

DMX output garbled / flickering

Cause: Missing termination, too many fixtures on one segment, or wrong baud.

Solution: Add 120 Ω terminator. Limit segment to 32 fixtures. Confirm 250 kbps 8-N-2.

Enttec USB Pro doesn't enumerate

Cause: No FTDI driver (macOS older), or permissions.

Solution: Install FTDI VCP driver (macOS pre-Catalina only; post-Catalina uses Apple's built-in). On Linux sudo usermod -aG dialout $USER and re-login.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.