Re: [pyusb-users] Input/Output error

2010-06-23 Thread Xiaofan Chen
On Thu, Jun 24, 2010 at 12:25 PM, Diego Jacobi wrote: > Can somebody give a better example on how to call ctrl_transfer with a > data payload ? It all depends on the device. A C example here (sorry right now I have no pyusb example). http://www.microchip.com/forums/fb.ashx?m=475777 To use libusb

Re: [pyusb-users] Input/Output error

2010-06-23 Thread Diego Jacobi
Thanks, but i am sadly confirming that this is not the error this time. I have correctly detached it with: interface = dev.get_interface_altsetting() dev.detach_kernel_driver(interface.bInterfaceNumber) which works, because "dmesg" logs it and the /dev/ttyUSB0 is released. but in the error stag

Re: [pyusb-users] Input/Output error

2010-06-23 Thread Xiaofan Chen
On Thu, Jun 24, 2010 at 9:08 AM, Diego Jacobi wrote: > There is a driver in the kernel for sure. > Could you please expand your answer on this? > How do i detach a driver from the kernel in user space? For libusb-0.1 http://libusb.sourceforge.net/doc/function.usbdetachkerneldrivernp.html For lib

Re: [pyusb-users] Input/Output error

2010-06-23 Thread Diego Jacobi
> http://code.google.com/p/picusb/wiki/libusb_and_udev The point is, that running it as root i discard the usual questions, "do you have the correct permissions?" Yes, i have, and tripple checked >> Now i am not sure if this fails >> - because of an error on pyusb >> - because the control message

Re: [pyusb-users] Input/Output error

2010-06-23 Thread Xiaofan Chen
On Thu, Jun 24, 2010 at 8:15 AM, Diego Jacobi wrote: > But what i need from this device is to be able to use it through a > userspace software with USB. This is not yet the problem, because i > could in last instance, use the virtual serial port, but it requires > special permissions. What do you

[pyusb-users] Input/Output error

2010-06-23 Thread Diego Jacobi
Hi people. I am on the middle of an electronic project which handles USB throught the device TUSB3410 which is a USB to serial converter. The main problem of this device is the intense lack of documentation and examples of how to program it. Any way, researching a lot i found that the BSD project

[pyusb-users] PyUSB 1.0 fixes for OpenWrt

2010-06-23 Thread Andreas Trawoeger
The ctypes.util.find_library() function in Python 2.6.4 is currently broken on MIPS platforms. Which mostly affects OpenWrt users running Linux on MIPS based access points. The attached patches include a quick fix around that problem for PyUSB 1.0. cu andreas Index: usb/backend/libusb01.py ==