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. After Read One Meter How Read Another , Serial Port Not Accept Commands

After read one meter how read another , serial port not accept commands

Profile picture for user arun sharma
By arun sharma, 11 December, 2023
Forums
Gurux.Serial

Hi , I read one DLMS smart meter , i have Extended Gurux Serial Port https://github.com/Gurux/gurux.serial.android source code, I Read one meter successfully , after read second meters command not fires , serial port not respond, I Disd Open Close Port , Refresh , but not works,

I need to unplug the cable for mobile and insert again to read another meter.

Please Suggests solution

Arun Sharma

Profile picture for user Kurumi

Kurumi

1 year 7 months ago

Hi Arun Sharma, I did a fast…

Hi Arun Sharma,

I did a fast test and it worked without problems. Have you closed the serial port connection by calling the close method?

This can be tested if you tell what serial port converter you use.
What Android version you are using?

BR,
Mikko

Profile picture for user arun sharma

arun sharma

1 year 5 months ago

Actually after reading one…

Actually after reading one meter, we did following.
a) Close Port from UI Button "Close"
b) Open Port and start reading again meter by pressing "Send" Button, but no reply from meter ....

If we close application and try again then it down load meter,

What we do to read meters in continuation and do not restart application again.

For testing what we did , we several time attempted Open/Close by pressing buttun, some time it respond and donwload meter once again. What we do user do not need to close Page or Application to read in continution.

Please suggests.

Profile picture for user Kurumi

Kurumi

1 year 5 months ago

Hi Arun Sharma, Can you try…

Hi Arun Sharma,

Can you try to read your meter with Gurux.DLMS.Anroid example?
https://github.com/Gurux/Gurux.DLMS.Android

I just did try to establish the connection and read the meter. Then I closed the connection and reader the meter again without problems.

BR,
Mikko

Profile picture for user arun sharma

arun sharma

1 year 5 months ago

Sir, I found one observation…

Sir,

I found one observation we read the meter after 15 seconds delay after close the port on in continuation , we are now able to read the meter.

a) We read the meter in continuation after 15 seconds delay , its works.
b) after close port , re open the port in same case need 15 seconds delay. then only communicate with meter, in testing scenario we read same meter again and again. need 15 seconds delay.

We are using Gurux.Serial.Android ,

Package : Gurux.Serial

Please suggests why we need 15 seconds delay , is there any timeout ???

or it is becuase we are reading same meter , it make cause of 15 seconds delay ?

Thanks & Regards,

Arun Sharma

Profile picture for user Kurumi

Kurumi

1 year 5 months ago

Sir, I believe this problem…

Sir,

I believe this problem occurs when you read the same meter multiple times in a row. Some meters need a delay after the connection is closed. Most of the meters don't need it, but some do. With some meters, the delay can be even 45 seconds.

Ask the meter vendor if this is the case. If it's, you need to wait 15 seconds before connecting the same meter again.

BR,
Mikko

Profile picture for user arun sharma

arun sharma

1 year 5 months ago

Thanks sir for your kind…

Thanks sir for your kind support and prompt response,

Sir how we notify the use during meter reading if connection is break due to any condition,...

We want to update UI receivedData , if connection is break or no communication

thanks & Regards

arun sharma

Image
Profile picture for user Kurumi

Kurumi

1 year 5 months ago

Hi Arun, In serial port…

Hi Arun,

In serial port connection, you don't receive notifications if the connection is broken or lost. You will notest it if you don't receive a reply in a wait time.

BR,
Mikko

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

Hire Us!

Latest Releases

  • Wed, 07/09/2025 - 16:41
    Gurux.Serial.Android 2.0.13
  • Wed, 07/09/2025 - 12:07
    gurux.dlms.c 9.0.2507.0901
  • Sat, 07/05/2025 - 15:04
    Gurux.DLMS.Python 1.0.188
  • Tue, 07/01/2025 - 10:09
    Gurux.DLMS.Python 1.0.187
  • Tue, 07/01/2025 - 09:54
    gurux.dlms.c 9.0.2507.0101

New forum topics

  • DLMS communication issue when routing through VPN on Android
  • ESP32-Based Smart Meter Interface via DLMS/COSEM
  • svr_postWrite: args->size Always Zero
  • DLMS over LoraWan in water metering
  • Update High password - any way to cipher new password
More
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin