Answer the question
In order to leave comments, you need to log in
What drivers should I install to make the PyUSB 1.0 library work?
I plan to use a USB connection to read data from the Davis Vantage PRO 2.
I use the following code
import usb.core
print(list(usb.core.find(find_all=True)))
import usb.util
dev = usb.core.find(idVendor=0x10c4, idProduct=0xea61)
ep = dev[0].interfaces()[0].endpoints()[0]
i = dev[0].interfaces()[0].bInterfaceNumber
dev.reset()
if dev.is_kernel_driver_active(i):
dev.datach_kernel_driver(i)
dev.set_configuration()
eaddr = ep.bEndpointAddress
r = dev.read(eaddr, 1024)
print(r)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question