On September 5, 2013 at 03:43, Achin said...
....
i have another query , can we convert this 40BF48B7 ir code into pronto hex codes in JAVA , i mean via coding ?
There are at least two ways: Either add
[protocol]name=rawnecirp={38.4k,564}<1,-1|1,-3>(16,-8,A:32,1,-78,(16,-4,1,-173)*)[A:0..4294967295]
to the end of IrpProtocols.ini and use code like
HashMap parameters = new HashMap();
parameters.add("A", Long.ParseLong("40BF48B7", 16));
IrSignal irSignal = new IrSignal("IrpProtocols.ini", "rawnec", parameters);
How to get from an IrSignal to a Wave, I have shown in previous posts.
Or you can use the existing nec1-f16 protocol:
HashMap parameters = new HashMap();
long A = Long.parseLong("40BF48B7", 16);
long D = (A & 0xff000000L) >> 24;
parameters.add("D", D);
long S = (A & 0x00ff0000L) >> 16;
parameters.add("S", S);
long F = A & 0xffffL;
parameters.add("F", F);
IrSignal irSignal = new IrSignal("IrpProtocols.ini", "nec1-f16", parameters);
It is really easy!
I will address the wave problems in the other thread.
Last edited by Barf on September 5, 2013 15:32.