Your Universal Remote Control Center
RemoteCentral.com
Everything Else 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 1 of 2
Topic:
STUCK converting pronto to wav
This thread has 27 replies. Displaying posts 1 through 15.
Post 1 made on Monday March 11, 2013 at 13:49
classic
Lurking Member
Joined:
Posts:
March 2013
3
Hello

I'm a uni student and I decided to create a universal remote, I have created my user interface with a database of pronto codes.

The reason I am stuck is because I have been unable to convert one pronto code to .wav file for any device I have, although I know my IR transmitter works as after hours of looking for LG .wav files I found a file called service-ok-ok.wav This file allows me to get into the service menu of my tv.... but this is all I can do as I do not know how to create a wav file, I have used pronto2wav and IRmaster with no success, As my TV or sky box do not respond to the .wav files created.

my transmitter is just 2 IR LEDs on a 3.5mm audio jack

my questions are:

do you have to have the correct channel?
do you have to have the correct frequency? 44.1 or 48?
I thought 48 just gave a better signal as my LEDs seem to light up more when frequency is set to 48.

is it possible that anyone could post a link to working sky remote .wav files that work with an audio jack IR transmitter and then tell me how these were created?

this would be much appreciated, thank you.
Post 2 made on Monday March 11, 2013 at 16:39
gopronto
Senior Member
Joined:
Posts:
April 2008
1,436
hi , i think it would be very difficult to convert Pronto hex to a wav file reliably.

the Pronto Hex file contains a modulation frequency, and a Pair of burst code pairs, and end pulse and some times a repeat code, there is a great article on Pronto HEX codes by Barry Gordon,it should be your starting point.

If your doing this for fun, then have fun... but there are many produts already in the market place.

Just a comment , you can not drive IR LED's via the audio jack you will need some form of driver like and FET..

Last edited by gopronto on March 12, 2013 00:47.
Pronto still one of the best Wi-Fi Remotes,
www.ikonavs.co.nz and [Link: prontoprojects.com] Axium Control catching up fast :)
OP | Post 3 made on Wednesday March 13, 2013 at 11:43
classic
Lurking Member
Joined:
Posts:
March 2013
3
I have figured it out :)

I didn't need an additional driver, I just used irmaster and used protocol RC6-6-20 then spammed war dialer to find the RC6 code for each button. It would have helped if I could get pronto codes to work as I have a database containing them for all of my devices.

Seems I just have to find the right protocol for each of my devices then spam war dialer :/ if anyone has a better way please let me know :)
OP | Post 4 made on Wednesday March 13, 2013 at 11:52
classic
Lurking Member
Joined:
Posts:
March 2013
3
is there a way to find out what the original code was before it was pronto?
original sky RC6-6-20 code is:
0000 0073 0000 001A 0060 0020 0010 0010 0010 0010 0010 0020 0010 0020 0020 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0E10
and the pronto code is:
0000 006c 0022 0002 0157 00ab 0015 0015 0015 0015 0015 0041 0015 0015 0015 0015 0015 0015 0015 0015 0015 0041 0015 0015 0015 0015 0015 0041 0015 0041 0015 0041 0015 0041 0015 0015 0015 0015 0015 0041 0015 0015 0015 0015 0015 0015 0015 0015 0015 0041 0015 0015 0015 0015 0015 0015 0015 0041 0015 0041 0015 0041 0015 0041 0015 0015 0015 0041 0015 0041 0015 065d 0157 0057 0015 0e65

not sure i understand pronto entirely :D but at least i have one fully functional sky remote... time to make it universal, but converting pronto code to its original format might help.... im guessing and I left my self a very small amount of time to do this in, didn't realise it would be quite so hard.

another question, why does my iPhone send from about 9ft away from the device but my laptop only sends about 4ft?

thanks
Post 5 made on Tuesday August 13, 2013 at 00:59
Achin
Junior Member
Joined:
Posts:
August 2013
32
hi.., i also working on Universal remote
actually i want to convert pronto hex code to .wave file in java
is there any help on it ?
Post 6 made on Sunday August 18, 2013 at 15:35
Barf
Regular Member
Joined:
Posts:
August 2013
161
Finally, after several years of lurking I have registered!

> actually i want to convert pronto hex code to .wave file in java


You are looking for IrpMaster, which is the engine of the previously mentionen IrMaster. IrpMaster can be used as a command line program, but in particular as an Java library, as requested here. You can achieve what you want in just a few lines of Java, say

IrSignal irSignal = Pronto.ccfSignal("0000 0073 0000 001A 0060 0020 0010 0010 0010 0010 0010 0020 0010 0020 0020 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0E10");
ModulatedIrSequence modulatedIrSequence = irSignal.toModulatedIrSignal(1);
Wave wave = new Wave(modulatedIrSequence, 48000, 8, 1, false, true, true, false);
wave.export(new File("export.wave"));


IrpMaster can be downloaded from my website: http://www.harctoolbox.org API documentation can also be found online there.(or can be generated automatically from the source by javadoc).

Disclaimer: I am the author :-)
Post 7 made on Friday August 23, 2013 at 01:16
Achin
Junior Member
Joined:
Posts:
August 2013
32
hi, thanks your advice
i have download the zip file named"IrMaster-bin"
and inside lib folder i have used IrpMaster.jar into my project
and i have used your code that you mentioned in your post, but the below line in code
ModulatedIrSequence modulatedIrSequence = irSignal.toModulatedIrSignal(1);
i got error saying
cannot find symbol
symbol: method toModulatedIrSignal(int)
location: variable irSignal of type org.harctoolbox.IrpMaster.IrSignal
in my IDE, please guide what is wrong here ?
Post 8 made on Friday August 23, 2013 at 12:37
Barf
Regular Member
Joined:
Posts:
August 2013
161
Hi Achin,
the program enclosed does compile and run using the current version of IrpMaster, version 0.2.2.  Most likely you have managed to download an older version. Try [Link: harctoolbox.org] (I should probably re-organize my download page to make it harder to download non-current versions... :-).) Let me know if this helps.

