JP1 Remotes Forum Index JP1 Remotes


FAQFAQ SearchSearch 7 days of topics7 Days MemberlistMemberlist UsergroupsUsergroups RegisterRegister
ProfileProfile Log in to check your private messagesLog in to check your private messages Log inLog in

New idea: WAV files to drive IR emitter/blaster
Goto page Previous  1, 2, 3, 4, 5, 6
 
Post new topic   Reply to topic    JP1 Remotes Forum Index -> JP1 - Software
View previous topic :: View next topic  
Author Message
vickyg2003
Site Admin


Joined: 20 Mar 2004
Posts: 7073
Location: Florida

                    
PostPosted: Tue Oct 08, 2013 7:58 am    Post subject: Reply with quote

JackV wrote:


The second one works great.

So now I'm curious.

A few apps in the iTunes store allow for learning TV remote options. I can take any remote and point it a IR receiver diode and the app reproduces the sound/signal. All within the that little IOS app.

How are they doing that?

Also, I need to convert this to MP3 to work with Alarm clock apps. Converting it to MP3 caused it not to work. I used Audacity and exported it as 128 kbps / stereo output. Playing around with the limited settings did not produce the desired results.


An IR signal is a precise timing pattern. Light on, Light off, Light on, Light off at precision timings. There are 34 distinct ON/Offs in the first frame alone, two times in the ditto frames. Now while the light is ON periods that we can see from the WAV, it also flickers at 38K per second for NEC. That flickering determines the Frequency,

So I took a look in my MP3 software that I used to convert my vinyl to mp3. I opened up the WAV and saved it as a high quality MP3 at a 256 k rate, which was the best my software could do.

I popped the MP3 open in Audacity (for some reason I can't export to mp3 in audacity) The top set of sounds is the MP3, the bottom set is the WAV
Right away I can see that there isn't any real off time. Can't tell what the actual flickering is doing.

I'm not quite sure how you solve this, a better mp3 encoder perhaps?




Uploaded with http://imageshack.us
_________________
Remember to provide feedback to let us know how the problem was solved and share your upgrades.

Tip: When creating an upgrade, always include ALL functions from the oem remote, even if you never plan on assigning them to a button. Complete function lists makes an upgrade more helpful to others.
Back to top
View user's profile Send private message Visit poster's website
JackV



Joined: 06 Oct 2013
Posts: 6

                    
PostPosted: Tue Oct 08, 2013 12:36 pm    Post subject: Reply with quote

vickyg2003 wrote:
JackV wrote:


The second one works great.

So now I'm curious.

A few apps in the iTunes store allow for learning TV remote options. I can take any remote and point it a IR receiver diode and the app reproduces the sound/signal. All within the that little IOS app.

How are they doing that?

Also, I need to convert this to MP3 to work with Alarm clock apps. Converting it to MP3 caused it not to work. I used Audacity and exported it as 128 kbps / stereo output. Playing around with the limited settings did not produce the desired results.


An IR signal is a precise timing pattern. Light on, Light off, Light on, Light off at precision timings. There are 34 distinct ON/Offs in the first frame alone, two times in the ditto frames. Now while the light is ON periods that we can see from the WAV, it also flickers at 38K per second for NEC. That flickering determines the Frequency,

So I took a look in my MP3 software that I used to convert my vinyl to mp3. I opened up the WAV and saved it as a high quality MP3 at a 256 k rate, which was the best my software could do.

I popped the MP3 open in Audacity (for some reason I can't export to mp3 in audacity) The top set of sounds is the MP3, the bottom set is the WAV
Right away I can see that there isn't any real off time. Can't tell what the actual flickering is doing.

I'm not quite sure how you solve this, a better mp3 encoder perhaps?




Uploaded with http://imageshack.us


Thanks for the reply. That's been very informative. I'll try some other conversion apps. But to save as a MP3 or any other format in Audacity, simply use the EXPORT feature, not the save as...

I'm still baffled about a few things though:

1) How can an IOS app read the signal from another remote (through an IR receive diode) and produce a crisp and usable representation all through the headphone jack while I cannot produce the same thing?

2) My original Vizo.wav was recorded through by my original remote through my ipad. It produced a audible sound, while yours does not, yet yours works.

3) I want to create a piece of software, probably web based that will work like a universal remote, able to output sound files for IR that would produce distinct signals. My method doesn't seem to work.

Again. Thanks for all your help in this learning process.
Back to top
View user's profile Send private message
Barf
Expert


Joined: 24 Oct 2008
Posts: 1414
Location: Munich, Germany

                    
PostPosted: Tue Oct 08, 2013 2:46 pm    Post subject: Reply with quote

vickyg2003 wrote:
Okay Barf,

HOW did you import it into IRMaster?

Quote:
IrMaster (that is without the "p") can generate a wave file like this (not the 9 seconds of silence however Wink ), with some additional options: Make sure that the export option is enabled (Options -> Enable Componenets -> Enable export pane) Just select the export pane within the IR protocols pane, select nec1 as protocol, set D=4 and F=8, press "Export". Done!


I thought you were doing this with IRPMaster with Achin. . . .

And yes I would like to know how to do this. It is not crucial for me to do, but it would be nice to know how. If I know how, I can recommend it.

