Re: [pyusb-users] Input/Output error when trying to follow tutorial

2019-01-09 Thread Sergio A. Quiroga
thank you Tormod, the usb sniffer actually provided me with enough information of what i needed. i was trying to configure the device through the usb port, but what i'm getting from the IN endpoint is quite enough. On Tue, Jan 8, 2019 at 1:32 PM Tormod Volden wrote: > On Tue, Jan 8, 2019 at 8:2

Re: [pyusb-users] Input/Output error when trying to follow tutorial

2019-01-08 Thread LUCAS CORDEIRO BUTZKE
I will tell you the only thing that work for me, using wireshark. From knowing the right commands you can start working properly. Sorry for my english. Em 8 de jan de 2019 17:26, "Sergio A. Quiroga" escreveu: Hi all, it's my first attempt with pyusb, and following the tutorial could not go r

Re: [pyusb-users] Input/Output error when trying to follow tutorial

2019-01-08 Thread Tormod Volden
On Tue, Jan 8, 2019 at 8:26 PM Sergio A. Quiroga wrote: > > my device is a thermometer, it came with a software, and i can take readings > with the application included. however i'm trying to include it to a python > scripted environment, and need to take readings directly from the thermometer. >

[pyusb-users] Input/Output error when trying to follow tutorial

2019-01-08 Thread Sergio A. Quiroga
Hi all, it's my first attempt with pyusb, and following the tutorial could not go really further than "Let's get this started" section. my device is a thermometer, it came with a software, and i can take readings with the application included. however i'm trying to include it to a python scripted

Re: [pyusb-users] Input/Output error

2010-06-24 Thread Xiaofan Chen
On Fri, Jun 25, 2010 at 1:44 AM, Diego Jacobi wrote: > I cant get ctrol_transfer to work in anyway. It will always give an error. > Calling it even without payload: > > I readed all of the pertinent source code of pyusb until the call to > libusb, and I myself cant find what the problem is. All I

Re: [pyusb-users] Input/Output error

2010-06-24 Thread Diego Jacobi
This is the thing so far: I cant get ctrol_transfer to work in anyway. It will always give an error. Calling it even without payload: # find our device dev = usb.core.find(idVendor=TI_VENDOR_ID, idProduct=TI_3410_PRODUCT_ID) dev.set_configuration() # was it found? if dev is No

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