/alps/ipecamera

To get this branch, use:
bzr branch http://darksoft.org/webbzr/alps/ipecamera

« back to all changes in this revision

Viewing changes to tests/grabhw.sh

  • Committer: Suren A. Chilingaryan
  • Date: 2013-03-26 16:32:07 UTC
  • mto: This revision was merged to the branch mainline in revision 204.
  • Revision ID: csa@dside.dyndns.org-20130326163207-xildtskiwnbsubvc
Fix lock-up under the frame-flood, when the frame rate is significantly faster than processing

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/bash
 
2
 
 
3
function pci {
 
4
    PCILIB_PATH="/root/pcitool"
 
5
    LD_LIBRARY_PATH="$PCILIB_PATH" $PCILIB_PATH/pci $*
 
6
}
 
7
 
 
8
function enable_hw_trigger {
 
9
    usleep 100000
 
10
    pci -w control 0xa01
 
11
}
 
12
 
 
13
rm -f images.raw
 
14
 
 
15
enable_hw_trigger &
 
16
pid=$!
 
17
 
 
18
echo "Starting the grabber"
 
19
pci -g -o images.raw --run-time 60000000 --verbose 10 -o /dev/null
 
20
wait $pid