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

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


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>

() => {
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

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: Tuesday, January 26, 2016 6:24 PM
To: Jeremiah Foster
Cc: 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:

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!

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.genivi.org/pipermail/genivi-diagnostic-log-and-trace_lists.genivi.org/attachments/20160128/71e64c36/attachment.html>

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