Mictrack Devices and status events/alarms

fmoses6 years ago

We are trying to get events/alarms logged for the MicTrack devices. The alarms/events show up in the Status field on the device info but that isn't triggering an event and since there is no event no notification happens. Here is an example of the decoded hex.

#863835023427631#MT500#0000#AUTO#1
#67904917c0e$GPRMC,014952.00,A,4247.8474,N,08342.6988,W,0.07,,200118,,,A*5C
##

The status field is the 4 datablock #AUTO# now that field changes depending on status/alarm notification here is the table:

Status Description
AUTOSTART GPRS upload status when ACC switch to ON
AUTOSTOP GPRS upload status when ACC switch to OFF
AUTO ACC ON
AUTOLOW ACC OFF and vehicle stop
TOWED ACC OFF and vehicle Move
CALL CALL alert
SOS SOS alarm
DEF Cut Power alarm
HT High Temperature alert
BLP Backup battery low voltage
CLP Car Battery low voltage
OS Out of the Geo-fence alarm
RS Enter the Geo-fence alarm
OVERSPEED Overs-peed alarm
SAFESPEED Safe-speed alarm

here is the hex decode of a device hitting the SOS button.

#863835023427631#MT500#0000#SOS#1
#$GPRMC,014959.00,A,4247.8465,N,08342.6983,W,0.25,,200118,,,A*5C
##

SOS is the biggie as the personal trackers have an SOS button right on them.

I have tested with the following mictrack devices MT510G MT510 MP80 MT550 MP90 MT600 MT500 MT530 and they all use the same protocal.. the Status field has the Alarms...

Using the 5030 tlt2h port
PDF to protocal documentation.. https://www.mictrack.com/downloads/protocols/Mictrack_HSPA&GPRS_Communication_Protocol_V3.2.pdf

Anton Tananaev6 years ago

Traccar already decodes "GPRS Status" field as "status", so you should be able to use computed attributes to convert it into a proper alarm.

fmoses6 years ago

Ok that's the direction I am looking for if it wasn't a decoder deal..... Will read on the computed data now.. Thanks...

Anton Tananaev6 years ago

I have also just added it to decoder, so alarms and other information will be available with next release.

fmoses6 years ago

Great... just got the computed to work as well..

Alarm
status == "SOS" ? "sos" : null
String

Loic 6 years ago

Dear all

I have bought one MT510 gps tracker on the famous chinese website : https://fr.aliexpress.com/item/3G-OBD-GPS-Tracker-Plug-Play-Easy-Install-For-Taxi-Vehicle-Fleet-Management-3G-WCDMA-UMTS/32780909269.html

I try to use it with my traccar web server. It's work fine but i want to use computed attributes to get all the alarms from the tracker.

When i check the logs the status is always the same :

#864507031182099#MT510#0000#AUTO#1
#c109290bdc3$GPRMC,165832.00,A,4727.5746,N,00034.1240,W,0.20,,060218,,,A*50
##

it never change to others GPRS STATUS like in the protocol :

 Status                                       Description 

    AUTOSTART          GPRS upload status whenACC switchto ON 

     AUTOSTOP          GPRS upload status whenACC switchto OFF 

       AUTO            ACC ON 

     AUTOLOW           ACC OFFand vehicle stop 

       TOWED           ACC OFFand vehicle Move 

        CALL           CALLalert 

        SOS            SOS alarm 

        DEF            Cut Power alarm 

         HT            HighTemperature alert 

         BLP           Backup battery low voltage 

        CLP            Car Battery low voltage 

         OS            Out of the Geo-fence alarm 

         RS            Enterthe Geo-fence alarm 

    OVERSPEED          Overs-peed alarm 

    SAFESPEED          Safe-speed alarm 

Did you succeed in using computed attribute ? if yes would you help me please

Mictrack6 years ago