Author Topic: Hantek - Tekway - DSO hack - get 200MHz bw for free  (Read 657226 times)

RavenSpy and 9 Guests are viewing this topic.

Offline ccatt

  • Contributor
  • Posts: 8
Re: Hantek - Tekway - DSO hack - get 200MHz bw for free
« Reply #435 on: March 30, 2011, 10:23:19 PM »
Happy every day!Sorry to trouble you, but I need your help.

My DSO firmware version is 2.6.3,
 by measurement,the last pin of  UART  is 3.3v on the picture,not 0v. if USB UART converter 's "gnd "to the last pin of  UART in DSO , can't  this instrument  be damaged ?  now  rx0 : 0.1v   rx1: 0v

just buy H-JTAG and USB UART converter ,   but the  USB UART converter not  work,

I felt very strange: fw2dump.zip can dump 3   files(boot.bin kernel.bin root.bin  ),but  fw_backupV3.zip  can't.

If only use H-JTAG, What should I do?  How do you define the offset of the 3 file  .

How do I  downgrade to 2.6.2 or  lower?

(dst1kb_2.06.3_1202b_fact(110118.0).up  ) IS THIS ONLY FOR TEKWAY DST1202B?
 
How did the "bin" file compile or decompile?
 
What's changed, Where's changed, Every version firmware?

And finally analyze this, What will I need to access and read for this course?
« Last Edit: March 30, 2011, 10:25:33 PM by ccatt »

Offline RobertB

  • Contributor
  • Posts: 7
Re: Hantek - Tekway - DSO hack - get 200MHz bw for free
« Reply #436 on: March 31, 2011, 12:10:29 AM »
Hi!

Linux version is still 2.6.13. So this is actually totally outdated. I even had problems finding linux-2.6.13-QQ2440-xxxxxx.tgz, which seems to be a working kernel for the mini2440 board. If anybody happens to have hold on this, an upload would be highly appreciated.

My firmware is exactly (even the "build-numbers") what is distributed right now by Hantek as an update.

The JTAG-header is 2.00mm, the 60- (64?) pin IO-connector is 1.27mm.

I am a little concerned about the old kernel. While it should be possible to compile the sd-driver supplied with qq2440, any new drivers will be hard. For example, compat-wireless only supports >= 2.6.24, compat-wireless-old supports 2.6.21. So it will be very hard to get for example AR9170usb to work (or any other recent USB wlan stick).

Further, I was not able to get hold of any hint on the actual kernel config used in the DSO.


BR
Robert

Offline rf-loop

  • Super Contributor
  • ***
  • Posts: 1184
  • Country: fi
  • Starting with DLL21
    • Owon information
Re: Hantek - Tekway - DSO hack - get 200MHz bw for free
« Reply #437 on: March 31, 2011, 01:43:21 AM »
I'm not concerned about Linux version. It is embedded linux and for user it is Oscilloscope (not linux entertainment machine).  User do not need even know about system behind display and knobs. It works and linux version do not make any problem afaik. Of course if people want make some modifications and if he want make it as game box or tv or music box he need use 2.6.13 compaible things.

If I'm concerned something it is analog channel and ADC system design and quality. But then I remember - if I think this quality... it is <1k$ scope and in this class it is really unexpected good.

Building guality (main board) seems littlebit better now in these new HW. (I have look only some old and new units so I can tell only these units what I have checked)

EU: Siglent and some selected Owon models what we have adopted. All with our lab deep Q.C. in Finland.  Also surplus test equipments.  Repair and modification service.  Local Owon SDS-Series and Siglent  repair service for our customers.  We do not sell outside EU.
(aka: aghp, aghp55)

Offline Igor

  • Contributor
  • Posts: 25
Re: Hantek - Tekway - DSO hack - get 200MHz bw for free
« Reply #438 on: March 31, 2011, 01:58:23 AM »
just buy H-JTAG and USB UART converter , but the  USB UART converter not  work
I broke into the brains oscilloscope through such devays:



http://cgi.ebay.com/USB2-0-RS232-TTL-Converter-Module-PL2303-4pcs-cable-/270726085956?pt=LH_DefaultDomain_0&hash=item3f08883d44

You can apply the service cord from your old mobile phone.

« Last Edit: March 31, 2011, 02:12:45 AM by Igor »

Offline Mechatrommer

  • Super Contributor
  • ***
  • Posts: 5638
  • Country: my
  • reassessing directives...
Re: Hantek - Tekway - DSO hack - get 200MHz bw for free
« Reply #439 on: March 31, 2011, 06:01:26 AM »
oscilloscope through such devays:
how?

Offline tinhead

  • Super Contributor
  • ***
  • Posts: 1751
  • Country: 00
    • If you like my hacks, send me a donation
