UDP Connection on Suntech ST310U

Hey guys, first of all just to say that you have done a awesome job with this project. I heard about it a months ago and now I am needing it.

Well, I am having a problem that is really odd, I configured a Suntech's device ST310U, using TCP connection it send the data normally which is really great.

2018-07-31 14:48:32 DEBUG: [BE94F096: 5011 < 52.67.254.24] HEX: 53543330305354543b3030373230393435373b34303b3330363b32303830303130363b30313a32393a32363b62653931303b2d32372e3031333833333b2d3035312e3133363731303b3030302e3030303b3030302e30303b303b303b3131343b31332e35303b3030303030303b313b303235323b3030303035303b342e313b310d

Port 5011 as described in the supported devices etc.

But what is odd, is when I change to UDP connection no new entries in logs are presented. Also I couldn't find where I can check if any data arrive or if needs a different por for UDP connections.

Note: I am using UDP with ACK 1 (Do not verify alive connection, just verify data sent)

Also the Suntech provide a zip feature, this was implemented or something? I am still building the project on netbeans to check it.

Hey guys another attempt, I found the hex.sh on tools folder very usefull.

So I executed the default hex.sh that uses TCP connection and the hex data was sent successfully to the server.

And than I edited the hex.sh to send through send_hex_udp and it didn't received in the server.

This looks like the UDP connection is not supported on traccar server?

Anton Tananaev7 years ago

UDP is not supported for Suntech protocol at the moment.

Can you give me a direction so I can make it and also create a pull request for it?

Anton Tananaev7 years ago

Check other protocols that support both TCP and UDP. For example, GPS103. Implement it in the same way for Suntech.

Anton,

Before I saw your answer, I checked the files and got the ideia, also I made it work locally, just need to check the build process to send to my server.

Appreciate your answers, thanks.