-
Notifications
You must be signed in to change notification settings - Fork 199
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
macOS: "select device" dialog stays forever on first launch: "upload in progress" #196
Comments
macos seems to have issues with the libusb library, especially the libusb_release_interface call. Is it possible to update to a newer libusb version? |
brew on macOS has already installed latest version: OSX86:~ me$ brew upgrade libusb |
if got exatly the same problem, |
I also have this problem on Windows 10. |
Same problem on Kubuntu 16.04 and Hantek 6022BE... Any idea? |
Please double check what the Hantek 6022BE is reporting as vendor ID. In my case the problem was that the Hantek changed the vendor id unexpectedly from "VID_04B5" to "VID_04B4". Don't ask me how, it does not make sense for me either, but correcting it in the libusb_device_inf and reinstalling the driver made it to load again. Weird! |
The device changes it usb vid and pid as soon as the firmware is uploaded. A windows driver need to cover both pairs, indeed. |
I got the same issue. Could you give a little more info on fixing it? Thank you |
Update/Edit: It doesn't work on my USB3 ports, but it works fine on my USB2.0 ports. FWIW. I appear to be having the same issue on Ubuntu Linux.. I don't see a Make target for a debug build, anyone know how to get a debug build? I tried running gdb on the binary, but it goes async after the process spawns 5 threads. Linux Z97X-UD5H 4.15.0-43-generic #46-Ubuntu SMP Thu Dec 6 14:45:28 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux // Without Hantek Scope connected to USB. // With Hantek connected to USB. |
For Mac users: In case it isn't clear from the initial description, at least for me, if you run OpenHantek one time, let the upload complete, then click "Close" button on the dialog, THEN run OpenHantek again without unplugging the device, it will work the second time. |
Quick note on Linux :
For cmake projects, having a debug build is usually done with : "cmake -DCMAKE_BUILD_TYPE=Debug .." |
Still having this issue on Windows :[ Anyone know of a fix? |
I have the same issue on FreeBSD. |
Let me explain in short what happens (at least with Hantek 6022 and compatible devices): After 1st power-on the devive is seen on USB as VID/PID 0x04B4/0x6022. If openhantek detects this devive it starts uploading the firmware file (typical an intel hex file that is included in the resources of the Linux/Windows/FreeBSD/MacOSX binary, coming from there). After uploading the file a new USB enumeration takes place automatically - the device 04B4/6022 disconnects from bus and reconnects - now with VID/PID 0x04B5/0x6022 (this VID/PID comes from the firmware). Until this point everything works fine. BUT if there are some other devices on the same USB bus (the USB subsystem is structured in busses and ports as shown by See also OpenHantek/OpenHantek6022#35 HTH, Martin |
How long does such upload normally take?
|
For me at least, the upload takes about 2-3 seconds |
For me it never ends, device never switches to any other ID. |
Have you also tried OpenHantek6022, which recently received support for FreeBSD? |
No luck with OpenHantek6022 for me, it behaves the same way. |
This line
fails but the error message is never printed: So the error triggered in Additionally, These are for the OpenHantek6022 project. |
Thx für reporting, I will check the code flow. |
With the line Removing the line I'll update the port with a patch for this. |
I moved the issue tracking into "my" domain, #35. |
Launching OpenHantek on macOS 10.12.6 from shell shows:
stop CPU
... WROTE: 792 bytes, 10 segments, avg 79
reset CPU
2nd stage: write external memory
stop CPU
2nd stage: write on-chip memory
... WROTE: 5092 bytes, 68 segments, avg 74
reset CPU
But dialog stays forever with the message "Upload in progress"...
Quitting the application and relaunching the dialog tells that the device is ready to use...
Un-/replugging the device causes it to fail again...
No crash after first launch, only when device is used...
The text was updated successfully, but these errors were encountered: