Queclink GV55 (GL200 Protocol) use crash alarm

Daniel 5 years ago

Heyho!

I am currently trying to use the Queclink GV55 (GL200 Protocol) with traccar. Everything is working fine so far. Only thing that would be great is to use the crash detection. When a Crash is detected a Packet starting with +GTCRA is sent to the server followed by some GTCRD packets for the acceleration sensor data, but that is not needed. Goal is only to get a WEB (or E-Mail) alert on crash detection.

Is there an easy way to implement it into the protocol? I have the full documentation about the @Track Air Interface Protocol as PDF (250Sites). I Also know about programming, but java is new to me.

Greetings
Daniel

Daniel 5 years ago

Its me again :)

Would it be enough to add

case "CRA":
                position.set(Position.KEY_ALARM, Position.ALARM_ACCIDENT);
                break;

to the Gl200TextProtocolDecoder.java near line 1198?

Need to setup my stuff to be able to compile it myself i think...

Greetings
Daniel

Anton Tananaev5 years ago

Sounds right to me, but you should run some tests and see if it's the right place.

Daniel 5 years ago

Heyho!

Just wanted to report back to you that it is working, added the 3 lines for case to Gl200TextProtocolDecoder.java and getting the Accident notification now :) Maybe you can implement it in a newer version.

Greetings
Daniel

Anton Tananaev5 years ago

Feel free to send a pull request.

Daniel 5 years ago

Servus!

I found out that lots of stuff in the Gl200 Protocol is not working for the newest GV55 revision with 02/2020 firmware, worst thing is the ACK messages are not send but you need it if you want to use the buffer.

I got it working but i think i will implement it as a whole new protocol, the current "@TrackAir" protocol (name from the Queclink Protocol Documentation from december 2019) has much more capabilities then the Gl200 has implemented :)

When its done and tested (we are going to use it with almost all features on 50 service cars) i am going to do a pull request. But because i am not a java programmer it will take some time i think. But at first i have to look through the whole source and other protocols how things are going for example handle packets without location information or a way to store the acceleration-sensor data :D

Greetings
Daniel

Anton Tananaev5 years ago

Please make sure you do a proper comparison like here to show that there are really incompatible changes in the protocol:

https://github.com/traccar/traccar/issues/2402