[genivi-dlt] DLT protocol parser with Node.js

Lipka, Christoph (ADITJ/SWG) clipka at jp.adit-jv.com
Thu Jan 28 03:02:18 EST 2016


Hi Lassi,

I installed from Ubuntu repo, looks extremely outdated:

/usr/bin/node --version
v0.10.25

/usr/bin/node -p process.versions.v8
3.14.5.9

I will try to get a newer version. Thanks for your fast support.

Best regards

Christoph Lipka
Software Group (ADITJ/SWG)

Tel. +81-(0)566 61-5124

From: genivi-diagnostic-log-and-trace-bounces at lists.genivi.org [mailto:genivi-diagnostic-log-and-trace-bounces at lists.genivi.org] On Behalf Of Lassi Marttala
Sent: Thursday, January 28, 2016 4:58 PM
To: Lipka, Christoph (ADITJ/SWG)
Cc: genivi-diagnostic-log-and-trace at lists.genivi.org
Subject: Re: [genivi-dlt] DLT protocol parser with Node.js

Hi Christoph!
Thanks for taking the time to try it!

Which version of Node.js are you running? The so called "arrow functions" are part of quite recent ECMAScript6 standard.
My Node states as follows:
node --version : v4.2.4
node -p process.versions.v8 : 4.5.103.35

On Thu, Jan 28, 2016 at 9:45 AM, Lipka, Christoph (ADITJ/SWG) <clipka at jp.adit-jv.com<mailto:clipka at jp.adit-jv.com>> wrote:
Hi,

I wanted to give it a try. Installation went smoothly (no experience with node.js, Javascript, all that fancy stuff •).

It directly returned an error when I tried to start it:

/usr/bin/node dlt-node --dlt-host <target-IP>

/home/user/dlt-node/dlt-node.js:32
() => {
^
SyntaxError: Unexpected token )
    at Module._compile (module.js:439:25)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Function.Module.runMain (module.js:497:10)
    at startup (node.js:119:16)
    at node.js:902:3

Any suggestions?

Best regards

Christoph Lipka
Software Group (ADITJ/SWG)

Tel. +81-(0)566 61-5124<tel:%2B81-%280%29566%2061-5124>

From: genivi-diagnostic-log-and-trace-bounces at lists.genivi.org<mailto:genivi-diagnostic-log-and-trace-bounces at lists.genivi.org> [mailto:genivi-diagnostic-log-and-trace-bounces at lists.genivi.org<mailto:genivi-diagnostic-log-and-trace-bounces at lists.genivi.org>] On Behalf Of Lassi Marttala
Sent: Tuesday, January 26, 2016 6:24 PM
To: Jeremiah Foster
Cc: genivi-diagnostic-log-and-trace at lists.genivi.org<mailto:genivi-diagnostic-log-and-trace at lists.genivi.org>
Subject: Re: [genivi-dlt] DLT protocol parser with Node.js


On Wed, Jan 20, 2016 at 12:22 PM, Jeremiah Foster <jeremiah.foster at pelagicore.com<mailto:jeremiah.foster at pelagicore.com>> wrote:


On Tue, Jan 19, 2016 at 12:42 AM, Lassi Marttala <lassi.marttala at gmail.com<mailto:lassi.marttala at gmail.com>> wrote:
Hello all! Long time, no see :)

Here's something I have been working on for couple of evenings. It should be exiting for anyone interested in the latest web-technologies "the kids" like to use these days ;)

This is interesting. :-)

I have created a parser in Node.js, which can at least parse 'dlt-user-test' without crashing.
It is accompanied by a express+websockets server, which can serve the DLT packets straight into your web browser!

I think having a central server which might collect diagnostic info, which your tool might read and present might be an interesting use case, what do you think?

Sure! The parsing part is well decoupled from the rest of the app, so it could be used in any way one wishes :)
One thing, for example, which could be powered with this, is to dump the packets into a MongoDB document database and then expose the database with some nifty REST API.
This way, one could search and query the packet database with the efficiency of a NoSql database.


I have only tested with very small data amounts and only with Google Chrome browser. I would be interested in hearing if it works at all with a more realistic scenarios.

This application cannot send any packets. It listens passively. I might add control message support and other nifty features in the future if there is interest for it.

You can find dlt-node here:
https://github.com/fizzl/dlt-node

README.md contains instructions on usage.

Maybe send this email to genivi-projects in case there is interest there? Many more people on that list.

Thanks for the suggestion. I will!


<snip>

_______________________________________________
genivi-diagnostic-log-and-trace mailing list
genivi-diagnostic-log-and-trace at lists.genivi.org<mailto:genivi-diagnostic-log-and-trace at lists.genivi.org>
https://lists.genivi.org/mailman/listinfo/genivi-diagnostic-log-and-trace



--
Lassi Marttala
fizzl at fizzl.net<mailto:fizzl at fizzl.net>
+358 40 7091204
http://www.fizzl.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.genivi.org/pipermail/genivi-diagnostic-log-and-trace_lists.genivi.org/attachments/20160128/f58ab1c9/attachment.html>


More information about the genivi-diagnostic-log-and-trace mailing list