sos alarms

Saqib5 years ago

The Traccar generates sos alarm each time input1 of my Fifo S20 device is activated and deactivated. I checked the logs and found that there's # 2 when in1 is activated and # 3 when inactivated but both times alarm name is "sos". How can I change the alarm name to something like "Input 1 activated" and "Input 1 deactivated" ?

Anton Tananaev5 years ago

HEX samples and documentation?

Saqib5 years ago

When no alarm

$$114,862273048267306,1A02,A01,,200125121301,A,24.859430,67.134263,0,8,6,5253,0,0000,03,0,410|4|232C|55A4,18E|AFC|80,1,*03

When input 1 is active

$$114,862273048267306,1A02,A01,2,200125121301,A,24.859430,67.134263,0,8,6,5253,0,0000,03,0,410|4|232C|55A4,18E|AFC|80,1,*03

When input1 is deactivated

$$114,862273048267306,1A02,A01,3,200125121301,A,24.859430,67.134263,0,8,6,5253,0,0000,03,0,410|4|232C|55A4,18E|AFC|80,1,*03

GPRS protocol

Hope this helps.

Anton Tananaev5 years ago

Only second sample maps to the SOS, which is correct, as far as I understand it.

Saqib5 years ago

Ok its working for me now. Consider this post closed.

Saqib5 years ago

Btw, When we have # 3, sos alarm generates as well.

Anton Tananaev5 years ago

I have specifically tested and it doesn't generate SOS alarm. You must have some changes to the code or configuration that cause your issue, but official Traccar with default config works correctly.

Saqib5 years ago

My config is default but anyways, can you please see if these two computed attributes are correct?

I am trying to generate "Door open" alarm/event.

Door  
input ? input == 2 : false
Boolean

Alarm
Door == "Yes" ? "Door open" : null
String

Anton Tananaev5 years ago

Probably not. First might work, but probably incorrect because input is usually a mask. Second one is incorrect on many levels.