LIRC Commands not working

Asked by Ryan

I have been using MyMote for a while and I love it. The only thing I have never been able to make work is LIRC commands. If someone could help figure out why it will not work for me I would be very grateful. Here are the details:

- I am using lircd v0.8.6.
- I am starting lircd with -a -l (allow simulate and listen.)
- I have verified that lircd is listening on 8765 bu running netstat -na on the frontend and telnneting to the ip on port 8765 from another machine.
- I have started lircd in the foreground (-n) and when I press my lirc button in MyMote I see a line about it receiving the command from my iPhone ip.
- I know my lircd is working because I use it for my multimedia keyboard buttons so I can turn the volume on my receiver up and down and toggle muting.

This is the section in my lircd.conf for my receiver. I have two sections, one for my MCE remote and the other for my Panasonic receiver, only my receiver is below:

begin remote

  name panasonic
  bits 24
  flags SPACE_ENC
  eps 30
  aeps 100

  header 3559 1681
  one 478 1267
  zero 478 392
  ptrail 475
  pre_data_bits 24
  pre_data 0x400405
  gap 74125
  toggle_bit_mask 0x0

      begin codes
          PAN_POWER 0x00BCB9
          PAN_TV 0x00393C
          PAN_DVD 0x00F9FC
          PAN_DVDR 0x00F9FC
          PAN_DVDP 0x00C5C0
          PAN_VOLUP 0x000401
          PAN_VOLDN 0x008481
          PAN_PLIIX 0x284D60
          PAN_NEO6 0x28CDE0
          PAN_SFCMUSIC 0x288CA1
          PAN_SFCMOVIE 0x280528
          PAN_MUTING 0x004C49
          PAN_EFFECTOFF 0x287558
          PANVOLUP 0x000401
          PANVOLDN 0x008481
          PANMUTING 0x004C49
      end codes

end remote

I thought the underscores (_'s) may be causing an issue so I duplicated the names for VOLUP, VOLDN and MUTING with the underscore removed but this did not work. I have also ensured that I am using the exact name from the lircd configuration (eg. all uppercase.)

I am not sure what else to try.

Thanks.

Question information

Language:
English Edit question
Status:
Solved
For:
MyMote Edit question
Assignee:
No assignee Edit question
Solved by:
Ryan
Solved:
Last query:
Last reply:
Revision history for this message
Ryan (rpm) said :
#1

I updated my LIRC to the latest which is 0.9.0 and was hoping this might solve my problem with LIRC buttons in MyMote, but I still can''t get it to work. Here is the output when LIRCD is runninbg with -n and I press an LIRC button from MyMote:

root@frontend:~# lircd -n --output=/var/run/lirc/lircd -a -l --driver=commandir
lircd-0.9.0[1508]: lircd(commandir) ready, using /var/run/lirc/lircd
lircd-0.9.0[1508]: accepted new client from 172.16.102.2
lircd-0.9.0[1508]: CommandIR driver initialized
lircd-0.9.0[1510]: Child Initializing CommandIR Hardware
lircd-0.9.0[1508]: removed client
lircd-0.9.0[1508]: LIRC_deinit but keeping warm
lircd-0.9.0[1510]: Product identified as CommandIR II
lircd-0.9.0[1510]: Hardware revision is 2.2.
lircd-0.9.0[1508]: accepted new client from 172.16.102.2
lircd-0.9.0[1508]: removed client
lircd-0.9.0[1508]: LIRC_deinit but keeping warm

Revision history for this message
Ryan (rpm) said :
#2

I thought MyMote would send the key would send the command in the lircd.conf. Perhaps I was interrupting it wrong.

What I ended up going was creating dummy entries in my .lircrc to do the actually sending of the IR commands to my receiver:

begin
prog = irexec
button = MM_MUTING
config = /usr/bin/irsend send_once panasonic PAN_MUTING
end

begin
prog = irexec
button = MM_VOLUP
config = /usr/bin/irsend send_once panasonic PAN_VOLUP
end

begin
prog = irexec
button = MM_VOLDN
config = /usr/bin/irsend send_once panasonic PAN_VOLDN
end

In MyMote I specified the button as the LIRC command. So when you tap the on screen button, irexec sees the command and responds to it. It works perfectly. I can control my receiver volume up down and mute via IR from MyMote now. How cool is that?

Maybe this is exactly how the author intended it to be used, maybe it's not. It does however work great for me this way. Hope this helps someone else.

Ryan

Revision history for this message
Chase Douglas (chasedouglas) said :
#3

Yes, this is how it's intended to work. It's not the most obvious or elegant solution, but it does do the job.

Thanks for following up!