-
Notifications
You must be signed in to change notification settings - Fork 159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(Linux) simple script to compile OpenHantek6022 #136
Comments
d2d2caa provides two more general setup and build scripts |
Тhat's great! |
I do not have any Windows system, but please check the appveyor log, it issues these commands:
But I do not understand your change
How to read the setting: e.g. the line |
It doesn't make sense, that's right. P.S. |
What was the error message? Do you have the correct build environment installed?
What happens if you type the (appveyor) commands that I wrote above step by step?
The firmware in the scope transfers available data as soon as one block is complete, but only in USB high speed mode (480 Mbps) - regardless of the transferred amount/sample rate. That means fast data transfer with short or long idle periods in between:
You need a high speed capable device. Please read this spec, it says: Electric Specifications |
In fact, I did nothing but start building (completely automatically) the project (appveyor). Regarding the USB insulator. Best regards and stay healthy! |
No support for non-Linux related issues unless a volunteer steps in! I can test. |
Ok, thank you - so could you please check this Windows driver from EEVblog. I do not use Windows since years, I have only an old virtual W7 on one of my laptops where I can check the gui, but only for demo mode without any USB / HW access. |
I do not observe any noticeable problems, as things are identical to the driver I use (attached below). If You point me to something specific, it would be better, I think. There is a problem with the calibration and / or something else when samplerate is 30MS/s or above (I have attached a clip). |
Reason for my question is that I got some responses that the Win install via Zadig is not the normal Windows way to do. So if I provide the
Did you calibrate with my python tool? Or do you use the factory calibration already available in the I2C EEPROM? The reason that the offset jumps a little bit lies in the different ADC timing that is clocked from IFCLK @30MS/s (and @48MS/s), but at lower sample rates the slower clock comes from CTL2 (6022BE) or CTL0 (6022BL) in sync with the GPIF DATA bit (OPCODE.1).
|
I think the script option is appropriate. I got some responses that the Win install via Zadig is not the normal... Did you calibrate with my python tool? Is it possible to come up with a way to make the calibration Windows procedure easier (as you did with the Linux compilation scripts)? Maybe if you put it all together to the point where you only need to run the python script? The reason that the offset jumps a little bit lies in the different ADC timing that is clocked from IFCLK @30MS/s (and @48MS/s), but at lower sample rates the slower clock comes from CTL2 (6022BE) or CTL0 (6022BL) in sync with the GPIF DATA bit (OPCODE.1). I.e. this is a hardware problem? |
TOPIC 1
Do you mean the EEVblog solution from 2018 with So just the easy question: Would it be sufficient to provide the 2nd newer version (only TOPIC 2
Then it is clear, because the config file doesn't distinguish between low and high speed, nor doesn't it provide sub-bit resolution. But if you calibrate with
Yes, probably caused by the brain-dead ADC design already mentioned (the far out of spec common mode voltage), also the factory setup values in EEPROM provide separate offset correction for slow and for high speed. |
Do you mean the EEVblog solution from 2018 with Hantek.cat, Hantek.inf and Install.cmd Yes, that's what I mean. Understood. Yes, probably caused by the brain-dead ADC design I understand them to some extent. |
Sorry to say, but you're wrong. There is an 256-byte EEPROM 24LC02B (the small 8 pin chip) that is necessary to hold the Hantek USB vendor and product id VID/PID e.g. 0x4b4/6022 (otherwise the scope would announce the default Cypress EzUSB FX2 combination 04b4/8613). The firmware documentation gives more info about the EEPROM, its content and how to use it. If you buy the scope the EEPROM contains already factory offset-calibration values as mentioned in my post above. P.S.:
People who decide to use an oscilloscope have some technical background. |
Okay. |
That's a nasty result of the the automatic crlf->lf change done by git (as an unix tool), so the *.inf doesn't match its checksum anymore. Now fixed by a |
Everything is fine now. |
Thx! |
#! /bin/sh
cmake .. /home/zen/build
make -j7
strip openhantek/OpenHantek
rm -f packages/*
fakeroot make package
mv /home/zen/build/_CPack_Packages/Linux/DEB/*.deb /home/zen/build/
......
P.S.
Read
https://github.com/OpenHantek/OpenHantek6022/blob/master/docs/build.md#linux
Rename /home/zen with your HOME
The text was updated successfully, but these errors were encountered: