IRScope decoding - can any of this be automated?
Posted: Sun Sep 30, 2012 7:21 pm
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.
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.