IRScope decoding - can any of this be automated?

Discussion forum for JP1 software tools currently in use, or being developed, such as IR, KM, RemoteMaster, and other misc apps/tools.

Moderator: Moderators

Post Reply
The Robman
Site Owner
Posts: 21928
Joined: Fri Aug 01, 2003 9:37 am
Location: Chicago, IL
Contact:

IRScope decoding - can any of this be automated?

Post by The Robman »

I have just loaded a zip file here:
https://www.hifi-remote.com/forums/dload ... e_id=11393

This file shows all the manual steps that I have to follow in order to decode learns when they are posted in an ICT file rather than an IR file.

File 1: Ortek Mouse.ict
This is a sample ICT file (originally posted here, if you're interested). There is a bug in IRScope where it doesn't recognize a new learned signal if the leadout time of the previous learned signal is not long enough, so the first thing you need to do with an ICT file is open it up using Notepad and examine all the leadout times to make sure they're about 500k.

File 2: Ortek Mouse2.ict
This is the sample file after I've fixed the leadout times, so this one will open OK using IRScope.

File 3: ExportedUEI.txt
Next, you need to manually open the ExportedUEI.txt file (in the IRScope folder) if it exists and remove its contents. Then, in IRScope, select Export > Export Mode > UEI Learned. Then, select all the learns (CNTL+A works for this). Then select Export > Export Selected (CNTL+E also works).

File 4: IRScope-decoder.xls
Next, open my IRScope-decoder.xls spreadsheet (a copy is included in the zip). Then, open the ExportedUEI.txt and cut & paste its contents into the "Input" tab of the spreadsheet. Now go to the "Output" tab and cut & paste the first column into a Notepad file and save it as an IR file.

File 5: Ortek Mouse2.ir
This is the results of the previous step. Open this file using IR.exe (or the version of RMIR that has Vyrolan's changes) and go to the Learned Signals tab. Select an appropriate rounding value, and (if necessary) a Bi-Phase value, and click the Times Summary button. Then cut & paste the contents of the pop-up screen into another Notepad session.

File 6: manual-edits.txt
In this case, 500 is the correct rounding and EVEN is the correct Bi-Phase option. In the Notepad session, you would replace "+500 -500; " with "1", "-500 +500; " with "0", then the replace the remaining "+500 " with "1" also. This will give you the binary of the signal.


So, can any of these steps be automated? I don't really care which program it all ends up in (ie, IR, RMIR, IRScope, IRMaster, etc) but I would really appreciate not having to do all this manual work whenever someone posts learns that contain a new protocol in an ICT file rather than an IR file.
Rob
www.hifi-remote.com
Please don't PM me with remote questions, post them in the forums so all the experts can help!
cauer29
Posts: 236
Joined: Wed Feb 03, 2010 9:15 am

Post by cauer29 »

The obvious thing (to me anyway) is to skip all of the intermediate programs. Just do it all in Excel. VBA can open the ICT file do all the fixups needed, put whatever is needed into the spreadsheet and export the result as needed.

A.A.
The Robman
Site Owner
Posts: 21928
Joined: Fri Aug 01, 2003 9:37 am
Location: Chicago, IL
Contact:

Post by The Robman »

Wanna have a crack at it?
Rob
www.hifi-remote.com
Please don't PM me with remote questions, post them in the forums so all the experts can help!
Vyrolan
Posts: 168
Joined: Fri Aug 24, 2012 8:42 pm
Location: Chicago, IL

Re: IRScope decoding - can any of this be automated?

Post by Vyrolan »

The Robman wrote: File 5: Ortek Mouse2.ir
This is the results of the previous step. Open this file using IR.exe (or the version of RMIR that has Vyrolan's changes) and go to the Learned Signals tab. Select an appropriate rounding value, and (if necessary) a Bi-Phase value, and click the Times Summary button. Then cut & paste the contents of the pop-up screen into another Notepad session.
Somewhat pleased that the auto analysis got most of those correct. It looks like it missed on a few...I'll have to look into why.

The Robman wrote: So, can any of these steps be automated? I don't really care which program it all ends up in (ie, IR, RMIR, IRScope, IRMaster, etc) but I would really appreciate not having to do all this manual work whenever someone posts learns that contain a new protocol in an ICT file rather than an IR file.
I still feel like RMIR should be able to import learns from an ICT file directly. So you would just click an "Import" button the Learned Signal tab and then pick your ICT file and have them all show up...then just click the Timing Summary.
mdavej
Expert
Posts: 4635
Joined: Wed Oct 08, 2003 7:08 am

Post by mdavej »

Keep in mind these particular signals aren't very clean, as far as I know. The original remote has a round pad that sends one of 16 possible commands depending on where it's touched. If you don't press it just right, you'll get a mix of 2 or more OBCs. I don't know if you're actually seeing this case in some of the ICT files, but it's a possibility. Just wanted to give you guys a heads up since I did the captures and am not very proud of them.
Post Reply