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...
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.
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.
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.
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.?
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.
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
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.
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
Did you mean wait time as
Did you mean wait time as something like "Readtimout" or "writetimeout" of serial media class.?
I mean, How to access and use
I mean, How to access and use the wait time.?
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.?
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