Author Topic: OWON VDS1022I Quick Teardown (versus the Hantek 6022be)  (Read 234927 times)

0 Members and 4 Guests are viewing this topic.

Offline camomille

  • Regular Contributor
  • *
  • Posts: 98
  • Country: fr
Re: OWON VDS1022I Quick Teardown (versus the Hantek 6022be)
« Reply #425 on: November 15, 2019, 12:45:07 pm »
To do this tutorial correctly,I tested the complete and functional installation on Windows 7 64 bits virgin of any previous installation
I am not a professional programmer, just a passionate enthusiast of electronics and a Microsoft Basic language experience (VB6) so do not blame me if it's not perfect, it's to help people take the first step.
To reassure people who embark on this adventure, Eclipse is a great tool easy to understand and if Pascal language is the most used in the world, it is for the same reason.
I will do a little tutorial later with my tips to find places to annotate to make its own changes.
Excuse me for my bad English because the translator is my friend.
PREALABLE

To be compatible with VDS1022 source V1.0.23, 32-bit versions of programs must be installed
Respect the order indicated to avoid questions to which I will not be able to answer.

INSTALLATION

1) Create a "DEV" folder with a subfolder "jre6"    (C:\Program Files (x86)\DEV\jre6)
   Create a  folder "Protect" on the desk

2) Installation JAVA (jre 6.45)
https://www.oracle.com/technetwork/java/javase/downloads/java-archive-javase8-2177648.html
Oracle will ask you to open an account (Free license)
872350-0

Check  "Accept Licence Agreement" and download jre-8u111-windows-i586.exe (not jdk-8u111-windows-i586.exe)
872372-1

Install jre-8u111-windows-i586.exe ,change the destination folder in "DEV / jre6" and refuse updates

872410-2

3) Download my "workspace 1.0.23.7z" and uncompressed 2 times 1 time on the desktop and 1 time in the folder "Protect" (original for a clean restart)

workspace 1.0.23.7z
https://ufile.io/38k65e74

Or for Russian

workspace 1.0.23_russ.7z
https://ufile.io/3rm8uyma

4) Installation of Eclipse (Mars SR2 Packages (2016 - v4.5.2)) https://www.eclipse.org/downloads/packages/release/mars/r
872378-3

download : Eclipse for RCP and RAP Developers 32-bit version
Unziper eclipse-rcp-mars-R-win32.zip in the "C: \ Program Files (x86) \ DEV \" (eclipse does not need installation)
Create an eclipse.exe shortcut on the desktop.
Launch eclipse from the desktop shortcut

At the first launch eclipse asks for the path of workpace ,change the path of the workpace with path
workspace 1.0.23  (workspace 1.0.23_russ for Russian) in the desk
and check "Use this as default and do not ask again"
872384-4
Now you have a complete installation, just click on the white arrow in a green circle and you have emulation of the VDS1022.
872388-5
872392-6

OPTIONNEL

1) Language Pack (for non-English speakers)

link for the Russian language (all other languages are present on the same page) https://archive.eclipse.org/technology/babel/babel_language_packs/R0.12.0/luna/luna.php
872396-7
Copy / Paste the contents of each folder (features, plugins) in its equivalent to the root of the Eclipse installation

2) JAR launcher (to redo the launcher provided)launch4j 3.12
https://sourceforge.net/projects/launch4j/files/launch4j-3/3.12/

-----------------------------------------------------------------------------------------------------------------------------------------------------------

For newcomers, I give the first links to launch VDS1022 without installing it.
VDS_C2_23.7z
https://ufile.io/1kd4j2te
rxtxSerial.dll
https://ufile.io/o64cfpvd

Alain
« Last Edit: November 15, 2019, 01:37:47 pm by camomille »
 
The following users thanked this post: Gyro, indman

Offline indman

  • Super Contributor
  • ***
  • Posts: 1002
  • Country: by
