Input String Error -Number Format Exception Starlink Tracker

Yunus7 years ago

Hi Anton,

I have recently acquired a new Starlink Tracker from Israel. I setup up the device and realized that it was not reporting any thing when I checked the logs. I have found this error:

2018-03-23 11:30:55 DEBUG: [CF203F1C: 5136] HEX: 24534c553335323335333038303438343630302c30362c32372c3138303332333131333031372c30312c3138303332333131333031372c2b303533362e343030342c2d30303031322e303337312c3030302e322c3033382c3030303030302c30303035332c33343330382c31322e3433372c30332e3433352c312c39392a34460d0a
2018-03-23 11:30:55  WARN: [CF203F1C] error - For input string: "12.437" - NumberFormatException (... < StarLinkProtocolDecoder:163 < ExtendedObjectDecoder:58 < ...)

Am using Traccar version 3.15.
Please any help will be highly appreciated.
Thank you.

Anton Tananaev7 years ago

What format are you using?

Yunus7 years ago

Hi Anton,
Thank you for the quick response.

I dont how to determine the format. I would be very grateful if you could help me on how to set the format.

Thank you.

Anton Tananaev7 years ago

It's configured on the device side. If you don't know what the format is I would recommend contacting device vendor support.

Yunus7 years ago

Hi Anton,

I contacted the vendor. They said the PROTOCOL FORMAT IS TEXT.

Yunus7 years ago

They gave me this link https://sweb.erm.co.il/protocol/

Yunus7 years ago

Hi Anton,

I used the Hex Decoder on your site and it decodes the hex in this format:

$SLU352353080484600,06,96,180323122717,01,180323122717,+0536.4031,-00012.0399,000.5,281,000001,00053,34308,11.634,03.447,1,99*72

Thank you.

Yunus7 years ago

Hello Anton,

Thank you very much for your support. I really appreciate it. I stepped through the protocol's code and was able to set starlink.format parameter and everything is working fine now.

Thank you very very much

Anton Tananaev7 years ago

So, you knew the format? That's exactly what I asked.

kushal6 years ago

Hi Yunus/Anton,
Where do i need to set starlink.format ?
i am facing similar issue.

Anton Tananaev6 years ago

Config file.

kushal6 years ago

Hi Anton,
I have added starlink.format=text in Wrapper.config file but still i am getting same error.

Anton Tananaev6 years ago

You have to use format string, not just word "text".

kushal6 years ago

I have used below format string but same error.

starlink.format=#EDT#,#EID#,#PDT#,#LAT#,#LONG#,#SPD#,#HEAD#,#ODO#,#LAC#,#CID#,#VIN#,#VBAT#,#SAT#
Anton Tananaev6 years ago

If you get same error, it means that format is incorrect.