JP1 Remotes Forum Index JP1 Remotes


FAQFAQ SearchSearch 7 days of topics7 Days MemberlistMemberlist UsergroupsUsergroups RegisterRegister
ProfileProfile Log in to check your private messagesLog in to check your private messages Log inLog in

RMIR 'Bogus Keys Insertion' Bug In Downloaded Macro

 
Post new topic   Reply to topic    JP1 Remotes Forum Index -> JP1 - Software
View previous topic :: View next topic  
Author Message
WagonMaster



Joined: 16 Apr 2009
Posts: 361

                    
PostPosted: Wed Sep 23, 2009 4:56 pm    Post subject: RMIR 'Bogus Keys Insertion' Bug In Downloaded Macro Reply with quote

While testing the new RMIR version today, I ran into what I think must be a bug in the macro programming or reading code.

It's easy to duplicate:
  1. Run RMIR v1.97. (I'm running it on Linux, but I doubt that matters.)
  2. Select a clean, baseline load for your remote control. I'm using a "virgin" load on a Radio Shack 15-135 remote.
  3. Go to the "Macros" tab/page and program a simple macro on the "Audio" button. That is, select the "New" pushbutton, use "Audio" for the "Bound Key", "Key:" selection, select "TV" under the "Available keys:" selection, then select the "Add" pushbutton to define this simple, silly, for-demo-only, 1-key macro.
  4. Upload that to the RS 15-135 remote.
  5. Download from the remote and you'll see that the macro definition is now corrupted with approximately 243 "XShift-phantom4" keys added to the end of the macro!
I tried this with other keys for both the "Bound Key" and the actual keys in the macro itself and the problem is still there.

Here's the tail-end of the '.rmir' file saved with the macro programming, before downloading from the remote:
Code:

[Macro]
KeyCode=162
Data=09

And here's the tail-end of the '.rmir' file saved after downloading from the remote:
Code:

[Macro]
KeyCode=162
Data=09 FF FF FF FF (...) FF FF FF

Note that there are a total of 254 'FF' entries there; I've just eliminated most of them to avoid messing up the forum post width.

For completeness, I tried this with my URC-10820 remote too. I see very similar corruption of the macro, but this time with a ton of "XShift-phantom2" keys mysteriously added to the macro. The same pattern of 254 'FF' entries appears at the end of the '.rmir' file which was saved after the download.

I'm guessing this will be easy to duplicate by almost anyone (i.e. with any remote control), but if more details or a file upload are needed, please let me know.

Regards,
Bill
Back to top
View user's profile Send private message
gfb107
Expert


Joined: 03 Aug 2003
Posts: 3411
Location: Cary, NC

                    
PostPosted: Wed Sep 23, 2009 8:04 pm    Post subject: Reply with quote

Thanks for the bug report. It's in the code for storing the macro length into the remote image, for remotes that use the LONG advanced code bind format.
_________________
-- Greg
Original RemoteMaster developer
JP1 How-To's and Software Tools
The #1 Code Search FAQ and it's answer (PLEASE READ FIRST)
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic       JP1 Remotes Forum Index -> JP1 - Software All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

Powered by phpBB © 2001, 2005 phpBB Group
Top 7 Advantages of Playing Online Slots The Evolution of Remote Control