Hi Kurumi,
We are reading 30 Inhemeter DTZ1513 meters simultaneously on a MultiThreading Architecture. Each thread uses a different socket in order to read one specific meter.
We are getting duplicated buffer reading as a result of the ReadRowsByRange function sometimes. It is quite strange since it is a random failure. We mean that same read from the same meter is begin read sucessfully or duplicated.
This is a source code brief:
GXDLMSProfileGeneric oLoadProfile = new GXDLMSProfileGeneric();
.
.
.
.
oLoadProfile.Buffer.Clear();
ReadRowsByRange(oLoadProfile, start, end);
List<object[]> oLista = oLoadProfile.Buffer;
Book.Write(oLista.Count + " registros leídos");
For instance, Start is 4/1/2022 00:00hs and End is 5/1/2022 00:00. So we are expecting 97 registers (since the meter integration period is 15 minuntes). However, we are getting 97, 194 or even 388 registers instead.
We are looking forward for your thoughts.
thanks in advance.
Hi,
Hi,
You must create your own instance from GXDLMSClient for each thread. Are you doing this?
BR,
Mikko
Hi!
Hi!
We were usgin a shared Client.Objects instance so the profile generics buffer was shared as well. It is solved now.
Thanks!