|
From: Gabriel <gb...@gm...> - 2008-05-08 02:09:19
|
Hi all:
I have this problem with pyusb:
I wrote this code
import usb
buses = usb.busses()
dev = None
for bus in buses :
for device in bus.devices :
if device.idVendor == 0x1781:
print u"ProtoTermociclador found"
dev=device
break
if dev == None:
print 'ProtoTermociclador device not found'
else:
handle = dev.open()
handle.interruptWrite(0x01,'\x00')
I run the code with sudo python mycode.py and I get an error.
usb.USBError: error submitting URB: Device or resource busy
Please you help my with it...
Thank you very much
--
Gabriel
|