Hello, I'm munion and I'm having hundreds of errors in my domoticz.log
2017-01-12 22:05:10.329 Error: Mochad: Cannot decode 'Not supported 24'
2017-01-12 22:05:10.331 Error: Mochad: Cannot decode '5D 24 00 00 00 00 00 '
2017-01-12 22:05:10.413 Error: Mochad: Cannot decode 'Not supported 24'
2017-01-12 22:05:10.415 Error: Mochad: Cannot decode '5D 24 00 00 00 00 00 '
2017-01-12 22:05:10.497 Error: Mochad: Cannot decode 'Not supported 24'
2017-01-12 22:05:10.499 Error: Mochad: Cannot decode '5D 24 00 00 00 00 00 '
This is my environment
Raspberry P3 3 and Domoticz V3.5877 installed with domoticz-raspberrypi-sdcard-4834.img
RFXCOM RFXtrx433 USB 433.92MHz Transceiver Version: Ext2/1012
All my devices are working fine, but with that amount of errors my log grows a lot and is very difficult to trace the log.
Do anybody have the same problem, can you help me to fix the problem?.
Best regards
munion
Error Mochad cannot decode 'Not supported 24'
Moderator: leecollings
-
- Posts: 6
- Joined: Sunday 13 November 2016 18:23
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 3.5837
- Location: Madrid, Spain
- Contact:
Solved Mochad cannot decode 'Not supported 24'
I've found the way to hide the problem. I'm not a programmer, just know a little, so of course this is not the best and professional solution but it works.
The solution is to comment out the part of the script that show the error in the log in the configuration file decode.c and recompile it as I did for install mochad.
See lines from #endif to end, are commented with /* * * * */
#if 0
case 0x5A: // CM15A internal RF to PL repeater is on so disable it
dbprintf("Disabling internal RF to PL repeater\n");
x10_write((unsigned char *)"\xdb\x1f\xf0", 3);
x10_write((unsigned char *)"\xfb\x20\x00\x02", 4);
x10_write((unsigned char *)"\xbb\x00\x00\x05\x00\x14\x20\x28", 8);
break;
#endif
/* case 0x24: // ???? quitado por Inaki 2017-01-17 11:42:12.413 Error: Mochad: Cannot decode '5D 24 00 00 00 00 00 '
* case 0x28: // ????
* // 5D 24 EE 11 8E 79 40
* // 5d 28 33 2d 18 e6 a5
* // 5d 28 33 2c 19 e6 a5
* default:
* sockprintf(fd, "Not supported %02X\n", buf[1]);
* sockhexdump(fd, buf, len);
* break;
*/
The solution is to comment out the part of the script that show the error in the log in the configuration file decode.c and recompile it as I did for install mochad.
See lines from #endif to end, are commented with /* * * * */
#if 0
case 0x5A: // CM15A internal RF to PL repeater is on so disable it
dbprintf("Disabling internal RF to PL repeater\n");
x10_write((unsigned char *)"\xdb\x1f\xf0", 3);
x10_write((unsigned char *)"\xfb\x20\x00\x02", 4);
x10_write((unsigned char *)"\xbb\x00\x00\x05\x00\x14\x20\x28", 8);
break;
#endif
/* case 0x24: // ???? quitado por Inaki 2017-01-17 11:42:12.413 Error: Mochad: Cannot decode '5D 24 00 00 00 00 00 '
* case 0x28: // ????
* // 5D 24 EE 11 8E 79 40
* // 5d 28 33 2d 18 e6 a5
* // 5d 28 33 2c 19 e6 a5
* default:
* sockprintf(fd, "Not supported %02X\n", buf[1]);
* sockhexdump(fd, buf, len);
* break;
*/
Re: Error Mochad cannot decode 'Not supported 24'
Interesting. I get the same but with '29'
What kind of hardware are you running?
Code: Select all
Error: Mochad: Cannot decode 'Raw data received: 5D 29 ......
-
- Posts: 6
- Joined: Sunday 13 November 2016 18:23
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 3.5837
- Location: Madrid, Spain
- Contact:
Re: Error Mochad cannot decode 'Not supported 24'
Best way to solve the problem with no RF devices.
As I have no RF devices like cameras, I've found an ease way to dismiss RF signals because 5D XX XX XX XX codes are for/from RF devices.
cd /home/pi/mochad-0.1.17 (Where mochad software is)
cp decode.c decode.c.ori (backp of decode.c original)
vi decode.c
look for case 0x5d: // RF event (bottom of the file)
you will have
case 0x5d: // RF event
#if 0
if (p[1] == 0x5A) {
sockprintf(fd, "Extra 0x5D?\n");
cm15a_decode_plc(fd, p+1, len-1);
}
else
#endif
cm15a_decode_rf(fd, p, len);
break;
default:
break;
remove from #if 0 to cm15a_decode_rf(fd,p,key);
you will have
switch (*p)
{
case 0xa5: // Want clock set
break;
case 0x55: // ACK last send
break;
case 0x5a: // PLC event
cm15a_decode_plc(fd, p, len);
break;
case 0x5b: // ????
break;
case 0x5d: // RF event
break;
default:
break;
}
Compile and create the new mochad command without RF accions
./configure
make
sudo make install
That's all, no more messages in log file like
2020-05-08 07:17:04.875 Error: Mochad: Cannot decode 'Unknown RF camera command'
2020-05-08 07:17:04.875 Error: Mochad: Cannot decode '5D 14 11 00 00 '
2020-05-08 08:13:10.747 Error: Mochad: Cannot decode 'Invalid checksum 0x00'
2020-05-08 08:13:10.747 Error: Mochad: Cannot decode '5D 20 00 00 00 00 '
2020-05-08 08:23:52.870 Error: Mochad: Cannot decode 'Unknown RF camera command'
2020-05-08 08:23:52.870 Error: Mochad: Cannot decode '5D 14 08 04 00 '
2020-05-08 08:23:53.430 Error: Mochad: Cannot decode 'Invalid checksum 0x05'
2020-05-08 08:23:53.430 Error: Mochad: Cannot decode '5D 20 01 04 04 08 '
2020-05-08 09:04:31.235 Error: Mochad: Cannot decode 'Unknown RF camera command'
2020-05-08 09:04:31.235 Error: Mochad: Cannot decode '5D 14 00 00 00 '
2020-05-08 09:10:17.912 Error: Mochad: Cannot decode 'Unknown RF camera command'
2020-05-08 09:10:17.912 Error: Mochad: Cannot decode '5D 14 08 00 00 '
2020-05-08 09:48:19.461 Error: Mochad: Cannot decode 'Invalid checksum 0x6C'
2020-05-08 09:48:19.462 Error: Mochad: Cannot decode '5D 20 0C 60 08 40 '
2020-05-08 10:00:53.367 Error: Mochad: Cannot decode 'Unknown RF camera command'
2020-05-08 10:00:53.368 Error: Mochad: Cannot decode '5D 14 02 00 00 '
2020-05-08 10:16:58.416 Error: Mochad: Cannot decode 'Invalid checksum 0x00'
2020-05-08 10:16:58.416 Error: Mochad: Cannot decode '5D 20 00 00 24 00 '
I hope help somebody
munion
As I have no RF devices like cameras, I've found an ease way to dismiss RF signals because 5D XX XX XX XX codes are for/from RF devices.
cd /home/pi/mochad-0.1.17 (Where mochad software is)
cp decode.c decode.c.ori (backp of decode.c original)
vi decode.c
look for case 0x5d: // RF event (bottom of the file)
you will have
case 0x5d: // RF event
#if 0
if (p[1] == 0x5A) {
sockprintf(fd, "Extra 0x5D?\n");
cm15a_decode_plc(fd, p+1, len-1);
}
else
#endif
cm15a_decode_rf(fd, p, len);
break;
default:
break;
remove from #if 0 to cm15a_decode_rf(fd,p,key);
you will have
switch (*p)
{
case 0xa5: // Want clock set
break;
case 0x55: // ACK last send
break;
case 0x5a: // PLC event
cm15a_decode_plc(fd, p, len);
break;
case 0x5b: // ????
break;
case 0x5d: // RF event
break;
default:
break;
}
Compile and create the new mochad command without RF accions
./configure
make
sudo make install
That's all, no more messages in log file like
2020-05-08 07:17:04.875 Error: Mochad: Cannot decode 'Unknown RF camera command'
2020-05-08 07:17:04.875 Error: Mochad: Cannot decode '5D 14 11 00 00 '
2020-05-08 08:13:10.747 Error: Mochad: Cannot decode 'Invalid checksum 0x00'
2020-05-08 08:13:10.747 Error: Mochad: Cannot decode '5D 20 00 00 00 00 '
2020-05-08 08:23:52.870 Error: Mochad: Cannot decode 'Unknown RF camera command'
2020-05-08 08:23:52.870 Error: Mochad: Cannot decode '5D 14 08 04 00 '
2020-05-08 08:23:53.430 Error: Mochad: Cannot decode 'Invalid checksum 0x05'
2020-05-08 08:23:53.430 Error: Mochad: Cannot decode '5D 20 01 04 04 08 '
2020-05-08 09:04:31.235 Error: Mochad: Cannot decode 'Unknown RF camera command'
2020-05-08 09:04:31.235 Error: Mochad: Cannot decode '5D 14 00 00 00 '
2020-05-08 09:10:17.912 Error: Mochad: Cannot decode 'Unknown RF camera command'
2020-05-08 09:10:17.912 Error: Mochad: Cannot decode '5D 14 08 00 00 '
2020-05-08 09:48:19.461 Error: Mochad: Cannot decode 'Invalid checksum 0x6C'
2020-05-08 09:48:19.462 Error: Mochad: Cannot decode '5D 20 0C 60 08 40 '
2020-05-08 10:00:53.367 Error: Mochad: Cannot decode 'Unknown RF camera command'
2020-05-08 10:00:53.368 Error: Mochad: Cannot decode '5D 14 02 00 00 '
2020-05-08 10:16:58.416 Error: Mochad: Cannot decode 'Invalid checksum 0x00'
2020-05-08 10:16:58.416 Error: Mochad: Cannot decode '5D 20 00 00 24 00 '
I hope help somebody
munion
Who is online
Users browsing this forum: No registered users and 0 guests