Re: OWON VDS1022I Quick Teardown (versus the Hantek 6022be)
« Reply #426 on: November 15, 2019, 02:50:03 pm »
Captain Alain I have implemented your detailed recommendations in the same order, thank you very much! :-+
Eclipse starts, but I 'm alarmed by the message I highlighted in red. Is that okay?
 

Offline camomille

  • Regular Contributor
  • *
  • Posts: 98
  • Country: fr
Re: OWON VDS1022I Quick Teardown (versus the Hantek 6022be)
« Reply #427 on: November 15, 2019, 03:34:56 pm »
I have no mistakes on my new installation on Windows 7 64 bits and in english !
It may have been necessary to try without installing the Russian language right now.
0 errors ,normally it' s good ,the warning are not mistakes ,it must be because of the russian language.
What happens if you click on the white arrow in  a green circle (no need to be connected to vds1022)
You can close all the tabs that I forgot to close, except the Main.java which must always remain open .
« Last Edit: November 15, 2019, 03:51:10 pm by camomille »
 

Offline indman

  • Super Contributor
  • ***
  • Posts: 1002
  • Country: by
Re: OWON VDS1022I Quick Teardown (versus the Hantek 6022be)
« Reply #428 on: November 15, 2019, 03:53:27 pm »
Yes, the VDS1022 shell opens normally without a scope connection. :D
 

Offline camomille

  • Regular Contributor
  • *
  • Posts: 98
  • Country: fr
Re: OWON VDS1022I Quick Teardown (versus the Hantek 6022be)
« Reply #429 on: November 15, 2019, 04:20:58 pm »
You are a great chef,  :-+ :-+ ,you can now connected the VDS1022 ,close VDS1022 window and relaunch the white arrow in the green circle
I will do a little tutorial later to indicate how I search (but it takes a lot of nose) and it is important to know what you are looking for.
In any case, as there is no installation of this version of eclipse, you can simply put the eclipse folder in the trash and dezip it again in the "DEV" folder (not for java which is installed). :-DD
and if you plant the "workspace", you have a brand new one in the folder "Protect"
« Last Edit: November 15, 2019, 04:40:46 pm by camomille »
 

Offline indman

  • Super Contributor
  • ***
  • Posts: 1002
  • Country: by
Re: OWON VDS1022I Quick Teardown (versus the Hantek 6022be)
« Reply #430 on: November 15, 2019, 04:57:00 pm »
I 'm not afraid to know anything new, especially if there 's a teacher like you! ;D
My grey matter is still capable of it, I hope. :-DD
« Last Edit: November 15, 2019, 05:00:03 pm by indman »
 

Offline GyroTopic starter

  • Super Contributor
  • ***
  • Posts: 9410
  • Country: gb
Re: OWON VDS1022I Quick Teardown (versus the Hantek 6022be)
« Reply #431 on: November 15, 2019, 05:26:20 pm »
Many thanks for doing the writeups Alain.

indman's need is greater than mine (thanks to you, I don't actually have anything I want to change at the moment), but I will be following along.

Your Reply #425 made it sound sooo appealing!  ;D
Best Regards, Chris
 

Offline camomille

  • Regular Contributor
  • *
  • Posts: 98
  • Country: fr
Re: OWON VDS1022I Quick Teardown (versus the Hantek 6022be)
« Reply #432 on: November 16, 2019, 02:16:14 pm »
I first want to apologize to Gyro for monopolizing his thread for off-topic, but eventually it may be beneficial to others.
I do not intend to do a course on eclipse or Java because I'm not a specialist, but simply communicate some tips and tricks to help beginners (of course it will laugh professionals).
I preferred to make a document to not take up too much space.

https://ufile.io/lsx8je0u

As an example I took my search procedure to change the color of curves:
The research phase (2 modes):
1) with eclipse, the search only displays the first occurrence, you have to open the following folders to see everything.
Warning it tends to change tab.

873108-0

