ossno / mbusparser Goto Github PK
View Code? Open in Web Editor NEWThis package uses Node.js to parse base64 encoded mbus packages
License: MIT License
This package uses Node.js to parse base64 encoded mbus packages
License: MIT License
Nån som vet ?
Kör Lubunto.. Porten finns där och jag ligger med i gruppen "dailup" .. Har satt porten till 115200 via komandot "stty -F /dev/ttyUSB0 115200"
Tack på förhand.
/Niklas
nodejs v10.15.3 (npm 6.4.1)
MacOS Mojave 10.14
Tried parsing data from my Oss-chip connected to my digital electric meter,
getting { type: 'parser', data: 'failed to parse' }
.
Added the error output to the catch return in parser.js, and got the following:
Wed May 08 2019 11:23:05 GMT+0200 (Central European Summer Time) { type: 'parser', data: 'failed to parse', error: TypeError: buf.readUIn16LE is not a function at ObisHeader.getAddress (/Users/damsleth/Code/mbusreader/node_modules/mbusparser/obisParser.js:82:32) at new ObisHeader (/Users/damsleth/Code/mbusreader/node_modules/mbusparser/obisParser.js:7:30) at new Parser (/Users/damsleth/Code/mbusreader/node_modules/mbusparser/parser.js:36:32) at new MBusParser (/Users/damsleth/Code/mbusreader/node_modules/mbusparser/mbusParser.js:4:18) at SerialPort.<anonymous> (/Users/damsleth/Code/mbusreader/mbusreader.js:17:18) at SerialPort.emit (events.js:189:13) at addChunk (_stream_readable.js:284:12) at readableAddChunk (_stream_readable.js:265:11) at SerialPort.Readable.push (_stream_readable.js:220:10) at binding.read.then.bytesRead (/Users/damsleth/Code/mbusreader/node_modules/@serialport/stream/stream.js:391:12) }
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.