volkszaehler/libsml

sml_server does not decode testfile from eBZ DD3 2R06

Closed this issue · 2 comments

see devZer0/libsml-testing#13

maybe someone likes to debug...

you closed devZer0/libsml-testing#13 , due to the reported data simply being corrupt?
so closing this aswell.

or if it is different checksum algorithm

note that one such case is already implemented:

if (
*msg->crc != sml_crc16_calculate(&(buf->buffer[msg_start]), len) &&
// Workaround for Holley DTZ541 uses CRC-16/Kermit
*msg->crc != sml_crc16kermit_calculate(&(buf->buffer[msg_start]), len)
){
fprintf(stderr, "libsml: sml_message_parse(): crc mismatch, dropping message\n");