HDD
將腳位寫入
腳位更改狀態,direction: in 、out、hing、low
echo out > /sys/class/gpio/gpio12/direction
echo in > /sys/class/gpio/gpio12/direction
echo low > /sys/class/gpio/gpio12/direction
echo hing > /sys/class/gpio/gpio12/direction
value 數值,為 0 或1
echo 0 > /sys/class/gpio/gpio168/value
echo 1 > /sys/class/gpio/gpio168/value
查看輸出值
取消狀態
#!bin/sh
COUNTER=1
echo 511 > /sys/class/gpio/export
echo out > /sys/class/gpio/it87_gp87/direction
while [ "$COUNTER" -lt 100 ]; do
echo "gpio test ...:$COUNTER"
echo 1 > /sys/class/gpio/it87_gp87/value
sleep 0.3
echo 0 > /sys/class/gpio/it87_gp87/value
sleep 0.3
COUNTER=$(($COUNTER+1))
done
先到files server下載下來放到板子上的 /home
wget http://172.17.8.3:8080/files/advantech/mic-710ai/nano/jetpack-4.3/V1.10/mic-710ai-tester_V0.5.tbz2
tar -xjf mic-710ai-tester_V0.5.tbz2
Step 9. Wait 5 seconds, then power on the board.
Step 1. sudo ./burn_i211_mac.sh 00d0c9f25017
Step 2. sudo shutdown -P now
./hdd_test.sh 2
USB2.0孔 插入 usb
USB3.0孔 插入 usb
拿兩台對接rs485,一邊是 server 一邊是client
再去查詢 ls /dev/ttyTHS 是哪一個
NANO /dev/ttyTHS2
NX /dev/ttyTHS1
./485_test.sh /dev/ttyTHS1 HELLO
./485_test.sh /dev/ttyTHS2
nx gpio測試程式與其他板子不同
wget http://172.17.8.3:8080/files/advantech/mic-710ivx/io-test/mic-710ivx-tester_V0.1.tbz2
wget http://172.17.8.3:8080/files/advantech/mic-710iva/jetpack-4.2.2/outsourcing-david/mic-710iva-tester_V0.1.tbz2
tar xf mic-710ai-tester_V0.1.tbz2
sudo apt-get update
sudo apt-get install -y python3 python3-pip
pip3 install pyserial