summaryrefslogtreecommitdiffstats
path: root/tests/grabhw.sh
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@dside.dyndns.org>2013-03-26 17:32:07 +0100
committerSuren A. Chilingaryan <csa@dside.dyndns.org>2013-03-26 17:32:07 +0100
commit821a945eafaf63963d56c9bdef773760bea9a41d (patch)
tree41d5be2a995d1331d7b35abc88d876d95792751c /tests/grabhw.sh
parent01efad2774b55dd956bbbed2ef2b1bdb5a113afd (diff)
downloadipecamera-821a945eafaf63963d56c9bdef773760bea9a41d.tar.gz
ipecamera-821a945eafaf63963d56c9bdef773760bea9a41d.tar.bz2
ipecamera-821a945eafaf63963d56c9bdef773760bea9a41d.tar.xz
ipecamera-821a945eafaf63963d56c9bdef773760bea9a41d.zip
Fix lock-up under the frame-flood, when the frame rate is significantly faster than processing
Diffstat (limited to 'tests/grabhw.sh')
-rwxr-xr-xtests/grabhw.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/grabhw.sh b/tests/grabhw.sh
new file mode 100755
index 0000000..0279ab4
--- /dev/null
+++ b/tests/grabhw.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