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. Simulator With Crystal.xml Rejects AARQ

simulator with crystal.xml rejects AARQ

By P3NCYUYkUtQkKX64H, 24 January, 2025
Forums
Gurux.DLMS

i'm running the c# simulator with the following parameters:

-i WRAPPER -h 127.0.0.1 -p 4060 -t Verbose -x crystal.xml

my client is sending
RX: 00 01 00 10 00 01 00 12 60 10 A1 09 06 07 60 85 74 05 08 01 01 A9 03 02 01 01

and the simulator is responding with
TX: 00 01 00 01 00 10 00 26 61 24 A1 09 06 07 60 85 74 05 08 01 01 A2 03 02 01 01 A3 05 A1 03 02 01 01 A7 03 02 01 01 BE 06 04 04 0E 01 06 02

it looks like the root cause is this 'return' in GXAPDU.ParseApplicationContextName():

if (settings.AssignedAssociation != null)
{
if ((byte)settings.AssignedAssociation.ApplicationContextName.ContextId == name)
{
return ApplicationContextName.Unknown;

both the client & server's ContextId is '1' (as you can see in the BER). but i don't understand why this is being rejected.

Profile picture for user Kurumi

Kurumi

1 year 1 month ago

Hi, Your client is not…

Hi,

Your client is not sending the correct AssociationRequest and the server rejects it.
Lots of values are missing from the client message and you need to check that.

BR,
Mikko

P3NCYUYkUtQkKX64H

1 year 1 month ago

i'm stepping through the…

i'm stepping through the request parsing in the simulator and it's the line above that it's stopping on. can you tell me why it's returning 'Unknown' when the last byte of the passed ApplicationContextName is '1' ? i checked the other versions of the simulator and none of them have this check, and i can't find any justification for it in the IEC spec.

P3NCYUYkUtQkKX64H

1 year 1 month ago

oh, i see now. that Unknown…

oh, i see now. that Unknown is expected...

thanks!

  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Thu, 02/19/2026 - 11:51
    gurux.dlms.cpp 9.0.2602.1901
  • Sun, 02/01/2026 - 19:47
    gurux.dlms.cpp 9.0.2602.0101
  • Tue, 01/20/2026 - 10:38
    gurux.dlms.java 4.0.89
  • Wed, 01/14/2026 - 14:29
    Gurux.DLMS.Python 1.0.196
  • Mon, 12/29/2025 - 10:38
    Gurux.Serial.Android 3.0.5

New forum topics

  • Help with connection and read with landis+gyr e650 + CU-E22 using python
  • Preestablished connection
  • RJ11 to RS232 Pin out SECURE Premier 300
  • GENUS sugam 3 PH bidirectional
  • Electricity smart Meter DLMS firmware stack
More
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin