How to get Meter IP address to connect with gurux dlms python. I Inserted sim in smart meter how to establish connectivity to gurux dlms python libary.Any Idea??
Now I added still it is not connecting throwing exception.
Traceback (most recent call last):
File "C:\Users\HP\Downloads\new_dlms/Gurux.DLMS.Python/Gurux.DLMS.Client.Example.python/main.py", line 89, in main
settings.media.open()
File "C:\Users\HP\AppData\Local\Programs\Python\Python310\lib\site-packages\gurux_net\GXNet.py", line 278, in open
raise e
File "C:\Users\HP\AppData\Local\Programs\Python\Python310\lib\site-packages\gurux_net\GXNet.py", line 268, in open
self.__socket.connect((self.__host_name, self.__port))
OSError: [WinError 10051] A socket operation was attempted to an unreachable network
Ended. Press any key to continue.
This is a socket error. Verify that your IP address is correct and that you can access your meter from your IP address. You need to verify this from your GPRS operator.
First, make sure that your SIM has a static IP address. If it has a dynamic IP address you can't establish the connection for the meter. https://www.gurux.fi/Gurux.DLMS.DynamicIP
this is error what I am getting
TimeoutError: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or
established connection failed because connected host has failed to respond
Hi,
Hi,
First, make sure that your SIM has a static IP address.
https://www.gurux.fi/Gurux.DLMS.DynamicIP
If you can connect for you your meter using serial or optical port you can read the IP address from IPv4 setup or IPv6 setup objects.
https://www.gurux.fi/Gurux.DLMS.Objects.GXDLMSIp4Setup
https://www.gurux.fi/Gurux.DLMS.Objects.GXDLMSIp6Setup
BR,
Mikko
Thanks for your quik reply.I
Thanks for your quik reply.I connected through prob and read the values.From this screenshot which one is the meter IP address??
Hi,
Hi,
It's the IP address. Check IPv6 settings, because you usually can't edit the IP address for GPRS connections. The GPRS network assigns an IP address.
BR,
Mikko
In IPv6 settings under
In IPv6 settings under unicast one IP address is mentioned is that the ip address of meter?
Hi,
Hi,
That should be the IP address of the meter.
BR,
Mikko
Thanks but when I execute the
Thanks but when I execute the program it is throwing error
Hi,
Hi,
First, make sure that your SIM has a static IP address.
https://www.gurux.fi/Gurux.DLMS.DynamicIP
Don't add images. They don't tell anything and plain text is easier to read.
What parameters you have used?
BR,
Mikko
this is the parameter i am
this is the parameter i am passing
"args": ["-h", "2202:3a80:1700:cc2::2", "-c", "48", "-a", "High", "-P", "ISK_SECRET_ASSC3",
"-C", "AuthenticationEncryption", "-T" ,"49534B3030303031", "-A", "000102030405060708090A0B0C0D0E0F",
"-B", "000102030405060708090A0B0C0D0E0F", "-D", "6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B" ,"-w", "1", "-f", "128"]
Hi,
Hi,
You need to add the TCP/IP port number. Something like -p 4059.
You can get the port number from the TcpUdpSetup.
https://www.gurux.fi/Gurux.DLMS.Objects.GXDLMSTcpUdpSetup
BR,
Mikko
Now I added still it is not
Now I added still it is not connecting throwing exception.
Traceback (most recent call last):
File "C:\Users\HP\Downloads\new_dlms/Gurux.DLMS.Python/Gurux.DLMS.Client.Example.python/main.py", line 89, in main
settings.media.open()
File "C:\Users\HP\AppData\Local\Programs\Python\Python310\lib\site-packages\gurux_net\GXNet.py", line 278, in open
raise e
File "C:\Users\HP\AppData\Local\Programs\Python\Python310\lib\site-packages\gurux_net\GXNet.py", line 268, in open
self.__socket.connect((self.__host_name, self.__port))
OSError: [WinError 10051] A socket operation was attempted to an unreachable network
Ended. Press any key to continue.
Hi,
Hi,
This is a socket error. Verify that your IP address is correct and that you can access your meter from your IP address. You need to verify this from your GPRS operator.
BR,
Mikko
The sim whatever I am using
The sim whatever I am using is IPv6 address.Using IPv6 address it is not working
Hi,
Hi,
There is something wrong with your connection.
First, make sure that your SIM has a static IP address. If it has a dynamic IP address you can't establish the connection for the meter.
https://www.gurux.fi/Gurux.DLMS.DynamicIP
BR,
Mikko
this is error what I am…
this is error what I am getting
TimeoutError: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or
established connection failed because connected host has failed to respond
I am using M2M Sim card
Hi Kevin, This is TCP/IP…
Hi Kevin,
This is TCP/IP issue. Your TCP/IP connection fails for some reason.
1. Check your IP address and port number.
2. Check that there aren't firewalls that block the messages.
BR,
Mikko