stimuli20.sh 941 B

123456789101112131415161718192021222324252627282930313233343536373839
  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. if [ -z "$1" ]; then
  7. echo "Please specify number of frames required"
  8. exit
  9. fi
  10. rm mult$2.out*
  11. rd_flag=1
  12. #Make wr higher priority than rd
  13. pci -w 0x9100 0x20001000
  14. ddr_thr=a0
  15. echo "Set Number of frames.. to $1 hex"
  16. pci -w 9170 $1
  17. sleep .1
  18. pci -w 9040 0x80000001
  19. sleep .1
  20. echo "Send mult frame request ... "
  21. pci -w 9040 0x80000211
  22. sleep .05
  23. #pci -g -s $1 -o mult$2.raw
  24. #IPECAMERA_DEBUG_HARDWARE="1" pci -g -s $1 --run-time 10000000 --buffer 1024 --verbose -o mult$2.out.decoded
  25. IPECAMERA_DEBUG_HARDWARE="1" pci -g -s $1 --run-time 10000000 --format default --data raw --buffer 1024 --verbose -o mult$2.out
  26. sleep .3
  27. echo "decoding..."
  28. sleep .1
  29. ipedec -r 3840 --num-columns 5120 mult$2.out -f --continue
  30. sleep .1
  31. pci -w 9040 0x80000201
  32. pci -r 9000 -s 100