pepijntje02 wrote:Hello,
thanks for your response. I tried to configure the FLIRC on my laptop with the FLIRC software. I tried to configure the buttons and I tried to configre some buttons as key-board keys. This did not work.
I did not install something for FLIRC or something else on the raspberry pi. I think that there is something missing. The part about the device tree I do not understand, sorry.
But I have installed lirc (not configured), but as you say that will not help to get the FLIRC keys in my python script?
I tried to install kodi to see if the remote is working there, but I am not able to run kodi from the RPI over ssh/vnc. I only have a laptop so there is no possibility to connect a screen (I think that that is the problem with kodi from raspbian).
I have tried the same program on my laptop with the FLIRC USB and then it works fine. So I think the raspberry pi do not recognize the USB, but I do not know what I have to install or configure on the PI itself to recognize the USB as input device?
Hi,
I just performed a simple experiment with my FLIRC:
1. On the PC with the FLIRC program. Full keyboard config, I recorded a key on my IR remote and assigned it to keyboard 'a'
2. Installed the FLIRC on the Pi (a recent Jessie) and checked if the FLIRC was detected:
$ lsusb
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.
Bus 001 Device 004: ID 20a0:0001 Clay Logic
The last one is the FLIRC device
$ usb-devices
..
T: Bus=01 Lev=02 Prnt=02 Port=03 Cnt=02 Dev#= 4 Spd=1.5 MxCh= 0
D: Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=20a0 ProdID=0001 Rev=01.00
S: Manufacturer=flirc.tv
S: Product=flirc
C: #Ifs= 2 Cfg#= 1 Atr=a0 MxPwr=100mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=03(HID ) Sub=00 Prot=01 Driver=usbhid
I: If#= 1 Alt= 0 #EPs= 1 Cls=ff(vend.) Sub=ff Prot=ff Driver=(none)
So FLIRC is detected as USB HID device. Pressing the IR key delivers a 'a' on the screen. FLIRC works fine on the Pi!
Note that if you work via remote access to your Pi it will not see FLIRC (or any local keyboard/mouse!) as input device, only your remote keyboard.
Only on the console it will work as keyboard device.
FLIRC is this device:
/dev/input/by-id/usb-flirc.tv_flirc-event-kbd