REL 1.0
Page 62 of 69
iWave Systems Technologies Pvt. Ltd.
iW-RainboW-G15D Linux User Manual
5.9.1
Magneto meter
To display the magneto meter name, execute the below command.
root@iWave-G15/$cat /sys/class/hwmon/hwmon1/device/name
To enable
the magneto meter, execute the below command.
root@iWave-G15/$echo 1 > /sys/class/hwmon/hwmon1/device/enable
To read the values from magneto meter, execute the below command and the read values will be printed in
the console.
root@iWave-G15/$echo <no of times> > /sys/class/hwmon/hwmon1/device/read
Example
root@iWave-G15/$echo 100 > /sys/class/hwmon/hwmon1/device/read
To power off/shut down the magnetometer, execute the below command.
root@iWave-G15/$echo 0 > /sys/class/hwmon/hwmon1/device/enable
5.9.2
Accelerometer
To display the accelerometer name, execute the below command.
root@iWave-G15/$cat /sys/class/hwmon/hwmon2/device/name
To enable the accelerometer, execute the below command.
root@iWave-G15/$echo 1 > /sys/class/hwmon/hwmon2/device/enable
To read the values from accelerometer, execute the below command and the read values will be printed in
the console.
root@iWave-G15/$echo <no of times> > /sys/class/hwmon/hwmon2/device/read
Example
root@iWave-G15/$echo 100 > /sys/class/hwmon/hwmon2/device/read
To power off/shut down the accelerometer, execute the below command.
root@iWave-G15/$echo 0 > /sys/class/hwmon/hwmon2/device/enable