Support e-MUCS extension#3
Conversation
|
Thank you for this addition! Would be great to also support Belgian smart meters. Could you add a test-file in the I think using a feature is fine. We could try to make it more Rust-y by using composition instead. What do you think? |
Sure! I've added output from my meter in
Sounds good, what did you have in mind? It's mainly the OBIS parsing that I'd like to clean up, but I don't see a straightforward way to use composition there. |
|
Cool, thank you! I'll look at it this weekend, and maybe come up with a way to use composition nicely. |
|
I have started looking at it, but before I do any changes wanted to add the unit test. I notice that the CRC16-ARC checksum does not match what is in the file. Do you get an |
|
Your text editor probably removed the carriage return |
e8365c1 to
0f989b6
Compare
|
Sorry about that! Copy pasting it gave it unix line endings. Should be fixed now. |
|
Implemented this in https://github.com/Wassasin/dsmr5/tree/feature/emucs . I am not completely sure about the API. Another small issue of this approach is that What do you think? |
|
Looks good enough to me!
To potentially use this on the Feel free to add your commits here, you should be able to do that as maintainer. |
Belgian smart meters are also based on the DSMR5 standard, but extend it with the e-MUCS specification.
I'd like to add support in this crate under an
emucsfeature, but can also maintain a fork with this functionality if it's too intrusive.Currently there's a lot of
#[cfg(feature = "emucs")]clutter, so I was thinking of only using it where there is a conflict (e.g.,InstantaneousCurrent).