mirror of
https://github.com/torlando-tech/pyxis.git
synced 2026-08-28 05:24:22 +00:00
ArduinoOTA enables wireless firmware uploads (pio run -e tdeck-ota -t upload). UDP log callback via RNS::setLogCallback sends all log lines plus Serial.printf diagnostics to multicast group 239.0.99.99:9999 for untethered monitoring. Includes safety guards: UDP suspended during WiFi transitions, reentrancy protection, and WiFi status check before each send. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
13 lines
468 B
Bash
Executable File
13 lines
468 B
Bash
Executable File
#!/bin/bash
|
|
# Pyxis UDP Log Receiver
|
|
# Captures multicast logs from the T-Deck on 239.0.99.99:9999
|
|
# Requires: socat (apt install socat)
|
|
|
|
LOG_DIR="$HOME/pyxis-logs"
|
|
mkdir -p "$LOG_DIR"
|
|
LOG_FILE="$LOG_DIR/$(date +%Y%m%d-%H%M%S).log"
|
|
echo "Listening on multicast 239.0.99.99:9999, logging to $LOG_FILE"
|
|
socat -u UDP4-RECV:9999,ip-add-membership=239.0.99.99:0.0.0.0,reuseaddr - | while IFS= read -r line; do
|
|
echo "$(date '+%H:%M:%S') $line" | tee -a "$LOG_FILE"
|
|
done
|