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. Exception/error While Using Gurux.DLMS.Simulator.net

exception/error while using Gurux.DLMS.Simulator.net

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 saimanoj , 19 February, 2021
Forums
Gurux.DLMS

I have tried to use gurux dlms simulator and followed the instructions as per the code and example video in the site . But when I tried to create the xml file while reading data from the meter i encountered an exception. The exception is stated as follows:
"Length can not be less than zero"
I gave all the required keys and password needed to read the meter
so can someone help me out why and how i can overcome this error/exception.
i'm using .net version of Gurux.DLMS.Simulator

Profile picture for user Kurumi

Kurumi

5 years 5 months ago

Hi,

Hi,

Can you share your parameters? Is the client sending any data or is this happening before a connection is opened? This is a generic exception and it's doesn't tell anything.

BR,
Mikko

saimanoj

5 years 5 months ago

In reply to Hi, by Kurumi

Gurux.DLMS.Simulator.Net.exe

Gurux.DLMS.Simulator.Net.exe -S [COM3:9600:8:None:1] -a Low -P XXXXXXXXX -g "0.0.1.0.0.255:1;0.0.1.0.0.255:2" -n Z10000057 -C AuthenticationEncryption -T ZEN00057 -A XXXXXXXXXXXX -B XXXXXXXXXXXXX -D XXXXXXXXXXXX -o C:\simulator_template.xml -t Verbose

The error is occurring before the connection is made to send any data. Above mentioned is the command that i'm using with respective parameters.

Profile picture for user Kurumi

Kurumi

5 years 5 months ago

Hi,

Hi,

Try to read only one value at a time first. Change this Z10000057 to 10000057. There are no chars in the serial number.

BR,
Mikko

  • 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

  • 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
  • Connecting Meter to Agent via serial
  • Reading block profile with Compact array
More

Who's new

  • Anas Zaatreh
  • QDeYZLrphMziQF…
  • sharrongm69
  • agize
  • BioTips
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin