Is it possible in Python to simultaneously connect to two or more meters that are on the same IP address and port? So that I can keep that connection and read data from two meters at once?
My meters are Landys+Gyr E570 and E650 (mainly E570). I am writing a program that would handle many such meters at the same time. I manage to connect to e.g. two meters at once and maintain the connection using the keep-alive function, which reads the clock every 30 seconds. However, I cannot always read the data if more than one meter is connected via the same IP and port. I get a wrong CRC error, or I do not see any communication with the meter at all, or data send failed. My method is to use multithreading, locks and the ConnectManager class with connection management functions. Maybe it can be done better?
Then you need to use the device address as a meter address.
The only problem is that this is not defined in DLMS standards and the meter manufacturers have implemented this differently. This shouldn't be a problem If all your meters are from Landis+Gyr.
Hi, That depends on the…
Hi,
That depends on the meter manufacturer. It can be done, if the manufacturer supports it. This usually depends on whether HDLC or WRAPPER is used.
BR,
Mikko
Hi, thanks for the answer…
Hi, thanks for the answer again.
My meters are Landys+Gyr E570 and E650 (mainly E570). I am writing a program that would handle many such meters at the same time. I manage to connect to e.g. two meters at once and maintain the connection using the keep-alive function, which reads the clock every 30 seconds. However, I cannot always read the data if more than one meter is connected via the same IP and port. I get a wrong CRC error, or I do not see any communication with the meter at all, or data send failed. My method is to use multithreading, locks and the ConnectManager class with connection management functions. Maybe it can be done better?
Thanks in advance for the tips.
Hi, I believe that you must…
Hi,
I believe that you must change the device address so each meter has its own unique address like in a daisy chain.
Read more from here:
https://gurux.fi/Gurux.DLMS.Objects.GXDLMSIecHdlcSetup
Then you need to use the device address as a meter address.
The only problem is that this is not defined in DLMS standards and the meter manufacturers have implemented this differently. This shouldn't be a problem If all your meters are from Landis+Gyr.
BR,
Mikko