Post 15 made on Thursday September 12, 2013 at 05:07 |
Achin Long Time Member |
Joined: Posts: | August 2013 32 |
|
|
ok, the above helps me and i have found another strange thing as i have told you that when i press my sansui TV power button, on the Serial monitor i got Received NEC: 40BF48B7 Pressed, sending Sent NEC 40BF48B7 Pressed, sending Sent NEC repeat Pressed, sending Sent NEC repeat Pressed, sending Sent NEC repeat Pressed, sending Sent NEC repeat Pressed, sending and using the above Hex code 40BF48B7 i have created a wav file and when i play this wav file then in the serial monitor i got Received NEC: repeat; ignoring. Pressed, sending Sent NEC 0 Pressed, sending Sent NEC repeat Pressed, sending Sent NEC repeat Pressed, sending Sent NEC repeatand the code i have used is below HashMap parameters = new HashMap(); long A = Long.parseLong("40BF48B7", 16);//02FD12ED//40BF48B7 long D = (A & 0xff000000L) >> 24; parameters.put("D", D); long S = (A & 0x00ff0000L) >> 16; parameters.put("S", S); long F = A & 0xffffL; parameters.put("F", F); IrSignal irSignal = new IrSignal("IrpProtocols.ini", "nec1-f16", parameters);//NEC1-f16(nec1-f16) //NEC1 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, true, true, false); Wave wave = new Wave(modulatedIrSequence, 48000, 8, 2, false, false, true, false); wave.export(new File("Powebutton.wav")); and my raw and pronto code is 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,-39756][9024,-2256,564,-96156][] 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 05F7 015B 0057 0016 0E6C but it not working my TV is not getting ON/OFF
|
|
|