Panasonic TV power on - how to repeat IR codes

Forum to ask for any help
Post Reply
Croftman
Posts: 7
Joined: Wed Oct 10, 2012 7:33 pm

Panasonic TV power on - how to repeat IR codes

Post by Croftman » Tue Nov 20, 2012 1:57 pm

The only problem I have with demopad at the moment is that my Panasonic TV has two standby states. When it drops into low power state after two minutes, to power on you need to send the power on ir command for a at least 1 second. This was possible with pronto as you could control duration. I am struggling to impement this in demopad. It is probably simple can anybody help. Thanks in advance

User avatar
DemoPad
Site Admin
Posts: 769
Joined: Thu Jun 14, 2012 10:46 am
Contact:

Re: Panasonic TV power on

Post by DemoPad » Tue Nov 20, 2012 9:44 pm

If you are using Global Cache hardware, you just need to modify the 'sendir' command to repeat. Looking at the following code, which is power on for a Sony TV (which must be emitted 3 times, as with most Sony codes) :

sendir,1:1,1,40000,3,1,94,23,24,23,47,23,47,23,47,23,24,23,47,23,24,23,47,23,24,23,24,23,24,23,24,999

The "sendir,1:1" bit tells it to come out of module 1 (always 1 for iTach units), IR port 1
"40000" is the frequency
"3" is the repeat number - ie repeat this code 3 times
"1" is the repeat offset - telling the Global Cache device where to repeat the command from (if 1, then it repeats the entire code 3 times). Sometimes IR codes have an initial burst of IR data, followed by a different repeating burst of codes - and it is important to record the sendir command correctly when learning it so that any repetitions are emitted correctly.
"94,23" - is the first part of the IR data - a pair of values which specify the emitter should flash for 94 periods of time, stop flashing for 23 etc. This is followed by the rest of the IR data number pairs.

So, to make the code repeat x number of times, just alter the number after the large frequency number in the command.

Croftman
Posts: 7
Joined: Wed Oct 10, 2012 7:33 pm

Re: Panasonic TV power on

Post by Croftman » Tue Nov 20, 2012 9:59 pm

Thanks for the reply, but I am using iranywhere by keene. I hope this is not going to be where I wished had bought global cache unit.

User avatar
DemoPad
Site Admin
Posts: 769
Joined: Thu Jun 14, 2012 10:46 am
Contact:

Re: Panasonic TV power on

Post by DemoPad » Tue Nov 20, 2012 10:17 pm

Not at all - we recommend Keene Hardware also. Excerpt from their API document:
Looking at a typical IR code string - this one is for a Sony

K 280D 096A 0269 025C 025C 025B 025E 025B 025D 04B4 025E 04B4 025D 025B 025E 025B 025D 04B5 025E 04B4 025E 04B3 025E 025B 025D 025B 2000

To add repeats to that string requires an additional string to be added at the end

K 280D 096A 0269 025C 025C 025B 025E 025B 025D 04B4 025E 04B4 025D 025B 025E 025B 025D 04B5 025E 04B4 025E 04B3 025E 025B 025D 025B 2000 00 4000 2

The “<space>00<space>4000<space>2” tell the module to send an additional 2 repeats of this string ie 3 in all and use a gap of 16384 uS between them. 4000 hex or about 16mS..
The Pronto Hex Convert button in our software does this for you, for example adding a 00 0000 03 to the end of the command, if you were to choose a repeat number of 4 before converting. This repeats the code an additional 3 times with no delay in between repeats.

Croftman
Posts: 7
Joined: Wed Oct 10, 2012 7:33 pm

Re: Panasonic TV power on - how to repeat IR codes

Post by Croftman » Wed Nov 21, 2012 12:52 am

Thanks that has fixed it. If you use the original remote you have to press it constantly for more than 1 second. So you would think 00 0000 04 might well do the trick. But I had to introduce a delay 00 4000 09 to get it to work.
One of the things that swayed me towards demopad was the great support and I was not wrong. Brilliant!!!!

Post Reply