Hi,
I'm trying to connect to several meters simulated on same ip and port, i tried using the server address but it works for first meter and gives invalid tag error for all other subsequent meters.
i've gone through some related questions on forum and found that normally you need to create multiple instances of GXNet, but in my case there's only single ip and single port, do i still need to create multiple instances?
There are connection defending settings. For that reason, you need to create own instance from GXDLMSClient for each meter if you try to read multiple meters at the same time. It works better if you also create own instance from GXNet for each meter.
But all the GXNet instances will have same ip and host, and media.open() will establish connection to the same server everytime, isn't it redundant.
I've recently started on DLMS, so my concern may seem unfounded.
Also i tried with multiple instances of GXNet and DLMSClient, but am still getting error reading data.
It's easier if you open multiple connections for the server (meter). In that way, data that you are receiving from the TCP/IP socket is coming from the same meter.
Otherwise, you need to check who sent this data and forward the received data to the sender.
Hi,
Hi,
There are connection defending settings. For that reason, you need to create own instance from GXDLMSClient for each meter if you try to read multiple meters at the same time. It works better if you also create own instance from GXNet for each meter.
BR,
Mikko
But all the GXNet instances
But all the GXNet instances will have same ip and host, and media.open() will establish connection to the same server everytime, isn't it redundant.
I've recently started on DLMS, so my concern may seem unfounded.
Also i tried with multiple instances of GXNet and DLMSClient, but am still getting error reading data.
Hi,
Hi,
It's easier if you open multiple connections for the server (meter). In that way, data that you are receiving from the TCP/IP socket is coming from the same meter.
Otherwise, you need to check who sent this data and forward the received data to the sender.
BR,
Mikko