News:

Rule #1 - Be Patient - Rule #2 - Don't ask when, if you don't contribute - Rule #3 - You have coding skills - LinuxMCE's small brother is available: http://www.agocontrol.com

Main Menu

Sending multiple infrared commands

Started by jeangot, July 24, 2010, 05:32:16 AM

Previous topic - Next topic

jeangot

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

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?
Techstyle UK Ltd
[url=http://www.techstyleuk.co.uk]http://www.techstyleuk.co.uk[/url]

Techstyle US Inc.
[url=http://www.techstyleus.com]http://www.techstyleus.com[/url]

jeangot

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

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.
Techstyle UK Ltd
[url=http://www.techstyleuk.co.uk]http://www.techstyleuk.co.uk[/url]

Techstyle US Inc.
[url=http://www.techstyleus.com]http://www.techstyleus.com[/url]