summaryrefslogtreecommitdiffstats
path: root/tests/stimuli20.sh
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2016-03-22 19:19:17 +0100
committerSuren A. Chilingaryan <csa@suren.me>2016-03-22 19:19:17 +0100
commit954ffcdb0e16495152b613d11d205d0f31350793 (patch)
treed48b667ad42cdf9b0041b0137bd8b52749f661db /tests/stimuli20.sh
parent6fa5eb9906e9d5f47abd3f704bfe3604171c58ab (diff)
downloadipecamera-954ffcdb0e16495152b613d11d205d0f31350793.tar.gz
ipecamera-954ffcdb0e16495152b613d11d205d0f31350793.tar.bz2
ipecamera-954ffcdb0e16495152b613d11d205d0f31350793.tar.xz
ipecamera-954ffcdb0e16495152b613d11d205d0f31350793.zip
Fix minor error in rarely used path
Diffstat (limited to 'tests/stimuli20.sh')
-rwxr-xr-xtests/stimuli20.sh39
1 files changed, 39 insertions, 0 deletions
diff --git a/tests/stimuli20.sh b/tests/stimuli20.sh
new file mode 100755
index 0000000..11b51ee
--- /dev/null
+++ b/tests/stimuli20.sh
@@ -0,0 +1,39 @@
+#!/bin/bash
+# By Michele Caselle for UFO 6 / 20 MPixels - camera
+echo "-----------------------------"
+echo "---- S T I M U L I ---------"
+echo "-----------------------------"
+
+if [ -z "$1" ]; then
+ echo "Please specify number of frames required"
+ exit
+fi
+
+rm mult$2.out*
+rd_flag=1
+
+#Make wr higher priority than rd
+pci -w 0x9100 0x20001000
+ddr_thr=a0
+
+echo "Set Number of frames.. to $1 hex"
+pci -w 9170 $1
+
+sleep .1
+pci -w 9040 0x80000001
+sleep .1
+echo "Send mult frame request ... "
+pci -w 9040 0x80000211
+sleep .05
+
+#pci -g -s $1 -o mult$2.raw
+#IPECAMERA_DEBUG_HARDWARE="1" pci -g -s $1 --run-time 10000000 --buffer 1024 --verbose -o mult$2.out.decoded
+IPECAMERA_DEBUG_HARDWARE="1" pci -g -s $1 --run-time 10000000 --format default --data raw --buffer 1024 --verbose -o mult$2.out
+sleep .3
+echo "decoding..."
+sleep .1
+ipedec -r 3840 --num-columns 5120 mult$2.out -f --continue
+
+sleep .1
+pci -w 9040 0x80000201
+pci -r 9000 -s 100