alarm does not work

Adrien 4 years ago

hi,
I have programmed an alarm on traccar that should normally occur when the vehicle is in motion. Nothing happens when the vehicle is in motion.
What should I do?
thanks

Anton Tananaev 4 years ago

Any details?

Adrien 4 years ago

hi,

I use a FMB120 device from teltonika.

please find attached the capture of my configuration :

https://drive.google.com/file/d/1xQ_R6EwsPtTjqQj1WibBaZCi83onKxaT/view?usp=sharing

the event does not occur when the vehicle is moving
thanks

Anton Tananaev 4 years ago

Have you checked if you receive that alarm from teltonika?

Adrien 4 years ago

hi,
yes !!
io 240 Movement 1 Unsigned 0 1 - -

0 – Movement Off
1 – Movement On

thanks

Anton Tananaev 4 years ago

Are you just received the IO value or an actual alarm value? If former, you first need to convert it into an alarm using computed attributes.

Adrien 4 years ago

hi,
I simply receive an IO
Can you explain to me how the alarms below work globally and how to include them in the position transfer to another server ?

    public static final String ALARM_GENERAL = "general";
    public static final String ALARM_SOS = "sos";
    public static final String ALARM_VIBRATION = "vibration";
    public static final String ALARM_MOVEMENT = "movement";
    public static final String ALARM_LOW_SPEED = "lowspeed";
    public static final String ALARM_OVERSPEED = "overspeed";
    public static final String ALARM_FALL_DOWN = "fallDown";
    public static final String ALARM_LOW_POWER = "lowPower";
    public static final String ALARM_LOW_BATTERY = "lowBattery";
    public static final String ALARM_FAULT = "fault";
    public static final String ALARM_POWER_OFF = "powerOff";
    public static final String ALARM_POWER_ON = "powerOn";
    public static final String ALARM_DOOR = "door";
    public static final String ALARM_LOCK = "lock";
    public static final String ALARM_UNLOCK = "unlock";
    public static final String ALARM_GEOFENCE = "geofence";
    public static final String ALARM_GEOFENCE_ENTER = "geofenceEnter";
    public static final String ALARM_GEOFENCE_EXIT = "geofenceExit";
    public static final String ALARM_GPS_ANTENNA_CUT = "gpsAntennaCut";
    public static final String ALARM_ACCIDENT = "accident";
    public static final String ALARM_TOW = "tow";
    public static final String ALARM_IDLE = "idle";
    public static final String ALARM_HIGH_RPM = "highRpm";
    public static final String ALARM_ACCELERATION = "hardAcceleration";
    public static final String ALARM_BRAKING = "hardBraking";
    public static final String ALARM_CORNERING = "hardCornering";
    public static final String ALARM_LANE_CHANGE = "laneChange";
    public static final String ALARM_FATIGUE_DRIVING = "fatigueDriving";
    public static final String ALARM_POWER_CUT = "powerCut";
    public static final String ALARM_POWER_RESTORED = "powerRestored";
    public static final String ALARM_JAMMING = "jamming";
    public static final String ALARM_TEMPERATURE = "temperature";
    public static final String ALARM_PARKING = "parking";
    public static final String ALARM_SHOCK = "shock";
    public static final String ALARM_BONNET = "bonnet";
    public static final String ALARM_FOOT_BRAKE = "footBrake";
    public static final String ALARM_FUEL_LEAK = "fuelLeak";
    public static final String ALARM_TAMPERING = "tampering";
    public static final String ALARM_REMOVING = "removing";

thanks

Anton Tananaev 4 years ago

For most protocols those alarms are decoded automatically. For Teltonika they are not because IO mapping is a mess. Different models reuse same IO numbers for different things.

Adrien 4 years ago

hi,
please, Are these alarms automatically included in the position that is transferred by WebDataHandler.java?
thanks

Anton Tananaev 4 years ago

Yes.

Adrien 4 years ago

hi,
please,Could I have an example of a position sent by WebDataHandler.java containing an alarm?
thanks

Anton Tananaev 4 years ago

Unfortunately I don't have an example handy, but you can generate it using Traccar Client. There's an SOS button that can generate an alarm report.

Adrien 4 years ago

hi,
I would like to view a frame containing an alarm sent by "WebDataHandler.java". I can't get an SOS alarm using Traccar client.

Is it in the frame sent by "WebDataHandler.java", the alarm is contained in the "event:" attribute of attributes?

I need help and would like to make progress with my project

thanks

Anton Tananaev 4 years ago

the alarm is contained in the "event:" attribute of attributes?

No, alarm is "alarm" attribute.

Adrien 4 years ago

hi,
please, I want to see a "json" object sent by "WebDataHandler.java" containing the attribute "alarm". help me

It will help me to code my front-end that receives the data sent by traccar

thanks