FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

4167 questions

4739 answers

3460 comments

0 members

We are migrating to our new platform at https://community.teltonika.lt. Moving forward, you can continue discussions on this new platform. This current platform will be temporarily maintained for reference purposes.
0 votes
330 views
in Vehicle tracking by
I am receiving correct IMEI and this is my code for sending confirmation from my side in JAVA

{   byte[] b = new byte[] {0x01};

baos.write(b,0,1);

dos.write(baos.toByteArray());

dos.flush();     }

where dos is dataOutputStream and baos is byteArrayOutputStream

device actual latitude and longitude are different from what i am receiving at my end. i checked raw packet and yes there is no mistake in my calculations. i don't know what is wrong, please help me. i have already delayed my team project enough, please help

1 Answer

0 votes
by anonymous

Hello, 

Can you send sdformat or deleteallrecords command? https://wiki.teltonika-gps.com/view/FMB_SMS/GPRS_Commands

Or just press format in configurator when device is connected to PC. 

There might be some events generated and stored in internal memory and its trying to push them as soon as there is data link between server and device.

Device IMEI > server responds 01

Device sends packet with record length > Server responds with correct record length to receive records.

Check communication with server part: https://wiki.teltonika-gps.com/view/Codec#Codec_12

Let us know if this helped. 

Regards,

Teltonika Support.