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. Forums
  3. Gurux Simulator Java Reading All Data From EDMI Mk7MI

Gurux Simulator Java Reading All Data from EDMI Mk7MI

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 xflash, 28 August, 2021
Forums
Known problems

Hi,

I just got a problem reading association view from EDMI Mk7MI meter using Gurux Simulator Java. The meter used HighGMac Auth and AuthenticationEncryption mode.

Here is the parameter:
$ gurux.dlms.java.simulator.jar -S /dev/ttyUSB0 -a HighGMac -c 4 -s 163 -r ln -C AuthenticationEncryption -T 4142434445464748 -A 46464646464646464646464646464646 -B 46464646464646464646464646464646 -o /home/xflash/edmi_mk7mi.xml -t Verbose

Here is the log:

Authentication: HighGMac
ClientAddress: 0x4
ServerAddress: 0xa3
Standard: DLMS
Security: AUTHENTICATION_ENCRYPTION
System title: 41 42 43 44 45 46 47 48
Authentication key: 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46
Block cipher key 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46
SNRM
TX: 09:19:40.804 7E A0 08 02 47 09 93 62 EF 7E
RX: 09:19:44.433 7E A0 21 09 02 47 73 31 1A 81 80 14 05 02 01 60 06 02 01 60 07 04 00 00 00 01 08 04 00 00 00 01 DE 89 7E

AARQ
TX: 09:19:44.641 7E A0 6C 02 47 09 10 52 D5 E6 E6 00 60 5D A1 09 06 07 60 85 74 05 08 01 03 A6 0A 04 08 41 42 43 44 45 46 47 48 8A 02 07 80 8B 07 60 85 74 05 08 02 05 AC 12 80 10 44 1A 0B 4D 78 37 3A 03 0D 22 3E 48 1A 07 18 49 BE 23 04 21 21 1F 30 00 00 00 00 5A 79 55 9D 8F D5 16 E1 67 D6 83 E6 2F 83 75 5A F5 75 2F C9 C2 29 13 97 BC BF F5 E1 7E
RX: 09:19:46.641 7E A0 78 09 02 47 30 A8 4E E6 E7 00 61 69 A1 09 06 07 60 85 74 05 08 01 03 A4 0A 04 08 45 44 4D 4D 6B 37 4D 49 A2 03 02 01 00 A3 05 A1 03 02 01 0E 88 02 07 80 89 07 60 85 74 05 08 02 05 AA 12 80 10 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 BE 23 04 21 28 1F 30 00 00 00 00 C3 3E D7 0D 43 7B 3B 8D F0 4F F6 A4 CA CD F0 1D 2D 6D A1 55 FF CA 5D 77 B3 CF DD B6 7E
7E A0 40 02 47 09 32 E3 C0 E6 E6 00 CB 31 30 00 00 00 00 98 78 94 9D 86 8A 09 CD 67 D4 62 BA D1 75 62 D0 B5 9B 37 64 C5 62 7F EE 3B 59 55 C5 3F 63 F4 AC B6 92 F1 4B AA AE 8F 94 A0 5C 01 AA 4E 9D 7E

Authentication
TX: 09:19:46.669 7E A0 40 02 47 09 32 E3 C0 E6 E6 00 CB 31 30 00 00 00 00 98 78 94 9D 86 8A 09 CD 67 D4 62 BA D1 75 62 D0 B5 9B 37 64 C5 62 7F EE 3B 59 55 C5 3F 63 F4 AC B6 92 F1 4B AA AE 8F 94 A0 5C 01 AA 4E 9D 7E
RX: 09:22:51.754 7E A0 10 09 02 47 52 2F F5 E6 E7 00 D8 02 03 46 4A 7E
DisconnectRequest
Service unknown. Other reason

Always fail after Authentication and don't know why. But using gxdlmsdirector works fine.

Cheers,

Andri

Profile picture for user Kurumi

Kurumi

4 years 3 months ago

Hi Andri,

Hi Andri,

Can you read the meter with GXDLMSDirector and add the same connection messages here so I can compare them. Values look correct, but it might be that some parameter must be different.

BR,
Mikko

xflash

4 years 2 months ago

Hi Mikko,

Hi Mikko,

Sorry for the long response, been busy with other projects.