Re: Hantek - Tekway - DSO hack - get 200MHz bw for free
« Reply #440 on: March 31, 2011, 11:00:49 AM »
My DSO firmware version is 2.6.3,
 by measurement,the last pin of  UART  is 3.3v on the picture,not 0v. if USB UART converter 's "gnd "to the last pin of  UART in DSO , can't  this instrument  be damaged ?  now  rx0 : 0.1v   rx1: 0v


yes, +3.3V is correct, my very first picture was wring - updated already to correct pinout.

just buy H-JTAG and USB UART converter ,   but the  USB UART converter not  work,


did you set right paramters in your terminal application ? com port number (the one assigned to your usb uart adapter), 115200 8/N/1 for baudrate are proper values.
If these things are ok you should see something during DSO boot process - if not maybe txd/rxd are connected vice versa - change them and try again.

Which H-JTAG ? USB or LPT version ? It dind't really matter for function, but for speed ...

I felt very strange: fw2dump.zip can dump 3   files(boot.bin kernel.bin root.bin  ),but  fw_backupV3.zip  can't.


this is interessting, you have Tekway right ? I got no issues here on both Hantek and Tekway DSOs.
Can someone test it ? I mean this backup utility:

http://www.eevblog.com/forum/index.php?topic=1571.msg35683#msg35683


If only use H-JTAG, What should I do?  How do you define the offset of the 3 file  .

with H-JTAG, or actually H-Flasher software you can backup the whole NAND or restore it. If you backup via h-jtag/h-flasher you have to ensure that OOB blocks are also saved,
H-Jatg software have be default no drivers doing this - but you can find some here:

http://www.mikrocontroller.net/topic/163836

If you wish to restore a backup created with the in here posted fw_backup utility (these 3 files) you
will have to merge them to one file (together with 2 other files which ar common for all), as described here:

http://www.eevblog.com/forum/index.php?topic=1571.msg26926#msg26926

The resulting file can be restored via h-jtag/h-flasher (with loaded s3c2440 + OOB drivers)

How do I  downgrade to 2.6.2 or  lower?


