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

9 months 2 weeks 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

9 months 2 weeks 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

9 months 1 week 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

  • Log in or register to post comments
  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Thu, 06/19/2025 - 09:33
    Gurux.DLMS.Python 1.0.185
  • Wed, 06/18/2025 - 15:11
    Gurux.DLMS.Python 1.0.184
  • Wed, 06/18/2025 - 10:05
    Gurux.DLMS.Python 1.0.183
  • Wed, 06/18/2025 - 09:06
    GXDLMSDirector 9.0.2506.1801
  • Wed, 06/18/2025 - 08:41
    Gurux.DLMS.Net 9.0.2506.1801

New forum topics

  • Unable to read parameter values from Landis+Gyr E550 meter using GXDLMSDirector - NoAccess status
  • data.SetComplete(false); But all data recieved
  • Crash (endless loop)
  • Server is not able to download object list with maxPduSize 64 or 128 (or anything below 156-bytes PDU size)
  • Day profile action item add error (String is not recognized as valid DateTime value)
More
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin