91
LaserShark Support / Re: Lasershark on Win 10 - 64bit: "Error finding USB device"
« on: October 15, 2015, 11:30:23 PM »
I'll try and compile you something Sunday to test.
The forums are under a spambot siege. Registration has been disabled temporarily. Please contact me to register an account.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Jeff,
I believe I have solved the problem.
I played a bit with lasershark_stdin.c and, after making it compatible with Visual Studio (I'm a n00b so I didn't use mingw to compile it) I added the following lines before your call to libusb_open_device_with_vid_pid :
int numDevices = libusb_get_device_list(context, &usbDevices);
if(numDevices < 0)
{
libusb_free_device_list(usbDevices, 1);
goto out_post_release;
}
and then, just before your call to libusb_exit, I added:
libusb_free_device_list(usbDevices, 1);
Full code here: http://pastebin.com/HvJZe9Ri
The program does give me a warning after terminating it ("libusb: warning [libusb_exit] some libusb_devices were leaked") but I believe that's nonsense since the memory is freed anyway.
Jeff,
just to add to my previous posts (I'll stop spamming your inbox, I promise) it seems the culprit is this function:
libusb_get_device_list
If it's called twice before getting the device it works just fine, which is the reason my "solution" works - libusb_open_device_with_vid_pid calls libusb_get_device_list internally.
I believe this can be tracked down to an OS-specific get_device_list function, and this is probably bugged on Windows 8.1 for some reason. It's not the first time I have issues with USB devices on Windows 8.1 anyway.
Hello!
I'm having some issues with drivers, maybe someone has already got the same problems. Installing separete drivers for Lasershark interfaces (interface 0, 1, 2) nothing works.
"circle maker" test (http://macpod.net/electronics/lasershark/images/windows/lasershark_stdin_cmdline.jpg) doesnt work, it appears "error finding USB device", and also CW isn't able to move the galvos anyway (although LaserShark appears on CW).
Then, using ZADIG (http://zadig.akeo.ie/), I have tried to install libsusb driver for LaserShark as a composite device. In this case "circle test" works, showing a very nice simetric circle. But I'm still stuck inside CW, that never makes the galvos shake.
I'm quite convinced that this is a driver/USB issue.
I am using Win 8.1 64bit, usb 3.0... but I've tried also in an older win XP, the situation is the same.
Complementary, I'm receiving an error message telling that a "composite device" may have problems running on USB3.0.
did anyone have similar issue?
Thanks for any support