/alps/ipecamera

To get this branch, use:
bzr branch http://suren.me/webbzr/alps/ipecamera
280 by Suren A. Chilingaryan
Fix minor error in rarely used path
1
#!/bin/bash
2
# By Michele Caselle for UFO 6 / 20 MPixels - camera
3
echo "-----------------------------"
4
echo "----  S T I M U L I ---------"
5
echo "-----------------------------"
6
7
if [ -z "$1" ]; then
8
    echo "Please specify number of frames required"
9
    exit
10
fi
11
12
rm mult$2.out*
13
rd_flag=1
14
15
#Make wr higher priority than rd
16
pci -w 0x9100 0x20001000
17
ddr_thr=a0
18
19
echo "Set Number of frames.. to $1 hex"
20
pci -w 9170 $1
21
22
sleep .1
23
pci -w 9040 0x80000001
24
sleep .1
25
echo "Send mult frame request ... "
26
pci -w 9040 0x80000211
27
sleep .05
28
29
#pci -g -s $1 -o mult$2.raw 
30
#IPECAMERA_DEBUG_HARDWARE="1" pci -g -s $1 --run-time 10000000 --buffer 1024 --verbose -o mult$2.out.decoded
31
IPECAMERA_DEBUG_HARDWARE="1" pci -g -s $1 --run-time 10000000 --format default --data raw --buffer 1024 --verbose -o mult$2.out 
32
sleep .3
33
echo "decoding..."
34
sleep .1
35
ipedec -r 3840 --num-columns 5120 mult$2.out -f --continue
36
37
sleep .1
38
pci -w 9040 0x80000201
39
pci -r 9000 -s 100