Jump to content

Accelerometer Configuration: Difference between revisions

From Transight Wiki
 
Line 77: Line 77:
'''Meaning:'''
'''Meaning:'''


* 0 → Enable
* 0 → Disable


* 1 → Disable
* 1 → Enable
   
   
'''Example:'''
'''Example:'''
Line 116: Line 116:
Error : 0
Error : 0
</pre>
</pre>
 
=== Step 3: Save Configuration ===
=== Step 3: Save Configuration ===



Latest revision as of 17:05, 28 August 2025

Configuration Guide

📘 What is an Accelerometer?

An accelerometer is an internal sensor that detects motion, vibration & tilt. It measures acceleration forces and is used to detect:

  • Harsh acceleration
  • Harsh braking
  • Harsh cornering

⚙️ Purpose of Accelerometer Configuration

Enabling and configuring the accelerometer allows the device to:

  • Generate event-based alerts (e.g., harsh braking, harsh turns)

To configure the accelerometer correctly, the device must be placed on a flat surface (level = 0°). There are 4 supported orientations in Transight devices. You must declare the orientation during setup.

Step 1: Set Device Orientation

SET CUORIENTATION:<orientation number>
Orientation Number:
1 = GPS antenna facing sky, wire pointing towards passenger
2 = GPS antenna facing passenger, wire pointing down
3 = GPS antenna facing sky, wire pointing to right side
4 = GPS antenna facing passenger, wire pointing to right side

Command Format:

SET CUORIENTATION:<orientation number>

Example:


SET CUORIENTATION:1

Expected Response:


IMEI: 862942074896044  

Command: SET CUORIENTATION:1  
 
Response: ACCELERO_ORIENTATION: 1  

Error : 0

Verification Command:


GET CUORIENTATION

Expected Response:


IMEI: 862942074896044  

Command: GET CUORIENTATION  
 
Response: ACCELERO_ORIENTATION: 1  

Error : 0

Step 2: Enable or Disable Accelerometer

Command Format:


SET CUACCELENABLE:<0/1>

Meaning:

  • 0 → Disable
  • 1 → Enable

Example:


SET CUACCELENABLE:1

Expected Response:


IMEI: 862942074896044  

Command: SET CUACCELENABLE:1  
 
Response: ACCELERO_ENABLE_STATUS: 1  

Error : 0

Verification Command:


GET CUACCELENABLE

Expected Response:


IMEI: 862942074896044  

Command: GET CUACCELENABLE  
 
Response: ACCELERO_ENABLE_STATUS: 1  

Error : 0

Step 3: Save Configuration

After all the above commands, use the mandatory save command:

SET CUMR:2

Step 4: Verify Data on Server

  • Check the packets sent by the device to the server.
  • Ensure all accelerometer-related alerts (e.g., harsh braking, harsh turning) are being received correctly.