summaryrefslogtreecommitdiffstats
path: root/tests/ipecamera/autotrigger.sh
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2015-03-29 18:05:58 +0200
committerSuren A. Chilingaryan <csa@suren.me>2015-03-29 18:05:58 +0200
commitadb36212be886985dbaf397d7d2dd875b3d4aab8 (patch)
tree292b252b22f823eb4eb8753c7d437b723e23a85b /tests/ipecamera/autotrigger.sh
parentb222af943c405df509eb9df084d203da4fbd324e (diff)
downloadipecamera-adb36212be886985dbaf397d7d2dd875b3d4aab8.tar.gz
ipecamera-adb36212be886985dbaf397d7d2dd875b3d4aab8.tar.bz2
ipecamera-adb36212be886985dbaf397d7d2dd875b3d4aab8.tar.xz
ipecamera-adb36212be886985dbaf397d7d2dd875b3d4aab8.zip
Fix frame size computation in ipecamera and few debuging options
Diffstat (limited to 'tests/ipecamera/autotrigger.sh')
-rwxr-xr-xtests/ipecamera/autotrigger.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/ipecamera/autotrigger.sh b/tests/ipecamera/autotrigger.sh
new file mode 100755
index 0000000..1c8f353
--- /dev/null
+++ b/tests/ipecamera/autotrigger.sh
@@ -0,0 +1,18 @@
+#! /bin/bash
+
+function pci {
+ PCILIB_PATH="../../"
+ LD_LIBRARY_PATH="$PCILIB_PATH" $PCILIB_PATH/pci $*
+}
+
+echo "Starting the grabber"
+pci -g -o /dev/null --run-time 12000000 --verbose 10 &
+pid=$!
+
+usleep 100000
+pci -w 9040 80000a01
+usleep 10000000
+pci -w 9040 80000001
+
+echo "Waiting grabber to finish"
+wait $pid