Skip to main content
Home
for DLMS smart meters
Open source solutions for DLMS smart metering

Main navigation

  • Home
  • Products
  • About us
  • Open Source
  • Community
  • Forum
  • Downloads
User account menu
  • Log in

Breadcrumb

  1. Home
  2. Forums
  3. Help Gurux.DLMS.Simulator.Net and Gurux.DLMS.Client.Example.python

Help Gurux.DLMS.Simulator.Net and Gurux.DLMS.Client.Example.python

Forum Rules

Before commenting read Forum rules

Don't comment the topic if you have a new question.

You can create a new topic selecting correct category from Gurux Forum and then create a new topic selecting "New Topic" from the top left.

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

Profile picture for user Kurumi

Kurumi

3 years 6 months ago

Hi,

Hi,

Check your host address. You can also add -t argument to get a trace.

-t Verbose

BR,
Mikko

amartinez10

3 years 6 months ago

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

Profile picture for user Kurumi

Kurumi

3 years 6 months ago

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

amartinez10

3 years 6 months ago

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.

//========================================================

Profile picture for user Kurumi

Kurumi

3 years 6 months ago

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

amartinez10

3 years 6 months ago

No, I didn't. Can be

No, I didn't. Can be something related with my pc configuration, like firewall?

Profile picture for user Kurumi

Kurumi

3 years 6 months ago

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

amartinez10

3 years 6 months ago

Mikko,

Mikko,

the same, nothing changes.

Greetings

Profile picture for user Kurumi

Kurumi

3 years 6 months ago

Hi,

Hi,
It seems like your simulator is in Windows and Python client is on Linux.
What Linux distro you are using?

BR,
Mikko

amartinez10

3 years 6 months ago

I'm using Linux 5.10

I'm using Linux 5.10

Greetings

Profile picture for user Kurumi

Kurumi

3 years 6 months ago

HI,

HI,

Is the distro Debian, Ubuntu, etc? I'm asking so this can be tested with the same environment.

BR,
Mikko

amartinez10

3 years 6 months ago

Debian Greetings

Debian

Greetings

  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Tue, 06/09/2026 - 11:16
    gurux.dlms.java 4.0.95
  • Tue, 06/09/2026 - 10:03
    Gurux.DLMS.Python 1.0.199
  • Mon, 06/08/2026 - 13:39
    gurux.dlms.cpp 9.0.2606.0801
  • Mon, 06/01/2026 - 10:15
    gurux.dlms.cpp 9.0.2606.0101
  • Thu, 05/28/2026 - 16:06
    gurux.dlms.java 4.0.94

New forum topics

  • Error reading L&G Meter
  • Pass a TCP Client to GXNet
  • Australian EDMI Mk10D (Essential Energy area)
  • Strange mix of data notificiation vs get response
  • DLMS Connection
More

Who's new

  • Tuanhgg
  • Adel
  • charnon
  • Paddles
  • Miguel Ángel
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin