TK228 and alarm

chrispazz7 years ago

Hello,
today my TK228 raised some "vehicle engine on" alarm and shock alarm.
It sent me the relevant SMS but Traccar logged nothing.

The logged message is the following:

$$sf@$ cp™U170936.978,A,4531.7104,N,01012.6938,E,0008,000,160117,,*1C|11.5|194|1000|1C59,0000|00416000|000000™
$$Rf@$ cp™13.0,1610,15,31.76,79.61,30,79.18,16.87,0.06,416,0.01,72.57,0,0,0Af
$$4f@$ cp™21,7.50,0.71,13,55,157,3442,297,106+£
Anton Tananaev7 years ago

I need to see Traccar server logs.

chrispazz7 years ago

Here it is:

2017-01-16 19:26:38 DEBUG: [629BAFC9: 5009 < 5.170.10.37] HEX: 242400736610402420637099553137303933362e3937382c412c343533312e373130342c4e2c30313031322e363933382c452c303030382c3030302c3136303131372c2c2a31437c31312e357c3139347c313030307c314335392c303030307c30303431363030307c30303030303099080d0a2424005266104024206370990131332e302c313631302c31352c33312e37362c37392e36312c33302c37392e31382c31362e38372c302e30362c3431362c302e30312c37322e35372c302c302c3041660d0a2424003466104024206370990232312c372e35302c302e37312c31332c35352c3135372c333434322c3239372c3130362ba30d0a
2017-01-16 19:26:38  INFO: [629BAFC9] id: 66104024206370, time: 2017-01-16 18:09:36, lat: 45.52851, lon: 10.21156, speed: 8.0, course: 0.0
2017-01-16 19:26:38  INFO: [629BAFC9] id: 66104024206370, time: 2017-01-16 18:09:24, lat: 45.52848, lon: 10.21157, speed: 19.0, course: 0.0
2017-01-16 19:26:47 DEBUG: [629BAFC9: 5009 < 5.170.10.37] HEX: 24240074661040242063709999053137303933362e3937382c412c343533312e373130342c4e2c30313031322e363933382c452c303030382c3030302c3136303131372c2c2a31437c31312e357c3139347c313030317c314335392c303030307c30303431363030307c30303030303047830d0a
2017-01-16 19:26:47  INFO: [629BAFC9] id: 66104024206370, time: 2017-01-16 18:09:36, lat: 45.52851, lon: 10.21156, speed: 8.0, course: 0.0
2017-01-16 19:27:53 DEBUG: [629BAFC9: 5009 < 5.170.10.37] HEX: 242400736610402420637099553138323732392e3937382c412c343533312e373133332c4e2c30313031322e363838362c452c303031302c3130382c3136303131372c2c2a31437c31312e357c3139347c313030317c314336302c303030307c30303431363030307c303030303030607a0d0a2424005266104024206370990131332e372c313135322c31392c37332e33332c33352e32392c33312c33332e31332c31362e38382c302e32332c3431362c302e30382c37322e36342c302c302c303fc60d0a2424003466104024206370990232322c372e35312c302e37312c31332c35352c3135372c333434322c3239372c3130366f0b0d0a
2017-01-16 19:27:53  INFO: [629BAFC9] id: 66104024206370, time: 2017-01-16 18:09:36, lat: 45.52851, lon: 10.21156, speed: 8.0, course: 0.0
2017-01-16 19:27:53  INFO: [629BAFC9] id: 66104024206370, time: 2017-01-16 19:27:29, lat: 45.52856, lon: 10.21148, speed: 10.0, course: 108.0
2017-01-16 19:28:09 DEBUG: [629BAFC9: 5009 < 5.170.10.37] HEX: 242400736610402420637099553138323830372e3937382c412c343533312e363034382c4e2c30313031322e363637382c452c303031322c3230322c3136303131372c2c2a31437c31312e357c3139347c313030307c314336362c303030307c30303431363030307c30303136313333510d0a2424005266104024206370990131342e322c313530302c32342c37322e31362c32352e38382c33352c32342e30352c31362e38392c302e34372c3431362c302e31342c37322e37302c302c302c304ef40d0a2424003466104024206370990232322c372e35322c302e37312c31332c35352c3135372c333434322c3239372c3130366e000d0a
2017-01-16 19:28:09  INFO: [629BAFC9] id: 66104024206370, time: 2017-01-16 19:28:07, lat: 45.52675, lon: 10.21113, speed: 12.0, course: 202.0
2017-01-16 19:28:09  INFO: [629BAFC9] id: 66104024206370, time: 2017-01-16 19:27:29, lat: 45.52856, lon: 10.21148, speed: 10.0, course: 108.0
2017-01-16 19:28:30 DEBUG: [629BAFC9: 5009 < 5.170.10.37] HEX: 242400736610402420637099553138323832382e3937382c412c343533312e353631372c4e2c30313031322e363736392c452c303031322c3136372c3136303131372c2c2a31437c31312e357c3139347c313030307c314336412c303030307c30303431373030307c303031363133e4ff0d0a2424005266104024206370990131342e332c313237302c32342c34352e38382c36312e31382c33362c33392e34362c31362e38392c302e35362c3431372c302e31382c37322e37342c302c312c30e6fb0d0a2424003466104024206370990232322c372e35332c302e37312c31332c35352c3135372c333434322c3239382c313036fb1f0d0a
Anton Tananaev7 years ago

I can see alarm with code 0x05 in your example. The documentation that I have says that it's "Input 5 active" alarm. Not sure what it means.

chrispazz7 years ago

This device has different inputs that trigger alarms.
When the alarm is activated (with RFID or SMS), if the TK228 is moved or shaked or engine is activated without disarming it before, one of that alarms is triggered.

Yesterday I got three alarms before I disarmed it:

  1. Vehicle on with alarm armed;
  2. Vibration alarm
  3. again vibration alarm

Is it possible to trigger alarm in traccar whenever TK228 rise an alarm?

thank you

Anton Tananaev7 years ago

Traccar does support some alarms for this protocol. The documentation that I have doesn't have anything about vibration alarm, so I would need up-to-date documentation. Also, I need message samples of the alarms that you want to be supported.