« Return to Thread: Using All for One Media PC remote (URC 9040) with lirc

Re: Using All for One Media PC remote (URC 9040) with lirc

by Jaakko :: Rate this Message:

| View in Thread

The solution was pretty simple. I just used a lircd.conf which contained all possible keyboard events :) No need to hack lirc's dev/input driver and no need to use irrecord at all. Found the solution from this thread:
http://whirlpool.net.au/forum-replies-archive.cfm/566843.html

Here is my working lircd.conf which has been stripped from all keys the remote doesn't have. The events have also been renamed to match the remote. I'm using the volume keys (vol up, vol down, mute) to control my amplifier so they are not mapped but it's easy to add them by listening to the events using evtest. Also the color keys are missing because they seem to be completely "mute". The remote doesn't even blink the led when pressing those keys.

begin remote
    name urc-9040
    bits 32
    begin codes
        1                    0x10002
        2                    0x10003
        3                    0x10004
        4                    0x10005
        5                    0x10006
        6                    0x10007
        7                    0x10008
        8                    0x10009
        9                    0x1000a
        0                    0x1000b
        Rew                  0x1001a
        Ffd                  0x1001b
        Play                 0x1002b
        Stop                 0x10034
        Pause                0x10035
        Prev                 0x1003d
        Next                 0x1003e
        Rec                  0x1003f
        Last                 0x10043
        Guide                0x10044
        Back                 0x1004a
        Goto                 0x1004e
        Logo                 0x10057
        Info                 0x10058
        Ok                   0x10060
        Menu                 0x10066
        Up                   0x10067
        Ch+                  0x10068
        Left                 0x10069
        Right                0x1006a
        Exit                 0x1006b
        Down                 0x1006c
        Ch-                  0x1006d
    end codes
end remote


Jaakko wrote:
Hi!

I just bought All for One URC 9040 remote and intend to get it working with LIRC. The remote has it's own USB RF receiver which works as a keyboard / event device in linux. When pressing the numbers on the remote it's like you would've typed them with the keyboard. The navigation buttons (up, down etc) work like the arrow keys of a keyboard.

I first tried to record the buttons with irrecord using dev/input device with /dev/input/event6 (which is the receiver according to /var/log/messages). Irrecord first seems to record the buttons ok but the resulting lircd.conf file just has 0x0 as the code for every button. Needless to say that the config doesn't work very well.

Next I "listened" to the events using "evtest /dev/input/event6" and the remote seems to send "LeftCtrl" or "LeftCtrl" and "LeftShift" before the actual key. The code of LeftCtrl seems to be the same that irrecord writes as the "bit mask" in the config file. Could it be that it just notices the first code sent and ignores the rest?

Is it even possible to record codes for a reciver like this using irrecord or even use it at all with LIRC? Do I have to code my own lirc module or modify dev/input driver to get this working? Coding wouldn't be a problem but I'd rather not re-invent the wheel when it's not necessary.

- Jaakko

 « Return to Thread: Using All for One Media PC remote (URC 9040) with lirc