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

IR code sequence

Started by pw44, April 16, 2010, 04:19:36 AM

Previous topic - Next topic

pw44

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

phenigma

#1
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.
My setup: [url="http://wiki.linuxmce.org/index.php/User:Phenigma"]http://wiki.linuxmce.org/index.php/User:Phenigma[/url]

pw44

#2
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 ;D ?
TIA!
Paulo

golgoj4

post your ir codes and ill see what i can figure out.
Linuxmce - Where everyone is never wrong, but we are always behind xbmc in the media / ui department.

pw44

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

golgoj4

Quote from: pw44 on April 16, 2010, 10: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

give this a go:

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.



Linuxmce - Where everyone is never wrong, but we are always behind xbmc in the media / ui department.

pw44

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

golgoj4

Quote from: pw44 on April 18, 2010, 05: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

lol dont thank me yet ;)
Linuxmce - Where everyone is never wrong, but we are always behind xbmc in the media / ui department.

pw44

Hi golgoj4,
as promised, i did test, but it did not work :(
Thx!

phenigma

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.
My setup: [url="http://wiki.linuxmce.org/index.php/User:Phenigma"]http://wiki.linuxmce.org/index.php/User:Phenigma[/url]