From: VDR U. <use...@gm...> - 2015-05-27 05:09:27
|
Hi. I currently have a homebrew serial IR working with lircd 0.9.3-devel but I now want to get it working with a usb FTDI TTL232R IR. The config.log shows that ftdi support should be compiled: #define HAVE_LIBUSB 1 #define HAVE_FTDI 1 After compiling I do have ftdi.so and ftdi.la. Next, I don't know if I'm supposed to load the ftdi_sio module but when I do it seems like something good happens: [ 1809.269780] usbcore: registered new interface driver ftdi_sio [ 1809.269863] usbserial: USB Serial support registered for FTDI USB Serial Device [ 1809.270774] ftdi_sio 7-1:1.0: FTDI USB Serial Device converter detected [ 1809.270937] usb 7-1: Detected FT232RL [ 1809.275083] usb 7-1: FTDI USB Serial Device converter now attached to ttyUSB0 Then I try to start lircd with "lircd --logfile=/logs/lircd.log" and check the logfile: lircd: Info: Initial device: /dev/ttyUSB0 lircd: Info: Initial device: /dev/ttyUSB0 lircd: Info: Using remote: 20.1_IR. lircd: Notice: lircd(ftdi) ready, using /var/run/lirc/lircd lircd: Notice: accepted new client on /var/run/lirc/lircd lircd: Info: Initializing FTDI: /dev/ttyUSB0 lircd: Error: device configuration option must contain an '=': '/dev/ttyUSB0' lircd: Warning: Failed to initialize hardware I have no clue how to fix that error. Apparently the `device configuration` needs an equal sign somewhere, but where? I couldn't find an example anywhere that applies to lirc-0.9.2 or higher. My lirc_options.conf is: [lircd] nodaemon = False driver = ftdi device = /dev/ttyUSB0 output = /var/run/lirc/lircd pidfile = /var/run/lirc/lircd.pid plugindir = /etc/lirc permission = 666 allow-simulate = No repeat-max = 600 My goal is getting the FTDI ir receiver to work with lirc, so I can then use my remote control with VDR. So my questions are: 1. Am I supposed to load ftdi_sio when using FTDI with lirc? 2. Do I have to load lirc_dev? 3. What's the correct settings for lirc_options.conf? Thanks for any and all help! -Derek |