Traccar server can't send a custom command to GT06 Unit

kimnguu2048 years ago

Hello All,

traccar server sent commands to GT06 to stop the engine but it's not working, can you help me to solve it

i tried to send custom command (#stopoil#123456#) to it but it's not working aslo

here is my log:

2016-09-23 21:45:10  INFO: [7FC072E7] command type: engineStop, id : 4 sent
2016-09-23 21:45:10 DEBUG: [7FC072E7: 5023 > 171.253.26.215] HEX: 787812800c0000000052656c61792c312300009dee0d0a
2016-09-23 21:45:19 DEBUG: [7FC072E7: 5023 < 171.253.26.215] HEX: 78781f121009170e2e03c801286bb80b705d8100345a01c40450e800a1b10041133b0d0a
2016-09-23 21:45:19 DEBUG: [7FC072E7: 5023 > 171.253.26.215] HEX: 787805120041f1290d0a
2016-09-23 21:45:19  INFO: [7FC072E7] id: 355488020858211, time: 2016-09-23 21:46:03
2016-09-23 21:45:20  INFO: [7FC072E7] command type: engineResume, id : 4 sent
2016-09-23 21:45:20 DEBUG: [7FC072E7: 5023 > 171.253.26.215] HEX: 787812800c0000000052656c61792c3023000081550d0a
2016-09-23 21:45:50 DEBUG: [7FC072E7: 5023 < 171.253.26.215] HEX: 78781f121009170e2e22c701286bb80b705d8100345a01c40450e800a1b100423c550d0a
2016-09-23 21:45:50 DEBUG: [7FC072E7: 5023 > 171.253.26.215] HEX: 787805120042c3b20d0a
2016-09-23 21:45:50  INFO: [7FC072E7] id: 355488020858211, time: 2016-09-23 21:46:34

Thank you

Anton Tananaev8 years ago

You need to find out correct command format. You can try "DYD,123456#".

Vadim S7 years ago

Traccar not correct send "stop/resume oil" on GT06 - not working.

Correct command for disconnect oil and electricity online:

787815800F0001A9584459442C3030303030302300A0DCF10D0A

303030303030 - this password = 000000

Correct command for connect oil and electricity online:

78781680100001A963484659442C3030303030302300A07BDC0D0A

It's work for me (send custom command).
Doc - page 38 (Appendix B) GT06_GPS_Tracker_Communication_Protocol_v1.8.1

Anton Tananaev7 years ago

@vsaranov, there are two different sets of GT06 devices. Traccar can send your format as well if you set "gt06.alternative" to "true". Only thing is that password is hardcoded to "123456" at the moment.

Vadim S7 years ago

Anton, thanks.
Not working command “stop/resume oil” in traccar this is a bug or a feature?
The correct description of the protocol for GT06 links there, and the command server is not working.

Anton Tananaev7 years ago

There are two different versions of GT06 protocol with different command formats. Both are correct.

Vadim S7 years ago

Clear. How to add control commands other format GT06?

Anton Tananaev7 years ago

If you are asking how to switch between two, you should read my first comment more carefully.

Vadim S7 years ago

I read it, sorry did not understand.
Where should I search for and correct the format of the command sent?

Anton Tananaev7 years ago

You should add the parameter to the config file.

Vadim S7 years ago

Thanks, all worked!
I'm change config file and replace password in Gt06ProtocolEncoder.class and repack zip (jar).

tambiu7 years ago

Hi, my traccar installation does not have this file "Gt06ProtocolEncoder.class.jar" Do I need to download and put it in /opt/traccar/lib ? Because I think that I need to change it. I have a new version of gt06 tracker, and when I send stopengine from the traccar system, it does not stop the engine, but when I send custom command like DYD,000000#, it works very well.

Robert6 years ago

Hi kimnguu204, could you tell me if the unit GT06 is from Concox or is it another without brand with logo Accurate print in the unit. Thanks in advance.

kimnguu2046 years ago

@robert: Unit GT06 has Accurate logo printed it

kles5 years ago

Could someone help with the commands of locks and unlocks "turn ignition on and off", suntech st310u and GT06 equipments