disable filters for some devices only

Lukas Z.6 years ago

Having problem with Queclink gv65 devices which are reporting ignition state in IGL or FRI messages. Some of these messages are filtered by distance or duplication filters and ignition status is often wrong. But the filters are necesary for other (opengts) devices.
Is there any way to disable or modify filters per devices or groups?

Anton Tananaev6 years ago

You can disable filtering if certain attribute (e.g. ignition) is present.

Lukas Z.6 years ago

Ignition information is in IGF, IGN, IGL. There is filtered IGL message down...

<entry key='filter.skipAttributes'>ignition</entry>
ubuntu@ip-172-31-40-192:~$ tail -n 10000 -f /opt/traccar/logs/tracker-server.log |grep e3df4406
2018-10-29 12:47:44  INFO: [e3df4406] connected
2018-10-29 12:47:44  INFO: [e3df4406: 37493 < 81.91.83.168] HEX: 2b41434b3a47544842442c3331303730312c3836333238363032333731383036382c2c32303138313032393131343730362c43453730242b524553503a475449474e2c3331303730312c3836333238363032333731383036382c2c3230342c302c302e302c3335352c3335392e312c31342e3236383837342c35302e3131303636362c32303138313032393131343334342c303233302c303030332c393444342c334233302c30302c2c323234322e342c32303138313032393131343730362c43453644242b524553503a47545354542c3331303730312c3836333238363032333731383036382c2c32312c302c302e302c3335352c3335392e312c31342e3236383837342c35302e3131303636362c32303138313032393131343334342c303233302c303030332c393444342c334233302c30302c32303138313032393131343730362c43453645242b524553503a47545354542c3331303730312c3836333238363032333731383036382c2c32322c302c302e302c3335352c3335392e312c31342e3236383837342c35302e3131303636362c32303138313032393131343334342c303233302c303030332c393444342c334233302c30302c32303138313032393131343730362c43453646242b524553503a475449474c2c3331303730312c3836333238363032333731383036382c2c2c30312c312c312c312e342c3335392c3336332e362c31342e3236383833302c35302e3131303639352c32303138313032393131343730392c303233302c303030332c393444342c334233302c30302c323234322e342c32303138313032393131343731312c43453731242b524553503a47544652492c3331303730312c3836333238363032333731383036382c2c31343335382c34312c312c312c352e332c3235322c3335392e342c31342e3236383736372c35302e3131303733382c32303138313032393131343733302c303233302c303030332c393444342c334233302c30302c323234322e342c2c2c2c2c3232303130302c2c2c2c32303138313032393131343733312c43453732242b524553503a47544652492c3331303730312c3836333238363032333731383036382c2c31343334382c34312c312c312c31352e332c3137332c3335382e332c31342e3236383735332c35302e3131303636332c32303138313032393131343733332c303233302c303030332c393444342c334233302c30302c323234322e342c2c2c2c2c3232303130302c2c2c2c32303138313032393131343733342c4345373324
2018-10-29 12:47:44  INFO: [e3df4406: 37493 > 81.91.83.168] HEX: 2b5341434b3a47544842442c3331303730312c4345373024
2018-10-29 12:47:44  INFO: [e3df4406] id: 863286023718068, time: 2018-10-29 12:43:44, lat: 50.11067, lon: 14.26887, course: 355.0
2018-10-29 12:47:44  INFO: [e3df4406: 37493 > 81.91.83.168] HEX: 2b5341434b3a4345373124
2018-10-29 12:47:44  INFO: [e3df4406] id: 863286023718068, time: 2018-10-29 12:47:09, lat: 50.11070, lon: 14.26883, speed: 0.8, course: 359.0
2018-10-29 12:47:44  INFO: [e3df4406] id: 863286023718068, time: 2018-10-29 12:47:30, lat: 50.11074, lon: 14.26877, speed: 2.9, course: 252.0
2018-10-29 12:47:44  INFO: [e3df4406] id: 863286023718068, time: 2018-10-29 12:47:33, lat: 50.11066, lon: 14.26875, speed: 8.3, course: 173.0
2018-10-29 12:47:55  INFO: [e3df4406: 37493 < 81.91.83.168] HEX: 2b524553503a47544652492c3331303730312c3836333238363032333731383036382c2c31343338352c34312c312c312c33322e382c3234362c3335372e392c31342e3236393239312c35302e3130393334352c32303138313032393131343735342c303233302c303030332c393444342c334233302c30302c323234322e362c2c2c2c2c3232303130302c2c2c2c32303138313032393131343735342c4345373424
2018-10-29 12:47:55  INFO: [e3df4406] id: 863286023718068, time: 2018-10-29 12:47:54, lat: 50.10935, lon: 14.26929, speed: 17.7, course: 246.0
2018-10-29 12:48:22  INFO: [e3df4406: 37493 < 81.91.83.168] HEX: 2b524553503a47544652492c3331303730312c3836333238363032333731383036382c2c31343339362c34312c312c312c34332e352c3230312c3335352e312c31342e3236363434352c35302e3130373834352c32303138313032393131343832312c303233302c303030332c393444342c334233302c30302c323234322e382c2c2c2c2c3232303130302c2c2c2c32303138313032393131343832312c4345373524
2018-10-29 12:48:22  INFO: [e3df4406] id: 863286023718068, time: 2018-10-29 12:48:21, lat: 50.10785, lon: 14.26645, speed: 23.5, course: 201.0
2018-10-29 12:48:44  INFO: [e3df4406: 37493 < 81.91.83.168] HEX: 2b524553503a47544652492c3331303730312c3836333238363032333731383036382c2c31343430322c34312c312c312c33302e332c3237322c3335372e342c31342e3236343631362c35302e3130363137312c32303138313032393131343834322c303233302c303030332c393444342c333245392c30302c323234332e312c2c2c2c2c3232303130302c2c2c2c32303138313032393131343834322c4345373624
2018-10-29 12:48:44  INFO: [e3df4406] id: 863286023718068, time: 2018-10-29 12:48:42, lat: 50.10617, lon: 14.26462, speed: 16.4, course: 272.0
2018-10-29 12:49:28  INFO: [e3df4406: 37493 < 81.91.83.168] HEX: 2b524553503a47544652492c3331303730312c3836333238363032333731383036382c2c31343338372c34302c312c312c33322e322c3330362c3335362e362c31342e3236303837362c35302e3130373834332c32303138313032393131343932372c303233302c303030332c393444342c333245392c30302c323234332e342c2c2c2c2c3232303130302c2c2c2c32303138313032393131343932372c4345373724
2018-10-29 12:49:28  INFO: [e3df4406] id: 863286023718068, time: 2018-10-29 12:49:27, lat: 50.10784, lon: 14.26088, speed: 17.4, course: 306.0
2018-10-29 12:50:04  INFO: [e3df4406: 37493 < 81.91.83.168] HEX: 2b524553503a47544652492c3331303730312c3836333238363032333731383036382c2c31343430322c34312c312c312c33312e302c3233302c3335362e362c31342e3235373235322c35302e3130393337372c32303138313032393131353030332c303233302c303030332c393444342c333245392c30302c323234332e372c2c2c2c2c3232303130302c2c2c2c32303138313032393131353030332c4345373824
2018-10-29 12:50:04  INFO: [e3df4406] id: 863286023718068, time: 2018-10-29 12:50:03, lat: 50.10938, lon: 14.25725, speed: 16.7, course: 230.0
2018-10-29 12:50:19  INFO: [e3df4406: 37493 < 81.91.83.168] HEX: 2b524553503a47544652492c3331303730312c3836333238363032333731383036382c2c31343233372c34312c312c312c31332e372c3135332c3335362e342c31342e3235363130372c35302e3130383239312c32303138313032393131353031382c303233302c303030332c393444342c333245392c30302c323234332e392c2c2c2c2c3232303130302c2c2c2c32303138313032393131353031382c4345373924
2018-10-29 12:50:19  INFO: [e3df4406] id: 863286023718068, time: 2018-10-29 12:50:18, lat: 50.10829, lon: 14.25611, speed: 7.4, course: 153.0
2018-10-29 12:50:26  INFO: [e3df4406: 37493 < 81.91.83.168] HEX: 2b524553503a47544947462c3331303730312c3836333238363032333731383036382c2c3139392c302c302e302c3135332c3335362e342c31342e3235363135332c35302e3130383236342c32303138313032393131353032342c303233302c303030332c393444342c333245392c30302c2c323234332e392c32303138313032393131353032352c4345374124
2018-10-29 12:50:26  INFO: [e3df4406] id: 863286023718068, time: 2018-10-29 12:50:24, lat: 50.10826, lon: 14.25615, course: 153.0
2018-10-29 12:50:27  INFO: [e3df4406: 37493 < 81.91.83.168] HEX: 2b524553503a47545354542c3331303730312c3836333238363032333731383036382c2c31322c302c302e302c3135332c3335362e342c31342e3235363135332c35302e3130383236342c32303138313032393131353032342c303233302c303030332c393444342c333245392c30302c32303138313032393131353032352c4345374224
2018-10-29 12:50:31  INFO: [e3df4406: 37493 < 81.91.83.168] HEX: 2b524553503a475449474c2c3331303730312c3836333238363032333731383036382c2c2c30302c312c312c302e302c3135332c3335362e342c31342e3235363135332c35302e3130383236342c32303138313032393131353032392c303233302c303030332c393444342c333245392c30302c323234332e392c32303138313032393131353032392c4345374324
2018-10-29 12:50:31  INFO: [e3df4406: 37493 > 81.91.83.168] HEX: 2b5341434b3a4345374324
2018-10-29 12:50:31  INFO: [e3df4406: 37493 < 81.91.83.168] HEX: 2b524553503a47544652492c3331303730312c3836333238363032333731383036382c2c31333136392c31302c312c312c302e302c3135332c3335362e342c31342e3235363135332c35302e3130383236342c32303138313032393131353032392c303233302c303030332c393444342c333245392c30302c323234332e392c2c2c2c2c3132303030302c2c2c2c32303138313032393131353032392c4345374424
2018-10-29 12:50:58  INFO: [e3df4406: 37493 < 81.91.83.168] HEX: 2b524553503a47545354542c3331303730312c3836333238363032333731383036382c2c31312c302c302e302c3135332c3335362e342c31342e3235363135332c35302e3130383236342c32303138313032393131353032392c303233302c303030332c393444342c333245392c30302c32303138313032393131353035372c4345374524
2018-10-29 12:52:07  INFO: [e3df4406: 37493 < 81.91.83.168] HEX: 2b41434b3a47544842442c3331303730312c3836333238363032333731383036382c2c32303138313032393131353230362c4345374624
2018-10-29 12:52:07  INFO: [e3df4406: 37493 > 81.91.83.168] HEX: 2b5341434b3a47544842442c3331303730312c4345374624
2018-10-29 12:54:07  INFO: [e3df4406] timed out
2018-10-29 12:54:07  INFO: [e3df4406] disconnected
Anton Tananaev6 years ago

