Trying to setup an infrared remote receiver with LIRC, using an FTDI (FT232RL) USB adapter.
Initial test throws a weird error message:
Hm... Seems like the serial number of the FTDI chip is a required parameter. Here's a quote from the infamous "Albert's FTDI IR receiver/transmitter" page:mode2 --driver ftdi --device /dev/ttyUSB0
mode2: Initializing FTDI: /dev/ttyUSB0
mode2: device configuration option must contain an '=': '/dev/ttyUSB0'
[SOLUTION][...] example, for Adam's hardware (Receiver on RI pin)
lircd -Hftdi -dserial=A4001doI,input=7
The 'serial' argument is needed to uniquely address the FTDI chip in use, so please supply at least this argument. The serial number of your FTDI chip can be found by looking at the systemlog (dmesg) while plugging-in the chip.
Found it!
It was the missing SerialNumber.
So, here's what I did:
1) Find the serial number:
Code: Select all
$ dmesg | grep SerialNumber
2) Use it instead of /dev/ttyUSB0:[1042721.047577] usb 2-1.5: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[1063618.105490] usb 2-1.5: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[1083241.298748] usb 2-1.7: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[1083241.298753] usb 2-1.7: SerialNumber: A6028XXX
Code: Select all
$ mode2 -H ftdi -d serial=A6028XXX
mode2: Initializing FTDI: serial=A6028BJE
mode2: opened FTDI device 'serial=A6028XXX' OK
pulse 3
space 1792760
pulse 188
...
Links: