-
Notifications
You must be signed in to change notification settings - Fork 833
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RCMM Decoding is not working consistently #2031
Comments
It looks like your Try tweaking these values: IRremoteESP8266/src/ir_RCMM.cpp Lines 36 to 38 in a2228ed
That should hopefully get you a more reliable detection. |
Thank you @crankyoldgit. Do you recommend to increase or decrease the values? FYI, yesterday tried to reduce kTimeout from the default 50 to 5. That helped me improve detection to some level like with holding the remote below the table. Should I reset it back to 50 before adjusting kRcmmTolerance & kRcmmExcess ? Also, is kRcmmExcess getting used in the code? I tried searching for its references. If not I can leave it as is. |
I'd slowly increase the tolerance value ( You're correct. |
What do you recommend for kTimeout should I reset it back to 50? Also, will kTolerance play any role in this tunning? Saw it getting used in IRrecvDumpV2 code |
See: Lines 39 to 47 in a2228ed
Yes, you can adjust this at runtime too. See RCMM is very susceptible miss reading the value if the tolerances are too high. |
Now I get it. Thanks a ton for the detailed note, appreciate your support. Will try out your recos and update you accordingly. |
Version/revision of the library used
v2.8.6
Describe the bug
One of my STB remotes uses the Nokia24 RCMM protocol. I tried decoding it using both 38khz (TSOP1738) as well 36khz (TSOP31436) IR Receivers. However, the results are not consistent.
Sometimes (once in 10 times) it decodes correctly
Correct Decode: DecodeType: 21 Bits: 32 IRCode: 26002709
At all other times, for the same button it gives
DecodeType: -1 Bits: 18 IRCode: B01556B3
dumpIRCode: Unknown encoding: 2954188467B01556B3 (18 bits, overflow: 0)B01556B3
Raw (36): 436 -260 184 -260 184 -594 184 -428 184 -592 184 -260 236 -208 210 -210 182 -286 208 -234 210 -570 184 -426 184 -760 184 -260 210 -234 186 -592 184 -426 210
Also, the correct decode works only when you hold the remote far off and use it in reflective mode i.e. Remote emitter pointing away from the IR Receiver like towards my body. Sometimes it works if I hold it below the desk at a specific level below the IR receiver (I know it sounds weird :D )
To Reproduce
Trying decoding with any remote with RCMM protocol (I am using Airtel STB remote).
Expected behaviour
The library to decode RCMM IR signals consistently
Output of raw data from [IRrecvDumpV2.ino]
Correctly Decoded Output
Timestamp : 000041.049
Library : v2.8.6
Protocol : RCMM
Code : 0x260027C1 (32 Bits)
uint16_t rawData[35] = {440, 254, 216, 228, 216, 560, 216, 396, 216, 562, 216, 228, 214, 230, 214, 230, 214, 230, 214, 206, 210, 592, 212, 398, 212, 730, 214, 730, 214, 232, 212, 232, 212, 400, 210}; // RCMM 260027C1
uint64_t data = 0x260027C1;
Incorrect Decode Output for the same button
Timestamp : 000052.808
Library : v2.8.6
Protocol : UNKNOWN
Code : 0xB560852B (18 Bits)
uint16_t rawData[35] = {440, 254, 216, 228, 216, 560, 216, 394, 216, 560, 240, 180, 238, 230, 214, 230, 214, 230, 214, 206, 210, 590, 214, 398, 212, 730, 214, 732, 212, 230, 212, 232, 212, 400, 212}; // UNKNOWN B560852B
What brand/model IR demodulator are you using?
38khz (TSOP1738) as well 36khz (TSOP31436) IR Receivers
I have followed the steps in the [Troubleshooting Guide]
Yes
Has this library/code previously worked as expected for you?
The library works perfectly fine for all 38khz protocols
Other useful information
Linking this issue to an earlier issue #21
The text was updated successfully, but these errors were encountered: