Dangerous Prototypes

Dangerous Prototypes => USB Infrared Toy => Topic started by: MisterE on September 06, 2016, 10:33:55 pm

Title: Problems with a HID divice
Post by: MisterE on September 06, 2016, 10:33:55 pm
In my other thread i have problems with the irtoy. I also found a Zotac IR Receiver.
It seems this one likes to behave like a keyboard.
I found two sites with a udev rule. Tried both. It does not seem to work for me.

Quote
root@raspberrypi:/etc/udev/rules.d# cat 10-local.rules
# http://ben.periton.co.uk/2012/06/config ... e-control/ (http://ben.periton.co.uk/2012/06/configuring-the-zotac-zbox-remote-control/)
#SUBSYSTEM=="usb" , ATTRS{idVendor}=="0471", ATTRS{idProduct}=="20cc", SYMLINK+="remote", ACTION=="add", RUN+="/sbin/initctl --quiet emit --no-wait ir-ready"

# https://sourceforge.net/p/lirc/git/ci/d ... guide.html (https://sourceforge.net/p/lirc/git/ci/d3d4f7a8b033c3e4ce354bf566874dd68bae3233/tree/doc/html-source/configuration-guide.html)
SUBSYSTEM=="usb", ATTRS{idVendor}=="0471", ATTRS{idProduct}=="20cc",
MODE="0660", GROUP="lirc",
RUN="/bin/sh -c 'echo -n $kernel:1.0 > /sys/bus/usb/drivers/usbhid/unbind'"


After a reboot i see
Quote
[  54.859074] input: PHILIPS MCE USB IR Receiver- Spinel plus as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.5/1-1.5:1.0/0003:0471:20CC.0001/input/input0
[  54.912086] hid-generic 0003:0471:20CC.0001: input,hiddev0,hidraw0: USB HID v1.00 Keyboard [PHILIPS MCE USB IR Receiver- Spinel plus] on usb-3f980000.usb-1.5/input0

I Assume this whole "hid-generic" line should dissapear? What will be the device name?


Another solution would be a working alternative. Anyone ideas? I have a couple (simple) requirements:
* small, casing, should be placed under the TV
* must have a usb cord
* receiver is enough
* if it works with the ancient lirc versions is a plus
* easy to order in Holland

( ! ) Fatal error: Uncaught exception 'Elk_Exception' with message 'Please try again. If you come back to this error screen, report the error to an administrator.' in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
( ! ) Elk_Exception: Please try again. If you come back to this error screen, report the error to an administrator. in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
Call Stack
#TimeMemoryFunctionLocation
10.00902051320session_write_close ( )...(null):0
20.00932182912ElkArte\sources\subs\SessionHandler\DatabaseHandler->write( )...(null):0
30.00932183688Database_MySQL->query( ).../DatabaseHandler.php:119
40.05292322424Database_MySQL->error( ).../Db-mysql.class.php:273