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

NEC decodes (Normal/Inverse device numbers)

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



Joined: 03 Jul 2010
Posts: 56

                    
PostPosted: Tue Dec 17, 2013 7:11 am    Post subject: NEC decodes (Normal/Inverse device numbers) Reply with quote

With an Arduino infrared remote decoder (sketch used is "IRrecvDump.ino"), I got an NEC result of FD02807F (Device Number, Inverse of Device Number (can be Subdevice), Inverse of Function code, Function Code - each having two digits) for a Changhong TV remote control for the "1" key.
What confused me is that the decode was telling me it was Device 64, Subdevice 191 - the inverse of FD (Device 64) in hex is 02 (Subdevice 191).
I then later found a match to the protocol parameters and function codes in TV setup code 0765.

This turns out that if the Device Number and Inverse of Device Number complement each other e.g. FD (Device 64) and 02 (Subdevice 191), then there is no Subdevice; however, if the Device Number and Inverse of Device Number do not complement each other e.g. BF (Device 2) and 42 (Subdevice 189), then this remote has a Subdevice number.
_________________
"The best thing possible to do with knowledge is to share it".
Back to top
View user's profile Send private message
Barf
Expert


Joined: 24 Oct 2008
Posts: 1415
Location: Munich, Germany

                    
PostPosted: Tue Dec 17, 2013 9:43 am    Post subject: Reply with quote

That is the Shirriff library. Turns out that Shirriff interprets the parametrization differently from the rest of us; the NEX1 code is really parametrized LSB-first, which Shirriff does observe. Taking this into account, it adds up; FD in the complemented-LSB-first order is 64. (Noted the HexCalculator in IrScrutinizer and IrMaster?. It is nice for interactively doing these computations.)

The Shirriff library is good for capturing and sending, but not really for decoding. In IrScrutinizer I therefore used it only for capturing (and sending), and let DecodeIR do the decoding. It is much better!
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic       JP1 Remotes Forum Index -> JP1 - General Forum 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