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 3 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 3 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 3 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

  • 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