Is it possible to do udp with osmAnd protocol?

laurentvm6 years ago

Do we need to change something in configuration to have UDP working with osmAnd ?
What it the address to hit in this case?

Anton Tananaev6 years ago

OsmAnd is HTTP-based protocol, so no, but there are plenty of other UDP-based protocols.

laurentvm6 years ago

Hi Anton,

I'm using a Freematics on the port with OSMAnd 5055. I see that you list now (new?) that freematics should be on 5170.

When I check github code from freematics, it's still using osmAnd.
Is there something new somewhere? Is there a defined protocol for freematics now?
In this code, it's pushing at 3 Hz but I would like to push at 10Hz over gsm. Can I do it over TCP or should I switch to udp.

Anton Tananaev6 years ago
laurentvm6 years ago

Hi Anton,

I gave it a try but I've an issue when sending the payload.
I send this: 1#10:1536954300,A:49.799999,B:6.000000*B5
But I get an error message from Traccar:

018-09-14 19:47:21 DEBUG: [4fc3e05d: 5170 < 185.40.61.143] HEX: 312331303a313533363935343330302c413a34392e3739393939392c423a362e3030303030302a4235
2018-09-14 19:47:21  WARN: [4fc3e05d] error - For input string: "10:1536954300" - NumberFormatException (... < FreematicsProtocolDecoder:55 < ExtendedObjectDecoder:51 < ... < WrapperContext:102 < ...)

Is it because time is missing? Or something else?

Thanks

Anton Tananaev6 years ago

There were some issues that should now be fixed.

laurentvm6 years ago

I don't get you Anton. Did you recompile a new version that I should install ?

I'm running the 4.0

Anton Tananaev6 years ago

No, you need to compile it yourself or wait for a new official release.