node-eibd icon indicating copy to clipboard operation
node-eibd copied to clipboard

[Enhancement] Use a generic telegram decoder to be able to parse all telegrams

Open snowdd1 opened this issue 8 years ago • 2 comments

Hello André,
I have been busy writing a parsing algorithm that can take any telegram (as far as known to ETS) and convert it into a interpretable JavaScript object. You might have a look at it, maybe it's worth integrating.

https://github.com/snowdd1/knx-dpt-parser

I have tried to build a simple bus monitor on top of node-eibd and knx-dpt-parser, and had to replicate some of your code to change it, because I needed the raw payload of the telegrams, which was not emitted. Of course one must know the DPTs of the destination group addresses, otherwise the differentiation between a percentage DPT5.001 and a HVAC mode 20.102 is not possible. To facilitate that, I have written a small parser that bring an ETS GroupAddress XML export (ETS5+) into a JavaScript Object Notation JSON file.

Regards Raoul

snowdd1 avatar Feb 25 '17 19:02 snowdd1

I like to keep node-eibd as simple as it is today.

We can talk about api changes to the parser to make it more available to use another decoder as opt-in.

andreek avatar Nov 10 '17 17:11 andreek

There is a nice encoder/decoder library: https://github.com/Rafelder/knx-datapoints It would be a good fit.

farmio avatar Aug 13 '18 07:08 farmio