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