hi, i am working on universal remote and i have done allot of research on this topic and at the last i found remote-central.com which suggest me to use IrpMaster Java library to convert the Pronto hex codes into wave files in JAVA. and you can see my thread on remotecentral.com in this link http://www.remotecentral.com/cgi-bin/mb ... ad.cgi?266 and also this one http://www.remotecentral.com/cgi-bin/mb ... ad.cgi?196
for eg, i have sansui TV and i am decoding it's IR signal with arduino with IR library you can see in this video , i am using the same device http://www.youtube.com/watch?v=wFMqjknLn8o
and i put the wave file on my phone and to i have device which fire the signal when i play the wave file and my transmitter is just 2 IR LEDs on a 3.5mm audio jack you can check in this link https://www.hifi-remote.com/forums/viewt ... e9440709dd in the second link.
and when i am using IrpMasters jar files and JAVA code to generates wave files
and i have sansui TV when i decode the Power button in front on arduino it give me 40BF48B7 hex code and i have used the below code to generate wave file but when i play this in front of my TV it is not working
Code:
try {
// TODO code application logic here
HashMap parameters = new HashMap();
long A = Long.parseLong("40BF48B7", 16);
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//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"));
}catch (Exception ex) {
Logger.getLogger(IrpMaster.class.getName()).log(Level.SEVERE, null, ex.toString());
}
converting pronto hex codes to wave file in JAVA not working
Moderator: Moderators