package javaapplication41;

import java.io.File;
import org.harctoolbox.IrpMaster.IrSignal;
import org.harctoolbox.IrpMaster.IrpMasterException;
import org.harctoolbox.IrpMaster.ModulatedIrSequence;
import org.harctoolbox.IrpMaster.Pronto;
import org.harctoolbox.IrpMaster.Wave;

public class JavaApplication41 {

    public static void main(String[] args) {
        try {
            IrSignal irSignal = Pronto.ccfSignal("0000 006D 0022 0002 0155 00AA 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0040 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0040 0015 0040 0015 0040 0015 0040 0015 0015 0015 0040 0015 05ED 0155 0055 0015 0E47");
            ModulatedIrSequence modulatedIrSequence = irSignal.toModulatedIrSequence(1);
            Wave wave = new Wave(modulatedIrSequence, 48000, 8, 1, false, true, true, false);
            wave.export(new File("Irpwavefile.wav"));
        } catch (IrpMasterException ex) {
        }
    }
}
Post 9 made on Saturday August 24, 2013 at 00:48
Achin
Junior Member
Joined:
Posts:
August 2013
32
hello,Thanks for replying and your helpful advice
I have downloaded your new zip file, which contains new jars..
and I have try your code that you suggested in your post and now i'm able to generate the wav file from Pronto Hex code ...
and now I am testing the wav file .,I will reply you after testing the wave files
and please can you suggest me some correct Pronto hex code
Post 10 made on Saturday August 24, 2013 at 04:36
Barf
Regular Member
Joined:
Posts:
August 2013
161
Please have a look at IrMaster (the GUI program), which you already have downloaded. There you can generate all the Pronto codes you want, you can generate wave files, and you can send it to the audio device on the current computer (suitable hardware assumed). (You can also do this in IrpMaster Java using the play() function of the Wave class.)

Also note that with IrpMaster you can generate IrSignal's from other sources than Pronto strings. Like

HashMap parameters = new HashMap();
parameters.add("D", 0);
parameters.add("F", 12);
IrSignal irSignal = new IrSignal("IrpProtocols.ini", "rc5", parameters);
ModulatedIrSequence modulatedIrSequence = irSignal.toModulatedIrSequence(1);
Wave wave = ...
wave.play();



will turn on or off a Philips (or other RC5) TV.

Please do not send me PMs with your postings.
Post 11 made on Saturday August 24, 2013 at 05:27
Achin
Junior Member
Joined:
Posts:
August 2013
32
thanks for reply,
and please could you explain these parameters, except the first one
new Wave(modulatedIrSequence, 48000, 8, 1, false, true, true, false);
i mean there meaning , and i did not found any documentation of these parameters
if i change these , is it going to change in the generated wav file?

actually,
i am working to make remote functionality in android for example i have Pronto Hex Code

And I want to convert the above into wave file to and after converting I also want to play the wave file with Medial player

For example the above is to on the device and in my activity i have button and when i click to that button the audio is playing, and i have device which generates the signal when i connect that to my android phone on 3.5mm jack

Post 12 made on Saturday August 24, 2013 at 09:11
Achin
Junior Member
Joined:
Posts:
August 2013
32
hi, I have another question
i have some Hex code like some eight letters which have some characters and some numeric values.., I have tested the generated wave files from the above code as you suggested on my TV, it is not working. I have checked the wave files with hex editor and then i match the wave file hex code with the Wave-file format from this link it's looking fine but it is not working with my TV, I don't know what is wrong.
[Link: ccrma.stanford.edu]
Post 13 made on Saturday August 24, 2013 at 10:57
Barf
Regular Member
Joined:
Posts:
August 2013
161
I wrote in my first message that API documentation could be found on my website; and there is actually link on the home page, so I do not think you tied that hard... Anyhow, here is a direct link to the API documenation of the Wave class: [Link: harctoolbox.org]

i have some Hex code like some eight letters which have some characters and some numeric values..,

Sorry, from that sentence I do not get your problem.

I have tested the generated wave files from the above code as you suggested on my TV, it is not working.

Most likely your hardware is not working or unsuitable, or you are using the wrong codes.
Post 14 made on Monday August 26, 2013 at 02:38
Achin
Junior Member
Joined:
Posts:
August 2013
32
hi, i have download a tool which takes Pronto hex code as input and then generates the wav file here is the tools pic in the second post in this link[Link: hifi-remote.com]
and then i open that genertaed wav file by this tool in HEX EDITOR and also i open the wav file in the Hex editor which is using your code and i found that Headers and writting correct  but the format chunk and data chunk is different.
and i my testing device is fine and it is working i have checked that , it's no problem. and the wave file created by the tool is working but the wav file which uses Irp masters jar file is not working and i am using the Pronto hex codes from this database [Link: remotecentral.com]
Post 15 made on Tuesday August 27, 2013 at 05:53
Achin
Junior Member
Joined:
Posts:
August 2013
32
hi,
finally my wave files are detected by my device correctly but those pronto hex codes having NEC protocols are not working like I have created a wave file from Sony pronto hex code it is working fine but like Toshiba and so on they are having NEC protocols they are not working
i want to ask you that your code is compatible with these kind of protocols or not?
Page 1 of 2


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