Posted: Sat Jul 10, 2010 9:01 am
Okay, we will go that route then.gfb107 wrote: And changing the checking tool rather than the RDFs or RM avoids the version dependency problems between RM and the RDFs altogether.
xnappo
Okay, we will go that route then.gfb107 wrote: And changing the checking tool rather than the RDFs or RM avoids the version dependency problems between RM and the RDFs altogether.
If this is true, don't you think it's somewhat dangerous to have HT be available as a general device mode? As things stand, there's nothing stopping people from creating upgrades using HT as the device mode and then adding them to IR.mathdon wrote:Could an alias of OEM Mode cause a problem? Yes. If converting from a device with the OEM Mode alias on some other remote to a URC-7781, it would use the HT type, which is meaningless. It would also, almost certainly, use an invalid setup code for this type. There are exactly two valid setup types for the device index 15 (which is HT). One is $FFF, signifying that the device slot is empty. The other is $3F3, signifying that the slot has been assigned to HT (Home Theater).
then:The Robman wrote:So what we need is the ability to specify the default setup codes for each device button in the RDF, right?
and:The Robman wrote:As I think we're headed towards making the RDFs create a "new" image that almost exactly replicates a virgin image, I think it might be a good idea to sneak in something so that we can tell when an IR file was created this way, just to help us diagnose possible problems.
I'm thinking that whenever someone uses the New > Select method of creating an IR file, IR could put a little signature of sorts near the end of the IR file, like maybe a couple of bytes with the value $1234.
and:mathdon wrote:Bill wrote:It is this other stuff that made me introduce "read-only settings". You don't even need to know what the byte does, just what its value in a 981 reset should be. Give such settings innocuous names such as Aux1, Aux2,... - it really doesn't matter. If the user can't change the value, he/she doesn't need to know what it is for. But I think it is helpful for diagnosis, experiment, etc to have such values displayed. (I suppose I could even create "invisible" settings that are used in initialization but are not displayed, if that was felt to be better.)The setup codes are not the only thing, there is some other stuff. For example, the Comcast DVR has some things in there that I don't quite understand but if one of them is not $0F the remote uses the value in there for the device for all macros. Then if the device is greater than $03 the remote goes to never-never land.
The ability to specify default setup codes in the [DeviceButtons] section and read-only settings through a parameter in the [General] section are in version 4 of the RDF Specification and have been implemented in IR.exe since version 8.00. It even puts in the date, in a year/month/day format, at the end of the Advanced Code section as the marker that Rob asked for.The Robman wrote:we need to make the RDFs able to create good virgin images. The marker that I suggested would only be added to images that were created using the New > Select option as it would tell us how the IR file was initially created. There would be no need for IR to ever get rid of the marker, and if it gets overlaid with valid data (eg, learned signals or upgrades) so be it. In fact, now that I think of it, rather than using a hard code marker, maybe we could make it a date. We could fit a date into 3 bytes (eg, $02 07 09).
If someone has problems with an IR file, the marker would tell us that it was created using IR.exe and the date would tell us how recently. So, if it's an old file, the problem is probably something else, but if it's new, then maybe there's a byte of data that should have been set but IR.exe didn't set it.
I like the idea of display only data too.
I like it. Is the position of the date configurable in the RDF? My preference would be to position it at the end of the upgrade section as this is less likely to get filled with user data than the advanced code section. Another possibility is the learning section.mathdon wrote:The ability to specify default setup codes in the [DeviceButtons] section and read-only settings through a parameter in the [General] section are in version 4 of the RDF Specification and have been implemented in IR.exe since version 8.00. It even puts in the date, in a year/month/day format, at the end of the Advanced Code section as the marker that Rob asked for.
One minor thing that I noticed with this RDF is that the AUX2 button defaults to LASER/0029, which is not a valid code. I suspect that the correct code is LASER/0059, which is present in the remote.mathdon wrote:I did one RDF of a fairly complicated remote as an example. This one creates a Factory Reset image when loaded through File/New:
ET80ET80 (URC-8550_5550 Topline).rdf
I think you could right-click on the text view (or the link itself) and select Save As... and then all you have to choose is the destination folder, the file name would be filled in for you.3FG wrote:xnappo,
Using IE8 with no SourceForge account, your link brought up the text of the rdf file. I copied and pasted into Notepad, then copied and pasted the file name from Graham's post into the SaveAs dialog.
I haven't tested the resulting file, but it looks perfectly normal.
With the RDF I have, the @AUX2 button defaults to TAPE/0029, which is valid and correct. If it now defaults to LASER/0029 then that is a bug that has arisen in the latest juggling with the RDF, over the issues of "@ symbols" and duplicate device type aliases.The Robman wrote:One minor thing that I noticed with this RDF is that the AUX2 button defaults to LASER/0029, which is not a valid code. I suspect that the correct code is LASER/0059, which is present in the remote.
No, it's not configurable but there is no reason why it could not be written at the end of more than one section. It does no harm and it serves its purpose if at least one of them survives.The Robman wrote:Is the position of the date configurable in the RDF?