Difference between revisions of "Hantek 6022BE"
Uwe Hermann (talk | contribs) (Teardown.) |
Uwe Hermann (talk | contribs) |
||
Line 1: | Line 1: | ||
[[File:Hantek 6022be.jpg|thumb|right|Hantek 6022BE]] | [[File:Hantek 6022be.jpg|thumb|right|Hantek 6022BE]] | ||
The [http://www.hantek.com/en/ProductDetail_2_31.html Hantek 6022BE] is a USB-based, 2-channel oscilloscope with an analog bandwidth of 20MS/s sampling rate. | The [http://www.hantek.com/en/ProductDetail_2_31.html Hantek 6022BE] is a USB-based, 2-channel oscilloscope with an analog bandwidth of 20MS/s and 48MS/s sampling rate. | ||
See [[Hantek_6022BE/Info]] for | See [[Hantek_6022BE/Info]] for more details (such as '''lsusb -v''' output) about the device. | ||
== Hardware == | == Hardware == | ||
Line 74: | Line 74: | ||
== Resources == | == Resources == | ||
* [http://1drv.ms/1gWOsUF Vendor software and manuals] | |||
* [https://web.archive.org/web/20140422004136/http://www.openhantek.org/forum/topic/4/13/ openhantek.org forum: Protocol info] | |||
[[Category:Device]] | [[Category:Device]] | ||
[[Category:Oscilloscope]] | [[Category:Oscilloscope]] | ||
[[Category:In progress]] |
Revision as of 19:51, 12 March 2016
The Hantek 6022BE is a USB-based, 2-channel oscilloscope with an analog bandwidth of 20MS/s and 48MS/s sampling rate.
See Hantek_6022BE/Info for more details (such as lsusb -v output) about the device.
Hardware
- Main chip + USB: FX2LP
- Main oscillator: unknown
Photos
Another teardown:
Protocol
The protocol was reverse engineered and documented in: https://github.com/rpcope1/Hantek6022API/blob/master/REVERSE_ENGINEERING.md
Copied from that page the main data:
Oscilloscope Command | bRequest Value | Other Notes |
---|---|---|
Set CH0 voltage range | 0xE0 | Possible values: 1,2,5,10 (5V, 2.5V, 1V, 500mV). |
Set CH1 voltage range | 0xE1 | Possible values: 1,2,5,10 (5V, 2.5V, 1V, 500mV). |
Set Sampling Rate | 0xE2 | Possible values: 48, 30, 24, 16, 8, 4, 1 (MHz) and 50,20,10 (*10kHz). |
Trigger Oscilloscope | 0xE3 | Clear the FIFO on the FX2LP |
Read/Write EEPROM | 0xA2 | Read or write the eeprom built into the scope. |
Read/Write Firmware | 0xA0 | Read or write the scope firmware. Must be done on scope initialization |
All commands are sent with index = 0x00, the calibration commands are sent with value 0x08, the 0xEx requests are sent with value 0x00, and the value for R/W command is dependent on the Cypress protocol for interacting with the firmware.
Additionally, a bulk read from end point 0x86 reads the current contents of the FIFO, which the ADC is filling. The reference Python libusb code should give further insight into the means for which to interact with the device.
Extracting the firmware
The firmware was extracted, reverse engineered and re-implemented by rpcope1 jhoenicke on github. The open-source firmware can be found at https://github.com/rpcope1/Hantek6022API/tree/master/PyHT6022/HantekFirmware/custom