Commit Graph

11 Commits

Author SHA1 Message Date
Ian Gulliver
e48a7de384 Fix ArtPollReply to advertise both input and output universes 2026-01-27 15:54:32 -08:00
Ian Gulliver
ac59d7975c Remove pcap-based packet sniffing receivers 2026-01-27 14:33:21 -08:00
Ian Gulliver
020d6b59e7 Log universes on discovery and when updated
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-24 12:29:55 -08:00
Ian Gulliver
2cde5b255b Fix multi-port device discovery by accumulating universes
Multi-port ArtNet devices (like PD8000) send separate ArtPollReply
packets for each group of 4 ports. Previously we overwrote universes
on each reply; now we accumulate them.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-24 12:28:09 -08:00
Ian Gulliver
b372815892 Add debug logging for universe lookup, fix node port
- Log when GetNodesForUniverse finds no matching nodes
- Use pkt.Port (from ArtPollReply) instead of UDP source port

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-24 12:25:02 -08:00
Ian Gulliver
dee33302c2 Add pcap-based ArtNet receiver to avoid port conflicts
Similar to sACN pcap receiver, allows receiving ArtNet packets without
binding to port 6454. Use --artnet-pcap=any to enable.

The BPF filter "udp port 6454" captures packets where src OR dst is
6454, so we also catch ArtPollReply responses sent from port 6454.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-24 12:18:53 -08:00
Ian Gulliver
0ec8059aad Default --artnet-broadcast to auto, clean up log prefixes
- Make --artnet-broadcast default to "auto" so broadcast works out of box
- Add consistent [category] prefixes to all log messages
- Change discovery logs from [discovery] to [artnet] since it's protocol-specific

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-24 12:08:32 -08:00
Ian Gulliver
e823d9838d Refactor config format and improve consistency
Config changes:
- Use protocol prefixes in addresses: "sacn:64:361-450" -> "artnet:0.0.0:1"
- Remove separate from_proto/proto fields
- Targets now include protocol: universe = "artnet:0.0.0"

CLI changes:
- Rename --listen to --artnet-listen (empty to disable)
- Fix --debug help text

Logging changes:
- Use [<-proto] and [->proto] prefixes for direction
- Consistent lowercase key=value format
- Refactor duplicate send code into sendOutputs()

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-22 18:22:09 -08:00
Ian Gulliver
86403f1ff8 Replace --broadcast flag with per-universe target config
- Remove --broadcast CLI flag
- Add [[target]] config section for per-universe destination addresses
- Each ArtNet output universe can have its own target IP (broadcast or unicast)
- ArtPoll discovery broadcasts to all unique target addresses
- Falls back to configured target when no nodes discovered for universe

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-22 18:06:33 -08:00
Ian Gulliver
cdb769d059 Change -port to -listen with flexible address format
Supports host:port, host, or :port for binding to specific
interfaces. Useful for running alongside other ArtNet software.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-22 10:06:13 -08:00
Ian Gulliver
a709e5498b Initial implementation of ArtNet remapping proxy
Channel-level DMX remapping between ArtNet universes with:
- TOML configuration with multiple address formats (net.subnet.universe, plain number)
- ArtPoll discovery for output nodes
- Configurable channel ranges for fixture spillover handling

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-22 09:27:20 -08:00