in generally if you have already 2.6.3 you can just copy the dso.exe from earlier firmware version to you DSO root file system (a good idea is to make a copy of your existing dso.exe)
You will have to connect via uart to the shell, kill dso.exe process (which will actually happens during login to the shell) , insert usb stick with the older version of dso.exe (in will get mounted automatically into /mnt
and copy the old dso.exe to /

You can download older Tekway firmware (2.5 something) and extract it to get the old dso.exe version.

Additionally to this you will have to copy language files, they are version dependant, they located in /OurLanguages directory. the older firmware version does not have these files, so it is enough to
replace the dso.exe file.

After reboot the you will be ready with downgrade.

(dst1kb_2.06.3_1202b_fact(110118.0).up  ) IS THIS ONLY FOR TEKWAY DST1202B?
[/quote]

yes, it is. Tekway and Hantek are using exact the same dso.exe, help files, almost all drivers ... but not all.
display driver ( /dso/driver/dso-lcd.ko) and logo files (/logo directory) are manufacturer dependant, so don't mix them.

How did the "bin" file compile or decompile?


which bin ? you mean the dso.exe (which is the main dso application) or you mean the 3 files created during backup ?

For the dso.exe any ARM disassembler will be good, for example IDA

For these bin files, you can't them just decompile :)

Actually the boot.bin is single boot loader, it can be decompiled with some advanced tricks, but there is no need to do it.
Kernel.bin is just a copy of kernel, sure this can be extracted but for what reason ?
root.bin is copy of the linux root file system, it is binary copy, with OOB blocks !!!, you can only mount it to other linux computer (look for how to mount YAFFS)
To get the root file system files it is easier to connect over uart to shell and create a tarball to usb stick (or even just copy if you don't care about broken permissions)


What's changed, Where's changed, Every version firmware?

ohh, this is very bad question, actually for 2.6.3 there is description of changes on chinese Tekway website, as you from china it will be easy for you to read it.
What's in older version is writen down in user manual ... unfortunately both Hantek and Tekway are not smart enough to post firmware changes (for each version) on their websites ...

If you wish to see my bug report (having some infos about what inside which version) look here :

http://www.mikrocontroller.net/topic/205820?page=1#2036474


And finally analyze this, What will I need to access and read for this course?


honestly i don't know what you mean ?
I don't want to be human! I want to see gamma rays, I want to hear X-rays, and I want to smell dark matter ...
I want to reach out with something other than these prehensile paws and feel the solar wind of a supernova flowing over me.

Offline tinhead

  • Super Contributor
  • ***
  • Posts: 1751
  • Country: 00
    • If you like my hacks, send me a donation
Re: Hantek - Tekway - DSO hack - get 200MHz bw for free
« Reply #441 on: March 31, 2011, 11:05:31 AM »
I'm not concerned about Linux version. It is embedded linux and for user it is Oscilloscope (not linux entertainment machine).  User do not need even know about system behind display and knobs. It works and linux version do not make any problem afaik. Of course if people want make some modifications and if he want make it as game box or tv or music box he need use 2.6.13 compaible things.

good point, i have even some other (almost new) devices having linux 2.4.18, as long they work i don't really care what kernel version on it.
Sure, 2.4.18 is overkill today, but it works.

For these HanTekway DSOs, 2.6.13 is good enough, for sure it sucks to compile drivers for new hardware line wlan-sticks, but to be very honest it is still possible with some effort.
for all "older" hardware revisions i do have working Ethernet-addon board solution, for the new hardware revision Elec3i is producing addon boards (and Hantek / Tekway as well, but no idea if they will ever sell them to existing customers - which Elec3i will do). Btw, Ele3i is also working on Wireless solution, so you can ask Pascal when they will be available.

But then I remember - if I think this quality... it is <1k$ scope and in this class it is really unexpected good.
Building guality (main board) seems littlebit better now in these new HW. (I have look only some old and new units so I can tell only these units what I have checked)

oh yeah, i saw these pictures posted by Robert and the quality seems to be now much better, overall design seems to be also optimized to remove some hardware bugs (like skew time between channels).
Even the old hardware was worth the money, the new revision is even better.
« Last Edit: April 01, 2011, 04:42:52 AM by tinhead »
I don't want to be human! I want to see gamma rays, I want to hear X-rays, and I want to smell dark matter ...
I want to reach out with something other than these prehensile paws and feel the solar wind of a supernova flowing over me.

Offline ccatt

  • Contributor
  • Posts: 8
Re: Hantek - Tekway - DSO hack - get 200MHz bw for free
« Reply #442 on: March 31, 2011, 11:31:34 PM »
 What's changed, Where's changed, Every version ?  
 Not different apparatus, is firmware(include High to low).
How to decompose the  firmware project?   IS bin ,*.up or other?How do you get the DSO.exe .Have you,the source program?
Use C Language  or  assembly language ?
How to analyze the every part of file ?
« Last Edit: March 31, 2011, 11:33:29 PM by ccatt »

Offline ccatt

  • Contributor
  • Posts: 8
Re: Hantek - Tekway - DSO hack - get 200MHz bw for free
« Reply #443 on: April 05, 2011, 06:46:37 PM »
not answer?why? Email to me, if it is not inconvenient to you.
Because I wants to do by myself .But I can't. Have no way of doing it; not know where to start.
Finally ,Thanks a lot  .
« Last Edit: April 05, 2011, 07:11:05 PM by ccatt »

Offline SoftwareSamurai

  • Regular Contributor
  • *
  • Posts: 170
  • Country: us
Re: Hantek - Tekway - DSO hack - get 200MHz bw for free
« Reply #444 on: April 05, 2011, 09:10:36 PM »
@ccatt

The best place to start is at the beginning of this thread. Read every post. Then you'll have the answers to your questions.

This DSO's internal workings are pretty easy to understand, so if you read this entire thread and still don't understand how this DSO works, you should move onto something else.

Please understand that I'm not trying to be mean or anything. It's just that your questions have already been answered in this thread.

FYI: No, no one here has the source code to the DSO.exe file, so we can't tell you what language it was written in. (I'll take a guess and say C, but what does that matter?)

Offline tinhead

  • Super Contributor
  • ***
  • Posts: 1751
  • Country: 00
    • If you like my hacks, send me a donation
Re: Hantek - Tekway - DSO hack - get 200MHz bw for free
« Reply #445 on: April 06, 2011, 04:59:28 AM »
here we go ...

Attached LAN-Addon board files (Eagle 5.11 format) for the hardware revision 0, so all Hantek / Tekway DSOs produced
before April 1st 2011.

The Addon board is CS8900A based, the necessary Linux driver is already preinstalled in all firmware versions.
Network setup here :

http://www.eevblog.com/forum/index.php?topic=1571.msg36087#msg36087

As you can see the PCB is monted with two screews/distance spacers (Harwin Spacers R30-3001102).

It works so far up to 10Mbit, no issues except the fact that the driver is not doing CS8900 reset during soft-reboot,
so for clean reboot i have to power off/on.

The attached Eagle files can be used free/commercially, so no issue if someone (from China?) wish to produce some PCBs.
I will not, just because Hantek/Tekway changed hardware revision no idea how many ppl would buy the Addon-board.

EDIT: hmm, attached files got removed while forum was migrated, so here they are again:
« Last Edit: May 01, 2012, 07:43:03 PM by tinhead »
I don't want to be human! I want to see gamma rays, I want to hear X-rays, and I want to smell dark matter ...
I want to reach out with something other than these prehensile paws and feel the solar wind of a supernova flowing over me.

Offline e-pirate

  • Regular Contributor
  • *
  • Posts: 60
  • Country: ru
    • www.e-pirate.ru
Re: Hantek - Tekway - DSO hack - get 200MHz bw for free
« Reply #446 on: April 06, 2011, 09:02:20 PM »
Hi, folks!
First of all I would like to thank all of you for this topic. I was searching for inexpensive DSO to replace my old analog Russian 60 MHz single channel 65A that I've got for less than 60 backs 5 years ago right before I found this topic. My first choice was Rigol, but after reading of all ~28 pages, I decided to get HanTekWay. So, I've ordered mine Hantek DSO5102M (actually B) from Mr. Pioneer Huang from Aliexpress/Alibaba cause it was only available with English front panel and I'm to lazy to make one by myself. I would strongly recommend Mr. Pioneer as a honest seller and a very helpful person. I received my DSO in a perfect new condition, except the box, but I don't care. I wasn't lucky to get a "new" hardware, but I was lucky enough to get Tekway's 1.00.3 mainboard with 200 MHz ready out of the box. I can see all input stages resistors are 200 MHz version, so, seems that no soldering needed at all. The thing I definitely don't lake at all, is how it all soldered. I thinks kids in kindergarten do better! Resistors and capacitors sometimes are more than a half case out of there place, flux is everywhere and I wasn't able to wash it out with isopropyl alcohol and even with FluxOff! It's sticky and as I'm going to install fan, all this will get tons of dust. One of 4 ADC radiators is missing. Despite all that I'm satisfied with how this thing work and especially screen.
I haven't made any software/hardware upgrade before I get some very-very fast rising edge generator like http://www.i9t.net/fast-pulse/fast-pulse.html to be able to see difference and good probes.
For now, I like to know is at a good idea to apply Cramolin FluxOff to wash PCBs and where SN is stored?

Offline tinhead

  • Super Contributor
  • ***
  • Posts: 1751
  • Country: 00
    • If you like my hacks, send me a donation
Re: Hantek - Tekway - DSO hack - get 200MHz bw for free
« Reply #447 on: April 06, 2011, 09:16:54 PM »
I wasn't lucky to get a "new" hardware, but I was lucky enough to get Tekway's 1.00.3 mainboard with 200 MHz ready out of the box. I can see all input stages resistors are 200 MHz version, so, seems that no soldering needed at all.
aha, so check the i2c.log, maybe it is rebranded 200MHz model.

The thing I definitely don't lake at all, is how it all soldered. I thinks kids in kindergarten do better! Resistors and capacitors sometimes are more than a half case out of there place, flux is everywhere and I wasn't able to wash it out with isopropyl alcohol and even with FluxOff!
take a picture of that ...

One of 4 ADC radiators is missing.
that's ugly

For now, I like to know is at a good idea to apply Cramolin FluxOff to wash PCBs and
... avoid using PVC and polysterene. ... hmm, i would use pure Isopropanol (99.7%).
Everything except the cap trimmers would have no problems with it.

where SN is stored?
in the EEPROM, located between display connector and front USB.
Additionaly you can see all model changes in the i2c.log file (directly in root dir).
I don't want to be human! I want to see gamma rays, I want to hear X-rays, and I want to smell dark matter ...
I want to reach out with something other than these prehensile paws and feel the solar wind of a supernova flowing over me.

Offline project

  • Contributor
  • Posts: 34
Re: Hantek - Tekway - DSO hack - get 200MHz bw for free
« Reply #448 on: April 06, 2011, 09:44:33 PM »
For wash the flux, isopropyl alcohol won't work good. Most industrial flux, no clean flux are harder than rosin flux, not dissolved in alcohol or water too much. USE lacquer thinner, banana oil, paint thinner, acetone, xylene, all smell bad and dangerous. a little brush will work faster. take the battery off, wash two or three times, till no sticky feelling. blow dry before power it on.  I think this caused by product line wasn't adjust properly, and QA not good too.

 

Offline tinhead

  • Super Contributor
  • ***
  • Posts: 1751
  • Country: 00
    • If you like my hacks, send me a donation
Re: Hantek - Tekway - DSO hack - get 200MHz bw for free
« Reply #449 on: April 06, 2011, 10:03:01 PM »
I think this caused by product line wasn't adjust properly, and QA not good too.

^^ maybe that's why this one was suposed to be for chinese market.
I don't want to be human! I want to see gamma rays, I want to hear X-rays, and I want to smell dark matter ...
I want to reach out with something other than these prehensile paws and feel the solar wind of a supernova flowing over me.


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf