libftdi Archives

Subject: Re: Getting characters in the buffer

From: Uwe Bonnes <bon@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
To: libftdi@xxxxxxxxxxxxxxxxxxxxxxx
Date: Mon, 14 Nov 2011 12:25:55 +0100
>>>>> "Akos" == Akos Vandra <axos88@xxxxxxxxx> writes:

    Akos> That's strange. Then how is the ioctl(fd, FIONREAD, &bytes);
    Akos> implemented in the kernel driver? That seems to be working fine,
    Akos> and it reads the number of bytes available...

To my knowledge as described below:
- Always pull what's available 
- Report what has been pulled.
Look at <kernel>/drivers/usb/serial/ftdi_sio.h. There is no USB request to
find out what's in the FTDI buffer. 


    >> libftdi - see http://www.intra2net.com/en/developer/libftdi for
    >> details.  To unsubscribe send a mail to
    >> libftdi+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx
    >> 
Please,
don't fullqoute, at least remove repeated footers and such. Otherwise the
archives get harder to read.

Bye
-- 
Uwe Bonnes                bon@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Institut fuer Kernphysik  Schlossgartenstrasse 9  64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------

--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx   

Current Thread