StarLink protocol decoder error

Francisco Martin6 years ago

Hello Anton,

2018-11-15 22:49:45  INFO: [960c624d] connected
2018-11-15 22:49:45  INFO: [960c624d: 5136 < 47.60.47.22] HEX: 24534c553330353835353035343332353633322c30362c32322c3138313131353231313234312c30342c3138313131353138313832342c2b343133352e323736322c2d30303434332e333536332c3030302e302c3332342c3030303030312e3030302c36353230302c35343836312c31322e3038312c30332e3332302c3735362c322e37352c39392c2c2c352c32372e302c31322c372a33360d0a
2018-11-15 22:49:45  WARN: [960c624d] error - For input string: "000001.000" - NumberFormatException (... < StarLinkProtocolDecoder:154 < ExtendedObjectDecoder:51 < ... < WrapperContext:102 < ...)
2018-11-15 22:49:45  INFO: [960c624d] disconnected

What is wrong?

Thank you.

Anton Tananaev6 years ago

Configuration is probably incorrect. For StarLink protocol you need to configure starlink.format. See example here:

https://github.com/traccar/traccar/blob/master/src/org/traccar/protocol/StarLinkProtocolDecoder.java#L44-L45

Francisco Martin6 years ago

Now works, thank you Anton.