Skip to Content

AC Command — Integrated Accelerometer

Real-time G-force value queries.


What is it used for?

Use caseDescription
📊 Driving monitoringDetect accelerations, braking and sharp turns
🚗 Movement detectionIdentify when the vehicle is in motion
⚠️ Impact alertsTrigger alerts when G thresholds are exceeded
📐 InclinationVerify device position and orientation

Description

Allows querying G-force (acceleration) values measured by the integrated accelerometer in the hardware. Resulting or absolute magnitudes of up to 8G can be measured in three axes (X, Y, Z).


Features

  • 3-axis measurement (X, Y, Z)
  • Range: 8G
  • Resolution: Hundredths of G
  • Configurable triggers via CXAC

The AC trigger is NOT recommended for conditional use in event engine rules. Use AC+ edges only in triggers (TRG).


Commands

Query accelerometer

QAC

Response:

RAC Xsaaa Ysbbb Zsccc

Parameters:

  • s: Sign (+ or -), positive reference = gravity acceleration
  • aaa: X-axis magnitude in hundredths of G (000-800)
  • bbb: Y-axis magnitude in hundredths of G (000-800)
  • ccc: Z-axis magnitude in hundredths of G (000-800)

Examples

Query at rest

>QAC< >RAC X+000 Y+018 Z+100;ID=1234;+18<

Interpretation:

  • Z+100: 1.00G (gravity acceleration, vehicle at horizontal rest)
  • Y+018: 0.18G (small lateral inclination)
  • X+000: 0.00G (no longitudinal acceleration)

Rule with acceleration trigger

>SRL10E;TRG=AC+;ACC={GGPXXL}<

Generates GP report each time the acceleration threshold configured via CXAC is exceeded.


Threshold Configuration

Acceleration thresholds are configured via the CXAC Command.

The AC trigger remains active for 1 second after exceeding the configured threshold.


AC Signals

Available edges

SignalActivation
AC+Exceeded acceleration threshold (configured in CXAC)

Restrictions

  • Only positive edge (+) available
  • NOT suitable for use in conditionals (CND)
  • Only use in triggers (TRG)
  • Duration: 1 effective second

Value Interpretation

Axis reference

According to standard installation orientation:

  • X-axis: Longitudinal (vehicle forward/backward)
  • Y-axis: Lateral (left/right)
  • Z-axis: Vertical (up/down)

Typical values

SituationXYZ
Horizontal rest0.05G0.05G+1.00G
0.5G acceleration+0.50G0.05G+1.00G
0.5G braking-0.50G0.05G+1.00G
Right turn0.05G-0.30G+1.00G
Left turn0.05G+0.30G+1.00G

Response Breakdown

QAC Example

>QAC< >RAC X+000 Y+018 Z+100;ID=1234;+18<
FieldValueInterpretation
RAC-Accelerometer Response
X+000+0.00GX-axis: no acceleration
Y+018+0.18GY-axis: 18% inclination
Z+100+1.00GZ-axis: normal gravity
ID=12341234Identifier
+1818Checksum

Limitations

  • Don’t use AC in CND: Only in triggers (TRG)
  • Short duration: Signal active for 1 second
  • Calibration: Requires correct device installation
  • Sensitivity: Configure thresholds according to application

Compatibility

💾Firmware v1.08.00
SPLegacy
ULLegacy
MTLegacy
💾Firmware v1.00.00
SP-IOT
SM-IOT

See Also

Last updated