Author Topic: openHantek (linux) 6022BE driver development - maybe  (Read 10964 times)

0 Members and 1 Guest are viewing this topic.

Offline mtnzap73Topic starter

  • Contributor
  • Posts: 30
openHantek (linux) 6022BE driver development - maybe
« on: January 21, 2015, 05:02:02 pm »
Here is the info I have found on driver development for 6022BE:

I see some activity at https://github.com/olerem/openhantek/commit/9a0d2747edc9306b1b56c04a4a9d491269023c76.

I also see something at https://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 ......
 

Offline daybyter

  • Frequent Contributor
  • **
  • Posts: 397
  • Country: de
Re: openHantek (linux) 6022BE driver development - maybe
« Reply #1 on: January 21, 2015, 10:51:38 pm »
You cannot set a trigger with this driver, if I understand the sources correctly?
 

Offline mtnzap73Topic starter

  • Contributor
  • Posts: 30
Re: openHantek (linux) 6022BE driver development - maybe
« Reply #2 on: January 21, 2015, 10:55:21 pm »
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 .....
 

Offline daybyter

  • Frequent Contributor
  • **
  • Posts: 397
  • Country: de
Re: openHantek (linux) 6022BE driver development - maybe
« Reply #3 on: January 21, 2015, 11:11:54 pm »
Thanks a lot! Want to set me a linux VM up for the ee stuff. Will give it a try when it runs.
 

Offline mtnzap73Topic starter

  • Contributor
  • Posts: 30
Re: openHantek (linux) 6022BE driver development - maybe
« Reply #4 on: January 22, 2015, 06:43:23 pm »
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.
 

Offline sandos

  • Contributor
  • Posts: 14
Re: openHantek (linux) 6022BE driver development - maybe
« Reply #5 on: January 22, 2015, 10:34:11 pm »
There is also this: https://github.com/rpm2003rpm/HT6022_Driver


Which 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/
« Last Edit: January 22, 2015, 10:35:59 pm by sandos »
 

Offline daybyter

  • Frequent Contributor
  • **
  • Posts: 397
  • Country: de
Re: openHantek (linux) 6022BE driver development - maybe
« Reply #6 on: January 23, 2015, 11:55:55 am »
Wouldn't it be better to create a sigrok driver from the code?
 

Offline asu66

  • Newbie
  • Posts: 1
  • Country: de
Re: openHantek (linux) 6022BE driver development - maybe
« Reply #7 on: October 29, 2015, 04:38:37 am »
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 .....
I 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:
Quote
/sbin/fxload -t fx2 -vvv -I /usr/local/share/hantek/hantek6022be-firmware.hex -s /usr/local/share/hantek/hantek6022be-loader.hex -D /dev/bus/usb/003/033
microcontroller type: fx2
1st stage:  load 2nd stage loader
open RAM hexfile image /usr/local/share/hantek/hantek6022be-loader.hex
stop CPU
not an ihex record:
unable to download /usr/local/share/hantek/hantek6022be-loader.hex
can you tell me, what I am doing wrong?
 

Offline scooper

  • Newbie
  • Posts: 2
  • Country: fi
Re: openHantek (linux) 6022BE driver development - maybe
« Reply #8 on: February 06, 2017, 05:42:26 pm »
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 .....

1) Have you even tried these yourself?

2) Has someone tried these - they are not working, not even getting that LED blinking.
 

Offline daybyter

  • Frequent Contributor
  • **
  • Posts: 397
  • Country: de
Re: openHantek (linux) 6022BE driver development - maybe
« Reply #9 on: February 07, 2017, 10:52:58 pm »
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.
 

Offline aandrew

  • Frequent Contributor
  • **
  • Posts: 277
  • Country: ca
Re: openHantek (linux) 6022BE driver development - maybe
« Reply #10 on: February 09, 2017, 06:04:08 pm »
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?
 

Offline KrisMaster

  • Newbie
  • Posts: 1
  • Country: pl
Re: openHantek (linux) 6022BE driver development - maybe
« Reply #11 on: March 12, 2017, 09:11:50 am »
Hi
I 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.out
Return value of HT6022_Init: 0
Return value of HT6022_FirmwareUpload: -4
Uploading firmware... Type <enter> when the red light starts blinking.
Return value of HT6022_DeviceOpen: -4
Type <enter>
Segmentation fault
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf