frame_req.sh 467 B

123456789101112131415161718192021222324252627
  1. #!/bin/bash
  2. function pci {
  3. PCILIB_PATH="/root/pcitool"
  4. LD_LIBRARY_PATH="$PCILIB_PATH" $PCILIB_PATH/pci $*
  5. }
  6. #pci --stop-dma dma1
  7. #pci --reset
  8. echo "Set packet size 1024 .. "
  9. pci -w cmosis_number_lines 1088
  10. #pci -w xrawdata_packet_length 4096
  11. pci --start-dma dma1
  12. usleep 1000
  13. echo "Send frame request ... "
  14. pci -w control 1e9
  15. usleep 100000
  16. pci -w control 1e1
  17. usleep 100000
  18. echo "Enable Readout 3... "
  19. pci -w control 3e1
  20. usleep 1000000
  21. pci -w control 1e1