Skip to content

UART parity and stop bits (SDK + MCP), latin-1 UART sessions - #95

Merged
wardviaene merged 4 commits into
mainfrom
uart-parity
Nov 17, 2026
Merged

wardviaene merged 4 commits into
mainfrom
uart-parity

Conversation

@wardviaene

Copy link
Copy Markdown
Member

Tester feedback item 5 (5 V serial and Modbus RTU).

  • open_uart, capture_uart, power_cycle_and_capture take parity (none/even/odd) and stop_bits (1/2). Anything but 8N1 needs the pod's new uart_frame capability (firmware 3.10.8+, gateware v56) and raises UnsupportedFeatureError ("UART parity and stop bits need firmware 3.10.8+ ...") before anything is sent. The TCP transport adds the fields only for a non-8N1 frame; the USB console transport stays 8N1 and refuses others.
  • open_uart(encoding="latin-1"): binary-safe sessions (a Modbus frame with bytes above 0x7F came back mangled by the UTF-8 decoder).
  • MCP: uart_open, capture_uart, power_cycle_and_capture take parity and stop_bits; uart_open reports them. Old SDKs keep working for 8N1.
  • README, CHANGELOGs, API and tool surface snapshots updated.

UART_FRAME_FIRMWARE = "3.10.8" assumes the firmware PR ships in the next patch release; adjust at release time if not.

Goes with embeddedci-com/benchpod-firmware (uart-parity), embeddedci-com/benchpod-ui (uart-parity) and the server's web terminal + docs page.

🤖 Generated with Claude Code

wardviaene and others added 4 commits November 16, 2026 20:29
open_uart, capture_uart and power_cycle_and_capture take parity
(none/even/odd) and stop_bits (1/2); the MCP's uart_open, capture_uart
and power_cycle_and_capture too. Anything but 8N1 needs the pod's
uart_frame capability (firmware 3.10.8+, gateware v56) and is refused
before anything is sent on older firmware. The TCP transport sends the
fields only for a non-8N1 frame; the USB console stays 8N1.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A UART session decoded everything as UTF-8 with replacement, so a
Modbus RTU frame with bytes above 0x7F came back mangled. encoding
latin-1 maps each byte to one character and back.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Parity and stop bits are described as frame settings, not Modbus
support; where Modbus RTU comes up, the docs say it needs an external
RS-485 transceiver (and 5 V serial a level shifter).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@wardviaene
wardviaene merged commit 0caf775 into main Nov 17, 2026
20 checks passed
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.

1 participant