Your Universal Remote Control Center
RemoteCentral.com
General Pro Remotes Forum - View Post
Previous section Next section Previous page Next page Up level
Up level
The following page was printed from RemoteCentral.com:

Login:
Pass:
 
 

Page 2 of 3
Topic:
Convert Short Hex IR Codes to Pronto Compatible Hex Codes
This thread has 31 replies. Displaying posts 16 through 30.
Post 16 made on Thursday September 12, 2013 at 14:21
Barf
Long Time Member
Joined:
Posts:
August 2013
350
Oh my. Some more comments:

The circuit you linked to should be fed by equal signal in the left and right channel. With an antiphase "stereo" signal, the two LEDs will go on at at exactly the same time, leaving you with a 19kHz carrier, which is not what you want. So use 1 for the fourth argument in the Wave constructor.

The raw signal, as well as the Pronto CCF, both decodes (IrMaster!) to NEC1 D=64 F=183

It is not enough to put the "necShirriff" protocol in the IrpProtocols.ini, you have to use it too. Please try interactively in IrMaster first, (select necshirrif as protocol, put 0x40BF48B7 as F,press Generate and then Decode and it should say
protocol = NEC1, device = 64, obc = 183.)

The Java stuff should then go something like:

long F = 0x40BF48B7L;
parameters.put("F", F);
...
IrSignal irSignal = new IrSignal("IrpProtocols.ini", "necshirrif", parameters);
...
Wave wave = new Wave(modulatedIrSequence, 48000, 8, 1. ...)
OP | Post 17 made on Friday September 13, 2013 at 02:12
Achin
Long Time Member
Joined:
Posts:
August 2013
32
hi, i have put 
[protocol]
name=necShirrif
irp={38.4k,564}<1,-1|1,-3>(16,-8,F:8:24,F:8:16,F:8:0,F:8:8,1,-78,(16,-4,1,-173)*)[F:0..4294967295] 
this in my 
IrpProtoocols.ini 
and i have used the following code as you suggested in your post

         HashMap parameters = new HashMap();
          long F = 0x40BF48B7L;
            parameters.put("F", F);
        
        IrSignal irSignal = new IrSignal("IrpProtocols.ini", "necshirrif", parameters);//NEC1-f16(nec1-f16) //NEC1//necshirrif
 
        System.out.println("raw data "+irSignal);
        System.out.println("Pronto "+irSignal.ccfString());
        
        ModulatedIrSequence modulatedIrSequence = irSignal.toModulatedIrSequence(1);
        Wave wave = new Wave(modulatedIrSequence, 48000, 8, 1, false, false, true, false);
        wave.export(new File("Powerkey3.wav"));

and heres my raw and pronto code
raw data Freq=38400Hz [9024,-4512,564,-564,564,-564,564,-564,564,-564,564,-564,564,-564,564,-1692,564,-564,564,-1692,564,-1692,564,-1692,564,-1692,564,-1692,564,-1692,564,-564,564,-1692,564,-1692,564,-1692,564,-1692,564,-564,564,-1692,564,-1692,564,-564,564,-1692,564,-564,564,-564,564,-564,564,-1692,564,-564,564,-564,564,-1692,564,-564,564,-43992][9024,-2256,564,-97572][]
Pronto 0000 006C 0022 0002 015B 00AD 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0041 0016 0016 0016 0041 0016 0041 0016 0041 0016 0041 0016 0041 0016 0041 0016 0016 0016 0041 0016 0041 0016 0041 0016 0041 0016 0016 0016 0041 0016 0041 0016 0016 0016 0041 0016 0016 0016 0016 0016 0016 0016 0041 0016 0016 0016 0016 0016 0041 0016 0016 0016 0699 015B 0057 0016 0EA3
 
and when i play the created wav file in front of my hardware it decodes 
23F2C57
Unknown encoding: 23F2C57 (32 bits)
Raw (68): -29686 8900 -4450 600 -550 500 -600 650 -500 600 -500 500 -700 500 -550 450 -1750 600 -500 500 -1750 450 -1850 500 -1600 650 -1550 550 -1750 450 -1750 600 -500 500 -1750 450 -1750 650 -1600 600 -1600 550 -700 450 -1600 650 -1600 550 -700 450 -1650 600 -500 650 -450 550 -800 400 -1600 600 -500 600 -550 500 -1700 650 -450 600 
65EA3242
Unknown encoding: 65EA3242 (32 bits)
Raw (40): -32504 450 -1650 650 -500 500 -1750 550 -1650 600 -1600 650 -1550 650 -600 500 -1600 650 -1600 550 -650 500 -1600 650 -500 600 -500 500 -600 650 -1550 650 -500 650 -450 500 -1750 600 -500 600 
Decoded NEC: FFFFFFFF (0 bits)
Raw (4): 21936 9000 -2150 550 
216D2D4A

