Protocolo Osmand

David2 years ago

Good evening, I am creating a panic button app and I want to integrate it with Traccar.

For that I want to use the osmand protocol which I saw that it sends with this format

http://demo.traccar.org:5055/?id=123456&lat={0}&lon={1}×tamp={2}&hdop={3}&altitude={4}&speed={5}

In my traccar vps I observe that the login is valid for the equipment but it says that it connects and disconnects at the same time

records:

979a8e3b: Osmand <181.46.164.77] HEX: 69643d313233343536266c61743d7b307d266c6f6e3d7b317dd774616d703d7b327d2668646f703d7b337d26616c7469747564653d7b347d2673706565643d7b357d
02/07/2022 18:48:02 INFO: [5a5ef083: Osmand <181.46.164.77] HEX: 69643d313233343536266c61743d7b307d266c6f6e3d7b317dd774616d703d7b327d2668646f703d7b337d26616c7469747564653d7b347d2673706565643d7b357d
2022-02-07 18:48:02 INFO: [21bc867b] connected
2022-02-07 18:48:02 INFO: [b82276fa] connected
2022-02-07 18:48:03 INFO: [979a8e3b] disconnected
2022-02-07 18:48:03 INFO: [5a5ef083] disconnected
2022-02-07 18:48:03 INFO: [21bc867b] disconnected
2022-02-07 18:48:03 INFO: [b82276fa] disconnected
2022-02-07 18:48:03 INFO: [783c8923] connected

Why is this happening?

Anton Tananaev2 years ago

It doesn't look like you are using HTTP protocol.

David2 years ago

thanks for answering

To test I try to send data packets with the software and I don't see an error in the configuration

https://ibb.co/zHR7zkM

Anton Tananaev2 years ago

The problem is exactly what I told you. You are sending raw TCP data and not HTTP requests.

BerndFfm2 years ago

And the URL should be

http://demo.traccar.org:5055/?id=123456&lat={0}&lon={1}×tamp={2}&hdop={3}&altitude={4}&speed={5}

and not

http://demo.traccar.org:5055/?id=123456&lat={0}&lon={1}×tamp={2}&hdop={3}&altitude={4}&speed={5}

or

http://demo.traccar.org:5055/?id=123456&lat={0}&lon={1}d7tamp={2}&hdop={3}&altitude={4}&speed={5}

Greetings Bernd