Temat: Pilot PC-Remote (HID 073a:2230)

Cześć i z góry dziękuje za poświęcony mi czas ;-).
Próbowałem poradzić sobie z pilotem na podstawie tego linku (dokładnie ten sam model pilota), gdyż howto Cezarego oparte jest o kmody, które skompilował dla AA (kmod-ir-ati-remote,kmod-ir-mceusb).
Lecz schody zaczynają się przy uruchomieniu 'cat /dev/input/event0 | hexdump' lub '/cat /dev/input/event1 | hexdump' - kompletna cisza.
Natomiast 'irrecord -d /dev/input/event0 /etc/lircd.conf --disable-namespace' (próbowałem też z event1) wyrzuca:

irrecord -  application for recording IR-codes for usage with lirc

Copyright (C) 1998,1999 Christoph Bartelmus(lirc@bartelmus.de)

irrecord: could not get hardware features
irrecord: this device driver does not support the LIRC ioctl interface
irrecord: did you mean to use the devinput driver instead of the default driver?
irrecord: could not init hardware (lircd running ? --> close it, check permissions)

...a czym dalej - tym gorzej. Dlatego też postanowiłem zapytać tu - jak to ustrojstwo zmusić do współpracy?
Na Ubuntu pilot śmiga (na windowsie zresztą też - to typowo komputerowy pilot).

wersja openwrt

 | OpenWrt Barrier Breaker (r44952)                             |
 | Build time: 2015-03-28 07:45 CET                             |
 |                                                              |
 | Cezary Jackiewicz (obsy), http://eko.one.pl 

wycinek cat /proc/bus/input/devices

I: Bus=0003 Vendor=073a Product=2230 Version=0110
N: Name="HID 073a:2230"
P: Phys=usb-ehci-platform-1.2.4/input0
S: Sysfs=/devices/platform/ehci-platform/usb1/1-1/1-1.2/1-1.2.4/1-1.2.4:1.0/input/input3
U: Uniq=
H: Handlers=event1
B: PROP=0
B: EV=10001f
B: KEY=4c37fff 72ff32d bf544456 0 ff ffffffff 30c10 b17c007 ffa67bfa d951dfff febeffdf ffefffff ffffffff fffffffe
B: REL=343
B: ABS=1 30000
B: MSC=10

wycinek dmesg

[ 2702.940000] usb 1-1.2.4: new low-speed USB device number 10 using ehci-platform
[ 2703.170000] usb 1-1.2.4: config 1 interface 0 altsetting 0 has 2 endpoint descriptors, different from the interface descriptor's value: 1
[ 2703.540000] input: HID 073a:2230 as /devices/platform/ehci-platform/usb1/1-1/1-1.2/1-1.2.4/1-1.2.4:1.0/input/input3
[ 2703.550000] hid-generic 0003:073A:2230.0004: input,hidraw1: USB HID v1.10 Keyboard [HID 073a:2230] on usb-ehci-platform-1.2.4/input0

ls /dev/input

event0  event1

2

Odp: Pilot PC-Remote (HID 073a:2230)

Zapomnij o lirc, zrób tak: http://eko.one.pl/?p=openwrt-rc

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

3 (edytowany przez allucard018 2015-12-08 15:49:07)

Odp: Pilot PC-Remote (HID 073a:2230)

Współpracuje pilot z triggerhappy z samym kmod-usb-hid 0.o. Suuper ;-). Myślałem, że bez tych kmodów z początku poradnika nic nie ruszy ;-D. Tym bardziej, że polecenie 'ir-keytable' zwracało mi, że nie istnieje folder '/sys/class/rc/'.

Tymczasem logread:
Tue Dec  8 15:34:16 2015 user.notice root: nacisnieto left
Tue Dec  8 15:34:22 2015 user.notice root: nacisnieto right

Mapowanie (/etc/triggerhappy/triggers.d/example.conf):
KEY_LEFT 1 logger "nacisnieto left"
KEY_RIGHT 1 logger "nacisnieto right"

Działa. Dzięki ;-).

4

Odp: Pilot PC-Remote (HID 073a:2230)

Proszę o pomoc.
Przy testowanu pilota doszedłem do momentu:

ir-keytable -t -d /dev/input/event0
Testing events. Please, press CTRL-C to abort.

Nie wyświetlają się żadne skankody.

ir-keytable
Found /sys/class/rc/rc0/ (/dev/input/event0) with:
    Driver dvb_usb_rtl28xxu, table rc-empty
    Supported protocols: NEC RC-5 RC-6 JVC SONY SANYO LIRC RC-5-SZ SHARP XMP other
    Enabled protocols: NEC
    Name: Realtek RTL2832U reference desig
    bus: 3, vendor/product: 0bda:2838, version: 0x0100
    Repeat delay = 500 ms, repeat period = 125 ms

Pilot i tuner sprawdzone pod dużym linuxem.

5

Odp: Pilot PC-Remote (HID 073a:2230)

table rc-empty -> jakiej mapy rc-* nie powinieneś załadować? Sprawdź na dużym linuksie jakie moduły masz załadowane.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

6

Odp: Pilot PC-Remote (HID 073a:2230)

Cezary
Takie moduły się ładują po podłączeniu tunera do PC:

ir_jvc_decoder         12655  0
ir_mce_kbd_decoder     13030  0
ir_lirc_codec          12869  0
ir_sony_decoder        12625  0
lirc_dev               19324  1 ir_lirc_codec
ir_sanyo_decoder       12727  0
ir_rc6_decoder         12754  0
ir_rc5_decoder         12622  0
ir_nec_decoder         12787  0
r820t                  22152  1
rtl2832                18688  1
dvb_usb_rtl28xxu       29069  0
rtl2830                18356  1 dvb_usb_rtl28xxu
dvb_usb_v2             30586  1 dvb_usb_rtl28xxu
dvb_core              101206  3 rtl2830,rtl2832,dvb_usb_v2
rc_core                26724  12 lirc_dev,ir_lirc_codec,dvb_usb_rtl28xxu,ir_rc5_decoder,ir_nec_decoder,ir_sony_decoder,ir_mce_kbd_decoder,ir_jvc_decoder,dvb_usb_v2,ir_rc6_decoder,ir_sanyo_decoder

a takie ładują się po uruchomieniu tunera w routerze:

dvb_core               68902  3 rtl2832
dvb_usb_rtl28xxu       11952 10
dvb_usb_v2             11655  1 dvb_usb_rtl28xxu
evdev                   8416  2
i2c_mux                 1545  1 rtl2832
input_core             24510  8 rc_core
ipv6                  269283 44 nf_conntrack_ipv6
r820t                  14238  1
rc_core                14256  3 dvb_usb_rtl28xxu
rtl2830                 5454  1 dvb_usb_rtl28xxu
rtl2832                 7464  2 dvb_usb_rtl28xxu
usbcore               117912 28 dvb_usb_rtl28xxu

Czy muszę doinstalować lirc do openwrt czy może ir_nec_decoder?

7

Odp: Pilot PC-Remote (HID 073a:2230)

Masz zainstalować irc_dev,ir_lirc_codec,ir_rc5_decoder,ir_nec_decoder,ir_sony_decoder,ir_mce_kbd_decoder,ir_jvc_decoder itd. To wszystko jest w modułach w tym samym miejscu...

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.