Where?

Lukas Z.6 years ago

IGL

2018-10-29 12:50:31  INFO: [e3df4406: 37493 < 81.91.83.168] HEX: 2b524553503a475449474c2c3331303730312c3836333238363032333731383036382c2c2c30302c312c312c302e302c3135332c3335362e342c31342e3235363135332c35302e3130383236342c32303138313032393131353032392c303233302c303030332c393444342c333245392c30302c323234332e392c32303138313032393131353032392c4345374324
Anton Tananaev6 years ago

Is it decoded correctly? Do you see ignition in the state for it?

Lukas Z.6 years ago

Also in GTFRI message there is the information about ignition.

+RESP:GTFRI,310701,863286023718068,,13169,10,1,1,0.0,153,356.4,14.256153,50.108264,20181029115029,0230,0003,94D4,32E9,00,2243.9,,,,,120000,,,,20181029115029,CE7D$

2018-10-29 12:50:31  INFO: [e3df4406: 37493 < 81.91.83.168] HEX: 2b524553503a47544652492c3331303730312c3836333238363032333731383036382c2c31333136392c31302c312c312c302e302c3135332c3335362e342c31342e3235363135332c35302e3130383236342c32303138313032393131353032392c303233302c303030332c393444342c333245392c30302c323234332e392c2c2c2c2c3132303030302c2c2c2c32303138313032393131353032392c4345374424
Lukas Z.6 years ago

