Skip to contentSkip to conversation

How to access DVB-onboard RC? (Technisat)

DISCUSSION JPT 2 participants 2 messages Dec 30, 2014 – Jan 1, 2015 Media (V4L/DVB)

lore
Share & tools
lore

JPT

author
#0 lore raw

Hi,

I currently try to make my Technisat IR-RC work.
But nothing happens when I press a key.
What's wrong?

I checked the RC using a photo camera: at least it emits IR.

triggerhappy config:

DAEMON_OPTS="--triggers /etc/triggerhappy/triggers.d/ /dev/input/event0 /dev/input/event1"

KEY_1           1       logger thd recieved KEY_1 from Technisat RC
KEY_2           1       logger thd recieved KEY_2 from Technisat RC
KEY_3           1       logger thd recieved KEY_3 from Technisat RC

...
(keys from rc-technisat-usb2.c see syslog below)

Triggerhappy works fine with events from event0
but not from event1

$ inputeventdaemon -l
/dev/input/event0:
  name     : gpio-keys
  phys     : gpio-keys/input0
  features : syn keys

/dev/input/event1:
name : IR-receiver inside an USB DVB receiver
phys : usb-0000:01:00.0-1/ir0
features : syn keys reserved repeat

/dev/input/event2:
name : MCE IR Keyboard/Mouse (technisat-usb2)
phys : /input0
features : syn keys relative reserved repeat

$ lsusb -t
...
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 480M
    |__ Port 1: Dev 3, If 0, Class=vend., Driver=dvb_usb_technisat_usb2,
480M

syslog:
dvb-usb: found a 'Technisat SkyStar USB HD (DVB-S/S2)' in warm state.
dvb-usb: will pass the complete MPEG2 transport stream to the software demuxer.
DVB: registering new adapter (Technisat SkyStar USB HD (DVB-S/S2))
dvb-usb: MAC address: xxxxx
stv6110x_attach: Attaching STV6110x
technisat-usb2: i2c-error: 60 = 7
usb 1-1: DVB: registering adapter 0 frontend 0 (Technisat SkyStar USB HD (DVB-S/S2))...
Registered IR keymap rc-technisat-usb2
input: IR-receiver inside an USB DVB receiver as /devices/soc/soc:pcie-controller/pci0000:00/0000:00:01.0/0000:01:00.0/usb1/1-1/rc/rc0/input1
evbug: Connected device: input1 (IR-receiver inside an USB DVB receiver
at usb-0000:01:00.0-1/ir0)
rc0: IR-receiver inside an USB DVB receiver as /devices/soc/soc:pcie-controller/pci0000:00/0000:00:01.0/0000:01:00.0/usb1/1-1/rc/rc0 IR NEC protocol handler initialized
IR RC5(x/sz) protocol handler initialized
IR RC6 protocol handler initialized
IR JVC protocol handler initialized
IR Sony protocol handler initialized
IR SANYO protocol handler initialized
IR Sharp protocol handler initialized
dvb-usb: schedule remote query interval to 100 msecs.

do I need those protocol handlers?

do I need lirc?

thanks,

Jan

#1 lore raw

Am 30.12.2014 um 13:59 schrieb JPT:

Quoted 3 lines

I currently try to make my Technisat IR-RC work.
But nothing happens when I press a key.
What's wrong?

It depends on what you expect to happen when you press a key on the remote control. The kernel's and driver's job is primarily to deliver the events to the userspace where they can be handled by a tool or a daemon.

Quoted 1 line

triggerhappy config:

Never heared of a software with such a name.

Quoted 7 lines

Registered IR keymap rc-technisat-usb2
input: IR-receiver inside an USB DVB receiver as /devices/soc/soc:pcie-controller/pci0000:00/0000:00:01.0/0000:01:00.0/usb1/1-1/rc/rc0/input1
evbug: Connected device: input1 (IR-receiver inside an USB DVB receiver
at usb-0000:01:00.0-1/ir0)
rc0: IR-receiver inside an USB DVB receiver as /devices/soc/soc:pcie-controller/pci0000:00/0000:00:01.0/0000:01:00.0/usb1/1-1/rc/rc0

As you can see, the input event devices are created and you should find the device nodes somewhere at /dev/input/... You can try to use cat on them and see if something happens when you press a button on the remote control.

Quoted 1 line

do I need lirc?

Again, depends on what you want to happen on a key-press.

Jannis