Hi all.
I would have to implement a new protocol for a proprietary GPS device not included in the list of integrated devices in traccar.
To learn how to develop ourselves I made a first attempt.
I duplicated the Gt20Protocol and Gt20ProtocolDecoder classes and changed the name of the classes and files to MyDevProtocol and MyDevProtocolDecoder.
I also added the following line in debug.xml:
<entry key='mydev.port'>4560</entry>
After the build and replacing the tracker-server.jar, I get the following error:
ERROR: Main method error - Range [21, -1) out of bounds for length 28 - StringIndexOutOfBoundsException (... < ClassScanner:55 < ServerManager:55 < <gener:-1 < *:-1 < ... < Main :124 < ...)
Maybe I forget to do something?
Thank you very much for any help.
BR,
Lorenzo.
Are you sure you're using the same package?
Sorry Anton.
I noticed a typo package under org.traccar.protocol which is not a protocol.
sorry for the inconvenience and thanks for your input.
Hi all.
I would have to implement a new protocol for a proprietary GPS device not included in the list of integrated devices in traccar.
To learn how to develop ourselves I made a first attempt.
I duplicated the Gt20Protocol and Gt20ProtocolDecoder classes and changed the name of the classes and files to MyDevProtocol and MyDevProtocolDecoder.
I also added the following line in debug.xml:
<entry key='mydev.port'>4560</entry>
After the build and replacing the tracker-server.jar, I get the following error:
Maybe I forget to do something?
Thank you very much for any help.
BR,
Lorenzo.