+RESP:GTIGL,310701,863286023718068,,,00,1,1,0.0,153,356.4,14.256153,50.108264,20181029115029,0230,0003,94D4,32E9,00,2243.9,20181029115029,CE7C$

bold 00

Lukas Z.6 years ago

I've send You the email with Queclink Airtrack protocol. See pages 92,95,96.

Anton Tananaev6 years ago

I think you misunderstood me. I need to know if it's decoded by Traccar.

Lukas Z.6 years ago

Have found problem. There are three messages in the Airtrack protocol.
+RESP:GTIGN: Ignition on report
+RESP:GTIGF: Ignition off report
+RESP:GTIGL,The location message for ignition on.
If ignition switch is changed, gv65 device sends IGL+IGN/IGF message. Problem is that ignition status in IGL is inverted than in IGL/IGF ( traccar interprets it inverted)

sample with GTIGN+GTIGL, interpreted in database like [IGN] ignition YES, [IGL] ignition NO

2018-10-30 09:19:18  INFO: [a7dfbd25: 37493 < 46.135.10.184] HEX: 2b524553503a475449474e2c3331303730312c3836333238363032333731323835352c2c34302c302c302e302c302c3337362e382c31342e3131383338332c35302e3134303833392c32303138313033303038313931372c303233302c303030332c394231342c363541352c30302c2c302e302c32303138313033303038313931382c3036443024
2018-10-30 09:19:18  INFO: [a7dfbd25] id: 863286023712855, time: 2018-10-30 09:19:17, lat: 50.14084, lon: 14.11838, course: 0.0
2018-10-30 09:19:19  INFO: [a7dfbd25: 37493 < 46.135.10.184] HEX: 2b524553503a47545354542c3331303730312c3836333238363032333731323835352c2c32312c302c302e302c302c3337362e382c31342e3131383338332c35302e3134303833392c32303138313033303038313931372c303233302c303030332c394231342c363541352c30302c32303138313033303038313931382c3036443124
2018-10-30 09:19:19  INFO: [a7dfbd25] id: 863286023712855, time: 2018-10-30 09:19:17, lat: 50.14084, lon: 14.11838, course: 0.0
2018-10-30 09:19:21  INFO: [a7dfbd25: 37493 < 46.135.10.184] HEX: 2b524553503a475449474c2c3331303730312c3836333238363032333731323835352c2c2c30312c312c312c302e302c302c3337362e382c31342e3131383338332c35302e3134303833392c32303138313033303038313932302c303233302c303030332c394231342c363541352c30302c302e302c32303138313033303038313932312c3036443224
2018-10-30 09:19:21  INFO: [a7dfbd25: 37493 > 46.135.10.184] HEX: 2b5341434b3a3036443224

sample with GTIGF+GTIGL, interpreted in database like [IGF] ignition NO, [IGL] ignition ON

2018-10-30 09:18:38  INFO: [a7dfbd25: 37493 < 46.135.10.184] HEX: 2b524553503a47544947462c3331303730312c3836333238363032333731323835352c2c32342c302c302e302c302c3337362e382c31342e3131383338332c35302e3134303833392c32303138313033303038313833352c303233302c303030332c394231342c363541352c30302c2c302e302c32303138313033303038313833382c3036434124
2018-10-30 09:18:38  INFO: [a7dfbd25] id: 863286023712855, time: 2018-10-30 09:18:35, lat: 50.14084, lon: 14.11838, course: 0.0
2018-10-30 09:18:39  INFO: [a7dfbd25: 37493 < 46.135.10.184] HEX: 2b524553503a47545354542c3331303730312c3836333238363032333731323835352c2c31322c302c302e302c302c3337362e382c31342e3131383338332c35302e3134303833392c32303138313033303038313833352c303233302c303030332c394231342c363541352c30302c32303138313033303038313833382c3036434224
2018-10-30 09:18:39  INFO: [a7dfbd25] id: 863286023712855, time: 2018-10-30 09:18:35, lat: 50.14084, lon: 14.11838, course: 0.0
2018-10-30 09:18:39  INFO: [a7dfbd25: 37493 < 46.135.10.184] HEX: 2b524553503a475449474c2c3331303730312c3836333238363032333731323835352c2c2c30302c312c312c302e302c302c3337362e382c31342e3131383338332c35302e3134303833392c32303138313033303038313833382c303233302c303030332c394231342c363541352c30302c302e302c32303138313033303038313833392c3036434324
2018-10-30 09:18:39  INFO: [a7dfbd25: 37493 > 46.135.10.184] HEX: 2b5341434b3a3036434324
Lukas Z.6 years ago

Wrong is interpretation of ignition status in IGL message

Anton Tananaev6 years ago

Which specific message is decoded incorrectly?

Lukas Z.6 years ago
2018-10-30 09:18:39  INFO: [a7dfbd25: 37493 < 46.135.10.184] HEX: 2b524553503a475449474c2c3331303730312c3836333238363032333731323835352c2c2c30302c312c312c302e302c302c3337362e382c31342e3131383338332c35302e3134303833392c32303138313033303038313833382c303233302c303030332c394231342c363541352c30302c302e302c32303138313033303038313833392c3036434324

and

2018-10-30 09:19:21  INFO: [a7dfbd25: 37493 < 46.135.10.184] HEX: 2b524553503a475449474c2c3331303730312c3836333238363032333731323835352c2c2c30312c312c312c302e302c302c3337362e382c31342e3131383338332c35302e3134303833392c32303138313033303038313932302c303233302c303030332c394231342c363541352c30302c302e302c32303138313033303038313932312c3036443224
Anton Tananaev6 years ago

I need ONE example, expected value and actual value that you see.