2) with Notepad ++
involves uploading the source folder (contained in version 1.0.23) to the "Protect" folder
, the search displays all the occurrences and in addition displays the notes in original Chinese which allows to make a copy/paste to a translator.
At first, we only have the word "red", so we start a search with Notepad ++,
we notice that many are called "color.red", we restart a search with "color.red".

873112-1

Now you have to be inspired by looking at the name of the JAR file containing the word "color.red",
I was inspired by "ChartDecorater" and I print it thanks to notepad++ which preserves syntactic colors.
Then I format the impression of this class in pencil and stabilo to understand and make notes

873118-2

Inspire by the paintLabels () function line 137 and line 172 wfm.paintWaveFormInfo (g2d, pc, r, cm, lr, cssm);
line 36 indicates wfm = WaveFormManager
print class WaveFormManager, pencil, stabilo

873124-3

inspire by the function WaveFormInfoControl () line 550 and line 584 wf.paintItem (g2d, pc, r, cm, false)
especially at line 580 there is wf.getChannelNumber ().
line 29 indicates wf = WaveForm
print Waveform class, pencil, stabilo

873128-4

Inspire by the paintItem () function line 289 and
line 306 LineUtil.paintChannelLabel (yb, y, bottom, g2d, String.valueOf (ci.getNumber () + 1), 2, onFront);
print LineUtil class, pencil, stabilo

873132-5

Analysis of the paintChannelLabel () function line 46
We can see that he draws the left label of the lines 118/119 and a line 111 to 116.
Only the color of the background "DARK_GRAY" is defined, it is necessary to go back for the color of the plot.
Return to the paintItem function of the WaveForm class
at line 300 ChannelInfo ci = wfi.ci; and 301 g2d.setColor (getColor ());
line 116 defined wfi = WaveFormInfo and in the class WaveFormInfo line 24 we read that ci = ChannelInfo
So we look in the class ChannelInfo and we find the RGB () line 117 and then the color for 4 channels 120 to 123 lines.
Simply replace "FF0000" with "00FF00" to switch channel 1 from red to green.

It was simple !!!
« Last Edit: November 16, 2019, 02:23:11 pm by camomille »
 
The following users thanked this post: Gyro, indman

Offline GyroTopic starter

  • Super Contributor
  • ***
  • Posts: 9410
  • Country: gb
Re: OWON VDS1022I Quick Teardown (versus the Hantek 6022be)
« Reply #433 on: November 16, 2019, 05:21:52 pm »
I first want to apologize to Gyro for monopolizing his thread for off-topic, but eventually it may be beneficial to others.

Hey Alain, there's absolutely no need for any apology to me!  :o

The 'teardown' portion of this thread has long run its course. You are adding great value by opening up the possibility to enhance and modify the S/W - I, for one, am very grateful to you!

There is nothing to stop people continuing to asking H/W or other questions or hopefully even post improvements at the same time.

As far as I'm concerned you are very on-topic, this is a natural and very welcome progression of the thread (which I have no claim on 'owning' anyway).

I am following your write-ups with interest and as much grey matter as I can muster!

Chris.
Best Regards, Chris
 

Offline camomille

  • Regular Contributor
  • *
  • Posts: 98
  • Country: fr
Re: OWON VDS1022I Quick Teardown (versus the Hantek 6022be)
« Reply #434 on: November 16, 2019, 05:34:50 pm »
Thanks Chris, but it's in my nature to communicate to help people with the little that I know. :phew:
 
The following users thanked this post: Gyro

Offline camomille

  • Regular Contributor
  • *
  • Posts: 98
  • Country: fr
Re: OWON VDS1022I Quick Teardown (versus the Hantek 6022be)
« Reply #435 on: November 17, 2019, 09:51:55 am »
Small tutorial for eclipse

To work on multiple versions of VDS1022, create a copy on the workspace 1.0.23 desktop and rename it as you want.
Then change the path:

873804-0

