summaryrefslogtreecommitdiffstats
path: root/tests/ipecamera
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@dside.dyndns.org>2013-11-26 20:50:34 +0100
committerSuren A. Chilingaryan <csa@dside.dyndns.org>2013-11-26 20:50:34 +0100
commit57ca91fd955dd228f208000de1c2fa2bc4a0e317 (patch)
treec0f78e7ac4181b27bcc3cabbc53068692e253fdb /tests/ipecamera
parentd34069a3cb882bf4f2a2f6353f69ed1cce4b27af (diff)
downloadipecamera-57ca91fd955dd228f208000de1c2fa2bc4a0e317.tar.gz
ipecamera-57ca91fd955dd228f208000de1c2fa2bc4a0e317.tar.bz2
ipecamera-57ca91fd955dd228f208000de1c2fa2bc4a0e317.tar.xz
ipecamera-57ca91fd955dd228f208000de1c2fa2bc4a0e317.zip
Adjustments to test scripts
Diffstat (limited to 'tests/ipecamera')
-rwxr-xr-xtests/ipecamera/Reset_Init_all_reg_10bit.sh22
-rwxr-xr-xtests/ipecamera/Reset_Init_all_reg_11bit.sh9
-rwxr-xr-xtests/ipecamera/Reset_Init_all_reg_12bit.sh26
3 files changed, 46 insertions, 11 deletions
diff --git a/tests/ipecamera/Reset_Init_all_reg_10bit.sh b/tests/ipecamera/Reset_Init_all_reg_10bit.sh
index f6a3521..f4afa06 100755
--- a/tests/ipecamera/Reset_Init_all_reg_10bit.sh
+++ b/tests/ipecamera/Reset_Init_all_reg_10bit.sh
@@ -5,10 +5,10 @@
error=0
echo " Reset Readout and CMOSIS "
-pci -w 0x9040 204
+pci -w 0x9040 80000204
sleep .1
#echo " Release Reset for Readout"
-#pci -w 0x9040 1e0
+#pci -w 0x9040 800001e0
sleep .1
##################### PLL SET #####################################
val=f501
@@ -228,7 +228,7 @@ fi
####################################################################################################################
sleep 0.01
-#pci -w 0x9040 201
+#pci -w 0x9040 80000201
sleep 0.01
########################## WRITE THE READOUT NUMBER OF LINE #######################################################
pci -w cmosis_number_lines 1088
@@ -288,16 +288,23 @@ sleep 0.01
#########################################################################################################
sleep 0.01
+
+
+##################################################
+#SET the max number of frame in DDR
+pci -w 0x91a0 0x71
+
#echo " Reset Readout and CMOSIS "
-pci -w 0x9040 0x204
+pci -w 0x9040 0x80000204
sleep .1
echo " Release Reset for Readout"
-pci -w 0x9040 0x201
+pci -w 0x9040 0x80000201
sleep .1
status=`pci -r 0x9050 -s 4 | awk '{print $2$3$4}'`
if [ "$status" != "8449ffff0f0010013ffff111" ]; then
echo "--------------------------------->>>> ERROR! in the camera status ... "
+ echo " $status "
error=1
# exit
fi
@@ -311,4 +318,9 @@ else
fi
echo
+echo "DMA reset ... "
+pci --stop-dma dma1
+sleep 0.5
+pci --start-dma dma1
+
diff --git a/tests/ipecamera/Reset_Init_all_reg_11bit.sh b/tests/ipecamera/Reset_Init_all_reg_11bit.sh
index 048f6b0..3c4af0e 100755
--- a/tests/ipecamera/Reset_Init_all_reg_11bit.sh
+++ b/tests/ipecamera/Reset_Init_all_reg_11bit.sh
@@ -279,6 +279,10 @@ if [ "$value" != "b$val" ]; then
fi
#pci -r 0x9000 -s 10
+##################################################
+#SET the max number of frame in DDR
+pci -w 0x91a0 0x1C
+
sleep 0.01
#pci -w 0x9000 0xd011
sleep 0.01
@@ -307,3 +311,8 @@ fi
echo
+echo "DMA reset ... "
+pci --stop-dma dma1
+sleep 0.5
+pci --start-dma dma1
+
diff --git a/tests/ipecamera/Reset_Init_all_reg_12bit.sh b/tests/ipecamera/Reset_Init_all_reg_12bit.sh
index 00c2481..b04f2cd 100755
--- a/tests/ipecamera/Reset_Init_all_reg_12bit.sh
+++ b/tests/ipecamera/Reset_Init_all_reg_12bit.sh
@@ -188,7 +188,7 @@ echo " End CMOSIS Configuration .."
echo " Write exp time......"
######################################### EXP TIME #######################################################
-val=aa01
+val=aa0f
pci -w 0x9000 $val
sleep 0.01
#pci -r 0x9000 -s 10
@@ -280,20 +280,29 @@ fi
#pci -r 0x9000 -s 10
sleep 0.01
+
+##################################################
+#SET the max number of frame in DDR
+pci -w 0x91a0 0x1C
+
+
#pci -w 0x9000 0xd011
sleep 0.01
-#pci -r 0x9000 -s 10
+pci -r 0x9000 -s 10
sleep 0.01
#pci -w 0x9000 0xd111
-#pci -r 0x9000 -s 10
-#########################################################################################################
sleep 0.01
+pci -r 0x9000 -s 10
+#########################################################################################################
+sleep 0.1
status=`pci -r 0x9050 -s 4 | awk '{print $2$3$4}'`
-if [ "$status" != "8449ffff0f0010013ffff111" ]; then
+if [ "$status" != "844950280f0010013ffff111" ]; then
+
echo "--------------------------------->>>> ERROR! in the camera status ... "
- error =1
+ echo $status
+ error=1
# exit
fi
@@ -307,3 +316,8 @@ fi
echo
+
+echo "DMA reset ... "
+pci --stop-dma dma1
+sleep 0.5
+pci --start-dma dma1