LibUSB in Purebasic

Just starting out? Need help? Post your questions and find answers here.
infratec
Always Here
Always Here
Posts: 7662
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Re: LibUSB in Purebasic

Post 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/
User avatar
matalog
Enthusiast
Enthusiast
Posts: 305
Joined: Tue Sep 05, 2017 10:07 am

Re: LibUSB in Purebasic

Post 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.
infratec
Always Here
Always Here
Posts: 7662
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Re: LibUSB in Purebasic

Post by infratec »

User avatar
matalog
Enthusiast
Enthusiast
Posts: 305
Joined: Tue Sep 05, 2017 10:07 am

Re: LibUSB in Purebasic

Post by matalog »

infratec
Always Here
Always Here
Posts: 7662
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Re: LibUSB in Purebasic

Post by infratec »

:D

You are welcome :!:
User avatar
matalog
Enthusiast
Enthusiast
Posts: 305
Joined: Tue Sep 05, 2017 10:07 am

Re: LibUSB in Purebasic

Post by matalog »

And, yes, I had to use the zadig program to change the driver for the Robot Arm, to WinUSB.
infratec
Always Here
Always Here
Posts: 7662
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Re: LibUSB in Purebasic

Post 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.
Post Reply