How reliable is decoding an IR command into specific protocol such as "Is it an NEC or PINOEER"? #2153
-
The reason I asked was I was exploring the provided example code to understand how the developers intend the users to use the library. I have recently read enough IR protocols to discern between a few different protocols and manually decode if necessary. I want to make a device that can recognize the type of protocol or brand/model of remote if I press a couple of buttons on the remote. So I am hoping that the decoding capability will give me the exact protocol. I'm using Tasmota to read the protocol decoded.
I wonder if this is how decoding is done: start down a list, see if the header mark and space match that of any protocol down the list within say 15% accuracy, if a match is found, consider that the protocol is found. But that doesn't explain why sometimes NEC and othertimes PIONEER, it would always be the one closer to the top of the list that gets matched if it were going down a fixed list. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
The library tries to decode a message first as a IRremoteESP8266/src/IRrecv.cpp Lines 634 to 653 in 9bdf8ab |
Beta Was this translation helpful? Give feedback.
The latter. If you read the code, you will see it.