FG24-4CH 触发
FG24-4CH硬件支持外部输入触发信号,也支持通过Orin NX GPIO控制具体引脚定义(即MAX96724的MFP0 链接到22Pin的第17Pin)
方式一,通过软件模拟外部触发,其中Bus-9采用PH.6引脚,Bus-10采用PAC.03引脚
#!/bin/bash
# Power - PAC.03 --- /dev/video0/1
chmod 777 /sys/class/gpio/export
chmod 777 /sys/class/gpio/unexport
echo "[sync]"
if [ -e /sys/class/gpio/PAC.03 ]; then
echo "PAC.03 has exported."
else
echo 489 > /sys/class/gpio/export
fi
echo out > /sys/class/gpio/PAC.03/direction
#10.02Hz
while [ true ]; do
echo 1 > /sys/class/gpio/PAC.03/value
sleep 0.012 #0.02
echo 0 > /sys/class/gpio/PAC.03/value
sleep 0.084 #02
done
#23Hz
while [ true ]; do
echo 1 > /sys/class/gpio/PAC.03/value
sleep 0.02
echo 0 > /sys/class/gpio/PAC.03/value
sleep 0.02
done
方式二,通过外部输入触发信号,当前底板设计支持了MFP0|1|2|3|7 引脚输入触发信号(具体可咨询FAE)
Trigger触发引脚J102