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
Verify telegrams' CRC #188
Comments
Requested via #187 |
Too bad it doesn't use CRC yet. I have had some incorrect data a few times with the script i am using now, so it is definitely a recommendation to use, if you have a modern enough meter (>= DSMR4). I am currently using some other library and he has implemented CRC checking: nrocco/smeterd#10 |
@ThinkPadNL a lot of thanks to you for providing the info! I managed to have the CRC checksum working now. I will run it at home for a while and merge fbaed6c back to the main Optionally, if you'd like to be listed on the 'thanks' page, please leave a note in #180. |
Haha, you added that very quickly! Great! Nah, i don't have to be listed as i'm not the author of the code i linked to. It is made by 'nrocco' from that GitHub page, so if someone is to be deserving credits, it should be him :) |
Sure, I will mention him and drop him a message. I won't list you if you do not want to. Please note that I do not list people for providing other's code, but for bringing the ideas and pointing out any issues. Just so you know. :] |
Code is running fine for few hours now, although no bad telegrams were seen. The tests pass as well. So merged back to Thanks again for requesting this feature. |
@ThinkPadNL the Please mind: Also note that upgrading requires you to cd into the project root and activate the VirtualEnv, after switching to the |
I installed your software today, now that it has CRC-checking (i have a 5m long cable from my meter cabinet to my server, so i needed CRC to ignore false data. #187 would let me remove the long cable ). Where can i see how many corrupt packages it ignored? |
You can see it on the Statistics page, but it only displays the counter when any readings were discarded. The counter can also be seen in the Admin (Configuration) at the It contains several fields, and one of them is |
Will keep monitoring the value to conclude if it really works. With my own script i sometimes had incorrect data due to corrupt telegrams. Btw, what is the preferred language on this Github repo? The project is written for Dutch smartmeters, so i am currently wondering why i started typing in English anyway haha :) |
Cool, I'd love to see any reading fail though. I could only reproduce a failed CRC manually while writing mocked tests so far. Not in production use. Regarding the language, you can pick either English or Dutch. I'm actually surprised, and also a bit honored, that people just seem to start talking English here anyway. Good ol' Dutch habbits I guess. |
There it is: Graphs are still looking good (i don't see any enormous usage as i had with my own script), so i can conclude (with this real life example) that the verification of the telegram checksum is working correctly! (2760 telegrams stored and 1 ignored, according to the /statistics page) |
Great, thanks for sharing. Good to see that it actually helps in someone's production as well. |
Mocht je trouwens nog benieuwd zijn naar het foutieve telegram, volgens mij kan je hem hiermee vinden:
En anders zou het een van de twee foutmeldingen in deze code moeten zijn (vermoedelijk de laatste). |
The telegrams should be verified by checking their CRC. I'm planning to use #154 but that also lacks CRC checks, for now.
I should either re-check later or write it myself.
[Originally reported by @ThinkPadNL]
The text was updated successfully, but these errors were encountered: