Repository navigation
DMX512: slot watch with value-over-time plot, 16-bit pairs and glitch flags - #84
Merged
Merged
Conversation
… 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
This was referenced Nov 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 asdmxSlots). A short packet givesnullfor 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 isuntimed: 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.tsxbelow 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.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 fallowall green.packet.Closes #80
🤖 Generated with Claude Code
https://claude.ai/code/session_012p9w1YRZ9ddomxdA5eZWvJ