IrpTransmogrifier: new program/library for IRP protocols
Posted: Mon Aug 12, 2019 1:14 pm
After almost four years: First public release of IrpTransmogrifier, called version 1.0.1.!
This is a completely new program, written from scratch, that is intended to replace IrpMaster, DecodeIR, and (most of) ExchangeIR, and much more, like potentially replacing hand written decoders/renders. The project consists of an API library that is also callable from the command line as a command line program. It does not come with a GUI, but is intended to be integrated into GUI programs, like IrScrutinizer.
It has a data base file of protocols in IRP format. This drives both the rendering and the decoder. So, in contrast to DecodeIR, the behavior can be (almost) completely customized from that file, together with a number of parameters.
As a command line program, it is a program with sub-commands. Sub-commands are, for example
* render (for rendering signals from protocol/parameters),
* decode (decode signals like DecodeIR)
* analyze (from one or many signals, compute IRP form)
* expression (compute IRP expression)
* list (list information in the protocol data base)
and more.
Here are some bat files as example.
I intend to do a Youtube video within then next few days demonstrating the command line program.
Online reference manual
This thread continues this one.
A questions from that thread:
The program can be downloaded here, just unpack the file IrpTransmogrifier-1.0.1-bin.zip into an empty directory and execute irptransmogrifier.bat (Windows) or irptransmogrifier.sh (Linux & MacOs) from the command line. Installing the newest version 2.0.1 of IrScrutinizer will also give access to the program.
Keep transmogrifying!!
This is a completely new program, written from scratch, that is intended to replace IrpMaster, DecodeIR, and (most of) ExchangeIR, and much more, like potentially replacing hand written decoders/renders. The project consists of an API library that is also callable from the command line as a command line program. It does not come with a GUI, but is intended to be integrated into GUI programs, like IrScrutinizer.
It has a data base file of protocols in IRP format. This drives both the rendering and the decoder. So, in contrast to DecodeIR, the behavior can be (almost) completely customized from that file, together with a number of parameters.
As a command line program, it is a program with sub-commands. Sub-commands are, for example
* render (for rendering signals from protocol/parameters),
* decode (decode signals like DecodeIR)
* analyze (from one or many signals, compute IRP form)
* expression (compute IRP expression)
* list (list information in the protocol data base)
and more.
Here are some bat files as example.
I intend to do a Youtube video within then next few days demonstrating the command line program.
Online reference manual
This thread continues this one.
A questions from that thread:
It now works with AND without the quotes. AND the somewhat flawed signal poses no problem any more:Actually, it is without the double quotes (I will see if I can make it grok them anyhow). But if you remove them, you will still get -- nothing. This is not an error but means that no decode has been found. In the strict sense, this is correct: the signal is a NEC1 with one copy of the repeat-ditto tucked onto the intro, and there is no known protocol that looks like that. I am not saying this is the ideal behavior of a decoder. Instead, the use case of loose matching, "guessing", I have simply not yet implemented. I know that DecodeIR, and also Dave's teaser presently do a better job here. It is planned.The Robman wrote:
Here's what I tried:
irptransmogrifier decode "0000 006C 0024 0002 0159 00AD 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0041 0015 0016 0015 0041 0015 0041 0015 0016 0015 0016 0015 0041 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0041 0015 0016 0015 0016 0015 0016 0015 0041 0015 0041 0015 0041 0015 0041 0015 0016 0015 0041 0015 0041 0015 0041 0015 0016 0015 06C0 0159 0057 0015 0E81 0159 0057 0015 0E81" > output.txt
Code: Select all
$ irptransmogrifier decode 0000 006C 0024 0002 0159 00AD 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0041 0015 0016 0015 0041 0015 0041 0015 0016 0015 0016 0015 0041 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0041 0015 0016 0015 0016 0015 0016 0015 0041 0015 0041 0015 0041 0015 0041 0015 0016 0015 0041 0015 0041 0015 0041 0015 0016 0015 06C0 0159 0057 0015 0E81 0159 0057 0015 0E81
NEC1-rnc: {D=128,F=136,S=38}
NEC1: {D=128,F=136,S=38}
The program can be downloaded here, just unpack the file IrpTransmogrifier-1.0.1-bin.zip into an empty directory and execute irptransmogrifier.bat (Windows) or irptransmogrifier.sh (Linux & MacOs) from the command line. Installing the newest version 2.0.1 of IrScrutinizer will also give access to the program.
Keep transmogrifying!!