as i have IR library you can check in this link [Link: neoxy-yx.blogspot.in] please see the MAPPED POWER KEY of a Sony remote  pic named 
it gives me the above output i posted and not working with my TV
 when i play the created wav file in front of my hardware
 
 
OP | Post 18 made on Monday September 16, 2013 at 02:08
Achin
Long Time Member
Joined:
Posts:
August 2013
32
i think the wave files created by the IrpMaster does not send any ir code when we are playing on the phone , because when i play my sansui remote in-front of my hardware device it give me below
40BF58A7
Decoded NEC: 40BF58A7 (32 bits)
Raw (68): 18212 9100 -4300 700 -400 650 -1600 650 -450 650 -500 650 -450 700 -400 650 -500 650 -450 700 -1550 650 -450 700 -1500 700 -1550 600 -1600 700 -1550 650 -1600 600 -1600 700 -450 650 -1550 700 -400 650 -1600 700 -1550 700 -400 700 -400 650 -500 650 -1550 600 -550 650 -1550 600 -550 650 -450 650 -1600 650 -1550 600 -1600 700


and when i play the wave file created by the IrpMaster on my phone it gives me and 
Unknown encoding: EF9F0867 (32 bits)
Decoded NEC: FFFFFFFF (0 bits)
Raw (4): 21936 9000 -2150 550 
216D2D4A
Raw (38): -32106 350 -700 450 -1950 300 -1750 400 -1900 350 -1750 450 -700 450 -1950 300 -1800 400 -700 400 -1950 250 -800 400 -600 450 -750 350 -1900 300 -1000 150 -900 250 -1850 350 -650 350 
6D3E7B38
Unknown encoding: 6D3E7B38 (32 bits)
Raw (36): -21868 550 -600 500 -1750 450 -1900 350 -1700 500 -1750 500 -750 350 -1700 500 -1750 500 -800 300 -1750 500 -800 300 -700 400 -2850 500 -850 150 -950 300 -2050 150 -650 450 
F2CDF944
i just want to ask that has someone else used IrpMaster before me, i mean have anyone tested Irpmaster and the wave files created by the Irpmaster is working fine i have re-search allot but not able to find anyone who used the IrpMaster
OP | Post 19 made on Friday September 20, 2013 at 07:43
Achin
Long Time Member
Joined:
Posts:
August 2013
32
hi,i have copy the Pronto hex code fron the remotecentral link [Link: remotecentral.com]
and i have pasted it inti Irpmaster and it gives me

protocol = Pioneer, device = 87, obc = 229
Analyzer result: {40.2k,547,msb}<2,-2|2,-9>(32,-16,A:32,2,-72.4m)+{A=$ea15a758}; Alt leadout form: ^113m

and i have used the above parametrs
device = 87, obc = 229 in my JAVA code to create the same pronto hex code but i am getting different Pronto code as i copy from the link in remotecentral, please tell me where i am wrong ?
and my JAVA code is
try {
// TODO code application logic here

HashMap parameters = new HashMap();

parameters.put("D", Long.parseLong("87"));//philips tv parameters on/off button
parameters.put("F", Long.parseLong("229"));


IrSignal irSignal = new IrSignal("IrpProtocols.ini", "pioneer", parameters);//NEC1-f16(nec1-f16) //NEC1//necshirrif

System.out.println("raw data "+irSignal);
System.out.println("Pronto "+irSignal.ccfString());

ModulatedIrSequence modulatedIrSequence = irSignal.toModulatedIrSequence(1);

Wave wave = new Wave(modulatedIrSequence, 48000, 8, 1, false, false, true, false);
//wave.export(new File("AF57C83HEX.wav"));

}catch (Exception ex) {
Logger.getLogger(IrpMaster.class.getName()).log(Level.SEVERE, null, ex.toString());
}
and i am getting the below pronto hex code
0000 0068 0000 0022 0169 00B4 0017 0044 0017 0044 0017 0044 0017 0017 0017 0044 0017 0017 0017 0044 0017 0017 0017 0017 0017 0017 0017 0017 0017 0044 0017 0017 0017 0044 0017 0017 0017 0044 0017 0044 0017 0017 0017 0044 0017 0017 0017 0017 0017 0044 0017 0044 0017 0044 0017 0017 0017 0044 0017 0017 0017 0044 0017 0044 0017 0017 0017 0017 0017 0017 0017 0636