To create a JAR file (ignore messages):

873808-1

To debug with breakpoint:

873812-2
« Last Edit: November 17, 2019, 09:54:14 am by camomille »
 
The following users thanked this post: Gyro, indman

Offline GyroTopic starter

  • Super Contributor
  • ***
  • Posts: 9410
  • Country: gb
Re: OWON VDS1022I Quick Teardown (versus the Hantek 6022be)
« Reply #436 on: November 17, 2019, 11:53:22 am »
I've caught up with indman and also have the shell running under Eclipse. Thanks Alain.  :-+
Best Regards, Chris
 

Offline camomille

  • Regular Contributor
  • *
  • Posts: 98
  • Country: fr
Re: OWON VDS1022I Quick Teardown (versus the Hantek 6022be)
« Reply #437 on: November 17, 2019, 12:01:29 pm »
Glad you have also taken the step, anyway, it's a good experience.
Do not hesitate if you need advice and I can answer
 

Offline indman

  • Super Contributor
  • ***
  • Posts: 1002
  • Country: by
Re: OWON VDS1022I Quick Teardown (versus the Hantek 6022be)
« Reply #438 on: November 18, 2019, 05:45:39 pm »
it's possible (run with "org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar")
Mission accomplished
Hi camomille!
Can you name the files that have been changed for the Save button function? :)
Studying eclipse I get hard - I am not a programmer and not at all familiar with Java language. :palm:
« Last Edit: November 18, 2019, 05:47:23 pm by indman »
 

Offline camomille

  • Regular Contributor
  • *
  • Posts: 98
  • Country: fr
Re: OWON VDS1022I Quick Teardown (versus the Hantek 6022be)
« Reply #439 on: November 19, 2019, 07:49:00 am »
@indman

Everything is in my posts 327 and 331.
The goal was to discover the instruction that makes screenshots and adapt it to the bottom icon.

owon\com.owon.vds.foundation_1.0.0\com\owon\uppersoft\dso\view\pane\function\UtilityPane
the instruction screenshot (2 lines 260 and 261, see curly brackets)

874982-0

owon\com.owon.vds.foundation_1.0.0\com\owon\uppersoft\dso\view\sub\ButtonPane
the instruction to save text (line 107) that must be modified to obtain a screenshot.

874986-1

Line 107 has been modified after many tests (because I do not know Java either) to arrive at this change that works.

874990-2

Make with a practical addon on Notepad ++  "compare"
« Last Edit: November 19, 2019, 07:56:45 am by camomille »
 
The following users thanked this post: indman

Offline indman

  • Super Contributor
  • ***
  • Posts: 1002
  • Country: by
Re: OWON VDS1022I Quick Teardown (versus the Hantek 6022be)
« Reply #440 on: November 20, 2019, 11:49:40 am »
Hello to everyone!
After numerous experiments, I was able to combine in one archive all the advantages of version 1.0.23 with the excellent additions from Alain and the library from version 1.0.30.
I suggest you check this portable version on your devices.
In addition, I made some new icons for the shell and also updated the icon for the launcher VDS1022. Now just unpack this backup and run the shell with the VDS1022.exe file. If you already have USB drivers installed, everything should work normally. If no drivers are installed, you must install them by running install.bat from the USBDRV folder.  :)
https://drive.google.com/open?id=1nygEmjECjqWPxkZUylIh-6TrZdQV8evK
« Last Edit: November 20, 2019, 03:49:33 pm by indman »
 
The following users thanked this post: Gyro

Offline GyroTopic starter

  • Super Contributor
  • ***
  • Posts: 9410
  • Country: gb
Re: OWON VDS1022I Quick Teardown (versus the Hantek 6022be)
« Reply #441 on: November 20, 2019, 12:53:01 pm »
You're becoming quite the artist indman  :) I like the button tidy-ups.

BTW, the sel boxes look better with linear fill rather than radial (the unsl ones are linear anyway). You still have a hint of Red in your sel1. I modified the sel2 to match.

