SShortSingh.
Back to feed

RS485 locker controller drops frame bytes during burst unlocks on Debian Linux

0
·8 views

A developer running an edge controller on a Raspberry Pi CM4 with Debian 12 reports that its RS485 link misreads status replies during busy periods. When several unlock requests arrive back-to-back, or polling overlaps an unlock, serial reads return partial frames or time out. The software then wrongly logs that a door failed to open, even though the solenoid physically released. Attempts so far include a threading lock around bus access, a lower USB latency timer, and a longer read timeout, none of which fully fixed the problem. The author is now asking whether clearing the input buffer before writing is discarding valid replies, or whether a byte-by-byte frame parser would be the better fix.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

How to Check a TRON Address's Energy and Bandwidth on TronScan

A guide explains how to look up energy and bandwidth for a TRON address on TronScan by entering the address in the search bar and reading the Available figure in the overview. It notes that as of October 19, 2026, a standard USDT transfer needs 64,285 energy and 345 bandwidth, while a transfer to a recipient holding no USDT needs 130,285 energy. The article walks through how to interpret the rows, including staked versus delegated energy and the daily free bandwidth allowance. It also shows how partial coverage leads to TRX being burned to cover shortfalls, with example addresses and transactions from that date. The author, who works for a TRON energy rental service, disclosed the affiliation at the start of the piece.

0
ProgrammingDEV Community ·

Python Guide Pulls Federal Final Rules Taking Effect in Next 30 Days into CSV

A new how-to guide explains how to list U.S. federal final rules that take effect within the next 30 days, grouped by Code of Federal Regulations title. It notes that a rule changes the CFR on its effective date rather than its publication date, which can fall weeks or years apart. The approach uses the public Federal Register API, which requires no key or sign-up, and a short Python script. The script outputs a CSV with one row per CFR title, and it checks the site's robots.txt before fetching. The guide was tested against the live API in November 2026.

0
ProgrammingDEV Community ·

Free Claude skill reviews Shopify theme Liquid files for accessibility issues

A developer released a free Claude skill, plus a copy-paste prompt for other AI chats, that reviews a single Shopify theme Liquid file for accessibility problems visible in its source code. For each issue it finds, the tool cites the line number, the relevant WCAG 2.1 criterion and level, and suggests a fix. In an automated check of 108 US Shopify store homepages from 5 to 11 November, 64% had links a screen reader cannot read out, and the typical store failed three rules. The tool caught all eight planted failures in its test file and flagged one image without alt text as needing review. It only reads one file, so it cannot catch every issue, and it does not cover WCAG 2.2-only criteria or confirm legal compliance.

0
ProgrammingDEV Community ·

Best Coolify alternatives for running a few apps on one VPS in 2026

Developers running three to fifteen apps on a single VPS in 2026 have several Coolify alternatives to consider. Dokploy is the closest web-panel swap, offering a free self-hosted option, GitHub preview deployments, and a $4.50 monthly hosted tier. Tugport is a lightweight single-binary Rust tool that supports scoped AI-agent keys and one-command migration from Coolify or Easypanel. Kamal and Dokku suit users who prefer to skip a dashboard entirely, while Easypanel offers a polished UI with licensing costs beyond three projects. The article's author discloses that they build Tugport, and notes that all details were verified against official sources as of November 2026.