Giter Site home page Giter Site logo

mbusparser's People

Contributors

bloever avatar damsleth avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

mbusparser's Issues

Not able to parse Oss-chip data

Environment

nodejs v10.15.3 (npm 6.4.1)
MacOS Mojave 10.14

Summary

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) }

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.