Hello Gurux experts.
Reading multiple Dlms objects in one request via CompactFrame (CF) is very convenient thing.
But how to properly read CF from Gurux Java?
I know the CF strucutre in terms of DLMS objects.
How do i parse the octet string that comes in?
Is there a standartized way in gurux library?
Thank you.
Java is causing problems with compact data because there are no unsigned numbers in Java. You can read data easily, but writing is causing some extra work.
When you read data from the meter, do you have the description (template_description) in part of your data or just data (compact_buffer)?
But is the header part coming in part of the data? Can you post received data so I can check it?
If it's coming, it's easy. Otherwise, you need to add it manually.
So there is no header part in the data. You need to parse it by your self.
Idea from template ID saves data, but because there is no header part this can't be done automatically.
Here is example from template ID: 21
15 00 02 FF FF FF FF FF FF FF FF FF FF FF FF 00 00 46 1E FF FF FF FF
Yes, there’s no header (except for template ID)
But i have the CF structure description in companion docs.
Is there a way to add this metadata manually to Gurux CF object, so that data get’s parsed on-the-fly by Gurux internals?
Hi,
Hi,
Java is causing problems with compact data because there are no unsigned numbers in Java. You can read data easily, but writing is causing some extra work.
When you read data from the meter, do you have the description (template_description) in part of your data or just data (compact_buffer)?
BR,
Mikko
Hello, Mikko.
Hello, Mikko.
Sure, I have template description in form of ordered OBIS codes.
Hi,
Hi,
But is the header part coming in part of the data? Can you post received data so I can check it?
If it's coming, it's easy. Otherwise, you need to add it manually.
BR,
Mikko
Template ID comes as first
Template ID comes as first byte in buffer (e.g. 0x11) for CF17
Hi,
Hi,
So there is no header part in the data. You need to parse it by your self.
Idea from template ID saves data, but because there is no header part this can't be done automatically.
Here is example from template ID: 21
15 00 02 FF FF FF FF FF FF FF FF FF FF FF FF 00 00 46 1E FF FF FF FF
BR,
Mikko
Yes, there’s no header
Yes, there’s no header (except for template ID)
But i have the CF structure description in companion docs.
Is there a way to add this metadata manually to Gurux CF object, so that data get’s parsed on-the-fly by Gurux internals?
Hi,
Hi,
We'll modify Compact data so you can set template_description by hand and there will be method what you can call. We'll do this on next week.
BR,
Mikko
Wow, that is very responsive.
Wow, that is very responsive.
Thank you so much, i’ll be waiting.
Hi,
Hi,
This functionality is added on version 2.2.25.
BR,
Mikko