Traccar already decodes "GPRS Status" field as "status", so you should be able to use computed attributes to convert it into a proper alarm.
Ok that's the direction I am looking for if it wasn't a decoder deal..... Will read on the computed data now.. Thanks...
I have also just added it to decoder, so alarms and other information will be available with next release.
Great... just got the computed to work as well..
Alarm
status == "SOS" ? "sos" : null
String
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
please check the latest protocol:
https://www.mictrack.com/downloads/protocols/Mictrack_Communication_Protocol_For_MT510&MT510_V3.5.pdf
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.
The status field is the 4 datablock #AUTO# now that field changes depending on status/alarm notification here is the table:
here is the hex decode of a device hitting the SOS button.
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