Low Cost PCB's Low Cost Components

Author Topic: Hantek 6022be on linux can't see device using sigrok firmware and pulseview  (Read 498 times)

0 Members and 1 Guest are viewing this topic.

Offline hermit

  • Regular Contributor
  • *
  • Posts: 228
  • Country: us
Re: Hantek 6022be on linux can't see device using sigrok firmware and pulseview
« Reply #25 on: November 18, 2017, 04:24:37 AM »
I did say I had a cheap USB logic analyzer working with the firmware, not the Hantek.

I'm not sure what this is all about but you may want to check it out.  I'm not sure how it is used.  My device 'just worked' after loading the driver.
https://sigrok.org/gitweb/?p=libsigrok.git;a=tree;f=src/hardware/hantek-6xxx
 

Offline comicpilsen

  • Contributor
  • Posts: 18
  • Country: us
Re: Hantek 6022be on linux can't see device using sigrok firmware and pulseview
« Reply #26 on: November 18, 2017, 04:32:29 AM »
hey hermit
gotcha on the cheap logic probe I have the same for $5 from china and it worked right out of the packet with sigrok :-) I am now on a QUEST to get this Hantek 6022be working on software using linux, it works fine on windoze but...

I am new to ee and want to go deeper with my raspberry pi's and all sorts of other things. You help has been wonderful and I thank you for it. I'm aiming to get this whole thing down to a single forum post where I can say I did this this and this and it worked.

thanks again for all your help
hugs
 

Online cdev

  • Super Contributor
  • ***
  • Posts: 2535
  • Country: aq
  • [Personal Text]
Re: Hantek 6022be on linux can't see device using sigrok firmware and pulseview
« Reply #27 on: November 18, 2017, 07:45:46 AM »
Is there anything useful in your logs,  (/var/log/*) dmesg (when you plug it in, whats added to it?) , or when you issue the command "lsusb"?

"ls -lat" will list a directory showing the last modified files first.

tail -f will show the end of a file that's being constantly added to.
« Last Edit: November 18, 2017, 07:49:29 AM by cdev »
"What the large print giveth, the small print taketh away."
 

Offline comicpilsen

  • Contributor
  • Posts: 18
  • Country: us
Re: Hantek 6022be on linux can't see device using sigrok firmware and pulseview
« Reply #28 on: November 18, 2017, 07:52:26 AM »
Hey Cdev

next week I am going to reload the whole thing from scratch and take your approach ( 11/17/17 at 03:53:06 AM ) this thread. Using the ideas from daybyter and hermit I intend to document the whole thing for others. I'll include the logs, lsusb etc and the history of the bash so people can see what I got up to. This is no longer a task it's a fracking QUEST :-) (american vacation paraphrase)

thanks for all your great help
 

Offline abraxa

  • Regular Contributor
  • *
  • Posts: 164
  • Country: de
  • Sigrok associate
Re: Hantek 6022be on linux can't see device using sigrok firmware and pulseview
« Reply #29 on: November 18, 2017, 08:05:52 AM »
You can run "pulseview -l 5" to see debug output on the console. There, you can see whether the hantek-6xxx driver recognizes any devices or not. If it's not recognized then PV won't show it in the dropdown.

If you want to try the sigrok udev rules, then you can put these in your udev rules file:

Code: [Select]
# Hantek 6022BE
ATTRS{idVendor}=="04b4", ATTRS{idProduct}=="6022", MODE="660", GROUP="plugdev", TAG+="uaccess"
ATTRS{idVendor}=="1d50", ATTRS{idProduct}=="608e", MODE="660", GROUP="plugdev", TAG+="uaccess"

You can see they also set the permissions and group values - not sure what the defaults are, so the rules you're using at the moment may be insufficient, I cannot say. If you want to use the sigrok udev file as-is, please make sure you rename it to 60_libsigrok.rules (i.e. removing the z) or else you may run into issues regarding the uaccess tag.
« Last Edit: November 18, 2017, 08:12:35 AM by abraxa »
 

Offline comicpilsen

  • Contributor
  • Posts: 18
  • Country: us
Re: Hantek 6022be on linux can't see device using sigrok firmware and pulseview
« Reply #30 on: November 18, 2017, 08:17:53 AM »
Hey Abraxa

EXCELLENT ideas and I will certainly add them to my next week's attempt to get this working.  I am not sure how to apply the udev rules as I have never really done that before, is it just a simple matter of putting them into a specific location and setting the permissions properly?  ALSO the firmware, is there a specific location and permission set I should use?  I want to make sure that the results of this are a text book step by step guide as to how to get Ubuntu working with sigrok on the hantek 6022 be on the lenovo s10 ideapad. 
thanks again for the excellent ideas
 

Online cdev

  • Super Contributor
  • ***
  • Posts: 2535
  • Country: aq
  • [Personal Text]
Re: Hantek 6022be on linux can't see device using sigrok firmware and pulseview
« Reply #31 on: November 18, 2017, 11:43:57 AM »
Why next week? You likely could get it fixed in just a few minutes.
"What the large print giveth, the small print taketh away."
 

Offline comicpilsen

  • Contributor
  • Posts: 18
  • Country: us
Re: Hantek 6022be on linux can't see device using sigrok firmware and pulseview
« Reply #32 on: November 18, 2017, 11:46:09 AM »
want to start from scratch, not near machine until Monday.
 

Offline daybyter

  • Frequent Contributor
  • **
  • Posts: 337
  • Country: de
Re: Hantek 6022be on linux can't see device using sigrok firmware and pulseview
« Reply #33 on: November 18, 2017, 04:50:23 PM »
Don't forget to reload udev after modifying the rules.
 

Offline comicpilsen

  • Contributor
  • Posts: 18
  • Country: us
Re: Hantek 6022be on linux can't see device using sigrok firmware and pulseview
« Reply #34 on: November 18, 2017, 11:06:58 PM »
Hey daybyter

thanks for the reminder and I always reboot after making mods to the system as I take a belt and braces approach to this stuff. I was going to run the command below to try it then reboot to make sure it sticks.  Thanks again for all your help.

udevadm control --reload-rules && udevadm trigger

 

Offline abraxa

  • Regular Contributor
  • *
  • Posts: 164
  • Country: de
  • Sigrok associate
Re: Hantek 6022be on linux can't see device using sigrok firmware and pulseview
« Reply #35 on: November 19, 2017, 12:12:45 AM »
I am not sure how to apply the udev rules as I have never really done that before, is it just a simple matter of putting them into a specific location and setting the permissions properly?  ALSO the firmware, is there a specific location and permission set I should use?

Yeah, just check the files in /etc/udev/rules.d/ as you probably did before. Each file contains a set of rules and the numbering of the files determines the order in which the rules are applied. No special permissions are needed on those files.

I'd worry about the firmware only if the PV debug output states that the firmware couldn't be found. Until then, simply installing the firmware package of your distribution should be enough.
 

Offline comicpilsen

  • Contributor
  • Posts: 18
  • Country: us
Re: Hantek 6022be on linux can't see device using sigrok firmware and pulseview
« Reply #36 on: November 19, 2017, 12:51:50 AM »
will do abraxa
thanks for the extra info. For a EE noob all this is good practice. I don't remember the last time I had to configure something :-) I got lazy I suppose and this is teaching me alot. thanks to all
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf