LinuxMCE Forums
May 25, 2013, 05:02:29 am GMT-1 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
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
 
   Home   Help Search Chat Login Register  
Pages: [1]
  Print  
Author Topic: Sending multiple infrared commands  (Read 483 times)
jeangot
Guru
****
Posts: 233


View Profile
« on: July 24, 2010, 04: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
Logged
Techstyle
Addicted
*
Posts: 662



View Profile WWW
« Reply #1 on: July 25, 2010, 07: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?
Logged

jeangot
Guru
****
Posts: 233


View Profile
« Reply #2 on: July 25, 2010, 07: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
Logged
Techstyle
Addicted
*
Posts: 662



View Profile WWW
« Reply #3 on: July 25, 2010, 10: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.
Logged

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!