LinuxMCE Forums
June 18, 2013, 05:56:19 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: IR code sequence  (Read 1354 times)
pw44
Addicted
*
Posts: 653


View Profile
« on: April 16, 2010, 03:19:36 am »

Hia,
does anyone knows how to enter a IR code sequence, i.e, i need to send a two IR codes with an interval of 1 second between each code?
To control the input source of my TV i need to send  AV+ (wait 1 second) and 3 (to change to HDMI).
How can i define it in template?
TIA,
Paulo
Logged
phenigma
wants to work for LinuxMCE
**
Posts: 779


View Profile
« Reply #1 on: April 16, 2010, 04:01:09 am »

You will have to build a new IR code which incorporates both of the original codes.  This wiki http://wiki.linuxmce.org/index.php/TOAD_vs_Discrete_Codes article and this http://www.remotecentral.com/features/irdisp3.htm webpage will help you build the proper codes.

J.
« Last Edit: April 16, 2010, 04:03:40 am by phenigma » Logged

pw44
Addicted
*
Posts: 653


View Profile
« Reply #2 on: April 16, 2010, 05:25:39 pm »

Thx J.,
i took a look, and did not understand much.... will need to learn or.... is there some expert who can help this newbie in IR codes with some hints Grin ?
TIA!
Paulo
« Last Edit: April 16, 2010, 05:44:57 pm by pw44 » Logged
golgoj4
wants to work for LinuxMCE
**
Posts: 823


hrumpf!


View Profile WWW
« Reply #3 on: April 16, 2010, 06:06:24 pm »

post your ir codes and ill see what i can figure out.
Logged

Those people who tell you not to take chances, they are all missing what life's all about.

Wiki Hardware Page http://wiki.linuxmce.org/index.php/User:Langstonius
pw44
Addicted
*
Posts: 653


View Profile
« Reply #4 on: April 16, 2010, 09:59:10 pm »

Hi golgoj4,
the codes for the philips tv are:
av+: 0000 0075 0000 000C 0020 001F 0020 001F 003E 0020 0020 001F 0020 001F 0020 001F 0020 003F 0020 001F 0020 001F 003E 0020 0020 001F 0020 0C8D
number 5: 0000 0075 0000 000C 0020 001F 003E 0020 0020 001F 0020 001F 0020 001F 0020 001F 0020 001F 0020 001F 0020 001F 0020 003F 003E 0040 0020 0C63
Pressing the av+ key and with a delay of 0.5 seconds pressing number 5, changes the input to hdmi. So, as i understood, i have to cut parts and combine both, but it didn't came clear to me the burst patterns and some other stuff. If you also can explain how it works, i will try the next combined codes (for my yamaha) and than finish the templates and make them available.
TIA!
Paulo
Logged
golgoj4
wants to work for LinuxMCE
**
Posts: 823


hrumpf!


View Profile WWW
« Reply #5 on: April 16, 2010, 10:18:15 pm »

Hi golgoj4,
the codes for the philips tv are:
av+: 0000 0075 0000 000C 0020 001F 0020 001F 003E 0020 0020 001F 0020 001F 0020 001F 0020 003F 0020 001F 0020 001F 003E 0020 0020 001F 0020 0C8D
number 5: 0000 0075 0000 000C 0020 001F 003E 0020 0020 001F 0020 001F 0020 001F 0020 001F 0020 001F 0020 001F 0020 001F 0020 003F 003E 0040 0020 0C63
Pressing the av+ key and with a delay of 0.5 seconds pressing number 5, changes the input to hdmi. So, as i understood, i have to cut parts and combine both, but it didn't came clear to me the burst patterns and some other stuff. If you also can explain how it works, i will try the next combined codes (for my yamaha) and than finish the templates and make them available.
TIA!
Paulo

give this a go:

Code:
0000 0075 0000 0018 0020 001F 0020 001F 003E 0020 0020 001F 0020 001F 0020 001F 0020 003F 0020 001F 0020 001F 003E 0020 0020 001F 0020 0C8D  0020 001F 003E 0020 0020 001F 0020 001F 0020 001F 0020 001F 0020 001F 0020 001F 0020 001F 0020 003F 003E 0040 0020 0C63

What i did there was take the header information for both on the data length, combined them, and then created a new code with both with the new data size

i also used
http://easycalculation.com/decimal-converter.php and
http://easycalculation.com/hex-converter.php to decipher the codes. I have a tv i think ill try this on to see what happens.



Logged

Those people who tell you not to take chances, they are all missing what life's all about.

Wiki Hardware Page http://wiki.linuxmce.org/index.php/User:Langstonius
pw44
Addicted
*
Posts: 653


View Profile
« Reply #6 on: April 18, 2010, 04:19:00 pm »

Hi golgoj4,
did not have yet the time to test, but will do it during this week and will report.
Thx very much for your support.
Paulo
Logged
golgoj4
wants to work for LinuxMCE
**
Posts: 823


hrumpf!


View Profile WWW
« Reply #7 on: April 19, 2010, 04:01:27 am »

Hi golgoj4,
did not have yet the time to test, but will do it during this week and will report.
Thx very much for your support.
Paulo

lol dont thank me yet Wink
Logged

Those people who tell you not to take chances, they are all missing what life's all about.

Wiki Hardware Page http://wiki.linuxmce.org/index.php/User:Langstonius
pw44
Addicted
*
Posts: 653


View Profile
« Reply #8 on: September 01, 2010, 03:34:44 am »

Hi golgoj4,
as promised, i did test, but it did not work Sad
Thx!
Logged
phenigma
wants to work for LinuxMCE
**
Posts: 779


View Profile
« Reply #9 on: September 01, 2010, 05:25:02 am »

Try changing the 0C8D in the middle of that sequence to a 9FFF.  The 0C8D is only giving a delay of ~0.2 seconds between the buttons, 9FFF should give a little over 1 second.

J.
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!