Skip to main content
Home
for DLMS smart meters

Main navigation

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

Breadcrumb

  1. Home
  2. Arduino Client

Arduino Client

By madagaskar99, 5 September, 2024
Forums
Gurux DLMS for Android

Hi,
i've tried to use Client example for Esp8266. I don't have real physical meter, only a program simulator. I didn't change anything in Client example code and i upload it on ESP. Then i tried to use GXDLMSDirector for simulation.
Name test
manufacturer: Gurux
Interface: HDLC
Authentication: None
Media: Serial
Serial port COM5 (on that port is connected my esp)
Baud 9600
Client address: 10
Resend count:3
Physical Server :1

After that, i use Serial Monitor and set the com and baud the same and it send some hex data: 7E A0 07 03 21 93 0F 01 7E7E A0 07 03 21 93 0F 01 7E7E A0 07 03 21 93 0F 01 7E
and it keeps sending this over and over (i saw the blue led blink when it sending)

Then i try to Connect my device with the port and it didn't connect, Access denied. And when i close the serial monitor i try to connect, it keeps saying it's connecting in the left corner. Then i go to View and Trace and check PDU: and it says
10:13:48 Send SNRM request.
TX: 7E A0 07 03 21 93 0F 01 7E

but it still connectig...
How can i solve this problem?
Any help i really appreciate.
Thanks!

Profile picture for user Kurumi

Kurumi

1 year 2 months ago

Hi, GXDLMSDirector is for…

Hi,

GXDLMSDirector is for reading the meter, not simulating the meter.

You can use simulator if you don't have a meter.

https://github.com/Gurux/Gurux.DLMS.Net/tree/master/Gurux.DLMS.Simulato…

BR,
Mikko

madagaskar99

1 year 2 months ago

Hi, i tried to use Gurux…

Hi,
i tried to use Gurux simulator and these are steps that i use:
i upload program to my ESP
then i open CMD and use cd to navigate to the simulator
then i use dotnet run command
after that i use this: dotnet run -- -p 5 -x crystal.xml (i don't know what to do here, i use 5 because my ESP is on COM5 and baud 9600)

and this came
DLMS HDLC Logical Name simulator start in Tcp ports 5-5.
Server address: 1
Associations:
++++++++++++++++++++++++++++
Client address: 16 Without authentication.
Conformance:
Get
MaxReceivePduSize: 832 MaxSendPduSize: 65535

and nothing happen. Can you please help me to solve this, how to set proper command in CMD simulator to see if Arduino Client works?

Thank Your sir!

Profile picture for user Kurumi

Kurumi

1 year 1 month ago

Hi, Your simulator is…

Hi,

Your simulator is listening TCP/IP port 5. You need to use serial port like this:

Gurux.DLMS.Simulator.Net.exe -S COM8 -x crystal.xml -t Verbose

BR,
Mikko

  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Wed, 10/29/2025 - 08:51
    gurux.dlms.c 9.0.2510.2901
  • Thu, 10/16/2025 - 09:59
    gurux.dlms.java 4.0.83
  • Wed, 10/08/2025 - 10:21
    gurux.dlms.c 9.0.2510.0801
  • Fri, 09/26/2025 - 10:02
    gurux.dlms.cpp 9.0.2509.2601
  • Fri, 09/26/2025 - 09:45
    gurux.dlms.c 9.0.2509.2601

New forum topics

  • Guidance on using the source codes
  • How to get/convert user readable format data from readRowsByRange
  • Insufficient memory to continue the execution of the program.
  • The client instance code failed to connect to the electricity meter for authentication
  • Unable to Release Request when closing connection with meter.
More
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin