MT825 Command Results Issue

jaimzj4 years ago

Hello,

When sending commands to MicTrack MT825 devices the commands are sent and works fine.

However the response from the device to Traccar, the following error is returned can this be fixed please?

Command Sent: rconf,1#

2020-08-19 18:15:38  INFO: [79fdf427: mictrack > 54.198.90.248] HEX: 72636f6e662c3123

2020-08-19 18:15:56  INFO: [79fdf427: mictrack < 54.198.90.248] HEX: 3836323738353034353430383833312072636f6e663d73757065722c2c2c39352e3131312e3235352e3231382c353139312c372c31302c4d543832355f4d4943545241434b5f42312e303556322e385f32303230303131372c6361744d31
2020-08-19 18:15:56  WARN: [79fdf427] error - begin 0, end -1, length 94 - StringIndexOutOfBoundsException (... < MictrackProtocolDecoder:213 < *:170 < ExtendedObjectDecoder:51 < ... < WrapperContext:102 < ...)

Command Sent: mode,6,10#

2020-08-19 18:20:52  INFO: [79fdf427: mictrack > 54.198.90.248] HEX: 6d6f64652c362c313023
2020-08-19 18:20:52  INFO: [79fdf427: mictrack < 54.198.90.248] HEX: 6d6f64653d5375636365737321
2020-08-19 18:20:52  WARN: [79fdf427] error - begin 0, end -1, length 13 - StringIndexOutOfBoundsException (... < MictrackProtocolDecoder:213 < *:170 < ExtendedObjectDecoder:51 < ... < WrapperContext:102 < ...)
Anton Tananaev4 years ago

Fixed the exception:

https://github.com/traccar/traccar/commit/b9875d4076a6c88b4da6d6b296f9496f525091fe

But I don't think it would be possible to handle responses as they are not structured in any proper formats.

jaimzj4 years ago

Really appreciate your quick support and fix, thank you very much.

I will reach out to the manufacturer for the response formats :)