openhantek icon indicating copy to clipboard operation
openhantek copied to clipboard

support for DSO-6082BE

Open alexanderustinov opened this issue 7 years ago • 9 comments

Hi, recently have become a user of DSO-6082BE. Would like to help with support for that model.

For now have tried:

  1. Extracting firmware from windows cd with FirmwareExtractor. It fails with BFD: hex/Hantek6082BEAMD642.sys: Warning: Ignoring section flag IMAGE_SCN_MEM_NOT_PAGED in section .text BFD: hex/Hantek6082BEAMD642.sys: Warning: Ignoring section flag IMAGE_SCN_MEM_NOT_PAGED in section .rdata BFD: hex/Hantek6082BEAMD642.sys: Warning: Ignoring section flag IMAGE_SCN_MEM_NOT_PAGED in section .data BFD: hex/Hantek6082BEAMD642.sys: Warning: Ignoring section flag IMAGE_SCN_MEM_NOT_PAGED in section .pdata Section .data found (starting at 0x3500, 272 bytes) Symbol _firmware found (offset 0xffffffffffffcb00, 0 bytes) Symbol _loader found (offset 0xffffffffffffcb00, 272 bytes) Can't get firmware contents: Bad value
  2. Dumb changes of DSO6022.cpp to make it fit DSO6082. (firmware was already loaded with virtual windows machine) For that openhantek fails with Sending control command e0 failed: Pipe error Sending control command e1 failed: Pipe error Sending control command e2 failed: Pipe error Sending control command e3 failed: Pipe error Getting sample data failed: "Pipe error" Sending control command e0 failed: Pipe error Sending control command e1 failed: Pipe error Sending control command e2 failed: Pipe error Sending control command e3 failed: Pipe error Getting sample data failed: "Pipe error" terminate called after throwing an instance of 'std::length_error' what(): vector::_M_default_append

Would be grateful for directions (if any) - i think i cannot move it further by myself.

alexanderustinov avatar Jan 11 '18 16:01 alexanderustinov

Try to imitate any other of the supported DSOs. If it doesn't work, at least a bit, there is probably some research necessary to determine the correct commands.

davidgraeff avatar Jan 11 '18 21:01 davidgraeff

I am having similar problem with 6074.

I have examined the fwget.sh script and noticed that the 6022 drivers are not downloaded and extracted into firmware and loader. Why is this? Is it because that device doesn't need firmware to be downloaded? Perhaps that would be true for the 6074 as well?

Assuming I don't have to worry about downloading firmware to the 6074, my problem would stem from a difference in messages between 6022 and 6074, so it would be good to know about firmware download so I could concentrate on reverse engineering the messaging.

jimbeggs avatar Feb 04 '18 17:02 jimbeggs

It doesn't download the firmware because hantek changed the scheme of file storage on their site - script gets 404 when tries to download files. But there is more: if one takes files from cd extractor still could not handle new firmware data, so it seems we need to rewrite it. For now i ended up using windows vm with installed drivers for uploading firmware.

alexanderustinov avatar Feb 05 '18 06:02 alexanderustinov

I also own a 6082BE an being interested in joining the project for adding that device. I am familiar with Qt, but I am not able to extract the firmware from the sys driver.

@alexanderustinov I did not succeed in your way. The "Getting sample data failed: "Pipe error" " is still there.

Thx a lot!

Beerlesklopfer avatar Jul 01 '18 01:07 Beerlesklopfer

I also have the DSO-6082BE and just got the program compiled from source on linux.

lsusb
Bus 001 Device 016: ID 04b4:6081 Cypress Semiconductor Corp. 

Where should I start with trying to dump the firmware? If I can get this one working I am also interested in purchasing an even better Hantek scope to test with as well. (one of the 4 channel models possibly)

Edit: Finally found the add device page link. https://github.com/OpenHantek/openhantek/blob/master/docs/adddevice.md

BillFleming avatar Jul 23 '18 01:07 BillFleming

I managed to extract the dso6082be-firmware (the dso6082be-loader is exactly the same as dso6022be-loader) from the windows driver if anyone interested. I tried and added the scope into the source but I'm still getting Sending control command eX failed: Pipe error.

matuszpd avatar Dec 20 '18 07:12 matuszpd

@matuszpd Tree has two files for dso6022be: openhantek/res/firmware/dso6022be-firmware.hex openhantek/res/firmware/dso6022be-loader.hex

Can you confirm that both are same for 6082be?

alexanderustinov avatar Jan 17 '19 15:01 alexanderustinov

No, as I mentioned only the loader is exactly the same, the firmware is different.

matuszpd avatar Jan 25 '19 09:01 matuszpd

@matuszpd Would you please make a PR with extracted files?

alexanderustinov avatar Sep 04 '19 13:09 alexanderustinov