lvzon / dsmr-p1-parser

Ragel-based C-parser for Dutch Smart Meter P1-data (and similar IEC 62056-21 telegrams)
Apache License 2.0
43 stars 12 forks source link

Parser suddenly cannot parse anymore. #3

Open MaxVandenbussche opened 3 years ago

MaxVandenbussche commented 3 years ago

Hello, I made a small DSMR to MQTT application on a ESP8266 SOC.

This application has worked fine for several weeks but now does not anymore. I also log the errors generated by your parser-code. And there is always the same parsing error for each request. I get the following error, but for me this looks like a valid line of a DSMR telegram. The OBIS. decimal, decimal separator, fractional digits and the unit are all there. Any idea why the parser trips up over these values?

1-0:31.7.0(007.18*A)
              ^
Missing unit
lvzon commented 3 years ago

Hmm that is strange indeed, as far as I can see this should work. Do you have a full telegram I could test, or is it hard to dump one with your setup? And what brand/model meter are your reading?