but the orignal pronto hex code is below as you can see in the link i posted
0000 0067 0000 0022 0156 00ab 0016 0060 0016 0060 0016 0060 0016 0016 0016 0060 0016 0016 0016 0060 0016 0016 0016 0016 0016 0016 0016 0016 0016 0060 0016 0016 0016 0060 0016 0016 0016 0060 0016 0060 0016 0016 0016 0060 0016 0016 0016 0016 0016 0060 0016 0060 0016 0060 0016 0016 0016 0060 0016 0016 0016 0060 0016 0060 0016 0016 0016 0016 0016 0016 0016 0593
Post 20 made on Friday September 20, 2013 at 12:16
Barf
Long Time Member
Joined:
Posts:
August 2013
350
ok, this time it is easier:

If you cut-and-paste your both Pronto signals into the Generate & Analyze-Window of IrMaster, and press "Decode", you will see that both decode as

protocol = Pioneer, device = 87, obc = 229

I.e. it is the "same" signal! An IR signal is a sequence of times (in the CCF, all the number starting with number 5), i.e. measurements of physical variables, so small variations are therefore "within the error marginal". It is like the numbers 201 and 199, they are "close" (1%) but the numbers look quite different.
OP | Post 21 made on Saturday September 21, 2013 at 00:39
Achin
Long Time Member
Joined:
Posts:
August 2013
32
OK, i got it your point.
and in remotecentral where you explained the Pronto hex format i have found a mistake, in this link [Link: remotecentral.com]
they have this pronto code for Sony DVD S7000
0000 0067 0000 0015 0060 0018 0018 0018 0030 0018 0030 0018 0030 0018 0018 0018 0030 0018 0018 0018 0018 0018 0030 0018 0018 0018 0030 0018 0030 0018 0030 0018 0018 0018 0018 0018 0030 0018 0018 0018 0018 0018 0030 0018 0018 03f6

and they mentioned that
Word 45,46 0018 03fc (24,24 decimal) Burst Pair 20, bit 13 = "0"
i mean they convert 0018 to decimal i.e.. 24 thats OK,
but how did they convert 03fc to 24
03fc in decimal gives us 1020 and
1111111100 in binary

and the mistake is
On page I think are present some errors.
On first table "Lead Out" is presented as 03f6, after when convert 46° word, he write 03fc
03f6=>1014
03fc=>1020

on first table 03f6 in second column is writed as 1024 decimal !!!
please can you justify the above

and i have sansui LCD , do you have there pronto codes ?
I have search allot but not able to find there Pronto hex codes.
Post 22 made on Saturday September 21, 2013 at 02:27
3FG
Select Member
Joined:
Posts:
August 2009
1,861
The link includes this:
Note the dead time on the second half of the last data burst pair.Sony does not use a unique lead out, but rather adds the inter-message minimum time to the last data burst’s off period.

So you didn't find a mistake; instead you made a mistake.

OP | Post 23 made on Saturday September 21, 2013 at 05:40
Achin
Long Time Member
Joined:
Posts:
August 2013
32
and please ans. my second query
and i have sansui LCD , do you have there pronto codes ?
I have search allot but not able to find there Pronto hex codes.
OP | Post 24 made on Monday September 23, 2013 at 06:20
Achin
Long Time Member
Joined:
Posts:
August 2013
32
ok, so that was not a mistake. I think i hve issue in understanding the pronto format , so i need help on format , so i have the below Pronto code
Pronto code = 0000 006d 0022 0002 0154 00ab 0016 0015 0016 0015 0016 0015 0016 0015 0016 003f 0016 0015 0016 003f 0016 0015 0016 003f 0016 003f 0016 003f 0016 003f 0016 0015 0016 003f 0016 0015 0016 003f 0016 0015 0016 003f 0016 003f 0016 003f 0016 003f 0016 003f 0016 0015 0016 0015 0016 003f 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 003f 0016 003f 0016 05e8 0154 0055 0016 0e3f      
and i have to Break down it , and please tell me where i am wrong, i have found this Pronto from this link [Link: avsforum.com]
Breaking down the pronto code gives me this:
0000 = Start is always 0000
006d = 38Khz. 006d hex =109 decimal (38,028 = 1000000/(109*.241246))
0022 = 0022 hex = 34 dec. 34 Single burst pairs (bits)
0002 = 2 Repeat burst pairs (bits)

