From: Jarod W. <ja...@wi...> - 2011-05-29 06:30:17
|
On May 28, 2011, at 11:34 PM, Patrik Dufresne wrote: > Hi all, > > 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 ttyUSB0 > > 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. ... > Here my questions: > • Is there any way to make sure lirc receive data from the ftdi device /dev/ttyUSB0 ? > • 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. You're using the wrong driver for this particular variant. You want mplay2. http://lirc.git.sourceforge.net/git/gitweb.cgi?p=lirc/lirc;a=commitdiff;h=06bbae8e74ab39672b15f7ca72b87685eaf7b2d5 -- Jarod Wilson ja...@wi... |