GlobalSat TR606 NumberFormatException

Christian 5 years ago

Hi, it seems that I have successfully connected my device. HEX decode looks not bad, but after that I am getting a warning regarding NumberFormatException.
Using port 5043

2021-06-01 17:50:57  INFO: [be26ae32] connected
2021-06-01 17:50:57  INFO: [be26ae32: globalsat < 185.57.216.2] HEX: 4753722c3836313331313030373130353937352c34302c372c343030302c332c3031303632312c3137353035342c4530303734372e363834382c4e343935322e373530302c3138392c302e30302c302c362c312e382c3630252a363521
2021-06-01 17:50:57  INFO: [be26ae32: globalsat > 185.57.216.2] HEX: 41434b0d
2021-06-01 17:50:57  WARN: [be26ae32] error - For input string: "E0" - NumberFormatException (... < GlobalSatProtocolDecoder:143 < *:314 < ExtendedObjectDecoder:52 < ... < WrapperContext:102 < ...)
2021-06-01 17:50:57  INFO: [be26ae32] disconnected

Any idea?
Thanks a lot for helping
Best Regards
Christian

Anton Tananaev 5 years ago

Have you configured globalsat.format0 to match the format you are using on device? If not, that's likely the issue.

Christian 5 years ago

Hi Anton,
I am not deep technical, sorry. Where do I need to configure that? and what should be the syntax?

Anton Tananaev 5 years ago

In the configuration file. The format is the same as configured on the device (or at least the same way it's described in the vendor documentation). Example:

<entry key='globalsat.format0'>TSPRXAB27GHKLMnaicz*U!</entry>
Christian 5 years ago

Many Thanks, that helped :) It´s working now.