Here is the log when using GXDLMSDirector:
17:26:51 Send SNRM request.
TX: 7E A0 08 02 47 09 93 62 EF 7E
17:26:51
RX: 7E A0 21 09 02 47 73 31 1A 81 80 14 05 02 01 60 06 02 01 60 07 04 00 00 00 01 08 04 00 00 00 01 DE 89 7E
17:26:51 Send AARQ request.
TX: 7E A0 6C 02 47 09 10 52 D5 E6 E6 00 60 5D A1 09 06 07 60 85 74 05 08 01 03 A6 0A 04 08 41 42 43 44 45 46 47 48 8A 02 07 80 8B 07 60 85 74 05 08 02 05 AC 12 80 10 6E 76 63 36 11 07 12 5F 08 11 57 00 36 3A 6B 1B BE 23 04 21 21 1F 30 00 00 00 00 5A 79 55 9D 8F D5 16 E1 67 D4 83 E6 2F 83 1A 03 8B BD 9C 14 63 9A 75 0D 77 E2 DC 55 7E
17:26:52
RX: 7E A0 78 09 02 47 30 A8 4E E6 E7 00 61 69 A1 09 06 07 60 85 74 05 08 01 03 A4 0A 04 08 45 44 4D 4D 6B 37 4D 49 A2 03 02 01 00 A3 05 A1 03 02 01 0E 88 02 07 80 89 07 60 85 74 05 08 02 05 AA 12 80 10 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 BE 23 04 21 28 1F 30 00 00 00 00 C3 3E D7 0D 43 7B 3B 8D F0 4F F6 A4 CA CD F0 1D 2D 6D A1 55 FF CA 5D 77 B3 CF DD B6 7E
17:26:52 Authenticating.
TX: 7E A0 40 02 47 09 32 E3 C0 E6 E6 00 CB 31 30 00 00 00 01 99 D8 BD 09 C8 67 7C B6 26 B0 98 49 15 65 93 E1 74 CF BF CA 0C C1 37 FB 25 C5 69 8D B5 92 BF 26 E2 16 39 81 C6 2E 78 AB 43 7F 31 D4 56 B4 7E
17:26:53
RX: 7E A0 39 09 02 47 52 DA C4 E6 E7 00 CF 2A 30 00 00 00 00 0C 3F 10 52 5D 7F 32 9C F8 52 F7 C0 CA FC 83 EA 6C 87 7B 9D 11 2B 91 03 42 E4 5C 19 09 91 60 A5 48 34 27 DC 65 7B C5 7E

And here is the result when using Arduino Gurux Library:
SNRM Request
[DEBUG][TX] : 7E A0 8 2 47 9 93 62 EF 7E
[DEBUG][RX] : 7E A0 21 9 2 47 73 31 1A 81 80 14 5 2 1 60 6 2 1 60 7 4 0 0 0 1 8 4 0 0 0 1 DE 89 7E

AARQ Request
[DEBUG][TX] : 7E A0 59 2 47 9 10 D7 27 E6 E6 0 60 4A A1 9 6 7 60 85 74 5 8 1 1 A6 A 4 8 41 42 43 44 45 46 47 48 8A 2 7 80 8B 7 60 85 74 5 8 2 5 AC 12 80 10 70 38 9C CE 67 B3 59 AC 56 AB 55 2A 15 8A 45 22 BE 10 4 E 1 0 0 0 6 5F 1F 4 0 0 1E 1D FF FF C4 D9 7E
[DEBUG][RX] : 7E A0 65 9 2 47 30 9C 86 E6 E7 0 61 56 A1 9 6 7 60 85 74 5 8 1 1 A4 A 4 8 45 44 4D 4D 6B 37 4D 49 A2 3 2 1 0 A3 5 A1 3 2 1 E 88 2 7 80 89 7 60 85 74 5 8 2 5 AA 12 80 10 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 BE 10 4 E 8 0 6 5F 1F 4 0 0 18 1D 1 64 0 7 BD 8F 7E

Authenticating
[DEBUG][TX] : 7E A0 2D 2 47 9 32 24 1D E6 E6 0 C3 1 81 0 F 0 0 28 0 0 FF 1 1 9 11 10 0 0 0 0 1B 1B 71 8D 34 2B 6B F2 95 17 3C 59 EA E2 7E
[DEBUG][RX] : 7E A0 10 9 2 47 52 2F F5 E6 E7 0 D8 2 3 46 4A 7E

My objective here is to use the simulator to develop communication module between the EDMI meter and STM32 based uC. I'm porting the gurux C library for this purpose and still work in progress.

Cheers,
Andri

Profile picture for user Kurumi

Kurumi

4 years 2 months ago

Hi,

Hi,

In GXDLMSDirector you connect using a secured connection and ANSI C isn't. You need to set the security level to DLMS_SECURITY_AUTHENTICATION_ENCRYPTION.
BR,
Mikko

  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Fri, 12/12/2025 - 08:38
    Gurux.DLMS.Python 1.0.195
  • Thu, 12/11/2025 - 13:22
    Gurux.DLMS.Python 1.0.194
  • Thu, 12/11/2025 - 11:01
    gurux.dlms.java 4.0.86
  • Wed, 12/10/2025 - 08:45
    gurux.dlms.java 4.0.85
  • Tue, 12/02/2025 - 10:21
    gurux.dlms.c 9.0.2512.0201

New forum topics

  • Inhemeter i210 dlms director
  • Gurux.Net
  • GXTIME Conversion Issue
  • DLMS Meter Gurux DLMS Director Properties
  • Using MAX3232 + FT232RL to Energy meter with GXDLMS Director
More

Who's new

  • OT
  • Jhansi_569
  • vincentchien
  • Vorador
  • Amal Thomas
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin