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. DLMS Simulator .NET | Invalid Read Values and Errors When Simulating

DLMS Simulator .NET | Invalid Read values and errors when simulating

By Incidencias, 8 May, 2025
Forums
Gurux.DLMS

Greetings,

Im currently using DLMS Simulator to simulate a device, but im struggling to first read the device data correctly, I firstly used the integrated read function of the simulator, the conexion is correct and I generate a .xml but I get "invalid" values from the reads:

Command: "Gurux.DLMS.Simulator.Net.exe -h (ip) -p 4059 -i WRAPPER -c 2 -s 1 -a Low -P (password) -t Verbose -o fileoutput.xml"

Then I tried GXDLMSDirector, with this app I did not get any problems reading from the device, moreover I tried the "save values as " function that creates a very similar .XML file and this time with all the correct values read.
But when I try to simulate from this more complete XML, I get this extrange error:

Command: Gurux.DLMS.Simulator.Net.exe -p 4059 -i WRAPPER -x Directorvalues.xml
Error: String '10:10:10' was not recognized as a valid DateTime.

I can not find a reference of the '10:10:10' sting anywhere inside the XML

Thanks for your support.

Profile picture for user Kurumi

Kurumi

1 month ago

Hello, What date and time…

Hello,

What date and time format is your PC using?

BR,
Mikko

Incidencias

1 month ago

Hello, My PC is using the…

Hello,

My PC is using the spanish format

DATE: DD/MM/YYYY
TIME: 24h

Thanks for your quick response

Profile picture for user Kurumi

Kurumi

1 month ago

Hi, I need the exact time…

Hi,

I need the exact time format that your PC is using.
You can get it if you run "time" in the command line.

If you can send the simulator XML to me by email, I can check it on Monday.

BR,
Mikko

Incidencias

1 month ago

Hello, If I run tme "time"…

Hello,

If I run tme "time" command in my cmd I get the next result:
"La hora actual es: 11:32:01,56"

About sending the XML... it is a 20675 line file with some confidential data.
What objects do you need to analyze? if you still need the complete file, tell me where can I find your email and I''l send you the file with some data censored.

Thanks.

Profile picture for user Kurumi

Kurumi

1 month ago

Hi, The comma in…

Hi,

The comma in milliseconds is the reason. The fixed version is released this week.

BR,
Mikko

Incidencias

1 month ago

Greetings, Curiously enough…

Greetings,

Curiously enough doing some testing, I managed to correctly virtualize the device by reading less objects with the director, no update required. I only read:

"Association LogicalName"
"Clock"
"Register"
"SapAssignment"
"Data"

Then I generated a smaller XML, and this way I managed to run a simulation with no errors.
There is only one thing I don't undestand, there are two data objects that change values in virtualization from the XML:

0.0.96.1.0.255 Device ID 1, manufacturing number Value: "0000000002"
0.0.42.0.0.255 COSEM Logical device name Value: "GRX2"

Those values are different in the .XML loaded, and we need to keep them as they are, we did not notice any more noticeable changes in the values.

Many thanks for your support

  • Log in or register to post comments
  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Wed, 06/04/2025 - 13:35
    gurux.dlms.c 9.0.2506.0401
  • Fri, 05/30/2025 - 08:30
    gurux.dlms.c 9.0.2505.3001
  • Tue, 05/27/2025 - 08:10
    Gurux.Serial.Android 2.0.12
  • Mon, 05/26/2025 - 08:39
    gurux.dlms.c 9.0.2505.2601
  • Tue, 05/20/2025 - 08:40
    gurux.dlms.c 9.0.2505.2001

New forum topics

  • Create gateway protocol in c
  • Error while reading event log object
  • GXDLMS Simulator – AssociationLogicalName Not Listed
  • Failed to read meter through raspberry pi 5 and probe
  • Protocol Version in AARQ Packet
More
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin