J
Jeroen Belleman
Hello,
I'm trying to use an FTDI UM245R USB-FIFO module to read
ADC data into a Linux PC. My Linux is RedHat, kernel version
2.6.9 and the ftdi_sio driver is installed. When I connect
my gadget, a ttyUSB0 device appears in /dev.
I pump data into the FIFO at a rate of one byte every 192us
whenever there's room for it, as signalled by the /TXE flag.
If I don't read the data, the FIFO soon fills up. So far, so
good.
But when I try to read from /dev/ttyUSB0, no data comes out.
Reading attempts *do* consume data from the UM245R internal
FIFO, as is evident from the fact that the /TXE flag goes
down again, but I get no bytes, nothing.
I'm probably doing something wrong, but what? Can anyone here
give me a hint?
Thanks,
Jeroen Belleman
P.S.
FTDI UM245R USB-FIFO module data sheet:
<http://www.ftdichip.com/Documents/DataSheets/Modules/DS_UM245R.pdf>
I'm trying to use an FTDI UM245R USB-FIFO module to read
ADC data into a Linux PC. My Linux is RedHat, kernel version
2.6.9 and the ftdi_sio driver is installed. When I connect
my gadget, a ttyUSB0 device appears in /dev.
I pump data into the FIFO at a rate of one byte every 192us
whenever there's room for it, as signalled by the /TXE flag.
If I don't read the data, the FIFO soon fills up. So far, so
good.
But when I try to read from /dev/ttyUSB0, no data comes out.
Reading attempts *do* consume data from the UM245R internal
FIFO, as is evident from the fact that the /TXE flag goes
down again, but I get no bytes, nothing.
I'm probably doing something wrong, but what? Can anyone here
give me a hint?
Thanks,
Jeroen Belleman
P.S.
FTDI UM245R USB-FIFO module data sheet:
<http://www.ftdichip.com/Documents/DataSheets/Modules/DS_UM245R.pdf>