Discussion:
[sigrok-devel] Hantek 6022BL vs. fx2lafw, WinUSB and Zadig
Lauren Weinstein
2016-02-28 22:28:55 UTC
Permalink
I suspect I'm missing something basic re the sigrok architecture. I'd
like to get the Hantek 6022BL up. The BL is essentially the same as the
BE, with the logic analyzer interface actually populated and externally
accessible (unpopulated in the BE). Presumably they have different USB
product IDs as well.

These are FX2LP-based units.

My assumption was that it should be possible to use the fx2lafw firmware
with the BL (or BE, for that matter).

I started testing under linux but had some build issues, and switched
to using the pre-built code on Win7.

Here's the sequence:

Had BL working with Hantek drivers and Hantek apps.

Used Zadig to switch the BL device to the WinUSB driver.

WinUSB driver successfully loads when BL is plugged
back in (listed as Hantek6022BL using libwdi in device manager).

And that's as far as I can get. Attempts to run sigrok-cli or PulseView
show no device on scan runs, irrespective of driver selection (e.g.
Hantek DSO, fx2lafw, etc.)

Am I simply missing some necessary identifying parameter somewhere,
or is there some more fundamental reason why this shouldn't work?

Thanks again.

--Lauren--
Lauren Weinstein (***@vortex.com): http://www.vortex.com/lauren
Founder:
- Network Neutrality Squad: http://www.nnsquad.org
- PRIVACY Forum: http://www.vortex.com/privacy-info
Co-Founder: People For Internet Responsibility: http://www.pfir.org/pfir-info
Member: ACM Committee on Computers and Public Policy
Lauren's Blog: http://lauren.vortex.com
Google+: http://google.com/+LaurenWeinstein
Twitter: http://twitter.com/laurenweinstein
Tel: +1 (818) 225-2800 / Skype: vortex.com
I have consulted to Google, but I am not currently
doing so -- my opinions expressed here are mine alone.
Uwe Hermann
2016-03-14 16:46:04 UTC
Permalink
Hi Lauren,

quick update below.
Post by Lauren Weinstein
I suspect I'm missing something basic re the sigrok architecture. I'd
like to get the Hantek 6022BL up. The BL is essentially the same as the
BE, with the logic analyzer interface actually populated and externally
accessible (unpopulated in the BE).
Kinda, but not really. The unpopulated potential FX2 (and other
unpopulated pads) from 6022BE are gone in the 6022BL, at least in the
version that I have. The other FX2 is used for both functionality (either
scope or LA, but you cannot have both at the same time apparently).

Teardowns from me for both devices:

http://sigrok.org/wiki/Hantek_6022BE
http://sigrok.org/wiki/Hantek_6022BL
Post by Lauren Weinstein
Presumably they have different USB
product IDs as well.
There's also lsusb info for all devices and cases linked from the wiki
pages above.

The 6022BL (my model at least) has a button which controls with which
VID/PID it comes up. Either 04b4:602a (scope usage) or 0925:3881
"Lakeview Research Saleae Logic" (Saleae Logic VID/PID, so fx2lafw works
out of the box as 8-channel 24MHz logic analyzer).

(No, this is not a Saleae Logic16 clone, that's a completely different
device, firmware, FPGA bitstreams, etc. etc.)

It *might* be possible to use it as 16-channel FX2 based LA as well (at
max 16MHz samplerate then), but that's currently not possible out of the
box since the VID/PID suggests an 8-channel Saleae Logic, which we
use/assume in firmware and libsigrok. I also haven't verified yet if the
correct pins are even used on the PCB to make this possible.
Post by Lauren Weinstein
And that's as far as I can get. Attempts to run sigrok-cli or PulseView
show no device on scan runs, irrespective of driver selection (e.g.
Hantek DSO, fx2lafw, etc.)
At the point you tested that it couldn't work since there was no 6022BE
support in libsigrok.

That has changed yesterday, a basic driver written by Christer Ekholm is
now merged (thanks a lot!). Testing would be highly appreciated. The driver
might need some more work, but it's a good start.

http://sigrok.org/gitweb/?p=libsigrok.git;a=summary


Also, I've merged (with minimal changes) the 6022BE open-source firmware
written by Jochen Hoenicke (thanks a lot!) into fx2lafw for user convenience.

Details:
http://sigrok.org/gitweb/?p=sigrok-firmware-fx2lafw.git;a=summary
http://sigrok.org/gitweb/?p=sigrok-firmware-fx2lafw.git;a=commitdiff;h=189db3d41e4c3d8a4aec5ec605c03df75577d531

I.e. to use this you have to have the latest libsigrok from git and the
latest sigrok-firmware-fx2lafw from git and it should work out of the box
(use the udev rules file if needed etc).


I've only tested 6022BE so far (scope) and 6022BL (LA mode). Getting
the 6022BL (scope mode) to work may or may not require some more
changes, I'll look into that.


Uwe.
--
http://hermann-uwe.de | http://randomprojects.org | http://sigrok.org
Loading...