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. DLMSDirector Settings To Read NANSEN NSXi Meter

DLMSDirector Settings to read NANSEN NSXi meter

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 luispadua , 28 December, 2020
Forums
DLMSDirector

Hello,

I'm new to DLMS and trying to develop an Arduino Application to read the meter parameters from NANSEN NSX 314i. I've got a manufacturer's windows application where I could follow the messages exchanges between meter and sw. So far I learned that:
Logical Server: 1 and Physical Server: 3000
I'm accessing then by Serial Port.
When using the Public Client: 0x10, I'm able to get the association view - but only SAP Assignment is available.
Then I move to the Reader User: 0x20, I'm saw that the SW app sends the following AARQ request

3: 7E A0 5A 00 02 C0 01 41 10 4B 5D E6 E6 00 60 49 A1 09 06 07 60 85 74 05 08 01 03 A6 0A 04 08
41 55 58 00 00 00 00 00
8A 02 07 80 8B 07 60 85 74 05 08 02 05 AC 0A 80 08
5A 6A 62 31 37 31 4B 51
BE 17 04 15 21 13
20 00 00 00 05 EC BA 94 6E FC B3 DD C2 FD 42 78 18 A1 8A
E0 A6 7E
<HDLC len="59" >
<TargetAddress Value="7000" />
<SourceAddress Value="20" />
<!-- AARQ frame. -->
<FrameType Value="10" />
<PDU>
<AssociationRequest>
<ApplicationContextName Value="LN_WITH_CIPHERING" />
<CallingAPTitle Value="4155580000000000" />
<SenderACSERequirements Value="1" />
<MechanismName Value="HighGMAC" />
<CallingAuthentication Value="5A6A623137314B51" />
<!-- Decrypted data:
Security: 32
Invocation Counter: 5
# Error: Failed to decrypt data.
-->
<glo_InitiateRequest Value="2000000005ECBA946EFCB3DDC2FD427818A18A" />
</AssociationRequest>
</PDU>
</HDLC>

Can someone help me configure the properties of DLMSDirector to work with these security settings?
So far I could set:
Device Settings -> Authetication -> HighGMAC
Then I went to Secured Connections:
System Title -> 4155580000000000
For Block Cypher Key and Authentication Key, I don't know what to use, getting the other values DLMS director describes an error saying that the key must have 16bytes.

Regards

Luis

Profile picture for user Kurumi

Kurumi

5 years 5 months ago

Hi,

Hi,

You need to ask Block Cypher Key and Authentication Key from the manufacturer. They can be anything. As long as they are wrong, decrypted data is invalid and you can't communicate with the meter.
I believe that you will found them from the other application. They are 16 bytes long values. There are usually 32 chars because they are given in hex string.

BR,
Mikko

xerifehud

4 years 8 months ago

Hello, we already have the

Hello, we already have the Block Cypher Key and Authentication Key. We tried to reproduce using Gurux:

<HDLC len="89" >
<TargetAddress Value="28672" />
<SourceAddress Value="1" />
<!--AARQ frame.-->
<FrameType Value="10" />
<PDU>
<AssociationRequest>
<ApplicationContextName Value="LN_WITH_CIPHERING" />
<CallingAPTitle Value="4155580000000000" />
<SenderACSERequirements Value="1" />
<MechanismName Value="HighGMac" />
<CallingAuthentication Value="546B37324C6A6D44" />
<glo_InitiateRequest Value="200000001128DE3111C3718629EC8B7076B528" />
</AssociationRequest>
</PDU>
</HDLC>

The Gurux generates the message:
<HDLC len="97" >
<TargetAddress Value="28672" />
<SourceAddress Value="1" />
<!--AARQ frame.-->
<FrameType Value="10" />
<PDU>
<AssociationRequest>
<ApplicationContextName Value="LN_WITH_CIPHERING" />
<CallingAPTitle Value="4155580000000000" />
<SenderACSERequirements Value="1" />
<MechanismName Value="HighGMac" />
<CallingAuthentication Value="3C7623520E29617042180A0728150871" />
<glo_InitiateRequest Value="2000000000C4674577F158EFB508C57F6A44C4" />
</AssociationRequest>
</PDU>
</HDLC>

The meter become a error. Do you know if the settings are correct?

Thanks.

Profile picture for user Kurumi

Kurumi

4 years 8 months ago

Hi,

Hi,

It looks like the meter is using 8 bytes long challenge. Try to set 546B37324C6A6D44 as Challenge in "Secured Connection" tab.

BR,
Mikko

xerifehud

4 years 8 months ago

Thank you! We will try this.

Thank you! We will try this.

  • 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