summaryrefslogtreecommitdiffstats
path: root/tests/frame2.sh
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@dside.dyndns.org>2011-12-14 03:50:48 +0100
committerSuren A. Chilingaryan <csa@dside.dyndns.org>2011-12-14 03:50:48 +0100
commit667c1e8a83b3f5f8e90af824212c8da389f849d2 (patch)
treeb5e3573a8780c533985fee2ccdc5f0718f501419 /tests/frame2.sh
parentc4c9ad7708ddd3114f78c5f860ebfeb92cfb79c3 (diff)
downloadipecamera-667c1e8a83b3f5f8e90af824212c8da389f849d2.tar.gz
ipecamera-667c1e8a83b3f5f8e90af824212c8da389f849d2.tar.bz2
ipecamera-667c1e8a83b3f5f8e90af824212c8da389f849d2.tar.xz
ipecamera-667c1e8a83b3f5f8e90af824212c8da389f849d2.zip
few demo scripts
Diffstat (limited to 'tests/frame2.sh')
-rwxr-xr-xtests/frame2.sh37
1 files changed, 37 insertions, 0 deletions
diff --git a/tests/frame2.sh b/tests/frame2.sh
new file mode 100755
index 0000000..da05807
--- /dev/null
+++ b/tests/frame2.sh
@@ -0,0 +1,37 @@
+#!/bin/bash
+
+function pci {
+ PCILIB_PATH="/root/pcitool"
+ LD_LIBRARY_PATH="$PCILIB_PATH" $PCILIB_PATH/pci $*
+}
+
+pci --stop-dma dma1
+pci --reset
+
+echo "Set packet size 1024 .. "
+pci -w number_lines 1088
+#pci -w xrawdata_packet_length 4096
+pci --start-dma dma1
+usleep 1000
+
+echo "Send frame request ... "
+pci -w control 1e9
+usleep 1000
+pci -w control 1e1
+usleep 300000
+pci -w control 1e9
+usleep 1000
+pci -w control 1e1
+usleep 3000
+
+echo "Enable Readout ... "
+pci -w control 3e1
+
+usleep 100000
+
+pci -r dma1 -o bench.out --multipacket --timeout 1000000
+
+pci -w control 1e1
+
+pci --stop-dma dma1
+