I am trying to decode the IR signals from a remote. I'm using an Arduino Pro Micro, and a TSOP38238 IR receiver.
I found out that the remote uses the Nokia32(RCMM) protocol, and I have been able to partially decode it using cyborg5/IRLib (specifically this one: rcmm.ino). I tweaked the values of the example using the LIRC file corresponding to my remote, mainly the absolute error tolerance (Freebox_V5.lircd.conf).
Compared to other remotes I tried (with different protocols) the RCMM algorithm doesn't manage to decode the signal every time. Around 40% of the time when I press a button I got an "Unknown type received" output from the decoder.
The following is three outputs (for the same button) of the algorithm for a successful decoding and below two other outputs corresponding to two failures. Could anyone tell me what could be done to increase the success of the decoding algorithm?
Successful
Decoded RCMM: Value:2400A601 (32 bits)
Raw samples(36): Gap:63264
Head: m410 s290
0:m160 s290 1:m160 s590 2:m210 s390 3:m210 s240
4:m210 s240 5:m210 s240 6:m210 s240 7:m210 s240
8:m210 s540 9:m210 s590 10:m210 s390 11:m210 s590
12:m160 s290 13:m160 s290 14:m160 s240 15:m210 s440
16:m160
Extent=9810
Mark min:160 max:210
Space min:240 max:590
Failure 1
Unknown type received. Ignoring.
Decoded Unknown(0): Value:0 (0 bits)
Raw samples(36): Gap:3148
Head: m410 s290
0:m160 s240 1:m210 s590 2:m210 s390 3:m210 s240
4:m210 s240 5:m210 s240 6:m160 s290 7:m160 s290
8:m160 s590 9:m210 s590 10:m160 s440 11:m210 s590
12:m160 s240 13:m210 s240 14:m210 s240 15:m210 s390
16:m210
Extent=9810
Mark min:160 max:210
Space min:240 max:590
Failure 2
Unknown type received. Ignoring.
Decoded Unknown(0): Value:0 (0 bits)
Raw samples(32): Gap:27904
Head: m410 s290
0:m160 s290 1:m160 s590 2:m160 s490 3:m160 s240
4:m210 s240 5:m160 s290 6:m160 s290 7:m160 s290
8:m160 s290 9:m160 s590 10:m160 s490 11:m160 s590
12:m160 s1190 13:m160 s440 14:m160
Extent=9460
Mark min:160 max:210
Space min:240 max:1190