Coder Social home page Coder Social logo

wialon-retranslator's Introduction

Wialon-Retranslator

Wialon Retranslator (v. 1.0): TCP server & binary protocol parser

Available functions

// Create TCP (Socket) server on 20163 port
let retranslator = new Retranslator(20163);
// Catch wailon message data from TCP connection
retranslator.emitter.on('message', message => {
  // Handle message object
});
// Start listening
retranslator.start();

Message object

{ 
  "data" : [
    {
     "name": "posinfo", 
      "value" : {
        "lon": 45.9689566666667, 
        "lat": 51.5845266666667, 
        "height": 0, 
        "speed": 11, 
        "course": 141, 
        "satelites": 16 
      }
    }, 
    { 
      "name": "avl_inputs", 
      "value": 0 
    }, 
    { 
      "name": "egts_mt_id", 
      "value": 184139
    }, 
    { 
      "name": "pwr_ext", 
      "value": 25.331 
    }, 
    {
      "name": "pwr_int", 
      "value": 4.211 
    }, 
    { 
      "name": "gsm1", 
      "value": 100 
    }
  ], 
  "controllerId": 867157045976750, 
  "time": "Thu Mar 05 2020 13:23:29 GMT+0000 (Coordinated Universal Time)" 
}

wialon-retranslator's People

Contributors

paulmatvienko avatar

Stargazers

Alvaro Bencosme avatar Elyor Latipov avatar Daniel avatar AdanGQ avatar  avatar

Watchers

James Cloos avatar  avatar

wialon-retranslator's Issues

Int64 and Text parsers

Dear,

I am trying to run this code and I am having a hard time with two cases of the dataBlock parser method.
Case 0x01: parseText function is not implemented anywhere and I cannot see that as a built-in nodejs functions. Should be this.text instead?
Case 0x05: readIntLE(0, 8); throws an exception as this is intended to work with 6 bytes integers.

I would like to confirm it and try to find the correct fix.

Thank you!

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.