Author Topic: IR code sequence  (Read 4536 times)

pw44

  • Addicted
  • *
  • Posts: 666
    • View Profile
IR code sequence
« on: April 16, 2010, 04: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

phenigma

  • LinuxMCE God
  • ****
  • Posts: 1758
    • View Profile
Re: IR code sequence
« Reply #1 on: April 16, 2010, 05: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, 05:03:40 am by phenigma »

pw44

  • Addicted
  • *
  • Posts: 666
    • View Profile
Re: IR code sequence
« Reply #2 on: April 16, 2010, 06: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 ;D ?
TIA!
Paulo
« Last Edit: April 16, 2010, 06:44:57 pm by pw44 »

golgoj4

  • NEEDS to work for LinuxMCE
  • ***
  • Posts: 1193
  • hrumpf!
    • View Profile
    • Mah Website
Re: IR code sequence
« Reply #3 on: April 16, 2010, 07:06:24 pm »
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

  • Addicted
  • *
  • Posts: 666
    • View Profile
Re: IR code sequence
« Reply #4 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

golgoj4

  • NEEDS to work for LinuxMCE
  • ***
  • Posts: 1193
  • hrumpf!
    • View Profile
    • Mah Website
Re: IR code sequence
« Reply #5 on: April 16, 2010, 11: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: [Select]
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

  • Addicted
  • *
  • Posts: 666
    • View Profile
Re: IR code sequence
« Reply #6 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

golgoj4

  • NEEDS to work for LinuxMCE
  • ***
  • Posts: 1193
  • hrumpf!
    • View Profile
    • Mah Website
Re: IR code sequence
« Reply #7 on: April 19, 2010, 05: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 ;)
Linuxmce - Where everyone is never wrong, but we are always behind xbmc in the media / ui department.

pw44

  • Addicted
  • *
  • Posts: 666
    • View Profile
Re: IR code sequence
« Reply #8 on: September 01, 2010, 04:34:44 am »
Hi golgoj4,
as promised, i did test, but it did not work :(
Thx!

phenigma

  • LinuxMCE God
  • ****
  • Posts: 1758
    • View Profile
Re: IR code sequence
« Reply #9 on: September 01, 2010, 06: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.