Error Megastek Protocol

revisoft7839 years ago

I tried to connect my gps device is Megastek GVT-800 with servers located in vps, but why always provide information that String index out of range: -19 - StringIndexOutOfBoundsException (... <MegastekProtocolDecoder.java:166 <ExtendedObjectDecoder.java:39 <...)
This is for the information of traccar server error log
2015-08-04 18:02:55 INFO: [9084C848] disconnected
2015-08-04 18:03:29 INFO: [0722E24E] connected
2015-08-04 18:03:31 DEBUG: [0722E24E: 5024 < 223.255.230.34] HEX: 244d47563030322c3031333737373030373533363433342c2c522c3031303131342c3030303035372c562c303030302e303030302c4e2c30303030302e303030302c452c30302c30302c30302c39392e392c302e3030302c302e30302c302e302c38302e3236332c3531302c38392c323334322c303330422c2c303030302c303030302c3230302c39362c302c202c202c2c2c2c54696d65723b210d0a
2015-08-04 18:03:31 WARN: String index out of range: -19 - StringIndexOutOfBoundsException (... < MegastekProtocolDecoder.java:166 < ExtendedObjectDecoder.java:39 < ...)
2015-08-04 18:03:31 WARN: [0722E24E] error - String index out of range: -19 - StringIndexOutOfBoundsException (... < MegastekProtocolDecoder.java:166 < ExtendedObjectDecoder.java:39 < ...)
2015-08-04 18:03:31 INFO: [0722E24E] disconnected
while for the format uploading gprs from documentation megastek gvt-800 is
<data head><protocol version>,<device IMEI>,<device name>,<GPRS real-time/stored data flag>,<date>,<time>,<GPS fixed flag>,<latitude>,<N/S>,<longitude>,<W/E>,<used satellite number of BDS>,<used satellite number of GPS>,<used satellite number of GLONASS>,<HDOP>,<speed>,<course>,<altitude>,<mileage>,<MCC>,<MNC>,<LAC>,<Cell ID>,<GSM signal strength>,<digital input>,<digital output>,<analog input 1>,<analog input 2>,<analog input 3>,<temperature sensor 1>,<temperature sensor 2>,<RFID>,<external accessories status>,<battery level>,<alert event type>;<checksum><data tail>
If anyone can help solve my problem ?? Thanks before

Anton Tananaev9 years ago

Please provide full documentation.

revisoft7839 years ago

i'm sory late for replay, this is the format for the documentation of the device gvt uploading gprs-800 Megastek
https://www.dropbox.com/s/q7aownb3n9d3ui9/GPRS%20Uploading%20Data.pdf?dl=0
and if needed a format command list
https://www.dropbox.com/s/foul2cciwfa1ken/Command%20List.pdf?dl=0

Anton Tananaev9 years ago

Thanks for the documentation. I have added this protocol to my backlog of new protocols.

Anton Tananaev9 years ago

Please don't duplicate messages. Let's continue discussion on GitHub:

https://github.com/tananaev/traccar/issues/1334

revisoft7839 years ago

okey i'm sorry mr