I need some help here to understand how exactly lirc work and how it's
interact with FTDI device.
I have a FTDI FT232RL according to lsusb.
Bus 003 Device 006: ID 0403:6001 Future Technology Devices International,
Ltd FT232 USB-Serial (UART) IC
According to dmesg, the device is bind to /dev/ttyUSB0.
[ 207.813468] usb 3-3: Detected FT232RL
[ 207.813478] usb 3-3: Number of endpoints 2
[ 207.813485] usb 3-3: Endpoint 1 MaxPacketSize 64
[ 207.813492] usb 3-3: Endpoint 2 MaxPacketSize 64
[ 207.813498] usb 3-3: Setting MaxPacketSize 64
[ 207.814818] usb 3-3: FTDI USB Serial Device converter now attached to
I understand the device is handle by ftdi_sio kernel module and so the
device /dev/ttyUSB0 is a character device.
According to this arricle http://www.huitsing.nl/irftdi/, lirc as a user
driver for it : ftdi.
I compile lirc v0.9.0 with ftdi driver.
To test it, I ran sudo ./daemons/irrecord -H ftdi ~/test. Then I'm asked to
press some buttons, and I receive the following error :
Press RETURN now to start recording.
./daemons/irrecord: no data for 10 secs, aborting
./daemons/irrecord: gap not found, can't continue
Here my questions:
- Is there any way to make sure lirc receive data from the ftdi device
- Reading the article and the hw_ftdi.c, the driver should be used with
ftdi mode2. Whats mode2 stand for ?
Notice : The FT232RL come embedded in a Moneual MonCaso 312.
Kernel version 2.6.32-28-generic
Using libftdi1 v0.18