Android unable to read data

7 posts / 0 new
Last post
ksrpraneeth
Android unable to read data

I've my android phone to Secure Energy Meter sprint 350 using FTDIBUS Vendor Id :1027 and Product Id : 24597 (Modified isUsing function in GXFtdi.java to accept the same in gurux.serial.android)

Meter is not responding back after snrm request is sent.
Chipset : FTDI
FTDI device (Device Info) : FTDIBUS\VID_0403+PID_6015+5&310c8a00&0&7\0000
Snrm request : 7E A0 07 03 41 93 5A 64 7E

But i could successfully connect and retrive data using Java library, C library and python library with the below settings

Client address : 32
Server address : 1
Authentication level: Low
Password : ABCD0001

Requesting you to help.

ksrpraneeth

Request Screenshot

Image: 
Kurumi
Kurumi's picture

Hi,

Can you connect your serial port to the PC and first check that you are receiving any data. You can use any terminal to receive data from the serial port in the PC.
Your data is correct and I believe that this is a serial port issue.

I believe that you are using a direct RS-232 connection and there is no optical probe?

BR,
Mikko

________________________________________
Mikko Kurunsaari
Gurux Ltd
http://www.gurux.fi

ksrpraneeth

Thank you for quick reply.
Yes if i connect serial port to PC i can receive data using Java library and C also. Yes from terminal i am able to receive data.
Yes i am using RS-232 connection and no optical probe.

Kurumi
Kurumi's picture

Hi,

Can you received data from your Android phone if you connect your Android phone to the PC using the serial port?

BR,
Mikko

________________________________________
Mikko Kurunsaari
Gurux Ltd
http://www.gurux.fi

ksrpraneeth

Yes it working fine in file transfer mode.

Kurumi
Kurumi's picture

Hi,

What I mean is are you receiving bytes from the serial port if you start DLMS example Client in Android and try to connect. Select "Tools" | "Serial Monitor..." from GXDLMSDirector to verify the bytes. You can use any terminal application that can show received data as a hex string on your PC to verify it.

BR,
Mikko

________________________________________
Mikko Kurunsaari
Gurux Ltd
http://www.gurux.fi