IRScrutinizer bug and question

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: 21923
Joined: Fri Aug 01, 2003 9:37 am
Location: Chicago, IL
Contact:

IRScrutinizer bug and question

Post by The Robman »

Hi Barf,
Could you try opening the following Lirc file using IRScrutinizer please:
https://www.hifi-remote.com/forums/dload ... e_id=13922

You will see that it gives an error, this is because one of the button labels includes a "|". Would it be possible to add something to IRScrutinzer to handle this character?

And now the question, once that Lirc file is loaded, is it possible to use the Eport function to generate an rmdu file? And if so, how do you do it.

This came from the following thread, in case you're interested...
https://www.hifi-remote.com/forums/viewtopic.php?t=16949
Rob
www.hifi-remote.com
Please don't PM me with remote questions, post them in the forums so all the experts can help!
Barf
Expert
Posts: 1522
Joined: Fri Oct 24, 2008 1:54 pm
Location: Munich, Germany
Contact:

Post by Barf »

Hi Rob,
nice to find you as IrScrutinizer user! :P
You will see that it gives an error, this is because one of the button labels includes a "|"
.
I am not sure if I consider your problem a "bug". The problem is that the exact format of the Lirc configuration files is not very well defined, in particular what characters are allowed in names. The Lirc tools for generating files, at least in the past, allowed the user to pass "everything". So I would argue that the very file is probably "not conforming", and the reject by IrScrutinizer is justified.

More technically, the parser is done using a "real" grammar and the parser generator antlr3, as opposed to Lirc. In that, the bar (|) is a token that separates options in some flags. So allowing that character, which is already a token, into the token NAME is, at least, quite complicated. (No, I am not quite happy with this...)

is it possible to use the Eport function to generate an rmdu file
No, it is not possible and also not planned. Instead, I prefer the path of this work, exporting the file in IrScrutinizer's native format Girr, and instead teaching RM to import that instead. Rationale is given in the link. (It is the mapping between protocols and executors again...)
Barf
Expert
Posts: 1522
Joined: Fri Oct 24, 2008 1:54 pm
Location: Munich, Germany
Contact:

Post by Barf »

FYI: I made this an issue at Github. But do not expect a fix very soon.
Barf
Expert
Posts: 1522
Joined: Fri Oct 24, 2008 1:54 pm
Location: Munich, Germany
Contact:

Post by Barf »

With version 1.2 of IrScrutinizer, both issues has been fixed. The Lirc parser has been completely rewritten. A reasonably complete (but "dumb" in the sense of deferring the hard parts to the user) RemoteMaster export has been implemented, see this.
The Robman
Site Owner
Posts: 21923
Joined: Fri Aug 01, 2003 9:37 am
Location: Chicago, IL
Contact:

Post by The Robman »

I can confirm that the import function works now with that file. However, I can't figure out how to export an rmdu file, whenever I try it keeps generating a girr file.

Also, when I first tried, I realized that I didn't remember the brand name, so I hit cancel, however it kept going through all of the other items, even though I hit cancel on all of them too, so it seems like the cancel button doesn't work.

Also, just a suggestion, rather than having a half dozen or so popups asking for brand and model, etc, could these all just be in one popup?
Rob
www.hifi-remote.com
Please don't PM me with remote questions, post them in the forums so all the experts can help!
Barf
Expert
Posts: 1522
Joined: Fri Oct 24, 2008 1:54 pm
Location: Munich, Germany
Contact:

Post by Barf »

The Robman wrote:I can confirm that the import function works now with that file. However, I can't figure out how to export an rmdu file, whenever I try it keeps generating a girr file.
In the Export pane, in "Export format" (the pulldown menu) select RemoteMaster.
Also, when I first tried, I realized that I didn't remember the brand name, so I hit cancel, however it kept going through all of the other items, even though I hit cancel on all of them too, so it seems like the cancel button doesn't work.
You can turn it off alltogether by deselecting Options -> Export Options -> Inquire Device Metadata.
Also, just a suggestion, rather than having a half dozen or so popups asking for brand and model, etc, could these all just be in one popup?
Agree 100%, pesky in particular if you do not care for it, or if the export format does not use it. Actually, it is already on my TODO list
The Robman
Site Owner
Posts: 21923
Joined: Fri Aug 01, 2003 9:37 am
Location: Chicago, IL
Contact:

Post by The Robman »

Ah, ok, I assumed you had to use the Export button, ok, so I switched to the Export pane and selected RemoteMaster from the drop down, now what? There are 4 Export buttons to chose from, none of which with a name that sounds obvious. Randomly, I tried the Export Generated button and it did create an RMDU file, but when I opened it in RM there was only 1 function, so I probably did something wrong, just not sure what.
Rob
www.hifi-remote.com
Please don't PM me with remote questions, post them in the forums so all the experts can help!
Barf
Expert
Posts: 1522
Joined: Fri Oct 24, 2008 1:54 pm
Location: Munich, Germany
Contact:

Post by Barf »

The Robman wrote:Ah, ok, I assumed you had to use the Export button,
(on the Scrutinize remote pane). It uses the "currently selected format", so if you first select your export format (RemoteMaster), it will work for you.
ok, so I switched to the Export pane and selected RemoteMaster from the drop down, now what? There are 4 Export buttons to chose from, none of which with a name that sounds obvious.
You want to use "Export param. remote" button. "Export signal" exports the (single) signal on "Scrutinize signal", "Export raw remote" the signals on Scrutnize remote -> Raw Remote, "Export generated" the content of the "Generate" pane. See also the tutorial (which, BTW, was written by your request).

Normally, I put "tooltext" help on such buttons. I see that I have forgotten it here. Will fix. Thanx for reminding me.
chuliu
Posts: 454
Joined: Sat Dec 04, 2010 10:44 am
Location: Hong Kong

Post by chuliu »

Hi, I just checked irscrutinizer web page and it said that one can export from ircrutinizer many file formats, including ict and rmdu. If that is the case, I would like to flash back my ir toy from ir widget mode to its original firmware.

After all, I have already got a ir widget on hand.

Thanks.
Barf
Expert
Posts: 1522
Joined: Fri Oct 24, 2008 1:54 pm
Location: Munich, Germany
Contact:

Post by Barf »

@chuliu:
File formats and capuring hardware are two different pair of shoes; they are not related. Yes, it is a good idea to flash the IrToy FW; be sure to use firmware 2.2. That allows you to use the IrToy also for sending.

If your soldering iron needs excercise, here is a fun modding project.

@Rob:
No news is good news, I presume?
The Robman
Site Owner
Posts: 21923
Joined: Fri Aug 01, 2003 9:37 am
Location: Chicago, IL
Contact:

Post by The Robman »

I haven't had a chance to play with it again. I will report back.
Rob
www.hifi-remote.com
Please don't PM me with remote questions, post them in the forums so all the experts can help!
chuliu
Posts: 454
Joined: Sat Dec 04, 2010 10:44 am
Location: Hong Kong

Post by chuliu »

I just learned that one can use many kinds of hardware with irscrutinizer, including irtoy, ir widget, global cache, arduino, and lirc.

I was under the impression that it worked best with ir toy.

Anyway, it is indeed good to flash it back to ir toy so that I can use it for sending ir signal, just as an option. I will need to look for a short wire, or jumper.

Here is a guide to use irscrutinizer:
http://www.hifi-remote.com/wiki/index.p ... izer_Guide
Just for the reference.
Post Reply