i have some issue like
i am not understanding the proper meaning of these two 
0022 = 0022 hex = 34 dec. 34 Single burst pairs (bits)
0002 = 2 Repeat burst pairs (bits).

and in the above Pronto what is the meaning of Lead-in and Lead-out 
0154 00ab = is this Lead in ?
and then what is the lead out and 
what are 0002 = 2 Repeat burst pairs (bits) 
in the above Pronto ?



 
OP | Post 25 made on Tuesday September 24, 2013 at 02:45
Achin
Long Time Member
Joined:
Posts:
August 2013
32
hi ,3FG
in your 10 post you write
"The timing list shows that the correct decode is device 0x40, function 0xB7, or device 64, function 183 in decimal. So when calling IrpMaster 40BF48B7 should be changed to 40BFB748."

yes it's changing, so is there any effect ? and why it's changing ?
i think that's why MY sansui TV is getting ON/OFF
my arduino program detected the below
Decoded NEC: 40BFB748 (32 bits)
Raw (68): -31940 9050 -4350 600 -550 600 -1600 650 -500 550 -500 600 -550 650 -450 600 -500 650 -500 550 -1650 650 -450 650 -1600 600 -1600 650 -1600 650 -1550 700 -1550 550 -1650 650 -1600 650 -450 600 -1650 600 -1600 650 -450 650 -1600 650 -1550 600 -1600 600 -550 650 -1550 600 -550 600 -500 600 -1600 650 -450 600 -550 650 -450 650

Last edited by Achin on September 24, 2013 03:27.
OP | Post 26 made on Tuesday October 1, 2013 at 06:51
Achin
Long Time Member
Joined:
Posts:
August 2013
32
hi, my playing Sony remote in front of Arduino and a you know i am using ken sheriff's IR library,so on the serial monitor I'm getting the following , is it possible to decode this value so i can convert them to pronto hex code using IRP Master

Decoded SONY: 1A26 (15 bits)
Raw (32): -22016 2500 -500 700 -500 650 -550 1250 -500 1300 -500 700 -500 1250 -500 700 -500 700 -500 700 -500 1300 -500 650 -500 700 -500 1300 -500 1300 -500 650
4626
Decoded SONY: 4626 (15 bits)
Raw (32): -16216 2400 -550 1200 -600 600 -600 600 -600 600 -550 1200 -600 1200 -600 600 -600 600 -550 650 -550 1200 -600 600 -600 600 -600 1200 -550 1200 -600 600
4626
Decoded SONY: 4626 (15 bits)
Raw (32): -12156 2500 -500 1300 -450 700 -500 700 -500 700 -500 1300 -500 1250 -500 700 -500 700 -500 700 -500 1300 -450 700 -500 700 -500 1300 -500 1300 -450 700
4626
Decoded SONY: 4626 (15 bits)
Raw (32): -19324 2500 -450 1300 -500 700 -500 650 -550 700 -450 1300 -500 1300 -500 650 -550 650 -500 700 -500 1300 -500 700 -500 650 -550 1300 -450 1300 -500 700
6E26
Post 27 made on Tuesday October 1, 2013 at 15:55
Barf
Long Time Member
Joined:
Posts:
August 2013
350
I still have not scrutinized Shirriff's library. But it is getting closer... Funny is that the numbers start with a gap (are < 0), which is normallly considered nonsensical. And the final number should probably be a gap (negative) and is for some reason given as hexadecimal, while all the other numbers appears to be digital. Discarding the initial gap (it is of course meaningless anyhow, what should be meant by an IR signal starting with silence?), changing the last to any "large" negative number, it can be decoded by IrMaster (paste into the Generate & Analyze window, add a "+" in front of the first number (2400 or 2500, not the negative number, fix the last) press Decode). Or, unfortunatelly, the first two can be decoded, the last two do not decode. The first two decode as protocol = Sony15, device = 100, obc = 44 and protocol = Sony15, device = 100, obc = 49. The rest can be considered as "unclean learns". Please retry these.
OP | Post 28 made on Thursday October 3, 2013 at 01:08
Achin
Long Time Member
Joined:
Posts:
August 2013
32
hi,actually i am not completely understand how you got the device code and function code from the RAW data i posted, i mean that was very confusing for me.
i try what you say with IrpMaster but i am getting
Inconsistent lengths in CCF. in the IrpMaster
i post the below in the analyze window 
+2500 -500 700 -500 650 -550 1250 -500 1300 -500 700 -500 1250 -500 700 -500 700 -500 700 -500 1300 -500 650 -500 700 -500 1300 -500 1300 -500 650 
plaese tell me where i am wrong ?
 
 

