Skip to content

DMX512: slot watch with value-over-time plot, 16-bit pairs and glitch flags - #84

Merged
larszu merged 1 commit into
mainfrom
feat/80-dmx-slot-watch
Nov 29, 2026
Merged

larszu merged 1 commit into
mainfrom
feat/80-dmx-slot-watch

Conversation

@larszu

@larszu larszu commented Nov 29, 2026

Copy link
Copy Markdown
Owner

What

  • src/protocol/dmxwatch.ts (pure): dmxWatch(packets, slots, pairs) builds one series per watched slot (max 8, 1..512, duplicates once) from good NULL-START packets only (alternate START codes and bad/truncated packets are skipped, same rule as dmxSlots). A short packet gives null for a slot it does not carry. Pairs read slot n as coarse and n+1 as fine (coarse*256+fine); a pair on 512 falls back to 8-bit. Pasted hex is untimed: x is the packet index.
  • dmxGlitches(series): spike (one packet off, equal neighbours), jitter (all changes ±1, at least two, only two neighbouring levels; reported once, spikes of ±1 suppressed then), pairWrap (fine wrapped by >128 while coarse held, next packet's coarse step completes it; intermediate packet flagged).
  • DmxGrid: slot cells are buttons that toggle the watch (accent ring, max 8). DmxWatch.tsx below the grid: chips with 16-bit toggle and remove, stepped uPlot chart (theme colours, separate 0..65535 scale on the right when 8- and 16-bit are mixed), red flag list.
  • README feature line.

Why

Issue #80: watching a fixture's channels over time and spotting refresh glitches a console or a merger causes.

How verified

  • npm run build, npm run check (15 new checks next to the DMX checks), npx fallow all green.
  • Ran the renderer in an isolated browser context in offline mode (no device): dmx-breaks example (time axis in s) and pasted hex with a spike, ±1 jitter and a split 16-bit value; all three flagged, x axis labelled packet.

Closes #80

🤖 Generated with Claude Code

https://claude.ai/code/session_012p9w1YRZ9ddomxdA5eZWvJ

… flags

Click up to 8 slots in the DMX grid to plot them per NULL-START packet. A slot
can be read as a 16-bit coarse/fine pair (n, n+1). Flags: one-packet spikes,
±1 jitter on an otherwise static level, and 16-bit values whose fine byte
wrapped one packet before the coarse byte. Pasted hex plots against the
packet number, since its times are part numbers.

Closes #80

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012p9w1YRZ9ddomxdA5eZWvJ
@larszu
larszu merged commit 37b74e4 into main Nov 29, 2026
1 check passed
@larszu
larszu deleted the feat/80-dmx-slot-watch branch November 29, 2026 12:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DMX512: slot watch with value-over-time plot, 16-bit coarse/fine pairs and glitch flags

1 participant