Logo white

Peter M. Groen / openhantek

Sign in
  • Sign in
  • Project
  • Files
  • Commits
  • Network
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • openhantek
  • firmware
  • fwget.sh
  • Refactor: Split and reorganise files. Add firmware upload functionality. ...
    b7a65b8a
    * Use QMutexLocker -> avoids deadlocks that I encountered
    * HantekDsoControl shouldn't implement QThread and use Qtimer, it is just a worker class with a periodic run() method.
    * Udev rules file altered: Allow access to firmware flashed and unflashed hantek devices
    * Everything that is non-gui is in the subdirectory hantek now.
    * Everything that is USB communication/find USB devices/upload to USB device is in the subdirectory 'usb' now.
    * Utility classes are in the subdirectory 'utils'.
    * Split types.h/cpp
    
    Signed-off-by: David Graeff <david.graeff@web.de>
    David Graeff authored
    2017-12-11 13:48:22 +0100  
    Browse Code ยป
fwget.sh 334 Bytes
Edit Raw Blame History
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
#!/bin/bash

shopt -s globstar

cd "$(dirname "$0")"
make
rm -rf tmp
mkdir tmp

cd tmp
for MODEL in "2090" "2150" "2250" "5200" "5200A"; do
    wget http://www.hantek.com/Product/DSO2000/DSO${MODEL}_Driver.zip
    unzip DSO${MODEL}_Driver.zip
done
cd ..

for f in tmp/**/*.sys; do
    ./extractfw $f
done
mv tmp/**/*.hex .
rm -rf tmp