RF-V48 watch protocol NumberFormatException

Khalil HADDED 2 years ago

I have RF-V48 watch that is sending data using watch protocol

The server received this data:

[3G*9705141740*0009*LK,0,0,53][3G*9705141740*005A*UD,190723,190707,A,36.815109,N,10.1792312,E,8.24,127.9,21.0,5,100,53,0,0,00000000,0,0,58.0][3G*9705141740*0003*TKQ][3G*9705141740*0009*LK,0,0,53]

And then the NumberFormatException error was thrown:

2023-07-19 19:07:34  INFO: [T121e7897: watch < 160.158.43.208] 5b33472a393730353134313734302a303030392a4c4b2c302c302c35335d5b33472a393730353134313734302a303035412a55442c3139303732332c3139303730372c412c33362e3831353130392c4e2c31302e313739323331322c452c382e32342c3132372e392c32312e302c352c3130302c35332c302c302c30303030303030302c302c302c35382e305d5b33472a393730353134313734302a303030332a544b515d5b33472a393730353134313734302a303030392a4c4b2c302c302c35335d
2023-07-19 19:07:34  INFO: [T121e7897] error - For input string: "53][3G*9705141740*005A*UD" - NumberFormatException (... < WatchProtocolDecoder:259 < ExtendedObjectDecoder:75 < ... < WrapperContext:102 < ...)
2023-07-19 19:07:34  INFO: [T121e7897] disconnected

I think the server is configured to decode one received command like this:

[3G*9705141740*005A*UD,190723,190707,A,36.815109,N,10.1792312,E,8.24,127.9,21.0,5,100,53,0,0,00000000,0,0,58.0]

But when it gets a list of successive commands, it will fail to decode them all

Is this the case ?
And is there any solution ? or i need to edit the code ?

Traccar version: 5.8
Protocol: watch
Port used: 5093

Thank you.

Anton Tananaev 2 years ago
Khalil HADDED 2 years ago

Okay thank you very much.

Just to be sure, will the server handle all the successive commands, or will it handle only the first command ?

Anton Tananaev 2 years ago

All of them.

Track-trace 2 years ago

This commit actually breaks the voice messages sends from Watches as stated here: https://www.traccar.org/forums/topic/watch-protocol-voice-messaging-broken-after-58/