Dio/Gpio Setting Command For Boxer-8653Ai - Asus AAEON BOXER-8653AI User Manual

Aiaedge compact fanless embedded ai system with nvidia jetson orin nx
Table of Contents

Advertisement

4.4

DIO/GPIO Setting Command for BOXER-8653AI

1.
GPIO test command:
Please refer HW DIO/GPIO section for PIN Number and GPIO ID mapping. Take "PIN 2
<-> GPIO ID:PY.02" as an example on JP511:
1.
Export PY.02
$ echo PY.02 > /sys/class/gpio/export
2.
Set GPIO direction to output mode
$ echo "out" > /sys/class/gpio/PY.02/direction
3.
Set the output value
High: $ echo 1 > /sys/class/gpio/PY.02/value
Low: $ echo 0 > /sys/class/gpio/PY.02/value
4.
Set GPIO direction to input mode
$ echo "in" > /sys/class/gpio/PY.02/direction
5.
Read the input value of GPIO
$ cat /sys/class/gpio/PY.02/value
6.
Unexport PY.02
$ echo PY.02 > /sys/class/gpio/unexport
2.
FAN PWM test command:
If customer wants to use FAN PWM as Normal PWM control
1.
Stop NV fan control daemon
$ sudo systemctl stop nvfancontrol
2.
Set PWM value
$ echo [PWM_duty_cycle] >
/sys/devices/platform/pwm-fan/hwmon/hwmon<x>/pwm1
Where: [PWM_duty_cycle] is a value in the range [0,255]. <x> is a kernel enumerated
number for fan hwmon.
Chapter 4 – OS User Guide
37

Advertisement

Table of Contents
loading

Table of Contents