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. DLMS Shut Down Electric Source

DLMS shut down electric source

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 maria1990 , 17 November, 2016
Forums
General discussion

Dear all,
We are working on communicating a EMH meter in Java with DLMS. For now, we have tried to make the connection and AARQ Request. Actually, we have 3 phases connected to the device, and we want to control each phase to provide or not electric current and therefore, control their comsumptions. We are beginners in DLMS Protocol, so we dont know how to implement this feature following the protocol. Could anyone kindly provide us some hints or some good tutorial to start with?
Thanks in advance and regards

Profile picture for user Kurumi

Kurumi

9 years 6 months ago

DLMS shut down electric source

Hi,

You should first install GXDLMSDIrector. You can read your EMH meters with it.
When you press Refresh it will read all registers what meter can offer.
Then you can select what registers you want to read and implement application for your needs.
You can get source code from github. www.github.com/gurux

BR,

Mikko

maria1990

9 years 6 months ago

Thanks a lot for your answer.

Thanks a lot for your answer. However, when we try to connect via GXDLMSDirector, we obtain the following error: "Failed to connect in given time". Here i attach the log and two pictures with the concrete device and the configuration of the manufacturer.
Log created 13:02:28
13:02:51 Initializing Network connection.
13:02:51 01:02:51.159 Info Opening
13:02:51 01:02:51.159 Info Client Settings: Protocol Tcp Host: 192.168.1.2 Port: 8000
13:02:51 01:02:51.169 Info Open
13:02:51 Send SNRM request.
7E A0 0A 00 00 00 03 21 93 AB 64 7E
13:02:51 01:02:51.669 Sent 7E A0 0A 00 00 00 03 21 93 AB 64 7E
13:02:58 Failed to receive reply from the device in given time.
13:02:58 01:02:58.671 Info Closing
13:02:58 01:02:58.671 Info Closed
System.Exception: Failed to receive reply from the device in given time.
en GXDLMSDirector.GXDLMSDevice.InitializeConnection() en C:\Projects\GXDLMSDirector\Development\GXDLMSDevice.cs:línea 421
en GXDLMSDirector.MainForm.Connect(Control sender, Object[] parameters) en C:\Projects\GXDLMSDirector\Development\MainForm.cs:línea 929

Likewise, the configuration followed is:
Manufacturer ID: EMH
LN: No
IEC: No
Secured connection: No
KeepAlive 40 No forcé
Start Protocol: DLMS
Authentication: None
Address: 10
Server Address: SN%10000+256
Physical:1 Logical: 0
In this image, we deduce that the Serial Number is 05439342. https://imageshack.com/i/plUfxZrNj

maria1990

9 years 6 months ago

Dear all,

Dear all,
Does anyone know anything else about this configuration?
Thanks in advance

Profile picture for user Kurumi

Kurumi

9 years 6 months ago

EMH meter

Hi,

Get latest version from GXDLMSDirector. Let me know if that don't help.

BR,

Mikko

maria1990

9 years 6 months ago

Thanks for your response. In

Thanks for your response. In fact, we just tried with the newest version, but we obtain the same error. We think it is because of the configuration, but we dont find any document with a proper description of such parameters.

Profile picture for user Kurumi

Kurumi

9 years 6 months ago

EMH meter

Hi,

Each meter manufacturer is using different parameters. If one of manufacturer settings is wrong, meter is not reply anything. We'll try to read our EMH meter and I'll let you know if we found anything.

BR,

Mikko

BR,

Mikko

gabri15

9 years 6 months ago

EMH

The same issue here!!!
With the lastest version of GXDLMSDirector we can not connect to the EMH meter.

Profile picture for user Kurumi

Kurumi

9 years 6 months ago

EMH

Hi,

I updated new EMH settings file. Please, let me know if you still have problems.

BR,

Mikko

maria1990

9 years 6 months ago

Still with errors

Dear Mikko,
We tried to connect again using the same configuration that you proposes in your last version of the software. We had to change the port 4059 to 8000, because we only have this port open. The error is the same ""Failed to connect in given time". Our model is emh lzqj-xc, just in case it would be helpful.
Thanks a lot for your help

Profile picture for user Kurumi

Kurumi

9 years 6 months ago

EMH

Hi,

Our client is using port 1000. Make sure that port is correct. Check that your values are same what are here:
http://www.gurux.fi/GXDLMSDirectorExample

If it still fails, send trace from first sent packet (SNRM request).

BR,

Mikko

maria1990

9 years 6 months ago

EMH

I checked what you suggest, and it is correct. Please, find attach the trace of the SNRM packet.

10:00:09 Initializing Network connection.
10:00:10 Send SNRM request.
7E A0 0A 00 02 94 FD 21 93 2F 72 7E
10:00:17 Failed to receive reply from the device in given time.
System.Exception: Failed to receive reply from the device in given time.
en GXDLMSDirector.GXDLMSDevice.InitializeConnection()
en GXDLMSDirector.MainForm.Connect(Control sender, Object[] parameters)

Thanks in advance

Profile picture for user Kurumi

Kurumi

9 years 6 months ago

EMH

Hi,

I just realized that you are using Moxa or other serial port converter. Is that so?
Make sure that serial port settings are baudrate 9600 8N1.
You must also check that DLMS is starting protocol from the meter.

BR,

Mikko

maria1990

9 years 6 months ago

EMH

Hi,
We are not using a serial port, we are connected via Ethernet with the IP.

Profile picture for user Kurumi

Kurumi

9 years 6 months ago

EMH meter

Hi,

I checked that frame (7E A0 0A 00 02 94 FD 21 93 2F 72 7E) for serial number 05439342is correct.
Data what you are sending is right.

Just to make sure. You have VARIOMOD XC ethernet module in your meter?
I can't read that from the the picture you sent.

BR,

Mikko

maria1990

9 years 6 months ago

EMH Meter

Hi again,
Yes, we have VARIOMOD XC ethernet module connected.
Thanks,
María

Profile picture for user Kurumi

Kurumi

9 years 6 months ago

EMH meter

Hi,

Can you access your meter using optical eye? Is this module enabled?
And you are using TCP/IP?

BR,

Mikko

maria1990

9 years 6 months ago

EMH Meter

Hi,
We are using TCP/IP, but not optical eye. We don't know if this module is enabled.
BR,
María

  • 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