NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: py-usb problems



Dave Tyson wrote:
> Not sure whether this belongs here or in pkgsrc-users. I have been
> trying to package the weewx weather station software which is
> written in python. It uses py-usb to handle the devices, but
> I cannot get it to see anything on the usb busses.

What does the device show up as in the output from "dmesg"?

If it attaches with a driver other than "ugen" (for example,
"uhid"), that's your problem - py-usb relies on libusb
which only works with the ugen driver.  On Linux, libusb
has the capability to automatically unload other drivers,
but NetBSD lacks this functionality.

You can force the device to attach as ugen by adding a line
like the following to your kernel configuration and building
a new kernel:

  ugen* at uhub? vendor 0xVVVV product 0xPPPP flags 1

replacing 0xVVVV and 0xPPPP with the hexadecimal USB vendor and
product IDs of the device.  You can find the IDs by running
usbdevs.
-- 
Andreas Gustafsson, gson%gson.org@localhost


Home | Main Index | Thread Index | Old Index