Ask a question

3430 questions

3907 answers

2915 comments

20049 members

Ask a question
0 votes
189 views
in Vehicle tracking by
Hi,

i'm trying to create tcp server for fmb204 with PHP. I'm able to receive data (codec 8) from fmb and parse it, but i receive always same data (16 record) . I respond to fmb with record number (i try in decimal format, hex and bin).

Can someone help me?

Thanks in advance.

1 Answer

0 votes
by

Hello

When replying with the record number to the device, respond schould be always 4 bytes HEX:

For example is number of data is 02, server schould reply: 00000002

https://wiki.teltonika-gps.com/view/Codec#Codec_8

by
Same problem here

I try this php api https://github.com/lbarrous/TeltonikaPHPDecoder and this c# api https://github.com/SpaceQuantum/GPS-Listener-Parser.

Always receive same 35 packets. When receive data, Api sends count of packets(35) in four bytes format. Sometimes receive new data but then it repeats itself again.

If format data from gps and if the count data is less than 35, gps sync data correctly. If the gps loses the signal gprs and stores more than 35 records, it will fail again.
by
Hello.

Which protocol is used: TCP/UDP ?

What is device firmware version ?

What is data packet size ?
by

Hi! thanks for the reply

The protocol is TCP and firmware version is 03.25.18.Rev.05 (last)

This is a trace example with 35 packets:

000000000000041d0823000001781c548f1800fd952e0919d62e5600000000000000000000000000000001781c56a25800fd95489819d6243f002000f2090007000000000000000001781c57a04000fd955fd719d60e5f002400440a0008000000000000000001781c57d6f000fd95658119d60872002300690a0006000000000000000001781c585fa800fd957b8219d604ac0026008d0a0006000000000000000001781c58e47800fd958b3319d60bc4002000180a0009000000000000000001781c58f41800fd958ca119d60cbe002000230a0006000000000000000001781c591b2800fd95902519d60f59002100190a0006000000000000000001781c5b075800fd95896019d5f52d001c00d50c0007000000000000000001781c5ba39800fd9579e119d5ef51001a011a0c0006000000000000000001781c5bb72000fd9576c119d5f124001901440c0006000000000000000001781c5bf1b800fd95729619d5f638001800290c0007000000000000000001781c5bf5a000fd9571ad19d5f764001800070c0008000000000000000001781c5bf98800fd95718c19d5f7210018001a0c0006000000000000000001781c5bfd7000fd95724319d5f7a6001800290c0006000000000000000001781c5c092800fd95706019d5f87f0018013c0c0006000000000000000001781c5c10f800fd956e2919d5f9ee001901460c000b000000000000000001781c5c18c800fd956cba19d5fa62001901510c0006000000000000000001781c5c6ad000fd9564ea19d600e5001c01100c0008000000000000000001781c5c6eb800fd9563f019d600c3001c01030c0008000000000000000001781c5cb8f000fd955d8f19d6093a001f013b0b0009000000000000000001781c5cc4a800fd955d1a19d609e10021014b0c0006000000000000000001781c5ce3e800fd955bac19d60e3d002301310d0007000000000000000001781c5cff4000fd9559c819d611b10024014a0d0006000000000000000001781c5d032800fd95592219d612360024013d0d0007000000000000000001781c5d591800fd95555b19d61a59002001480d0007000000000000000001781c5dce4800fd95498219d6254a002101340c0006000000000000000001781c5e149800fd95451519d6275f002001510d0006000000000000000001781c5e37c000fd95442b19d62e350022015b0c0009000000000000000001781c5e3f9000fd95433119d6305b0023014e0c0007000000000000000001781c5e437800fd95426919d63112002301590c0006000000000000000001781c5e476000fd95420519d631760022014d0d0006000000000000000001781c5e570000fd953e7019d63658002401480d0010000000000000000001781c5e5ed000fd953db919d6383c0025013e0c0009000000000000000001781c5e66a000fd953c5b19d639140025012d0b0007000000000000230000031f00000000000000210801000001781c5e764000fd95384119d636ac0027011a0c0006000000000000010000f867

by
Hello.

Your server response to this packet schould be 00000023 (35 dec).

You could test communication using Hercules and observing records sent counter (Status->GSM Info->Records) in the configurator.

Hercules usage is described on our Wiki:

https://wiki.teltonika-gps.com/view/Codec#Codec_8