DM Oyster3 High-G Impact Detection

davidfungf 3 years ago

Anyone have an experience in receiving DM Oyster3 High-G detection event on Traccar? How do I config an extra data attribute to receive the event? Below please find the log.

High-G Impact Detection

2022-08-20 03:29:57  INFO: [T66da3e8f] connected
2022-08-20 03:29:57  INFO: [T66da3e8f: dmt < 40.76.131.46] 0255003100411e0800333530393136303637323339393038003839383532313232313032303130353231313830005701010700000000
2022-08-20 03:29:57  INFO: [T66da3e8f: dmt > 40.76.131.46] 0255010800352e1e1200000000
2022-08-20 03:29:58  INFO: [T66da3e8f: dmt < 40.76.131.46] 025504be00420060070000f22d1e122e001500000000000000000000000000000000000000000002080200000000000200060c014b1403b80b04100005111318069a1823151400420061070000fd2d1e122e001500000000000000000000000000000000000000000002080200000000000200060c014b1403b80b0410000511131806a30c6d0c14003a00620700002e2e1e120b001500000000000000000000000000000000000000000002080200000000000200060c014b1403b80b041000051113
2022-08-20 03:29:58  INFO: [T66da3e8f] id: 350916067239908, time: 2013-01-01 00:00:00, lat: 0.00000, lon: 0.00000, course: 0.0
2022-08-20 03:29:58  INFO: [T66da3e8f] id: 350916067239908, time: 2013-01-01 00:00:00, lat: 0.00000, lon: 0.00000, course: 0.0
2022-08-20 03:29:58  INFO: [T66da3e8f] id: 350916067239908, time: 2013-01-01 00:00:00, lat: 0.00000, lon: 0.00000, course: 0.0
2022-08-20 03:29:59  INFO: [T66da3e8f: dmt < 40.76.131.46] 0255050000
2022-08-20 03:29:59  INFO: [T66da3e8f: dmt > 40.76.131.46] 025506010001
Anton Tananaev 3 years ago

What attributes do you see in Traccar?

davidfungf 3 years ago

What do you mean? According to my gps vendor's instruction, they told me to up an alerts based on the Field IDs on the Traccar platform.

When a High-G event is detected, the Oyster3 will log a record containing:

Last known GPS time and position (FID 0)
The Peak Force (FID 24)
The Average force (FID 24)
The Duration of the High-G event (FID 24)

davidfungf 3 years ago

I found the following attributes in MySQL table. Does it help?

{"index":1919,"event":11,"pdop":0.0,"ignition":false,"input":2,"output":0,"status":2,"battery":5.276,"deviceTemp":32.0,"rssi":17,"solarPower":4.881,"distance":1.250180018E7,"totalDistance":2.504610734E7,"motion":false,"hours":145220000}
Anton Tananaev 3 years ago

OK, so you want not just an event, but also additional event data? Because the event id is there in your attributes.

davidfungf 3 years ago

Yes, Event id 46 = High G Event
If an event id 46 is received, how do to trigger an alarm notification on Traccar?

Anton Tananaev 3 years ago

You should check protocol documentation to know the meaning of those event ids.

You can convert it into an alarm notification in Traccar using a computed attributes.

davidfungf 3 years ago

Whenever I type the below formula in Computed Attributes and then save it,

event =="11" ?  "Impact Detection" : null

It displays as below. Why? Something wrong in my GUI?

event ==&#34;11&#34; ? &#34;Impact Detection&#34; : null
Anton Tananaev 3 years ago

Are you sure you're using the latest version of Traccar?

davidfungf 3 years ago

I fixed the issue. After the computed attribute was made, how do I configure the notification by the computed attribute? Only Alarm is found.

Description     Attribute     Expression
High G Event	alarm         event =="46" ? "Impact Detection" : null
Type of Notification	All Devices	Alarms	Channels
Alarm	                 Yes	      Vibration	Web
Anton Tananaev 3 years ago

First of all, you need to use one of the standard alarms. For example "accident". Then you can create a notification for it.

davidfungf 3 years ago

Thank you for your inputs. I did it successfully.

Description     Attribute     Expression
High G Event    alarm         event =="46" ? "vibration" : null

If I would like to retrieve the event data, should I raise a request to you buying professional service?

Anton Tananaev 3 years ago

Yes, please send an email to discuss it.