The unsl ones don't need to be changed.
« Last Edit: November 20, 2019, 01:03:06 pm by Gyro »
Best Regards, Chris
 
The following users thanked this post: indman

Offline Tinderbox (UK)

  • Contributor
  • Posts: 13
  • Country: gb
Re: OWON VDS1022I Quick Teardown (versus the Hantek 6022be)
« Reply #442 on: November 20, 2019, 03:31:12 pm »
I was going to buy one from Ebay to get the best prices, But the sellers dont know what they are selling, The title of their listing is for an OWON VDS1022I but the photo`s are from an OWON VDS1022, The non isolated version.

I messaged two sellers and got nonsense reply`s so i bought from neither.

Being in the UK they hit us hard with import charges on anything over £15 and that includes shipping, So i order from UK sellers only when the value is over £15, As if i order like from AliExpress anything over £15 You have to add 20% tax and £8 Royal Mail handling charge.

John.
 

Offline GyroTopic starter

  • Super Contributor
  • ***
  • Posts: 9410
  • Country: gb
Re: OWON VDS1022I Quick Teardown (versus the Hantek 6022be)
« Reply #443 on: November 20, 2019, 05:58:18 pm »
There is no difference in the labelling on the top of the unit between the non-isolated and isolated versions. They both say VDS1022. The isolation is a PCB population option.

The only way it is distinguished is on the serial number label on the underside.
Best Regards, Chris
 
The following users thanked this post: Tinderbox (UK)

Offline Tinderbox (UK)

  • Contributor
  • Posts: 13
  • Country: gb
Re: OWON VDS1022I Quick Teardown (versus the Hantek 6022be)
« Reply #444 on: November 21, 2019, 08:57:29 am »
There is no difference in the labelling on the top of the unit between the non-isolated and isolated versions. They both say VDS1022. The isolation is a PCB population option.

The only way it is distinguished is on the serial number label on the underside.

That seems a strange practice, But it explains what i have been seeing, Thanks

John.
 

Offline crai

  • Newbie
  • Posts: 5
  • Country: uy
Re: OWON VDS1022I Quick Teardown (versus the Hantek 6022be)
« Reply #445 on: November 21, 2019, 05:01:13 pm »
First apologize for my English since it is not my first language.
I bought a VDS1022I 2 weeks ago and it is a good oscilloscope for its price. I just found this thread and there is a lot of information about it. Thank you all for that.
I installed the original software version 1.0.29 and it works mostly well. The only annoying fault I found is that the pulse trigger does not respect the specified time. Moreover, the time x10 must be specified. For example, to synchronize with a 1mS pulse, you must specify in the 10mS software.
I downloaded a version 1.0.24 from the Internet and it has the same bug, but since this version included the source code, I decided to try to compile it and correct the bug. Fortunately I was able to do it without inconvenience and it works perfectly (comment on line 30 of ClockTimeAdjuster.java [// en - = 1;]).
Now in this thread I see that camomille did a similar job with Eclipse and 1.0.23 (which is mostly the same as 1.0.24 except for some detail and comments). I did it with Netbeans.
Unfortunately in 1.0.24 I got a new bug (which is already reported in this thread) which is the USB disconnection in stop mode. In version 1.0.29 it is not disconnected from USB in stop mode, therefore I decided to sniffer the USB connection with both versions and see the difference. And bingo! Version 1.0.24 does not generate any traffic while in stop mode, but version 1.0.29 continues to send and receive "keep alive" packets every 2 seconds. I disassembled some classes in version 1.0.29 to compare them, and I could implement in 1.0.24 the sending of "keep alive" packages (heartbeat), so now version 1.0.24 is fully functional and modifiable and compilable.
Great thread about the VDS1022 !!!


PS: Gyro, my oscilloscope has the inscription "VDS1022I" on the case.

 
The following users thanked this post: Gyro, indman

Offline GyroTopic starter

  • Super Contributor
  • ***
  • Posts: 9410
  • Country: gb
Re: OWON VDS1022I Quick Teardown (versus the Hantek 6022be)
« Reply #446 on: November 21, 2019, 05:50:57 pm »
Hello crai,

Welcome to the forum, and especially to this thread! :)   Please don't be concerned about your English, it's very good.

You've clearly uncovered some very useful information, pretty good for a mere 2 weeks ownership! It sounds as if you are fluent in Java.

I've never noticed the pulse width trigger issue, although I can't remember using it (surprisingly) - but it seems that others haven't either, as I don't remember seeing it flagged.

The lack of keep-alive packets prior to V1.0.29* would certainly explain the issue that indman saw (and why copying the foundation file from V1.0.27 29* fixed it), I don't know if the need for this is OS or hardware related, as, again, it doesn't appear to issue for many people - although clearly common enough for Owon to have needed to release an update for it.

I've never come across V1.0.24, it's certainly not in my archive (hence camomille using 1.0.23) . Does this include sources too? I would certainly appreciate a link, if only for completeness reasons. It would be the latest version with sources available (unless a 1.0.25 or 26) were ever made public) if so.

