openHantek (linux) 6022BE driver development - maybe - Page 1
Forum section: electronics / testgear

author: mtnzap73
author_rank: Contributor
timestamp: January 21, 2015, 05:02:02 pm
content: Here is the info I have found on driver development for 6022BE:I see some activity athttps://github.com/olerem/openhantek/commit/9a0d2747edc9306b1b56c04a4a9d491269023c76.I also see something athttps://github.com/rpm2003rpm, where it is claimed that a 6022 driver exists. Perhaps there is a way to 'translate' these files into the *.hex files for usrs/local/share/Hantek. I have posted a note to Oliver Haag, the developer of openHantek.extractfw will not work on the 6022BE drivers from Hanek.If anyone has any other ideas ......

author: daybyter
author_rank: Frequent Contributor
timestamp: January 21, 2015, 10:51:38 pm
content: You cannot set a trigger with this driver, if I understand the sources correctly?

author: mtnzap73
author_rank: Contributor
timestamp: January 21, 2015, 10:55:21 pm
content: Here are those drivers if anyone is interested in testing.Yes, I read the trigger issue also.At least there may be potential for the future .....

author: daybyter
author_rank: Frequent Contributor
timestamp: January 21, 2015, 11:11:54 pm
content: Thanks a lot! Want to set me a linux VM up for the ee stuff. Will give it a try when it runs.

author: mtnzap73
author_rank: Contributor
timestamp: January 22, 2015, 06:43:23 pm
content: My vague understanding is that one has to add a new entry to 90-hantek.rules for the new USB device.I have the 90-hantek.rules file from openHantek which has all of the older models populated. So, it is a template for the new entry.Buried in the github site are files which include the vendor data etc for the 6022be, so it may be possible to build the .rules file entry from this data.Maybe you or others are ahead on this, but I believe all this has to be in place, and udev restarted, before plugging the scope in.If you cannot find the USB vendor data that I refer to above, I can get this and attach here.

author: sandos
author_rank: Contributor
timestamp: January 22, 2015, 10:34:11 pm
content: There is also this:https://github.com/rpm2003rpm/HT6022_DriverWhich I tried, and it works nicely, although its rudimentary without triggering. Started porting it to android, which is fairly simple but never got done. I did get the scope initalized but not much more:https://github.com/sandos/HantekDroid/

author: daybyter
author_rank: Frequent Contributor
timestamp: January 23, 2015, 11:55:55 am
content: Wouldn't it be better to create a sigrok driver from the code?

author: asu66
author_rank: Newbie
timestamp: October 29, 2015, 04:38:37 am
content: Quote from: mtnzap73 on January 21, 2015, 10:55:21 pmI just got a hantek 6022be and try to make it work on my linux notebook. Thanks a lot for your drivers. But when I load them with fxload I get an error:Quotecan you tell me, what I am doing wrong?

author: scooper
author_rank: Newbie
timestamp: February 06, 2017, 05:42:26 pm
content: Quote from: mtnzap73 on January 21, 2015, 10:55:21 pm1) Have you even tried these yourself?2) Has someone tried these - they are not working, not even getting that LED blinking.

author: daybyter
author_rank: Frequent Contributor
timestamp: February 07, 2017, 10:52:58 pm
content: Well, I wrote some C++ code and managed to get at least some data from the scope at some point. But I'm stuck at UI development at the moment.

author: aandrew
author_rank: Frequent Contributor
timestamp: February 09, 2017, 06:04:08 pm
content: Definitely don't want to hijack the thread but I'm curious if similar efforts (USB or ethernet driver, or firmware dev) for their benchtop scopes like the MSO5054/MSO5074?

author: KrisMaster
author_rank: Newbie
timestamp: March 12, 2017, 09:11:50 am
content: HiI am also interested in writing my own frontend for this oscilscope. But I can't get it to run. I compiled it. Try to run it but get folowing errors:sudo ./a.outReturn value of HT6022_Init: 0Return value of HT6022_FirmwareUpload: -4Uploading firmware... Type <enter> when the red light starts blinking.Return value of HT6022_DeviceOpen: -4Type <enter>Segmentation fault