I need to simulate a DLMS meter using DLMS server application using C and GPRS communication. I have compiled the source code without any errors.
I tried to run DLMS client application(python) and DLMS server application(C) in two different boards. But the connection establishment is failing. Can you guide me on how to establish connection between client and server using GPRS?
Dynamic IP address is assigned on both boards.
Im getting following error when I tried to read the data from other board (meter simulator)
Gurux.DLMS.Client.Example.python# python3 main.py -h 10.95.187.119 -p 4063 -r ln -c 16 -s 1 -a None -i WRAPPER
gurux_dlms version: 1.0.181
gurux_net version: 1.0.22
gurux_serial version: 1.0.2
Authentication: 0
ClientAddress: 0x10
ServerAddress: 0x1
Traceback (most recent call last):
File "/home/root/DCU/Gurux.DLMS.Client.Example.python/main.py", line 108, in main
settings.media.open()
File "/usr/lib/python3.11/site-packages/gurux_net/GXNet.py", line 312, in open
raise e
File "/usr/lib/python3.11/site-packages/gurux_net/GXNet.py", line 298, in open
self.__socket.connect((self.__host_name, self.__port))
TimeoutError: [Errno 110] Connection timed out
Ended. Press any key to continue.
Hi, Is the meter using…
Hi,
Is the meter using dynamic or static IP addresses?
If the meter is using a dynamic IP address, the client can't establish a connection to the meter, and the meter must start the connection. You can read more from here:
https://www.gurux.fi/Gurux.DLMS.DynamicIP
BR,
Mikko
Hi Mikko, I’m looking to…
Hi Mikko,
I’m looking to simulate a meter over a GPRS connection with a dynamic IP. Could you please suggest which gurux example is best suited for this use case?
Hi, You can use the Net…
Hi,
You can use the Net simulator, but you need to add the auto-connect logic that connects to the desired IP address.
https://www.gurux.fi/Gurux.DLMS.Objects.GXDLMSAutoConnect
BR,
Mikko