Hi,

On Wed, May 04, 2016 at 03:18:58PM +0100, José Silva wrote:
> Quite agree, although we loose 8 channels.

Yeah, could be fixed somehow (not sure how nicely, though). fx2lafw has
support for 16-channel devices too, it's just currently hardcoded for
certain VID/PID pairs only and the 6022BL has a VID/PID pair that's for
8-channel devices.

 
> So, I included the openhantek udev rules (90-hantek.rules), also with some
> touches:
> 
> # Hantek DSO-6022BE
> #SUBSYSTEM=="usb", ACTION=="add", ENV{DEVTYPE}=="usb_device",
> ENV{PRODUCT}=="4b4/6022/*", RUN+="/sbin/fxload -t fx2 -I
> /opt/git-repos/openhantek/fw/hantek6022be-firmware.hex -s
> /opt/git-repos/openhantek/fw/hantek6022be-loader.hex -D $env{DEVNAME}"
> #ATTRS{idVendor}=="04b5", ATTRS{idProduct}=="6022", MODE="0666",
> GROUP="plugdev"
> 
> # Hantek DSO-6022BL
> #SUBSYSTEM=="usb", ACTION=="add", ENV{DEVTYPE}=="usb_device",
> ENV{PRODUCT}=="4b4/602a/0", RUN+="/sbin/fxload -t fx2 -I
> /opt/git-repos/openhantek/fw/hantek6022be-firmware.hex -s
> /opt/git-repos/openhantek/fw/hantek6022be-loader.hex -D $env{DEVNAME}"
> #ATTRS{idVendor}=="04b5", ATTRS{idProduct}=="6022", MODE="0666",
> GROUP="plugdev", TAG+="uaccess"
> #SUBSYSTEM=="usb", ATTRS{idVendor}=="04b4", ATTRS{idProduct}=="6022",
> MODE:="0666", GROUP="plugdev", TAG+="uaccess"
> #SUBSYSTEM=="usb", ATTRS{idVendor}=="04b5", ATTRS{idProduct}=="6022",
> MODE:="0666", GROUP="plugdev", TAG+="uaccess"

This is not correct, see below.

 
> And also included de firmware:
> $ ls -l /opt/git-repos/openhantek/fw
> total 20
> -rw-r--r-- 1 root root 14042 Oct  5  2015 hantek6022be-firmware.hex
> -rw-r--r-- 1 root root  2304 Oct  5  2015 hantek6022be-loader.hex

This is not the correct firmware. For 6022BE we have an extra file
(hantek-6022be.fw) in the git version of sigrok-firmware-fx2lafw repo
(not part of any tarball release yet):

http://sigrok.org/gitweb/?p=sigrok-firmware-fx2lafw.git;a=summary

For the 6022BL there's no such file yet, but it would be a slight
modification of the 6022BE file with the CTL0/2 change I mentioned.

The files you mention above are not meant to be used with libsigrok and
if they happen to work (a little) that's pure coincidence.


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

------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
sigrok-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sigrok-devel

Reply via email to