subscribe to our Youtube


14455 questions

17168 answers


0 members

We are migrating to our new platform at Moving forward, you can continue discussions on this new platform. This current platform will be temporarily maintained for reference purposes.
0 votes
2,107 views 7 comments
I'm trying to send coordinates from a RUT850 to a MySQL Database.

I set up a PHP (or HTML) page on my server that should receive the coordinates and upload to the DB via queries.

If i set the HTTP/HTTPS server address on the RUT850, how do I read RUT850 data? Are they sent via POST or GET (or something else)?

1 Answer

0 votes
by anonymous


Sorry for late response,

If you are talking about Services > GPS > HTTPS configuration, then information is being set via POST messages to yours HTTP(S) server.

Best regards,

Ok, thank you for the answer

However i'm trying to retrieve these data via $_POST on a PHP page but i cannot get it to work.

After enabling the "HTTPS Server Settings" and setting the server address ("IP_address/directory/page.php"), should i enable something else in order to send data?

Also, $_POST is an associative array, so what are the names of the data?
by anonymous


You should only need to enable GPS and choose Satelite Configuration in Services > GPS > General tab, and then Enable and enter URL in Services > GPS > HTTPS you should check if yours server is not dropping packets incoming from Router for some reason.

Names of the data is respectively names of NMEA sentences that are being sent, here is an example of how it would look:

You can also check which side s responsible, by simply connecting yours pc/laptop to a router and running application like Hercules  to act as a TCP server and check if router sends out data.

Best regards,


I've tried to run Hercules and listen on TCP port 80, the result was successful.

When I try to send data to the server however, POST array length remains 0.

Maybe the content-type is not recognized?

Thank you.
by anonymous

So at server side it receives connection router, but it shows that content length is 0?

Do you have any way to troubleshoot server side, since as you said, you did confirm that router sends out GPS data. If you could use tcpdump on router and on server side, you could see if router sends out information but server does not recognize it, or router is sending empty packets.

Best regards,


the content length is 803, here is a sample data (received on Hercules):

POST /?imei=865546040689768&serial_num=1104633324 HTTP/1.1


Accept: */*

Content-Type: application/vnd.teltonika.nmea

Content-Length: 803

















the PHP page is programmed to receive both GET and POST packages and query to an SQL server, the result is shown below:
As you can see, i can receive both IMEI and Serial by GET but POST array length is 0. I think this problem comes from the server and not the router, so thank you anyway. 


I solved by reading the raw incoming data in the following way:

$rawdata = file_get_contents("php://input");

this return a single string containing all the POST data.

Thank you anyway

by anonymous
Could you please provide us your solution. I want to store the gps data also in a db. Thanks for your help