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
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
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
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.
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.
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
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)
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.
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
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
Dear all,
Dear all,
Does anyone know anything else about this configuration?
Thanks in advance
EMH meter
Hi,
Get latest version from GXDLMSDirector. Let me know if that don't help.
BR,
Mikko
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.
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
EMH
The same issue here!!!
With the lastest version of GXDLMSDirector we can not connect to the EMH meter.
EMH
Hi,
I updated new EMH settings file. Please, let me know if you still have problems.
BR,
Mikko
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
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
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
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
EMH
Hi,
We are not using a serial port, we are connected via Ethernet with the IP.
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
EMH Meter
Hi again,
Yes, we have VARIOMOD XC ethernet module connected.
Thanks,
María
EMH meter
Hi,
Can you access your meter using optical eye? Is this module enabled?
And you are using TCP/IP?
BR,
Mikko
EMH Meter
Hi,
We are using TCP/IP, but not optical eye. We don't know if this module is enabled.
BR,
María