Suntech devices not being decoded by Traccar

Suyash Rai6 years ago

Hi,

I'm using many devices like GT06N, WeTrack2, Teltonika, Coban etc and all are working perfectly. But I tried connecting Suntech protocol based device, the device is sending data and it is being shown in the logs but nothing further is happening.

HEX:

53413230305354543b3836333737313032343534313430333b3131313b32303139303932343b31313a34363a33333b31383537333b2b32382e3037373730353b2b3037382e3634353638353b3030302e3030303b35352e3638303b393b313b30303142363146343b31332e33373b342e3030303b3030303030303b313b303b313b30313532

Decoded:

SA200STT;863771024541403;111;20190924;11:46:33;18573;+28.077705;+078.645685;000.000;55.680;9;1;001B61F4;13.37;4.000;000000;1;0;1;0152

It's just a line like this:

[f2543f06: suntech < 106.77.31.216] HEX: 5341323030535454483b3836333737313032343534313430333b3131313b32303139303932343b...

and then nothing else.

Could you please help?

Anton Tananaev6 years ago

Suntech decoder has a bunch of configuration parameters, some of which might be required.

https://github.com/traccar/traccar/blob/master/src/main/java/org/traccar/protocol/SuntechProtocolDecoder.java

Suyash Rai6 years ago

Thanks for your help but I'm sorry as I'm not able to understand how to implement that configuration parameter. Could you please give an example?

Thanks!