NEC decodes (Normal/Inverse device numbers)
Posted: Tue Dec 17, 2013 6:11 am
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.
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.