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

Lassi Marttala fizzl at fizzl.net
Sat Jan 30 01:12:33 EST 2016


I do not have a roadmap yet.
However, I do envision a usable modern Web-app UI for inspecting a database
of packets.
The schedule is open also, as this is a side-project for me to work on as a
hobby.

On Fri, Jan 29, 2016 at 2:54 AM, Lipka, Christoph (ADITJ/SWG) <
clipka at jp.adit-jv.com> wrote:

> Hi Lassi,
>
>
>
> I installed the 4.2.6 LTS version of node-js. Afterwards it works out of
> the box (thanks for your update yesterday).
>
>
>
> Do you have a roadmap of features you are planning  to implement?
>
>
>
> 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 6:58 PM
> *To:* Helwing, Lutz
>
> *Cc:* genivi-diagnostic-log-and-trace at lists.genivi.org
> *Subject:* Re: [genivi-dlt] DLT protocol parser with Node.js
>
>
>
> Sure thing!
>
> I will add information about Node.js version in the next push.
>
>
>
> Ps. Sorry about bouncing between sender-addresses. Gmail changed my
> from-address to my default from-account in the previous reply.
>
>
>
> On Thu, Jan 28, 2016 at 10:19 AM, Helwing, Lutz <Lutz_Helwing at mentor.com>
> wrote:
>
> Hi Lassi,
>
> this is pretty interesting, thanks!
>
> I'm also not into the web stuff that much and ran into the same problem as
> Christoph.
> May i ask you to add information to README.md about the required minimum
> versions of the dependencies? That would be great.
>
> Kind regards,
> Lutz
>
>
>
> On 28/01/16 09:02, Lipka, Christoph (ADITJ/SWG) wrote:
>
> 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
> <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> wrote:
>
> Hi,
>
>
>
> I wanted to give it a try. Installation went smoothly (no experience with
> node.js, Javascript, all that fancy stuff J).
>
>
>
> 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
>
>
>
> *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> wrote:
>
>
>
>
>
> On Tue, Jan 19, 2016 at 12:42 AM, Lassi Marttala <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
> https://lists.genivi.org/mailman/listinfo/genivi-diagnostic-log-and-trace
>
>
>
>
>
> --
>
> Lassi Marttala
>
> fizzl at fizzl.net
>
> +358 40 7091204
>
> http://www.fizzl.net
>
>
>
> _______________________________________________
>
> genivi-diagnostic-log-and-trace mailing list
>
> genivi-diagnostic-log-and-trace at lists.genivi.org
>
> https://lists.genivi.org/mailman/listinfo/genivi-diagnostic-log-and-trace
>
>
>
>
> _______________________________________________
> genivi-diagnostic-log-and-trace mailing list
> genivi-diagnostic-log-and-trace at lists.genivi.org
> https://lists.genivi.org/mailman/listinfo/genivi-diagnostic-log-and-trace
>
>
>
>
>
> --
>
> +358 40 709 1204
>
> lassi.marttala at gmail.com
>
> Tuurintie 93
>
> 63400 Alavus
>
> _______________________________________________
> genivi-diagnostic-log-and-trace mailing list
> 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
+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/20160130/137ec06d/attachment.html>


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