For Further Information; 11.17 Accelerometer - Eurotech DynaGate 10-12 Series User Manual

Automobile iot edge gateway ti am335x, lte cat 1
Table of Contents

Advertisement

DynaGATE 10-12 User manual Rev. 0-14
11.16.3

For further information

For further information on Linux support for watchdog, see:
www.kernel.org/doc/Documentation/watchdog/watchdog-api.txt

11.17 Accelerometer

The DynaGATE 10-12 is provided with an accelerometer sensor.
To print the information from the accelerometer, including an update every time movement is
detected, use the following command:
evtest /dev/input/event0
Example output:
Input driver version is 1.0.1
Input device ID: bus 0x18 vendor 0x0 product 0x159 version 0x0
Input device name: "ADXL34x accelerometer"
Supported events:
Event type 0 (Sync)
Event type 1 (Key)
Event code 330 (Touch)
Event type 3 (Absolute)
Event code 0 (X)
Value 0
Min -4096
Max 4096
Fuzz 3
Flat 3
Event code 1 (Y)
Value -8
Min -4096
Max 4096
Fuzz 3
Flat 3
Event code 2 (Z)
Value -262
Min -4096
Max 4096
Fuzz 3
Flat 3
Testing ... (interrupt to exit)
Event: time 1325419699.822493, type 3 (Absolute), code 2 (Z), value -254
Event: time 1325419699.822493, -------------- Report Sync ------------
Event: time 1325419699.863461, type 3 (Absolute), code 2 (Z), value -263
Event: time 1325419699.863461, -------------- Report Sync ------------
Event: time 1325419699.904445, type 3 (Absolute), code 2 (Z), value -265
Event: time 1325419699.904445, -------------- Report Sync ------------
Event: time 1325419699.945433, type 3 (Absolute), code 2 (Z), value -263
Event: time 1325419699.945433, -------------- Report Sync ------------
Event: time 1325419700.109388, type 3 (Absolute), code 2 (Z), value -264
Event: time 1325419700.109388, -------------- Report Sync ------------
Event: time 1325419700.232362, type 3 (Absolute), code 2 (Z), value -263
Event: time 1325419700.232362, -------------- Report Sync ------------
11 How to access interfaces under Linux
77 / 94

Advertisement

Table of Contents
loading

Table of Contents