The simulator has been very useful to us in development. We want to take it further and have it keep updating the profiles (load and billing). Is it possible to keep the clock ticking and then update the data registers in the profiles? We were thinking of doing this externally by sending clock and registers updates from client. But it might be more efficient to include this in the server (the meter).
The template contains empty capture objects and buffers. In the Meter PreRead, we're capturing the profile objects if the index == 3. We initialized the objects to default values and then capture them. The client then starts reading each object (i.e register) in the profile. What should we be doing in the Meter side in this case?
After that, the client then reads the buffers. We see that the Meter returns both the old values (initialized values) and new values. We want to read only the new values. What should we do?
You need to capture only the values that are in the capture object list. If it's empty you don't capture anything and return an empty array.
The client reads values from the buffer that it needs using read all, read by entry, or read by range methods. Check Reading data from the link below to get more information on how to access profile generic data. https://www.gurux.fi/Gurux.DLMS.Objects.GXDLMSProfileGeneric
Hi,
Hi,
You can save current values by adding values that you want to save to capture objects and then invoke "Capture" or set Capture period.
https://www.gurux.fi/Gurux.DLMS.Objects.GXDLMSProfileGeneric
BR,
Mikko
Ok, will give that a try.
Ok, will give that a try.
Thanks Mikko.
Imand
Hi Mikko,
Hi Mikko,
The template contains empty capture objects and buffers. In the Meter PreRead, we're capturing the profile objects if the index == 3. We initialized the objects to default values and then capture them. The client then starts reading each object (i.e register) in the profile. What should we be doing in the Meter side in this case?
After that, the client then reads the buffers. We see that the Meter returns both the old values (initialized values) and new values. We want to read only the new values. What should we do?
Thanks,
Imand
Hi,
Hi,
You need to capture only the values that are in the capture object list. If it's empty you don't capture anything and return an empty array.
The client reads values from the buffer that it needs using read all, read by entry, or read by range methods. Check Reading data from the link below to get more information on how to access profile generic data.
https://www.gurux.fi/Gurux.DLMS.Objects.GXDLMSProfileGeneric
BR,
Mikko