Import is performed by pressing the "Import" button, in the "Generate & Analyze" pane. IrpMaster, the command line program, does not support wave file generation. But there is a main routine in the Wave class too, so command line users can use a command like

Code:
java -classpath  lib/IrpMaster.jar  org.harctoolbox.IrpMaster.Wave  -c  IrpProtocols.ini   nec1 12 34 56

(Told you that you did not want to know. The user friendly alternative is IrMaster.). Generating wave using IrpMaster from Java is described here. Note that for an experienced Java programmer, this is not black magic at all, but all he needs is the API documentation, linked in that thread.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Barf
Expert


Joined: 24 Oct 2008
Posts: 1414
Location: Munich, Germany

                    
PostPosted: Tue Oct 08, 2013 3:00 pm    Post subject: Reply with quote

A few comments on MP3: To my knowledge, noone has tried this before, at least not while reporting it. Generally speaking, MP3 is optimized to "fool" the human ear, not an IR Sender/Receiver combination. So applying MP3 compression to an IR signal in disguise is akin to applying JPEG compression (optimized for photographs) to a simple figure with just a few colors. It looks awful.

@vicky: you also subsample the signal 48000 -> 44100. This also has a bad effect on the optical "crispness" of the signal.

Quote:
1) How can an IOS app read the signal from another remote (through an IR receive diode) and produce a crisp and usable representation all through the headphone jack while I cannot produce the same thing?

Likely the signal is demodulated in hardware, then recorded into a timing pattern, which is then transformed to a wave signal, somewhat summarized.
Quote:
2) My original Vizo.wav was recorded through by my original remote through my ipad. It produced a audible sound, while yours does not, yet yours works.

I suspect the use of two channels in antiphase in the IrScope file, if you playback that in mono, you will get exactly 0 as output.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
skar_01



Joined: 07 Jan 2014
Posts: 4

                    
PostPosted: Tue Jan 07, 2014 8:18 pm    Post subject: Reply with quote

Hello.
I am really new to all of this, but I have to try it.

My friend lost the IR Remote for a LED Controller box.
I found a lot of info about the remote control, even the HEX numbers for the different buttons, here : http://blog.allgaiershops.com/2012/05/10/reversing-an-rgb-led-remote/

I want to beam these on a home-made IR emitter, using my audio-output jack on my laptop/phone.
Is it possible?
Back to top
View user's profile Send private message
3FG
Expert


Joined: 19 May 2009
Posts: 3367

                    
PostPosted: Tue Jan 07, 2014 10:47 pm    Post subject: Reply with quote

The software package IrScrutinizer is able to generate WAV files which you can use with a suitably wired IR LED.

Your link to the IR codes is puzzling. My reading of the oscilloscope trace is NEC1 device 0x00, function 0x4A, but the author gives it as NEC1 device 0xFF, function 0x1A. I think he may have interchanged bits 0 and 1, which would explain the device number, but it would also require that the trace actually represents function Down rather than Red. So I wonder if his numbers entered directly into IrScrutinizer will work.
Back to top
View user's profile Send private message
skar_01



Joined: 07 Jan 2014
Posts: 4

                    
PostPosted: Wed Jan 08, 2014 6:55 am    Post subject: Reply with quote

3FG wrote:
The software package IrScrutinizer is able to generate WAV files which you can use with a suitably wired IR LED.

Your link to the IR codes is puzzling. My reading of the oscilloscope trace is NEC1 device 0x00, function 0x4A, but the author gives it as NEC1 device 0xFF, function 0x1A. I think he may have interchanged bits 0 and 1, which would explain the device number, but it would also require that the trace actually represents function Down rather than Red. So I wonder if his numbers entered directly into IrScrutinizer will work.


Thank you very much for the reply 3FG!
He states, that the numbers are little-endian (where the least significant bit is stored in the smalles addres), but I don't know if this has to do with the hex numbers he stated, and the ones you read of the oscilloscope trace.
I will test out both codes (the one in the article, and the one you gave me). If the one he wrote down in the article is not working and yours does, how do I convert all of his readings to actually working ones? Is there a way?

So, after I launch the IrScrutinizer, I go to the "Generate" tab, select the nec1 protocol, enter "0x00" in the "Device" textbox, leave "S" empty, and enter, for example, 0x4A in the "F" textbox. After doing this, and clicking on Transmit, i hear something, so I guess it works. I exported that into .wav, and I opened it in Audacity, and I see that it's MONO. Do I have to duplicate and invert one of them(I've read somewhere that this is how it's done Confused), so it's Stereo?

Now I have to build the IR transmitter...
If I make an IR transmitter like this one : http://i.stack.imgur.com/TVCnL.png, will it work with this kind of things?

And another thing : do I have to set my audio output frequency in Windows ? Right now it's on 16bit, 44100 Hz.

Thank you once again for replying, the fact that I don't have the original remote drives me crazy, but if I get this to work, and generate all the .wav files it will be great to control the LED controller from my PC.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic       JP1 Remotes Forum Index -> JP1 - Software All times are GMT - 5 Hours
Goto page Previous  1, 2, 3, 4, 5, 6
Page 6 of 6

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

Powered by phpBB © 2001, 2005 phpBB Group
Top 7 Advantages of Playing Online Slots The Evolution of Remote Control