[pyusb-users] libusb1 Callback thread

2014-07-30 Thread Slavko Kocjancic
Hello... I try to do some async transfer. The program bellow actualy 'near' work. It setup 10 transfers and should print the received bytes in callback. The problem is that callback is not done at receive complete! In example below I expect callback while sleep comand is executed but instead got

Re: [pyusb-users] libusb1 Callback thread

2014-07-30 Thread Slavko Kocjancic
On 30. 07. 2014 11:52, Xiaofan Chen wrote: On Wed, Jul 30, 2014 at 2:45 PM, Slavko Kocjancic esla...@gmail.com wrote: Hello... I try to do some async transfer. The program bellow actualy 'near' work. It setup 10 transfers and should print the received bytes in callback. The problem

Re: [pyusb-users] Asynchronous transfers

2014-07-30 Thread Slavko Kocjancic
On 29. 07. 2014 18:51, Wander Lairson Costa wrote: Unfortunately, PyUSB doesn't have async support yet :( Ouch... So what can be done? Direct acess to lubusb? Is it possible to make callback in python?!? Or another library in c is way to go?!? any hint? For PyUSB there is nothing to be

[pyusb-users] Asynchronous transfers

2014-07-29 Thread Slavko Kocjancic
Hello... How to make Asynchronous transfers with pyusb? I look for some example but no luck... I stuck on the beggining.. Ie I need to allocate some buffer but fail... I try like this: import usb transfer=lib.libusb_alloc_transfer(0) lib.libusb_free_transfer(transfer) How to do that?!?

Re: [pyusb-users] Asynchronous transfers

2014-07-29 Thread Slavko Kocjancic
On 29. 07. 2014 18:20, Wander Lairson Costa wrote: 2014-07-29 11:28 GMT-03:00 Slavko Kocjancic esla...@gmail.com: Hello... How to make Asynchronous transfers with pyusb? I look for some example but no luck... I stuck on the beggining.. Ie I need to allocate some buffer but fail... I try

Re: [pyusb-users] Select device by name linux / win difference

2014-07-17 Thread Slavko Kocjancic
On 17. 07. 2014 01:01, Wander Lairson Costa wrote: 2014-07-16 15:05 GMT-03:00 Slavko Kocjancic esla...@gmail.com: I download from here http://sourceforge.net/projects/pyusb/files/PyUSB%201.0/1.0.0-alpha-3/ Could you please download from this link [1] and check if it works? [1] https

[pyusb-users] Select device by name linux / win difference

2014-07-16 Thread Slavko Kocjancic
Hello... Attached is simple example. The problem is that it's works in linux but not in windows. And I wan't to be portable. Can someone tell me what I do wrong? seems that class 'usb.core.Device' is handeled different in win (it return long string?!) #there is current only one device with

Re: [pyusb-users] Select device by name linux / win difference

2014-07-16 Thread Slavko Kocjancic
On 16. 07. 2014 12:33, Wander Lairson Costa wrote: 2014-07-16 6:05 GMT-03:00 Slavko Kocjancic esla...@gmail.com: Hello... Attached is simple example. The problem is that it's works in linux but not in windows. And I wan't to be portable. Can someone tell me what I do wrong? seems that class

Re: [pyusb-users] Select device by name linux / win difference

2014-07-16 Thread Slavko Kocjancic
On 16. 07. 2014 12:52, Wander Lairson Costa wrote: 2014-07-16 7:39 GMT-03:00 Slavko Kocjancic esla...@gmail.com: On 16. 07. 2014 12:33, Wander Lairson Costa wrote: 2014-07-16 6:05 GMT-03:00 Slavko Kocjancic esla...@gmail.com: Hello... Attached is simple example. The problem is that it's

Re: [pyusb-users] Select device by name linux / win difference

2014-07-16 Thread Slavko Kocjancic
...but I newer installed GIT version on Win system. So where it came? -- Want fast and easy access to all the code in your enterprise? Index and search up to 200,000 lines of code with a free copy of Black Duck Code Sight

Re: [pyusb-users] Select device by name linux / win difference

2014-07-16 Thread Slavko Kocjancic
I download from here http://sourceforge.net/projects/pyusb/files/PyUSB%201.0/1.0.0-alpha-3/ 2014-07-16 16:08 GMT+01:00 Wander Lairson Costa wander.lair...@gmail.com: 2014-07-16 11:47 GMT-03:00 Slavko Kocjancic esla...@gmail.com: ...but I newer installed GIT version on Win system. So where

Re: [pyusb-users] ctrl_transfer failed...

2014-05-21 Thread Slavko Kocjancic
On 05/21/2014 05:27 PM, Wander Lairson Costa wrote: 2014-05-21 3:00 GMT-03:00 Slavko Kocjancic esla...@gmail.com: On 05/21/2014 03:36 AM, Wander Lairson Costa wrote: 2014-05-20 13:26 GMT-03:00 Slavko Kocjancic esla...@gmail.com: Hello... I'm new to python (and pyusb). I try to port some

[pyusb-users] ctrl_transfer failed...

2014-05-20 Thread Slavko Kocjancic
Hello... I'm new to python (and pyusb). I try to port some VUSB device to work with python, but get at trouble in beggining. I can't send bytes... here is my example (stripped from manual...) import usb.core import usb.util from array import * dev = usb.core.find(idVendor=0x16c0,