maebli / m-bus-parser Goto Github PK
View Code? Open in Web Editor NEWA modern, open source parser for wired m-bus portocol EN 13757-2 link layer, EN 13757-3 application layer of m-bus
License: MIT License
A modern, open source parser for wired m-bus portocol EN 13757-2 link layer, EN 13757-3 application layer of m-bus
License: MIT License
Input String:
68 4F 4F 68 08 00 72 78 56 34 12 E6 1E 02 07 08 00 00 00 0E 93 3D 18 73 01 00 00 00 04 3B E8 03 00 00 04 6D 09 20 01 01 0E 93 BD 3B 18 73 01 00 00 00 0E 93 BD 3C 00 00 00 00 00 00 02 65 69 09 02 59 D0 07 04 FD 17 00 00 00 00 02 FD 74 F9 06 0F 50 0A 90 16
Output: Parse to Table
The output is a volume of (1007318)e-3m³. But the correct output volume should be 17318.
parse most of the application layer, so the examples in test folder pass fully
Test in
https://github.com/maebli/m-bus-parser/blob/main/tests/test.rs
is incomplete
Test for additional fields not yet tested, also add tests for the error frames and unsupported frames not yet added yet
Rust has guidelines for APIs. Check the guidelines to see if they are adhered to.
https://rust-lang.github.io/api-guidelines/
The "bench" folder contains only stubs. Create a meaningful bench mark of the parser.
I don't know much about bench marking in rust (yet) but it should be the aim of this task to measure how fast / efficient the parser achieves its goals. It should be possible to track this over time, from version to version.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.