Git Product home page Git Product logo

Comments (4)

braselectron avatar braselectron commented on June 2, 2024 1

So I started again.

  1. Removed my local clone of openhantek (rmdir ~/openhantek)

    1.1. install a git clone from openhantek again (same place)

  2. downloaded the binary of cmake 3.5.2 to /opt
    curl -sSL https://cmake.org/files/v3.5/cmake-3.5.2-Linux-i386.tar.gz | sudo tar -xzC /opt

  3. cd into ~/openhantek ; mkdir build ; cd into build

  4. /opt/cmake-3.5.2-Linux-i386/bin/cmake ../ # no errors this time

  5. cd into ~/openhantek/build/openhantek to execute the binary ./OpenHantek

Getting the following output:

Version
QObject::connect: No such slot OpenHantekMainWindow::sendCommand()
QObject: Cannot create children for a parent that is in a different thread.
(Parent is Hantek::Control(0x99e37c8), parent's thread is QThread(0x989a7f8), current thread is Hantek::Control(0x99e37c8)
22:54:28.903: Sending bulk command: 07 00 0a 00 00 00 00 00
22:54:28.904: Sending bulk command: 0b 00 02 00
22:54:28.905: Sending bulk command: 0c 00 02 00 00 00 00 00
22:54:28.907: Sending bulk command: 0d 00 01 00
22:54:28.908: Sending bulk command: 0e 00 02 00 f7 ff 00 00
22:54:28.909: Sending bulk command: 0f 00 ff ff 07 00 ff d7 07 00
22:54:28.911: Sending control command b4: 00 46 00 4d 00 7f 00 00 00 00 00 00 00 00 00 00 00
22:54:28.961: Sending control command b5: 00 04 f7 fd 20 bf ef 01 00 00 00 00 00 00 00 00 00
Segmentation fault (core dumped)

I when to https://sourceforge.net/projects/openhantek/ (older version)
Complied from source using qmake (qt5) and got screen of the GUI, my DSO-2250 clicks when changing voltage levels but to output.

I would appreciate any help from openhantek community.

from openhantek.

braselectron avatar braselectron commented on June 2, 2024 1

Now the strange "facts".

I found this page:
http://verahill.blogspot.com.br/2012/12/298-hantek-dso-2250-usb-with-openhantek.html

The instructions told me to first install dependence packages with:

sudo apt-get install libqt4-dev libfftw3-dev qt4-qmake fxload libusb-1.0-0-dev libbfd-dev

but I had all already installed (just to be sure, check using dpkg -l <package list>)

Then I downloaded the project (older version - I believe 'patched' for DSO-2250) with:

svn checkout http://svn.code.sf.net/p/openhantek/code/trunk openhantek-code

then go to the directory created:

cd openhantek-code

Take additional care by using the correct 'qmake' version, which is qt4 (not qt5)

You can check your versions installed to find the qmake(qt4) binary, using:

locate -b '\qmake' | xargs -ri find {} -prune -type f -executable

Since I have two versions installed I need to issue:

/usr/share/qt4/bin/qmake (I had to use the 'locate' result for the path)

At the end of qmake 'no errors', just a slient ending (just the prompt returned)

Then I proceded to the 'make' with:

make

which also ended with no errors messages. Great! So there must be a binary.

cd bin

execute the binary with (because I did not 'install' it yet):
./openhantek

And the GUI pop-up on screen! Hurray! It worked!!!

Please note that I had already installed the firmware part (please check instructions).

And, by the way, the only firmware extraction source that I was able to build was using:

https://sourceforge.net/projects/openhantek/files/openhantek-extractfw/openhantek-extractfw-0.7.0.tar.bz2/download

After downloading it go to the directory and build it with:

  1. ./configure
  2. make

Than put the DSOxxxx1.sys (windows driver file - check instructions) in the same directory and issues the command:

./openhantek-extractfw DSOxxxx1.sys

Be aware that the name of the resulting files must be the same as used in the file: "90-hantek.rules"

Also now it worked again!!! Two files produced. Remember, follow the instructions....

So my question to OpenHantek community is: why is it that the project participants here are making it so difficult for the unskilled users to 'make' this a simple and usable piece of software ?

I believe that the original goal of GNU and FSF is to make software accessible to everyone, is to get the job done, is to empower the people, and to make things simple. Cheers!

Now how can I get this newer version, available here, to work?

from openhantek.

braselectron avatar braselectron commented on June 2, 2024 1

Dear Oliver Haag,

First, my compliments: you are a "master" coder!
Please excuse my english. Thank for your work and for the promptly answer.

Just to add more (debug) information here, I just noticed now with my "tests" with the sf.net.svn version that worked that the voltage level looks good (needs calibration), but the FFT function is unstable (crashes). I can get only a quick image of the FFT output that immediately vanishes (because of the fading option selected). I have to click on the FFT CHx bottons many times in combination with others to make it show the quick image overlay.

hantek001
hantek002
hantek003

My console outputs this:
~/openhantek-code/openhantek/bin$ ./openhantek
QObject: Cannot create children for a parent that is in a different thread.
(Parent is Hantek::Control(0x950f3d8), parent's thread is QThread(0x939b0b8), current thread is Hantek::Control(0x950f3d8)

Also the "record length" in the "Roll" option is unstable. If you change it (to the other two choices) and return to "Roll" position again the signal image is incorrect, and you cannot return to the sample rate (less options). You need to restart the binary to recover with all channels unmarked.

hantek005

hantek004

So I conclude that I have still issues with even the sf.net.svn (i.e. 0.2.0x version), or I my be having problems in the build process for my installation layout (or dependencies).

I really would like to avoid the VirtualBox solution. So I need help.

Following what @OliverHaag said, if I can make a suggestion, we could have a directory with working versions/releases (tar clones and also binaries for the main distributions - i386 and 64bits) which I believe would better help the community that only needs a working version for faster results.

Also a good wiki to help newbies with step-by-step instructions (not to say also as a reference to developers to keep build and dependency history for each release). Sorry, but we "engineers" like to bring order, to chaos theory.

A good add-on would be to have a "plugin" subsystem, which the community would help build by making new functions for the openhantek project, I believe would be a greater success, and permit a more stable core.

from openhantek.

OliverHaag avatar OliverHaag commented on June 2, 2024

I'm not really working on OpenHantek myself anymore and didn't try the github master for some time. @davidgraeff should have a better overview here but I would really prefer to keep the master branch clean and in a buildable and useable state at any time (like the old one on sf.net svn was) for the reasons @braselectron mentioned.

from openhantek.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.