Copy the core function out of a Windows app into a stand alone command line
$100-500 USD
Completed
Posted over 13 years ago
$100-500 USD
Paid on delivery
There is a Windows/MFC app called IR Scope that learns and analyzes infrared codes sent from normal tv remote controls. The app is here: [login to view URL] and there's a link to the source code. It does quite a few things, but there is one feature in the app only that I'm interested in being able to do from a command line on our Linux server: take an infrared code learned from a remote control, decode it, and then re-encode it. This does not require any interface to the hardware--it's purely a software action. Also, this uses dll's to do all the work, and those dll's are separate functions without any user interface. They just do processing. And they are open source too.
What I want is to copy all the relevant functions from their various places and do this from a command line. For the original developer who wrote the app it would probably only take an hour or two of work. Unfortunately he is not available. So you'll need to allow yourself some time to study the existing code and probably run it in a debugger.
## Deliverables
To see what the app needs to do, download IRScope here: [login to view URL] and run it on a Windows PC.
Choose File, Import and copy/paste the following infrared code:
0000 006C 0022 0002 0159 00AC 0015 0016 0015 0016 0015 0041 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0041 0015 0041 0015 0016 0015 0041 0015 0041 0015 0041 0015 0041 0015 0041 0015 0016 0015 0016 0015 0016 0015 0041 0015 0016 0015 0016 0015 0016 0015 0016 0015 0041 0015 0041 0015 0041 0015 0016 0015 0041 0015 0041 0015 0041 0015 0041 0015 05FB 0159 0056 0015 0E62
When you click 'OK', you'll see that it displays that it's an NEC1 protocol.
Now, unzip the attached [login to view URL] into a folder on your PC. In IRScope, choose File, set folder, set IRP folder, and select the folder with the contents of this .zip file. Now create a new folder called 'output' somewhere, and choose File, set folder, set export output folder, and choose that folder. Now choose Export, Export Mode, Pronto from decode. Then choose Export, Export selected. Now look in that 'output' folder and you'll see see a file containing another IR code.
I need a command line program that runs on Linux that takes the original IR Code you imported as the single argument to the program, and that outputs that decoded file in the current folder.