Hi Christian,
I haven't tested PyUSB in a multi-thread environment yet, but you could try
run your script with python interpreter running into gdb, so you can stop it
and see
traceback to find out where the program is stalling...
Wander
PS: I have a little test board to PyUSB, so I think that I could use it
to test your code..
2006/8/23, Christian Niessner <ma...@ma...>:
>
> Hi list,
>
> I currently have a problem with threading & pyusb interrupt read
> transfers.
>
> My testapp has a thread that 'polls for interrupts' (ahem. but seems a
> libusb issue ;)). The mainapp only does some tests with the USB-device.
> Simple 'Hello World' things.
>
> It works so far except one thing: every time i call time.sleep() in the
> main app / main thread, and the poll thread waits for an
> interruptRead(), the time.sleep() never ever returns. Uh. Bad thing.
>
> Any ideas? I could send my code, but i think it's quite useless without
> the proper usb hardware....
>
> I tracked the problem a bit, and it seems to be connected to the
> interruptRead() call. If this call is replaced with a simple
> time.sleep(), the time.sleep() from the main thread works as expected...
>
> Any hints where digging / continuing ?
>
> Thanks,
> chris
>
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Pyusb-users mailing list
> Pyu...@li...
> https://lists.sourceforge.net/lists/listinfo/pyusb-users
>
|