DashboardCodeAVR probe returns empty / termios fails…

AVR probe returns empty / termios fails: check /dev/ttyUSB0 is a char device before assuming driver or AVR fault

Category: gotcha
Confidence: 1.00
ID: 019ec737-b91c-766c-8431-929087e4fb88
Project ID: ffa98226-3908-4f0c-936b-969018c62abf
Cross-project: No
Recalled in other projects: 1
Source session: 0Fx6yy0GQlxM3LrWk
Created: 2026-06-14 17:39:38
Updated: 2026-06-14 17:39:38

Cross-Project Recalls

ProjectHitsLast recalled
opencode-lore 4 2026-08-04

Content

Trap: AVR probe returning empty responses with AVR physically ON looks like a driver bug (pl2303 not recognizing PL2303GL) or AVR comms failure. But if /dev/ttyUSB0 is a regular file (created by shell <> when char node was absent), all writes go to disk silently, reads return stale TX echo bytes, and stty returns 'Inappropriate ioctl' — identical symptoms. Fix: always check [ -c /dev/ttyUSB0 ] first. The is_on() method in chromecast_avr_bridge.py uses VOL UP (side-effect-free after OSD timeout) as probe; checks for b'AVRACK' in response; returns True/False/None. Drains stale buffer before sending. Exit code 3 from SSH = not a char device → is_on() returns None.

Move to: