Hi,
i'm reading activity calender in memf meters using gurux for java library, while reading i found out that the memf meters send data in block 1,2,4,7,9 so on. but in GXDLMS class in gurux.dlms package. code is throwing error
if (number != expectedIndex) {
throw new IllegalArgumentException("Invalid Block number. It is " + number
+ " and it should be " + expectedIndex + ".");
}
if number is not equals to expectedIndex.
can you please suggest some fix?
Hi, Are you sure that the…
Hi,
Are you sure that the blocks are not missed? The block numbers look very odd.
If you believe that all blocks are there ask the meter vendor if there is a new meter firmware where this is fixed.
BR,
Mikko
Hi Mikko, sry for the late…
Hi Mikko,
sry for the late reply, but no blocks are missing, it is the normal behaviour of the Meter. so only issue is not to raise exceptions in case consecutive blocks are not coming.
Hi, You need to ask if there…
Hi,
You need to ask if there is a firmware update available for the meter that fixes this. According to the DLMS standards, the data block counter is increased by one for each block.
BR,
Mikko
Hi Mikko, i have checked,…
Hi Mikko,
i have checked, and there is no update available to fix this, in fact their in house application does support this behavior so this is not an anomaly as per them. any way i can avoid this exception and parse the data normally?
any clue would be helpful,
thanks
Hi, This should be fixed for…
Hi,
This should be fixed for the meter because it breaks the DLMS standard and compatibility. I believe that this meter doesn't have a DLMS certificate.
You can remove this error from the source code, but the better way is to fix this for the meter.
BR,
Mikko
Thanks mikko
Thanks mikko