From e60d47846b37fc5ef976cc958ca3c4678347c7db Mon Sep 17 00:00:00 2001 From: Noah Date: Tue, 8 Sep 2026 17:03:13 -0600 Subject: [PATCH] qemu: simulated Modbus devices on the rig's RS485 bus ui-drive.sh --rs485-devices ADDR:SLUG[,...] attaches the VM's RS485 UART to a socket, turns it into a pty with socat and serves the named corpus profiles on it with flare-edge tools/modbus-sim/mbsim.py, so warden-modbus in the guest discovers and identifies devices as it would real controllers. Verified: unit 5 as smartgen-hgm6100n4g appears in the status json as SmartGen HGM6110N, online, 8 ms, and RS485/Devices lists it. Co-Authored-By: Claude Fable 5.1 Claude-Session: https://claude.ai/code/session_01N3G6m9Aw5RyVY4ZowtKzEj --- qemu/tests/ui-drive.sh | 36 ++++++++++++++++++++++++++++++++++-- 1 file changed, 34 insertions(+), 2 deletions(-) diff --git a/qemu/tests/ui-drive.sh b/qemu/tests/ui-drive.sh index f91c7f2..b0b39c7 100755 --- a/qemu/tests/ui-drive.sh +++ b/qemu/tests/ui-drive.sh @@ -14,7 +14,7 @@ # # FAILS CLOSED on missing prerequisites. # -# Usage: ui-drive.sh [--seed FILE] [--refs FILE]