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
3,935 views
in Vehicle tracking by anonymous
Hi, we purchased the FMB920 and would like to know how to receive GPRS data to our server. Do you have any python, php script where can have a look?

Thank you

2 Answers

0 votes
by anonymous
Hey,

Thank you for the question.

You can take a look at our protocols here:

https://wiki.teltonika.lt/view/Codec

To get started, you have to make sure you have a port open and configure the device to send to that IP/port.

Afterwards, the communication is working according to protocols. Alternatively, you can contact sales manager and test the device on our platform.

Have a great day. :)

Best regards,

Vytenis
by
Thank you for your reply, what is the codec for FMB920?
by anonymous
You can use codec8 or codec8 extended, This is chosen from the configurator -> System -> Data Protocol window
0 votes
by
Does anyone knows how to get GPS data via PHP from this model?
by anonymous

I am also one of the person which I need help in building TCP Listener .  

I am building a TCP Listener in Python for my FMB 920 Device which I purchased last week.

First our server got the IMEI from the device and our script successfully acknowledged with 01 byte as below.

           ba = bytearray()

           ba.append(0x01)

           conn.send(ba)

The device accepted our acknowledgement and sent AVL Data Packet as below.
00000000000004d60813000001695ecc119000000000000000000000000000000000000c05ef00f0001503c80045020

Here 08 is codec and 13 is number of records as per Protocol File. 

Now the server has to respond to the device with the number of records. To do so, I did like this

           ba = bytearray()

           ba.append(0x13)

           conn.send(ba)

Unfortunately, the device is not recognizing this byte and again sending the same data in the next attempt. 

Could somebody please help on this.

Whats wrong in this. I tried to send the exact binary also as raw_data[9:10]. Still there is no luck.

Please help.

by

you should send 4 bytes : 

ba = bytearray()
ba.append(0x00)
ba.append(0x00)
ba.append(0x00)
ba[3:4] = raw_data[9:10]
the problem that i'm having now is that i can't send a command, i tried to send this one : 00000000000000120C01050000000B7365746469676f75742031010000ADCB ( setoutput to 1) but no luck . any ideas ?