Last edited by Achin on October 5, 2013 03:21.
Post 29 made on Monday October 7, 2013 at 14:11
Barf
Long Time Member
Joined:
Posts:
August 2013
350
On October 3, 2013 at 01:08, Achin said...
hi,actually i am not completely understand how you got the device code and function code |from the RAW data i posted...

Read again, more carefully. It was in there


Discarding the initial gap (it is of course meaningless anyhow, what should be meant by
an IR signal starting with silence?), changing the last to any "large" negative number, it |can | be decoded by IrMaster (paste into the Generate & Analyze window, add a "+" in front
of the first number (2400 or 2500, not the negative number, fix the last) press Decode).
OP | Post 30 made on Thursday October 10, 2013 at 04:21
Achin
Long Time Member
Joined:
Posts:
August 2013
32
ok i got it your point , and i have another remote Sony this one [Link: ebay.com]
and my IR library is detecting something different, i mean one remote is sending 12  and 20 bits codes, i'll post it, can we decode that small hex code like C90 and 10B9C  this one ?


61
Decoded SONY: 61 (12 bits)
Raw (26): -29458 2350 -600 600 -600 600 -600 600 -550 600 -600 600 -600 1200 -550 1200 -600 600 -550 650 -550 600 -600 600 -600 1200 
61
Decoded SONY: 61 (12 bits)
Raw (26): -26100 2450 -550 650 -500 700 -500 700 -500 700 -450 700 -500 1250 -550 1250 -500 700 -500 700 -500 650 -500 700 -500 1250 
C90
Decoded SONY: C90 (12 bits)
Raw (26): -31640 2450 -500 1250 -550 1250 -500 700 -500 650 -500 1300 -500 700 -500 650 -500 1300 -500 700 -500 650 -500 700 -500 700 
890
Decoded SONY: 890 (12 bits)
Raw (26): 756 2450 -500 1250 -500 700 -500 700 -500 650 -550 1250 -500 700 -500 650 -500 1300 -500 700 -500 650 -500 750 -450 700 
B9C
Decoded SONY: B9C (20 bits)
Raw (42): 7446 2500 -500 650 -500 700 -500 700 -500 650 -550 650 -500 700 -500 650 -550 650 -500 1300 -500 650 -550 1250 -500 1300 -500 1250 -500 700 -500 700 -500 1250 -500 1300 -500 1250 -500 700 -500 700 
80B9C
Decoded SONY: 80B9C (20 bits)
Raw (42): -31362 2500 -500 1250 -500 700 -500 700 -500 650 -500 700 -500 700 -500 650 -550 650 -500 1300 -500 650 -550 1250 -500 1250 -550 1250 -500 700 -500 650 -550 1250 -500 1300 -500 1250 -500 700 -500 700 
C0B9C
Decoded SONY: C0B9C (20 bits)
Raw (42): 4318 2500 -500 1250 -500 1300 -500 700 -500 650 -500 700 -500 700 -500 650 -500 700 -500 1300 -500 650 -500 1300 -500 1250 -550 1250 -500 700 -500 650 -550 1250 -500 1300 -500 1250 -500 700 -500 700 
10B9C
Decoded SONY: 10B9C (20 bits)
Raw (42): 27282 2450 -500 650 -550 650 -500 700 -500 1250 -550 650 -500 700 -500 700 -500 650 -500 1300 -500 700 -500 1250 -500 1300 -500 1250 -500 700 -500 700 -500 1250 -500 1300 -500 1250 -500 700 -500 700 
Page 2 of 3


Jump to


Protected Feature Before you can reply to a message...
You must first register for a Remote Central user account - it's fast and free! Or, if you already have an account, please login now.

Please read the following: Unsolicited commercial advertisements are absolutely not permitted on this forum. Other private buy & sell messages should be posted to our Marketplace. For information on how to advertise your service or product click here. Remote Central reserves the right to remove or modify any post that is deemed inappropriate.

Hosting Services by ipHouse