By amartinez10 , 24 November, 2022 Forums Gurux.DLMS Hello, I'm trying to test the next communication. First, in my PC I have the simulator running, like this: //======================================================= D:\Gurux.DLMS.Net-master\Gurux.DLMS.Simulator.Net\bin\debug\netcoreapp3.1> .\Gurux.DLMS.Simulator.Net.exe -p 4058 -x crystal.xml -N 1 -X DLMS HDLC Logical Name simulator start in port 4058 implementing 1 meters. Waiting 1.00:00:00 before next execution. Server address: 1 Associations: ++++++++++++++++++++++++++++ Client address: 16 Without authentication. Conformance: Get MaxReceivePduSize: 832 MaxSendPduSize: 65535 //======================================================= And I want to communicate with my PC throught an IIOT, with Python, but I can't: //======================================================= python main.py -h 192.168.10.169 -p 4058 gurux_dlms version: 1.0.137 gurux_net version: 1.0.20 gurux_serial version: 1.0.20 Authentication: Authentication.NONE ClientAddress: 0x10 ServerAddress: 0x1 Standard: Standard.DLMS DisconnectRequest Access Error : Unknown error. Ended. Press any key to continue. //======================================================= I am very begineer with this, can somebody help me? Thanks in advance Hi, Hi, Check your host address. You can also add -t argument to get a trace. -t Verbose BR, Mikko Hello Mikko, thanks for your Hello Mikko, thanks for your answer. This happens now: //======================================================= root@iot2050-est02-ct1:/home/andres/Gurux# python main.py -h 192.168.10.169 -p 4058 -t Verbose gurux_dlms version: 1.0.137 gurux_net version: 1.0.19 gurux_serial version: 1.0.20 Authentication: Authentication.NONE ClientAddress: 0x10 ServerAddress: 0x1 Standard: Standard.DLMS TX: 10:31:52 7E A0 07 03 21 93 0F 01 7E RX: 10:31:52 7E A0 1E 21 03 73 C3 7A 81 80 12 05 01 80 06 01 80 07 04 00 00 00 01 08 04 00 00 00 01 53 3B 7E TX: 10:31:52 7E A0 2B 03 21 10 FB AF E6 E6 00 60 1D A1 09 06 07 60 85 74 05 08 01 01 BE 10 04 0E 01 00 00 00 06 5F 1F 04 00 00 1E 5D FF FF B3 E2 7E RX: 10:31:52 7E A0 07 21 03 97 2B E1 7E DisconnectRequest TX: 10:31:52 7E A0 07 03 21 53 03 C7 7E RX: 10:31:52 7E A0 1E 21 03 73 C3 7A 81 80 FD 05 01 80 06 01 80 07 04 00 00 00 01 08 04 00 00 00 01 CF 99 7E Access Error : Unknown error. Ended. Press any key to continue. //======================================================= Greetings Hi, Hi, I notest that Github version was not the same as in the internal repo. Get the latest version and let me know if you still have problems. BR, Mikko Hello Mikko, Hello Mikko, I still have problems: //======================================================== root@iot2050-est02-ct1:/home/andres/Gurux# python main.py -h 192.168.10.169 -p 4 058 -t Verbose gurux_dlms version: 1.0.137 gurux_net version: 1.0.20 gurux_serial version: 1.0.20 Authentication: Authentication.NONE ClientAddress: 0x10 ServerAddress: 0x1 Standard: Standard.DLMS TX: 09:50:39 7E A0 07 03 21 93 0F 01 7E RX: 09:50:39 7E A0 1E 21 03 73 C3 7A 81 80 12 05 01 80 06 01 80 07 04 00 00 0 0 01 08 04 00 00 00 01 53 3B 7E TX: 09:50:39 7E A0 2B 03 21 10 FB AF E6 E6 00 60 1D A1 09 06 07 60 85 74 05 0 8 01 01 BE 10 04 0E 01 00 00 00 06 5F 1F 04 00 00 1E 5D FF FF B3 E2 7E RX: 09:50:39 7E A0 07 21 03 97 2B E1 7E DisconnectRequest TX: 09:50:39 7E A0 07 03 21 53 03 C7 7E RX: 09:50:39 7E A0 1E 21 03 73 C3 7A 81 80 FD 05 01 80 06 01 80 07 04 00 00 0 0 01 08 04 00 00 00 01 CF 99 7E Access Error : Unknown error. Ended. Press any key to continue. //======================================================== Hi, Hi, Have you modified the source code? I got the latest version from GitHub and it worked without problems using your parameters. BR, Mikko No, I didn't. Can be No, I didn't. Can be something related with my pc configuration, like firewall? Hi, Hi, No. You can establish the connection for the meter, but then something happens and the connection is closed. The reason is at the simulator. Try to get the latest version from Github to a different directory. Compile it and try again. BR, Mikko Mikko, Mikko, the same, nothing changes. Greetings Hi, Hi, It seems like your simulator is in Windows and Python client is on Linux. What Linux distro you are using? BR, Mikko I'm using Linux 5.10 I'm using Linux 5.10 Greetings HI, HI, Is the distro Debian, Ubuntu, etc? I'm asking so this can be tested with the same environment. BR, Mikko Debian Greetings Debian Greetings
Hello Mikko, thanks for your Hello Mikko, thanks for your answer. This happens now: //======================================================= root@iot2050-est02-ct1:/home/andres/Gurux# python main.py -h 192.168.10.169 -p 4058 -t Verbose gurux_dlms version: 1.0.137 gurux_net version: 1.0.19 gurux_serial version: 1.0.20 Authentication: Authentication.NONE ClientAddress: 0x10 ServerAddress: 0x1 Standard: Standard.DLMS TX: 10:31:52 7E A0 07 03 21 93 0F 01 7E RX: 10:31:52 7E A0 1E 21 03 73 C3 7A 81 80 12 05 01 80 06 01 80 07 04 00 00 00 01 08 04 00 00 00 01 53 3B 7E TX: 10:31:52 7E A0 2B 03 21 10 FB AF E6 E6 00 60 1D A1 09 06 07 60 85 74 05 08 01 01 BE 10 04 0E 01 00 00 00 06 5F 1F 04 00 00 1E 5D FF FF B3 E2 7E RX: 10:31:52 7E A0 07 21 03 97 2B E1 7E DisconnectRequest TX: 10:31:52 7E A0 07 03 21 53 03 C7 7E RX: 10:31:52 7E A0 1E 21 03 73 C3 7A 81 80 FD 05 01 80 06 01 80 07 04 00 00 00 01 08 04 00 00 00 01 CF 99 7E Access Error : Unknown error. Ended. Press any key to continue. //======================================================= Greetings
Hi, Hi, I notest that Github version was not the same as in the internal repo. Get the latest version and let me know if you still have problems. BR, Mikko
Hello Mikko, Hello Mikko, I still have problems: //======================================================== root@iot2050-est02-ct1:/home/andres/Gurux# python main.py -h 192.168.10.169 -p 4 058 -t Verbose gurux_dlms version: 1.0.137 gurux_net version: 1.0.20 gurux_serial version: 1.0.20 Authentication: Authentication.NONE ClientAddress: 0x10 ServerAddress: 0x1 Standard: Standard.DLMS TX: 09:50:39 7E A0 07 03 21 93 0F 01 7E RX: 09:50:39 7E A0 1E 21 03 73 C3 7A 81 80 12 05 01 80 06 01 80 07 04 00 00 0 0 01 08 04 00 00 00 01 53 3B 7E TX: 09:50:39 7E A0 2B 03 21 10 FB AF E6 E6 00 60 1D A1 09 06 07 60 85 74 05 0 8 01 01 BE 10 04 0E 01 00 00 00 06 5F 1F 04 00 00 1E 5D FF FF B3 E2 7E RX: 09:50:39 7E A0 07 21 03 97 2B E1 7E DisconnectRequest TX: 09:50:39 7E A0 07 03 21 53 03 C7 7E RX: 09:50:39 7E A0 1E 21 03 73 C3 7A 81 80 FD 05 01 80 06 01 80 07 04 00 00 0 0 01 08 04 00 00 00 01 CF 99 7E Access Error : Unknown error. Ended. Press any key to continue. //========================================================
Hi, Hi, Have you modified the source code? I got the latest version from GitHub and it worked without problems using your parameters. BR, Mikko
Hi, Hi, No. You can establish the connection for the meter, but then something happens and the connection is closed. The reason is at the simulator. Try to get the latest version from Github to a different directory. Compile it and try again. BR, Mikko
Hi, Hi, It seems like your simulator is in Windows and Python client is on Linux. What Linux distro you are using? BR, Mikko
HI, HI, Is the distro Debian, Ubuntu, etc? I'm asking so this can be tested with the same environment. BR, Mikko
Hi,
Hi,
Check your host address. You can also add -t argument to get a trace.
-t Verbose
BR,
Mikko
Hello Mikko, thanks for your
Hello Mikko, thanks for your answer.
This happens now:
//=======================================================
root@iot2050-est02-ct1:/home/andres/Gurux# python main.py -h 192.168.10.169 -p 4058 -t Verbose
gurux_dlms version: 1.0.137
gurux_net version: 1.0.19
gurux_serial version: 1.0.20
Authentication: Authentication.NONE
ClientAddress: 0x10
ServerAddress: 0x1
Standard: Standard.DLMS
TX: 10:31:52 7E A0 07 03 21 93 0F 01 7E
RX: 10:31:52 7E A0 1E 21 03 73 C3 7A 81 80 12 05 01 80 06 01 80 07 04 00 00 00 01 08 04 00 00 00 01 53 3B 7E
TX: 10:31:52 7E A0 2B 03 21 10 FB AF E6 E6 00 60 1D A1 09 06 07 60 85 74 05 08 01 01 BE 10 04 0E 01 00 00 00 06 5F 1F 04 00 00 1E 5D FF FF B3 E2 7E
RX: 10:31:52 7E A0 07 21 03 97 2B E1 7E
DisconnectRequest
TX: 10:31:52 7E A0 07 03 21 53 03 C7 7E
RX: 10:31:52 7E A0 1E 21 03 73 C3 7A 81 80 FD 05 01 80 06 01 80 07 04 00 00 00 01 08 04 00 00 00 01 CF 99 7E
Access Error : Unknown error.
Ended. Press any key to continue.
//=======================================================
Greetings
Hi,
Hi,
I notest that Github version was not the same as in the internal repo. Get the latest version and let me know if you still have problems.
BR,
Mikko
Hello Mikko,
Hello Mikko,
I still have problems:
//========================================================
root@iot2050-est02-ct1:/home/andres/Gurux# python main.py -h 192.168.10.169 -p 4 058 -t Verbose
gurux_dlms version: 1.0.137
gurux_net version: 1.0.20
gurux_serial version: 1.0.20
Authentication: Authentication.NONE
ClientAddress: 0x10
ServerAddress: 0x1
Standard: Standard.DLMS
TX: 09:50:39 7E A0 07 03 21 93 0F 01 7E
RX: 09:50:39 7E A0 1E 21 03 73 C3 7A 81 80 12 05 01 80 06 01 80 07 04 00 00 0 0 01 08 04 00 00 00 01 53 3B 7E
TX: 09:50:39 7E A0 2B 03 21 10 FB AF E6 E6 00 60 1D A1 09 06 07 60 85 74 05 0 8 01 01 BE 10 04 0E 01 00 00 00 06 5F 1F 04 00 00 1E 5D FF FF B3 E2 7E
RX: 09:50:39 7E A0 07 21 03 97 2B E1 7E
DisconnectRequest
TX: 09:50:39 7E A0 07 03 21 53 03 C7 7E
RX: 09:50:39 7E A0 1E 21 03 73 C3 7A 81 80 FD 05 01 80 06 01 80 07 04 00 00 0 0 01 08 04 00 00 00 01 CF 99 7E
Access Error : Unknown error.
Ended. Press any key to continue.
//========================================================
Hi,
Hi,
Have you modified the source code? I got the latest version from GitHub and it worked without problems using your parameters.
BR,
Mikko
No, I didn't. Can be
No, I didn't. Can be something related with my pc configuration, like firewall?
Hi,
Hi,
No. You can establish the connection for the meter, but then something happens and the connection is closed. The reason is at the simulator. Try to get the latest version from Github to a different directory. Compile it and try again.
BR,
Mikko
Mikko,
Mikko,
the same, nothing changes.
Greetings
Hi,
Hi,
It seems like your simulator is in Windows and Python client is on Linux.
What Linux distro you are using?
BR,
Mikko
I'm using Linux 5.10
I'm using Linux 5.10
Greetings
HI,
HI,
Is the distro Debian, Ubuntu, etc? I'm asking so this can be tested with the same environment.
BR,
Mikko
Debian Greetings
Debian
Greetings