Error on OSMAND protocol

Ray3 years ago

Because Ronaldo said:

you don't have to send "GET", you have to send the ip and port of the server...

the timestamp needs to be in Unix format

Anton Tananaev3 years ago

And then I said that you should ignore his comment.

Ray3 years ago

Ok,

So the right string would be then in my opinion:

GET /?id=9991234&lat=51.6520&lon=3.99932×tamp=2022-03-09T21:17:00Z&hdop=3 &altitude=4&speed=5 HTTP/1.1

Am i correct?

Ray3 years ago

Well i got a bit working.

But it only updates after reconnect.

in Log file i get this message.

2022-03-09 22:17:12 INFO: [b1796c67: osmand > 192.168.15.41] HEX: 485454502f312e3120323030204f4b0d0a636f6e74656e742d6c656e6774683a20300d0a0d0a
2022-03-09 22:17:12 WARN: HikariPool-1 - Failed to validate connection com.mysql.cj.jdbc.ConnectionImpl@18e3a7 (No operations allowed after connection closed.). Possibly consider using a shorter maxLifetime value.
2022-03-09 22:17:12 WARN: HikariPool-1 - Failed to validate connection com.mysql.cj.jdbc.ConnectionImpl@1512f07 (No operations allowed after connection closed.). Possibly consider using a shorter maxLifetime value.
2022-03-09 22:17:12 WARN: HikariPool-1 - Failed to validate connection com.mysql.cj.jdbc.ConnectionImpl@768396 (No operations allowed after connection closed.). Possibly consider using a shorter maxLifetime value.
2022-03-09 22:17:12 WARN: HikariPool-1 - Failed to validate connection com.mysql.cj.jdbc.ConnectionImpl@1ac4fa4 (No operations allowed after connection closed.). Possibly consider using a shorter maxLifetime value.
2022-03-09 22:17:12 WARN: HikariPool-1 - Failed to validate connection com.mysql.cj.jdbc.ConnectionImpl@15962ef (No operations allowed after connection closed.). Possibly consider using a shorter maxLifetime value.
2022-03-09 22:17:12 WARN: HikariPool-1 - Failed to validate connection com.mysql.cj.jdbc.ConnectionImpl@1f25814 (No operations allowed after connection closed.). Possibly consider using a shorter maxLifetime value.
2022-03-09 22:17:12 WARN: HikariPool-1 - Failed to validate connection com.mysql.cj.jdbc.ConnectionImpl@1be150f (No operations allowed after connection closed.). Possibly consider using a shorter maxLifetime value.
2022-03-09 22:17:12 WARN: HikariPool-1 - Failed to validate connection com.mysql.cj.jdbc.ConnectionImpl@40bbb3 (No operations allowed after connection closed.). Possibly consider using a shorter maxLifetime value.
2022-03-09 22:17:12 WARN: HikariPool-1 - Failed to validate connection com.mysql.cj.jdbc.ConnectionImpl@e2face (No operations allowed after connection closed.). Possibly consider using a shorter maxLifetime value.
2022-03-09 22:17:12 WARN: HikariPool-1 - Failed to validate connection com.mysql.cj.jdbc.ConnectionImpl@1e7383e (No operations allowed after connection closed.). Possibly consider using a shorter maxLifetime value.
2022-03-09 22:17:12 INFO: [b1796c67] id: 9991234, time: 2022-03-09 23:15:47, lat: 51.65020, lon: 3.99930, speed: 5.0, course: 0.0

So looks like its closes connection after sending a message.