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
1,130 views
in Vehicle tracking by anonymous
Hi,

I am building a custom tcp server for communication with the fmb devices. I found information on how to implement it here: [ https://wiki.teltonika.lt/view/Codec ] and everything seems to work with getting information.

The problem is that the device sends data every 2 minutes and every time I send a command in Codec12 it disconnects and reconnects.
I have configured the active datalink timeout to 259200 (maximum value)

Does anybody have any suggestions ?

3 Answers

0 votes
by anonymous
Hello kostasbraibox,

Thank you for your question.

Could you please add a screenshot of your Data Acquisition settings and Record settings from GPRS settings from your device configuration? Also, could you please say, which SMS coomands do you sent to your device?

Thank you in advance.

Best Regards,

Teltonika Support
0 votes
by anonymous
Hi,
sure below a screenshot of the data acquisition and record settings from GPRS settings:

https://imgur.com/8MvPeHd

https://imgur.com/cL26fhA

The commands are sent via TCP (Codec12) and not via SMS. I am currently trying with the getinfo and getgps commands.
When I tried with Hercules TCP Server the commands worked, but only immediately after the device sent data. If I try a command after a minute or so the device did not reply.

Thank you for the quick response
0 votes
by anonymous
Hi,
just for anyone that might be interested:
I added a delay between the requests and a mechanism to hold the outgoing command when there is incoming data
and it seems that it is working now.

Thanks