Commit 8d16b8ddddcff2b2e849ccd30533819b99a787c5
Committed by
GitHub
1 parent
9db36228
Update readme.md
Showing
1 changed file
with
39 additions
and
17 deletions
readme.md
| ... | ... | @@ -12,6 +12,7 @@ Supported operating systems: |
| 12 | 12 | Supported hantek devices: |
| 13 | 13 | * DSO2xxx Series |
| 14 | 14 | * DSO52xx Series |
| 15 | +* 6022BE/BL | |
| 15 | 16 | |
| 16 | 17 | ## Install prebuilt binary |
| 17 | 18 | Navigate to the [Releases](https://github.com/OpenHantek/openhantek/releases) page |
| ... | ... | @@ -23,30 +24,54 @@ You need the following packages, to build OpenHantek from source: |
| 23 | 24 | * FFTW 3+ (prebuild files will be downloaded on windows) |
| 24 | 25 | * libusb 1.x (prebuild files will be used on windows) |
| 25 | 26 | |
| 27 | +You need a OpenGL 3.x capable graphics card for OpenHantek. | |
| 28 | + | |
| 29 | +### Install requirements on Linux | |
| 26 | 30 | For debian based systems (Ubuntu, Mint) install named requirements like this: |
| 27 | 31 | > apt-get install g++ cmake qttools5-dev qttools5-dev-tools libfftw3-dev binutils-dev libusb-1.0-0-dev |
| 28 | 32 | |
| 29 | 33 | For rpm based distributions (Fedora) use this command: |
| 30 | 34 | > dnf install cmake gcc-c++ qt5-qtbase-gui qt5-qttools-devel qt5-qttranslations fftw-devel binutils-devel libusb-devel |
| 31 | 35 | |
| 36 | +### Install requirements on OSX | |
| 32 | 37 | For MacOSX use homebrew |
| 33 | 38 | > brew update <br> |
| 34 | 39 | > brew install libusb fftw qt5; |
| 35 | 40 | |
| 36 | -After you've installed the requirements either run **cmake-gui** or run the following commands inside the directory of this package: | |
| 41 | +### Build on Linux | |
| 42 | +After you've installed the requirements run the following commands inside the directory of this package: | |
| 37 | 43 | > mkdir build <br> |
| 38 | 44 | > cd build <br> |
| 39 | 45 | > cmake ../ <br> |
| 40 | -> make -j4 (for 4 concurrent compile jobs) <br> | |
| 41 | -> make install (optional, for installing only) | |
| 46 | +> make -j | |
| 47 | + | |
| 48 | +Optionally install the program including a desktop icon: | |
| 49 | + | |
| 50 | +> sudo make install | |
| 51 | + | |
| 52 | +### Build on OSX | |
| 53 | +After you've installed the requirements run the following commands inside the directory of this package: | |
| 54 | +> mkdir build <br> | |
| 55 | +> cd build <br> | |
| 56 | +> cmake ../ -DCMAKE_PREFIX_PATH=/usr/local/Cellar/qt5/5.7.0 <br> | |
| 57 | +> make -j | |
| 42 | 58 | |
| 43 | -For MacOSX, the cmake command in the previous command list must include the directory where Qt5 is installed. Qt5 is installed in a directory with the same name of its version: | |
| 59 | +Please adjust the path to Qt5. You can find the path with the command: | |
| 44 | 60 | > brew info qt5 |
| 45 | -For example, if brew showed 5.7.0, the cmake command should be: | |
| 46 | -> cmake ../ -DCMAKE_PREFIX_PATH=/usr/local/Cellar/qt5/5.7.0 | |
| 47 | 61 | |
| 48 | -You can specify an install prefix when running cmake: | |
| 49 | -> cmake -DCMAKE_INSTALL_PREFIX=/usr | |
| 62 | +### Build on Windows | |
| 63 | + | |
| 64 | +Run the **CMake GUI** program and select the source directory, build directory and your compiler. If your compiler is for example Visual Studio, cmake will generate a Visual Studio Project and solution file (\*.sln). Open the project and build it. | |
| 65 | + | |
| 66 | +## Executing OpenHantek | |
| 67 | + | |
| 68 | +* Linux/OSX: Add your current user to the **plugdev** group for access to USB devices: | |
| 69 | + | |
| 70 | +> usermod -a -G plugdev {user id} | |
| 71 | + | |
| 72 | +* Make sure the firmware for your DSO has been uploaded to the device before starting OpenHantek. See the next section for further information. | |
| 73 | + | |
| 74 | +* Execute OpenHantek. On Windows, click the **OpenHantek.exe** file. On Linux/OSX on the command line in the build directory: `./bin/OpenHantek` | |
| 50 | 75 | |
| 51 | 76 | ## Firmware |
| 52 | 77 | Your DSO does not store its firmware permanently -- the firmware has to be sent to the device each time it is connected. The `firmware` directory of this project contains the binary firmware extracted from Hantek's Windows drivers, and a udev rule to upload the firmware to the device automatically each time it is plugged in. |
| ... | ... | @@ -65,30 +90,27 @@ Your DSO does not store its firmware permanently -- the firmware has to be sent |
| 65 | 90 | |
| 66 | 91 | > apt-get install fxload |
| 67 | 92 | |
| 68 | -* Add your current user to the **plugdev** group. | |
| 69 | - | |
| 70 | -> usermod -a -G plugdev {user id} | |
| 71 | - | |
| 72 | -## For 6022BE | |
| 93 | +## 6022BE | |
| 73 | 94 | You can adjust samplerate and use software triggering for 6022BE. |
| 74 | 95 | - Support 48, 24, 16, 8, 4, 2, 1 M and 500, 200, 100 k Hz samplerates with modded firmware by [jhoenicke](https://github.com/rpcope1/Hantek6022API) |
| 75 | 96 | - Support software trigger by detecting rising or falling edge of signal. Use software trigger item on the trigger menu. For trigger level, adjust left arrow on the right-side of the graph. |
| 76 | - - Note that I dropped first 1000 samples due to unstable/unusual reading. | |
| 97 | + - Note that the first few thousand samples are dropped due to unstable/unusual reading. | |
| 77 | 98 | |
| 78 | 99 | ## Contribute |
| 79 | 100 | Please use Github Issues to report any problems or enhancements or send us pull requests. Some random notes: |
| 80 | 101 | - Read [how to properly contribute to open source projects on GitHub][10]. |
| 81 | - - Use a topic branch to easily amend a pull request later, if necessary. | |
| 102 | + - Create a separate branch other than *master* to easily amend changes to a pull request later, if necessary. | |
| 82 | 103 | - Write [good commit messages][11]. |
| 83 | - - Squash commits on the topic branch before opening a pull request. | |
| 104 | + - [Squash commits[][14] on the topic branch before opening a pull request. | |
| 84 | 105 | - Use the same [coding style and spacing][13] |
| 85 | 106 | (install clang-format and use it in the root directory: `clang-format -style=llvm openhantek/src/*`). |
| 86 | - - Open a [pull request][12] that relates to but one subject with a clear title and description | |
| 107 | + - Open a [pull request][12] with a clear title and description | |
| 87 | 108 | |
| 88 | 109 | [10]: http://gun.io/blog/how-to-github-fork-branch-and-pull-request |
| 89 | 110 | [11]: http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html |
| 90 | 111 | [12]: https://help.github.com/articles/using-pull-requests |
| 91 | 112 | [13]: http://llvm.org/docs/CodingStandards.html |
| 113 | +[14]: https://github.com/ginatrapani/todo.txt-android/wiki/Squash-All-Commits-Related-to-a-Single-Issue-into-a-Single-Commit | |
| 92 | 114 | |
| 93 | 115 | ## Other open source software |
| 94 | 116 | * [SigRok](www.sigrok.org) | ... | ... |