Accelerometer Configuration
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
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 → Enable
- 1 → Disable
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 TSMR: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.