Alternative gt06 lock command

smsoousa 9 years ago

Hello Anton and everyone, I'm with a GT06 Accurate tracker, where the lock and unlock commands are different from the GT06 Concox.

  • Concox: Relay, 1 # / Relay, 0 #

  • Accurate: # stopoil # 123456 # / # supplyoil # 123456 #

My question is, changing the line:

return encodeContent(alternative ? "DYD,123456#\r\n" : "Relay,1#");

For:

return encodeContent(alternative ? "DYD,123456#" : "#stopoil#123456#");

Can I perform the lock command for this device?
Should I perform some code inclusion in the configuration file or device attributes?
If so, how do I find the Gt06ProtocolEncoder.java file in the system folders on the server? I use Ubuntu 14.04. I ask this because I want to perform the exchange of the file directly in the folder, without having to compile it for the changes to work. Can you help me? Thank you

Anton Tananaev 9 years ago

If you change any Java source code, you have to compile a new tracker-server.jar file.