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. 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 6 months 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 6 months 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 6 months 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

  • Mon, 07/27/2026 - 12:37
    gurux.dlms.cpp 9.0.2607.2701
  • Thu, 07/23/2026 - 16:19
    gurux.dlms.java 4.0.96
  • Thu, 07/09/2026 - 14:34
    Gurux.DLMS.Python 1.0.201
  • Fri, 06/26/2026 - 16:32
    Gurux.Service 3.0.2606.2601
  • Wed, 06/24/2026 - 08:36
    Gurux.DLMS.Python 1.0.200

New forum topics

  • gurux_dlms.GXDateTime.GXDateTime object Error in Python
  • T_APPL_DATA_LN_N1 subtest 3 fails on an LN-only server regardless of the response to a non-existing-object GET
  • Version mismatch between Gurux.DLMS 9.x and Gurux.Common/Gurux.Serial 8.x
  • Service not known error on gprs communication
  • Help Needed: Interfacing Saral 100 Energy Meter with Microcontroller via RS232
More
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin