GT06 Engine Stop Not Working

Ronald7 years ago

Hi

I have a small fleet based on GT06. I have just migrated them to Traccar.
GPS and everything else works well except for Engine Stop and Engine Resume command.
If i send custom command e.g DYD,000000# the engine will stop successfully.
I have checked logs and noticed that Traccar is sending DYD,123456# instead of DYD,000000# expected by the GT06 device.
I have tried adding gt06.alternative to true in both config file and attributes to no avail.

Can someone help me fix this and get Traccar to send DYD,000000# on engine stop command

Im new to java and linux so if you could be specific it would help a lot e.g go to this folder, edit this file etc

Thanks a lot for your help

Anton Tananaev7 years ago

Is the number after comma a device password?

Ronald7 years ago

Hi Anton.
Thanks for your reply.
I do not think so because the current device password is 123456
sms commands works with it, eg cut123456, resume123456 for engine cut and resume.

For online commands, the device is accepting DYD,000000# for cut and HFYD,000000# for resume.
Traccar is sending DYD,123456# and HFYD,123456#

How can i get Traccar to send the first data on engine cut and resume?
THe device is GT06 by Accurate

Anton Tananaev7 years ago

I think you need to get explanation from device vendor. What does the number mean?

Ronald7 years ago

Its the default in GT06 engine command:
https://dl.dropboxusercontent.com/s/sqtkulcj51zkria/GT06_GPS_Tracker_Communication_Protocol_v1.8.1.pdf
on page 38

Assuming it`s a password, is there a way to edit the data DYD,123456# that is being sent by traccar on Engine Stop command to DYD,000000# as expected by the device?

I would appreciate any help

Anton Tananaev7 years ago

Not yet, but if we can confirm that it's password we can add configuration parameter for it.

Ronald7 years ago

Hi Anton, Thanks for that, i appreciate. I will check with them.
While waiting on it, im trying to find a workaround.

Is there a way to delete or hide the default Engine Stop and Engine Resume commands? If there is, could you kindly tell me how?

I would like to hide them (if possible) then save custom commands for my clients with DYD,000000# and HFYD,000000# for cut and re

Ronald7 years ago
  • for cut and resume. Sorry, pressed send by mistake
Anton Tananaev7 years ago

Unfortunately not.

Ronald7 years ago

Hi Anton. Thanks for for your reply.

Even in code on the server there is no way to remove the default commands?

Anton Tananaev7 years ago

Of course you can just server code, if you have necessary skills.

Ronald7 years ago

Hi Anton.

Yes i have editing literacy, could you kindly direct me to the correct file please and i will take it from there.
I appreciate your help

Anton Tananaev7 years ago

GT06 encoder is the one you need to edit.

Ronald7 years ago

Thanks Anton for your help. Lastly could you please point me to its location (folder)?
Thanks

Harsh Srivastava6 years ago

Just edit traccar\src\org\traccar\protocol\Gt06ProtocolEncoder.java file and edit HFYD,123456# to HFYD,000000#