Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  • Digital Matter Site
  • Contact Us

Trigger Geofence Downloads - 0x0016

Written by Iman Kareem

Updated at March 26th, 2025

Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Contact Support
  • Home
  • Device Manager (OEM Server)
  • Device Manager API
  • Device Control - Asynchronous Messages

Table of Contents

Before you start Description Payload cURL Example: curl -X 'POST' \ 'https://api.oemserver.com/v1/AsyncMessaging/Send?serial=439705' \ -H 'accept: text/plain' \ -H 'Authorization: Basic bWF0dGNAZGlnaXRhbG1hdHRlci5jb206dnMyaDZxWVQ3eDJM' \ -H 'Content-Type: application/json' \ -d '{ "MessageType": 4, "CANAddress": 4294967295, "ExpiryDateUTC": "2025-03-28T13:27:05.246Z", "SendAfterDateUTC": "2025-03-26T13:27:05.246Z", "Flags": 0, "Data": [15,15,6,0] }'

Before you start

Ensure you have reviewed:

  • Welcome to the Device Manager API
  • Device Manager ASYNC Messaging Architecture

A full list of API calls can be found at: https://api.oemserver.com/swagger/index.html.

 

Description

Many devices support Geofence Downloads to Device.

Geofence downloads enable functionality such as:

  1. Setting custom speed limits on private property, such as a mine site, and triggering a buzzer when the driver exceeds the limit.
  2. Turning on a vehicle's emergency lights in a specific area.
  3. Disabling cellular communication (and GPS fixes for a period of time) in a sensitive area, such as at an airport, or on an oil rig.
  4. Using alternate logging parameters to increase battery life

It is possible for a 3rd party server to act as the ‘Geofence Server’. 

If a new Geofence is added on the Geofence server, it then needs to be ‘synced’ down to the device. 

This message can be used to trigger a connection to the Geofence server.

It is not the only mechanism to trigger this connection - in fact, the server can trigger this in the “Hello Response” to the device (as part of usual data transfer). This is the preferred method to handle Geofence syncing vs this API call. 

Payload

Payload is empty. 

cURL Example:

curl -X 'POST' \ 'https://api.oemserver.com/v1/AsyncMessaging/Send?serial=439705' \ -H 'accept: text/plain' \ -H 'Authorization: Basic bWF0dGNAZGlnaXRhbG1hdHRlci5jb206dnMyaDZxWVQ3eDJM' \ -H 'Content-Type: application/json' \ -d '{ "MessageType": 4, "CANAddress": 4294967295, "ExpiryDateUTC": "2025-03-28T13:27:05.246Z", "SendAfterDateUTC": "2025-03-26T13:27:05.246Z", "Flags": 0, "Data": [15,15,6,0] }'

curl -X 'POST' \
  'https://api.oemserver.com/v1/AsyncMessaging/Send?serial=439705' \
  -H 'accept: text/plain' \
  -H 'Authorization: Basic XXXXXXXXXXXXXXXXX' \
  -H 'Content-Type: application/json' \
  -d '{
  "MessageType": 22,
  "CANAddress": 4294967295,
  "ExpiryDateUTC": "2025-04-26T23:52:12.126Z",
  "SendAfterDateUTC": "2025-03-26T23:52:12.126Z",
  "Flags": 0,
  "Data": []
}'
locate zone activate fence

Was this article helpful?

Yes
No
Give feedback about this article

Related Articles

  • Device Manager API - ASYNC Messaging Architecture
  • Resync Device Slots - 0x001
  • Remote Restart - 0x002
  • Activate Recovery Mode via the API - 0x003
  • Turn a Digital Output on/off - 0x004

Subscribe to Partner News

Subscribe to our mailing list to receive Digital Matter news, product and tehnical updates, and more.

Subscribe

Copyright © Digital Matter . All Rights Reserved.

Privacy Contact Support

Knowledge Base Software powered by Helpjuice

Expand