TIP: Click on subject to list as thread! ANSI
echo: rberrypi
to: MARTIN GREGORIE
from: RICHARD KETTLEWELL
date: 2018-05-18 08:38:00
subject: Re: poll() and USB-serial

Martin Gregorie  writes:
> Has anybody tried using a asynchronous, i.e. poll() based i/o, to
> handle bidirectional data transfers over a USB-serial adapter?

Not personally but one of our products presents as a USB serial adapter
so I have good reason to believe that it works in general.

> I have a setup that works as expected when talking to a program that
> emulates the target via a socket session, but appears to send but not
> receive messages when connected to the target device via a USB-serial
> adapter.

1) strace your program to get some visibility of what’s going on.
2) See if it works with blocking IO (no poll).

--
https://www.greenend.org.uk/rjk/

--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)

SOURCE: echomail via QWK@docsplace.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.