2014-07-29 13:49 GMT-03:00 Slavko Kocjancic <esla...@gmail.com>:
> 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 like this:
>>>
>>> import usb
>>> transfer=lib.libusb_alloc_transfer(0)
>>> lib.libusb_free_transfer(transfer)
>>>
>>> How to do that?!?
>>>
>> 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 done on short term, but you can try
[1]. It is a thin Python wrapper around libusb 1.0.

[1] https://github.com/vpelletier/python-libusb1

Best Regards,
Wander Lairson Costa

------------------------------------------------------------------------------
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls. 
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
_______________________________________________
pyusb-users mailing list
pyusb-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyusb-users

Reply via email to