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. Virtual Comport Gets Hanged Randomly With GuruX Serial Media Over DLMS Protocol

Virtual comport gets hanged randomly with GuruX Serial media over DLMS protocol

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 securecss , 4 October, 2019
Forums
Gurux.Serial

Hi There,
We are facing problem of comport gets hanged.
At first instance meter gets connected on comport and reading completed successfully.
After some reading sessions, comport gets hanged randomly with GuruX Serial media over DLMS protocol.

Please share the solution if any.
Thanks in Advance...

Profile picture for user Kurumi

Kurumi

6 years 8 months ago

Hi,

Hi,

What programming language you are using? I believe that reason is not that COM port hangs. Reason is that meter don't reply. There is an inactivity timeout and if you don't ask anything for a while from the meter, meter closes the connection.

BR,

Mikko

securecss

6 years 8 months ago

Hi Kurumi,

Hi Kurumi,
Thanks for prompt reply.
1. The Programming language is C# .NET
2. Meter is on DLMS protocol.
3. Every request is initiated with connect request with meter.
4. Serial connection is made with MOXA n-port on rS485 channel.
5. When Comport gets hanged in application, then this comport is not accessible through other application also.

Profile picture for user Kurumi

Kurumi

6 years 8 months ago

Hi,

Hi,

I believe that the message is lost. What is the wait time? You can decrease it and try to re-send data.
I'm 100% sure that reason is not the serial port component.

BR,
Mikko

securecss

6 years 8 months ago

Did you mean wait time as

Did you mean wait time as something like "Readtimout" or "writetimeout" of serial media class.?

securecss

6 years 8 months ago

I mean, How to access and use

I mean, How to access and use the wait time.?

securecss

6 years 8 months ago

I found it , the WaitTime

I found it , the WaitTime value is 10 seconds.
What role is played by "WaitTime" in making serial connection on DLMS protocol and doing meter readings.
Now, what should be the correct value.?

Profile picture for user Kurumi

Kurumi

6 years 8 months ago

Hi,

Hi,

It's common that messages are lost when you are reading data from the meters.
Wait time depends on what kind of communication channel you are using.
If it's slow, the wait time must be bigger.

If the reply is not received from the meter in the given time, message is re-sent.

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