Interesting that Owon have now seen fit to introduce an 'I' version to the case silkscreen, it certainly makes sense once the volume is there. I don't know when that happened (clearly after I bought mine). I suspect that most ebay sellers are still using stock photos.

Thanks again for joining us and bringing so much useful information. Time to think about a new features wishlist.  ;)


Edit: *USB Heartbeat almost certainly added at V1.0.27
« Last Edit: November 21, 2019, 07:01:28 pm by Gyro »
Best Regards, Chris
 

Offline indman

  • Super Contributor
  • ***
  • Posts: 1002
  • Country: by
Re: OWON VDS1022I Quick Teardown (versus the Hantek 6022be)
« Reply #447 on: November 21, 2019, 06:04:52 pm »
I think that this OWON VDS1022 (I) model was very successful in the segment of inexpensive USB scope. It 's just not as popular and known in people as Instrustar/Hantek. The more VDS1022 owners appear in this topic, the more useful information we can gather and improve this product together. ;)
I noticed another problem in the mathematical channel that is present in all versions of the shell, including 1.0.30. The selected range value (for example,5V) is not saved when the program is reloaded. There is also no preservation of this meaning if you remove the bird from the function of mathematics and put it again.
« Last Edit: November 21, 2019, 06:42:01 pm by indman »
 

Offline GyroTopic starter

  • Super Contributor
  • ***
  • Posts: 9410
  • Country: gb
Re: OWON VDS1022I Quick Teardown (versus the Hantek 6022be)
« Reply #448 on: November 21, 2019, 06:45:10 pm »
I was just trying to update my version changes list...

It looks as if the USB heartbeat was maybe first introduced in V1.0.27 (this is the version that you took your library file from to fix your pause issue, indman?).

I was wondering if this could be related to the change of FPGA firmware from V3.5 to V3.7, but this happened at V1.0.28.

It's at moments like this, when new information becomes available, that I really wish that Owon knew how to write release notes!  |O
Best Regards, Chris
 

Offline indman

  • Super Contributor
  • ***
  • Posts: 1002
  • Country: by
Re: OWON VDS1022I Quick Teardown (versus the Hantek 6022be)
« Reply #449 on: November 21, 2019, 06:56:46 pm »
It looks as if the USB heartbeat was maybe first introduced in V1.0.27 (this is the version that you took your library file from to fix your pause issue, indman?).
Yes,V1.0.27. I 'm glad the crai confirmed the shell problem with the Pause button. I thought it was only on my scope.
But, in the portable version of the shell I introduced earlier, I used a library from V1.0.30
« Last Edit: November 21, 2019, 07:01:14 pm by indman »
 
The following users thanked this post: Gyro


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf