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. EMH GXDLMDirector and Gurux.DLMS.Client.Example.Net

EMH GXDLMDirector and Gurux.DLMS.Client.Example.Net

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 Yaro , 10 December, 2021
Forums
DLMSDirector

Hello.

My EMH LZQJ-CX is connected via a serial port server (Moxa). The serial port server operating mode is TCP Server. GXDLMDirector connects to that meter without a problem. I copied command line parameters from GXDLMDirector and tried to use them as parameters for Gurux.DLMS.Client.Example.Net. Unfortunately, this time the meter did not respond to the SNRM request. I have compared SNRM frames sent by GXDLMDirector and Gurux.DLMS.Client.Example.Net, and they are different. I wonder why.

Here are the frames sent by both programs:
Meter EMH LZQJ-XC

GXDLMDirector
Command line parameters: -h 192.168.0.38 -p 4001 -r sn -n 6229136 -t Verbose
08:19:54 Send SNRM request.
TX: 7E A0 0A 00 02 92 61 21 93 6F 15 7E
08:19:54 08:19:54.946 Sent 7E A0 0A 00 02 92 61 21 93 6F 15 7E
08:19:55 08:19:55.046 Received 7E A0 21 21 00 02 92 61 73 5A BB 81 80 12 05 01 80 06 01 80 07 04 00 00 00 01 08 04 00 00 00 01 53 3B 7E

Gurux.DLMS.Client.Example.Net
Command line parameters: -h 192.168.0.38 -p 4001 -r sn -n 6229136 -t Verbose
Standard: DLMS
Send SNRM request.7E A0 0A 00 02 9E 31 21 93 B8 01 7E
TX: 08:25:06 7E A0 0A 00 02 9E 31 21 93 B8 01 7E
TX: 08:25:11 7E A0 0A 00 02 9E 31 21 93 B8 01 7E
TX: 08:25:16 7E A0 0A 00 02 9E 31 21 93 B8 01 7E
Disconnecting from the meter.
Failed to receive reply from the device in given time.

Image
Profile picture for user Kurumi

Kurumi

4 years 6 months ago

Hi,

Hi,

EMH is not using DLMS standard way to count the serial number. You need to modify the source code.

Change this line:
settings.client.ServerAddress = GXDLMSClient.GetServerAddressFromSerialNumber(int.Parse(it.Value), 1);

to this:
settings.client.ServerAddress = GXDLMSClient.GetServerAddressFromSerialNumber(int.Parse(it.Value), 1, "SN%10000+256");

BR,
Mikko

Yaro

4 years 6 months ago

Hi.

Hi.
Thanks, a lot. It works.

BR,
Yaro

  • 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