Suggested protocol to send multiple locations without overhead

Jack3 years ago

Hello!

I'm dealing with a proprietary gps module and I've developed a server app to receive and decode its protocol.
I'm currently re-uploading it to traccar via OSM protocol.
The device uploads dozen of points in a single tcp connection via binary protocol but at very low frequency, so I have to do same amount of http calls to push data to Traccar. I've found data that Traccar accepts multiple http requests over single tcp connection and that's good, but yet it's kinda slow to push all the data and it generally feels like the wrong way to deal with this (I've calculated 800% overhead over tcp socket)

I see dozen of possible protocols already available to Traccar and I could surely write my own java adapter, but I don't speak java and I've already completed an independent C implementation of decoded and encoder, so I prefer asking for a suggestion on which protocol that's already available in Traccar I should encode my payload to make things easier for both my relay and traccar server.

Thanks!

Anton Tananaev3 years ago

If you are worried about overheads surely it would make more sense to implement it natively in Traccar. Also, you don't need to know much about Java. You can simply look at existing protocol decoders and implement it in a similar way. We even have some documentation.

Jack3 years ago

Thanks Anton. Would you name an existing protocol that's capable or receiving multiple points in a row to start peeking java code, binary or text-based makes no difference. Thanks.

Anton Tananaev3 years ago

One example - Teltonika, but there are a lot of protocols that support it.

Jack3 years ago

Thanks again. I think I've got it.