From ef4f563559f195672d07114670a461a7c55ea22b Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Wed, 19 Mar 2014 23:12:31 +0100 Subject: Add HEB scripts and re-organize the structure --- tests/ipecamera/grab-hwtrigger.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 tests/ipecamera/grab-hwtrigger.sh (limited to 'tests/ipecamera/grab-hwtrigger.sh') diff --git a/tests/ipecamera/grab-hwtrigger.sh b/tests/ipecamera/grab-hwtrigger.sh new file mode 100755 index 0000000..0279ab4 --- /dev/null +++ b/tests/ipecamera/grab-hwtrigger.sh @@ -0,0 +1,20 @@ +#! /bin/bash + +function pci { + PCILIB_PATH="/root/pcitool" + LD_LIBRARY_PATH="$PCILIB_PATH" $PCILIB_PATH/pci $* +} + +function enable_hw_trigger { + usleep 100000 + pci -w control 0xa01 +} + +rm -f images.raw + +enable_hw_trigger & +pid=$! + +echo "Starting the grabber" +pci -g -o images.raw --run-time 60000000 --verbose 10 -o /dev/null +wait $pid -- cgit v1.2.3