Blocking read() from a USB->Serial adapter.
- From: Charles Sullivan <cwsulliv@xxxxxxxxxxxx>
- Date: Fri, 24 Nov 2006 23:51:31 GMT
A blocking read() of more than one character from an actual RS232 serial
port returns when the number of characters specified has been read.
However I've found that a blocking read() of more than one character from
a USB->Serial adapter reads only the first character before returning and
I have to loop to read all the characters.
I've tried this with several different USB->Serial adapters with several
different Linux kernel versions, 2.4 and 2.6, all with the same result.
Is this a Linux bug, or is there something extra I need to do in setting
up the port in my code?
Thanks for your help.
Regards,
Charles Sullivan
.
- Follow-Ups:
- Re: Blocking read() from a USB->Serial adapter - THANKS!!!
- From: Charles Sullivan
- Re: Blocking read() from a USB->Serial adapter.
- From: Floyd L. Davidson
- Re: Blocking read() from a USB->Serial adapter.
- From: Bjoern Schliessmann
- Re: Blocking read() from a USB->Serial adapter - THANKS!!!
- Prev by Date: Re: C++: conditional static data member possible?
- Next by Date: Re: Blocking read() from a USB->Serial adapter.
- Previous by thread: Signals and threads
- Next by thread: Re: Blocking read() from a USB->Serial adapter.
- Index(es):
Relevant Pages
|