You are not logged in.

#1 2014-08-15 16:08:43

yet_another_martin
Member
Registered: 2014-08-13
Posts: 10

LIRC-0.9.1: Remote not working, scancodes, config issues

Hi,

I'm using arch (kernel 3.16.0-2-ARCH #1 SMP PREEMPT x86_64 GNU/Linux), a TechnoTrend USB IR Receiver and my custom remote (not covered by existing configs). I installed lirc and lirc-utils via testing repo (lirc-0.9.1). My problem is that I can access my device, but irw gives me no output at all.

At first some outputs:
ir-keytable:

Found /sys/class/rc/rc0/ (/dev/input/event17) with:
	Driver ttusbir, table rc-tt-1500
	Supported protocols: NEC RC-5 RC-6 JVC SONY SANYO LIRC other 
	Enabled protocols: RC-5 
	Name: TechnoTrend USB IR Receiver
	bus: 3, vendor/product: 0b48:2003, version: 0x0101
	Repeat delay = 500 ms, repeat period = 125 ms

output of "ir-keytable -t" for numbers 1-6 on my remote:

Testing events. Please, press CTRL-C to abort.
1408117586.815011: event type EV_MSC(0x04): scancode = 0x01
1408117586.815011: event type EV_SYN(0x00).
1408117586.934967: event type EV_MSC(0x04): scancode = 0x01
1408117586.934967: event type EV_SYN(0x00).
1408117587.702986: event type EV_MSC(0x04): scancode = 0x02
1408117587.702986: event type EV_SYN(0x00).
1408117588.366958: event type EV_MSC(0x04): scancode = 0x03
1408117588.366958: event type EV_SYN(0x00).
1408117588.486983: event type EV_MSC(0x04): scancode = 0x03
1408117588.486983: event type EV_SYN(0x00).
1408117589.094926: event type EV_MSC(0x04): scancode = 0x04
1408117589.094926: event type EV_SYN(0x00).
1408117589.214920: event type EV_MSC(0x04): scancode = 0x04
1408117589.214920: event type EV_SYN(0x00).
1408117590.926837: event type EV_MSC(0x04): scancode = 0x05
1408117590.926837: event type EV_SYN(0x00).
1408117591.046834: event type EV_MSC(0x04): scancode = 0x05
1408117591.046834: event type EV_SYN(0x00).
1408117592.446769: event type EV_MSC(0x04): scancode = 0x06
1408117592.446769: event type EV_SYN(0x00).
1408117592.566769: event type EV_MSC(0x04): scancode = 0x06
1408117592.566769: event type EV_SYN(0x00).

My remote config file looks like this:

# Please make this file available to others
# by sending it to <lirc@bartelmus.de>
#
# this config file was automatically generated
# using lirc-0.9.0(devinput) on Thu Aug  7 15:10:35 2014
#
# contributed by 
#
# brand:                       Test
# model no. of remote control: 
# devices being controlled by this remote:
#

begin remote

  name  BlackFlatOne
  bits            16
  eps             30
  aeps            100
  pre_data_bits   16
  pre_data        0x0001
  post_data_bits  32
  post_data       0x00000001
  gap             132799
  toggle_bit      0

      begin codes
          KEY_POWER                0x0c
          KEY_MUTE                 0x0a
          KEY_SELECT               0x38
          KEY_Z                    0x0f
          KEY_1                    0x01
          KEY_2                    0x02
          KEY_3                    0x03
          KEY_4                    0x04
          KEY_5                    0x05
          KEY_6                    0x06
          KEY_7                    0x07
          KEY_8                    0x08
          KEY_9                    0x09
          KEY_0                    0x00
          KEY_TV                   0x1e
          KEY_LEFT                 0x11
          KEY_RIGHT                0x10
          KEY_UP                   0x20
          KEY_DOWN                 0x21
          KEY_ENTER                0x0d 
          KEY_CHANNELUP            0x12
          KEY_CHANNELDOWN          0x13
          KEY_VOLUMEUP             0x2b
          KEY_VOLUMEDOWN           0x2c
          KEY_STOP                 0x0b
          KEY_RECORD               0x1f
          KEY_CAMERA               0x0e
          KEY_ESC                  0x29
      end codes

end remote

I start lirc manually with

lircd --driver=devinput --device=/dev/input/by-id/usb-TechnoTrend_AG_TT-USB_Infrared_Device-event-ir BlackFlatOne -n

After starting lirc, I start irw, but I get no response at all when pressing buttons on my remote.
I already tried a

cat /dev/input/by-id/usb-TechnoTrend_AG_TT-USB_Infrared_Device-event-ir

(lirc and irw not running, of course) and this gives me cryptic symbols when pressing buttons on my remote, so the IR receiver doesn't seem to be the problem. smile
I'm wondering if the scancodes in my config are ok for a devinput-device, because the latest "official" lircd.conf.devinput looks like that:

# generated by devinput.sh
begin remote
        name            devinput
        bits            16
        eps             30
        aeps            100
        pre_data_bits   16
        pre_data        0x0001
        post_data_bits  32
        post_data       0x00000001
        gap             132799
        toggle_bit      0

        begin codes
                KEY_0                   11
                KEY_102ND               86
                KEY_1                   2
                KEY_2                   3
                KEY_3                   4
                KEY_4                   5
                KEY_5                   6
                KEY_6                   7
                KEY_7                   8
                KEY_8                   9
                KEY_9                   10
                KEY_A                   30
                KEY_AB                  0x196
                KEY_ADDRESSBOOK         0x1ad
                KEY_AGAIN               129
....

So I'm wondering about the different lengths of the keycodes (e.g. 0x0d vs 0x1ad -> 2 vs 3 digits).

Can anyone help me out with this issue ?
Am I missing something ? smile
How do I have to format the scancodes/keycodes the correct way for version 0.9.1 ?

Offline

Board footer

Powered by FluxBB