Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


[Deprecated} Using the Flirc USB for remote control with mOde 5.4+
#4
(12-15-2019, 02:33 PM)TheOldPresbyope Wrote: @DRONE7

Hi, Bob.

Thinking this project was "done and dusted" I moved on to try some other types of remotes. ATM I've got an OSMC RF remote on my desk I want to poke at.

I'll need to revisit what I did with the FLIRC. IIRC I did a little detective work with Python to see how it was enumerated in the /dev tree and then just assumed it would always be the same. Maybe this assumption falls down with an "original" FLIRC (if that is different from mine) or with other input devices also connected.

What else do you have connected to your RPi?

Regards,
Kent


Done and dusted? I see some promises of more work in my orginal post. Some shiny new thing must have caught my eye back in July and I was off in another direction!

Anyway, our two FLIRCs have different USB ids: For mine it's "20a0:0006" and for yours it's "20a0:0001". 

What do you see in /dev/input/by-id? I just spun up a fresh copy of moOde6.4.0 on an rPi3B+ and got

Code:
pi@moode:~ $ lsusb
Bus 001 Device 004: ID 20a0:0006 Clay Logic
Bus 001 Device 005: ID 0424:7800 Standard Microsystems Corp.
Bus 001 Device 003: ID 0424:2514 Standard Microsystems Corp. USB 2.0 Hub
Bus 001 Device 002: ID 0424:2514 Standard Microsystems Corp. USB 2.0 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

pi@moode:~ $ ls -l /dev/input/by-id
total 0
lrwxrwxrwx 1 root root 9 Nov 26 12:54 usb-flirc.tv_flirc-event-if01 -> ../event1
lrwxrwxrwx 1 root root 9 Nov 26 12:54 usb-flirc.tv_flirc-if01-event-kbd -> ../event0


I'm not sure it will help but you might also post the verbose lsusb output. Here's the beginning of the output for my particular device id


Code:
pi@moode:~ $ sudo lsusb -v -d 20a0:0006

Bus 001 Device 004: ID 20a0:0006 Clay Logic
Device Descriptor:
 bLength                18
 bDescriptorType         1
 bcdUSB               2.00
 bDeviceClass            0
 bDeviceSubClass         0
 bDeviceProtocol         0
 bMaxPacketSize0         8
 idVendor           0x20a0 Clay Logic
 idProduct          0x0006
 bcdDevice            2.00
 iManufacturer           1 flirc.tv
 iProduct                2 flirc
 iSerial                 0
 bNumConfigurations      1
...
 
Regards,
Kent
Reply


Messages In This Thread
RE: Using the Flirc USB for remote control with mOde 5.4+ - by TheOldPresbyope - 12-15-2019, 04:42 PM

Forum Jump: