添加查看分辨率帧率脚本

This commit is contained in:
langfan1990
2020-03-31 12:36:31 +08:00
parent 81bfe24ff5
commit ee320178c9
3 changed files with 30 additions and 0 deletions

View File

@@ -22,5 +22,9 @@
说明固件下载失败,只需要重新执行 “sudo ./firmburn binfile” 命令,烧录即可。
## 更新日志:
2020年3月31日
添加检查设备支持分辨率和帧率的脚本(frameTest.sh)。
使用方法 “./frameTest.sh”
固件 Firmware_v1.1_5ms.bin :
曝光时间5ms 分辨率2x640x400(25fps 50fps 100fps 200fps) 2x1280x800(25fps 50fps 100fps)

BIN
firmburn

Binary file not shown.

26
frameTest.sh Executable file
View File

@@ -0,0 +1,26 @@
#!/bin/bash
lsusb -d 0x05a9:0xf581 -v | while read line
do
tmpWidth=`echo $line |grep wWidth`
if [[ -n $tmpWidth ]]
then
echo ""
Width=`echo $tmpWidth|cut -d" " -f2`
echo -e "$Width x \c"
fi
tmpHeight=`echo $line |grep wHeight`
if [[ -n $tmpHeight ]]
then
Height=`echo $tmpHeight |cut -d" " -f2`
echo -e "$Height"
fi
Freq=`echo $line |grep dwFrameInterval\(`
if [[ -n $Freq ]]
then
interval=`echo $Freq | cut -d" " -f3`
echo -e "\t"`expr 10000000 / $interval` "\c"
fi
done
echo -e "\n"