Skip to content

RS-485 DE driven by the pod: open_uart(de=..., de_active_low=...) - #108

Merged
wardviaene merged 2 commits into
mainfrom
uart-de
Nov 18, 2026
Merged

wardviaene merged 2 commits into
mainfrom
uart-de

Conversation

@wardviaene

Copy link
Copy Markdown
Member

The host side of embeddedci-com/benchpod-firmware#163: the pod drives an RS-485 transceiver's DE itself.

SDK

open_uart and capture_uart take de= (an LA channel or wiring name, wired to the transceiver's DE + /RE) and de_active_low=:

with bp.open_uart(rx=5, tx=4, de=9, baud=19200, parity="even", encoding="latin-1") as uart:
    uart.write(request)        # no DE handling on the host
  • The feature is uart_de (gateware v58). The features table is synced to revision 2.
  • Pods without the feature are refused with UnsupportedFeatureError before anything is sent, and so is the USB console.
  • de on rx or tx raises ValueError.
  • The TCP transport sends de / de_active_low only when set.

MCP

uart_open and capture_uart take de and de_active_low.

Tests

  • pytest packages/embeddedci: 987 passed. New test_uart_de.py uses a pod with features revision 2 and the running gateware: the gates (revision 1, gateware 57), the pin rule and the wire format. API snapshot refreshed (additive).
  • pytest packages/embeddedci-mcp: 208 passed (new test_uart_de). Tool surface refreshed.

READMEs and CHANGELOGs (3.0.2) are updated. Tested on hardware with the firmware PR, against the process-node RS-485 mock (embeddedci-com/examples#13): pod-driven DE at 9600 8N2, 19200 8E1 and 115200 8N1, with a device answering within 3.5 characters, gets every reply.

Merge after #163.

🤖 Generated with Claude Code

wardviaene and others added 2 commits November 18, 2026 10:49
…ve_low=)

open_uart / capture_uart take de (an LA channel or wiring name, on the
transceiver's DE + /RE) and de_active_low; the TCP transport sends them only
when set, the USB console refuses them. Feature uart_de (gateware v58),
features table synced to revision 2. MCP uart_open / capture_uart take de and
de_active_low. Tests for the gates (old revision, old gateware), the pin rule
and the wire format.

Refs embeddedci-com/benchpod-firmware#163

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e tool says to upgrade)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@wardviaene
wardviaene merged commit e306d58 into main Nov 18, 2026
20 checks passed
@wardviaene wardviaene mentioned this pull request Nov 18, 2026
@wardviaene
wardviaene deleted the uart-de branch November 20, 2026 02:47
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