Page 2 of 2

Re: LibUSB in Purebasic

Posted: Sun Jan 19, 2025 6:56 pm
by infratec
I found:
In order to use libusb on Windows you need to install the WinUSB.sys
So please use zadig and change the driver for your device to WinUSB

https://zadig.akeo.ie/

Re: LibUSB in Purebasic

Posted: Sun Jan 19, 2025 7:05 pm
by matalog
Yes, I have tried without the driver first, which I uninstalled via USBdeview. The robotarm program ran and reported nothing when I did that.

Re: LibUSB in Purebasic

Posted: Sun Jan 19, 2025 7:43 pm
by infratec

Re: LibUSB in Purebasic

Posted: Sun Jan 19, 2025 8:33 pm
by matalog

Re: LibUSB in Purebasic

Posted: Sun Jan 19, 2025 8:41 pm
by infratec
:D

You are welcome :!:

Re: LibUSB in Purebasic

Posted: Sun Jan 19, 2025 9:23 pm
by matalog
And, yes, I had to use the zadig program to change the driver for the Robot Arm, to WinUSB.

Re: LibUSB in Purebasic

Posted: Sun Jan 19, 2025 9:52 pm
by infratec
You can simplify the code, when you use

Code: Select all

*handle = libusb_open_device_with_vid_pid(#Null, $1267, $0)
is_interesting() can be removed and also the complete device_list() stuff.