Author Topic: Sending multiple infrared commands  (Read 2471 times)

jeangot

  • Guru
  • ****
  • Posts: 233
    • View Profile
Sending multiple infrared commands
« on: July 24, 2010, 05:32:16 am »
Hello,

I am creating a new device template for a Panasonic projector. In order to turn on (or off), this projector needs to receive 2 distinct infrared commands (with a small pause in between).
I was able to set this up in Ruby by sending a system command to the USB UIRT device with the first command, followed by a pause, followed by the second command, but this is very dirty since the ID of the USB UIRT device needs to be hard coded in the template.

Is there a way to do this cleanly by using the normal section for infrared codes in a device template? (Or any other suggestions)

Jean

Techstyle

  • Addicted
  • *
  • Posts: 674
    • View Profile
    • Techstyle UK Ltd.
Re: Sending multiple infrared commands
« Reply #1 on: July 25, 2010, 08:46:39 am »
Have you tried just learning the IR codes via your USB UIRT (one for each command) and then pasteing them into the 'On' and 'Off' code windows?

Just as a matter of interest what are the two commands?

jeangot

  • Guru
  • ****
  • Posts: 233
    • View Profile
Re: Sending multiple infrared commands
« Reply #2 on: July 25, 2010, 08:36:01 pm »
Hi,

this Panasonic projector doesn't have discrete on/off commands, and there is just one toggle on/off button on the remote.
However when you turn it off, it asks for confirmation so you can pretty much get discrete behavior by using:

For on: ON/OFF + BACK
For off: ON/OFF + ENTER

And this works just fine indeed with my method using Ruby.

Unfortunately LMCE will only let me learn one single command/keypress per event.

Jean

Techstyle

  • Addicted
  • *
  • Posts: 674
    • View Profile
    • Techstyle UK Ltd.
Re: Sending multiple infrared commands
« Reply #3 on: July 25, 2010, 11:16:51 pm »
I would try learning on/off then copying the code and pasteing it to notepad or gedit or something, then learning back, then copy/paste the on/off code infront of the 'back' code

The other thing that I found on one of my Pioneer receiver was that the remote that came with had toggle on and off but my harmony had discreet on and off. so I learned from the harmony and got a different code than the stock remote.