i have two endpoints,
EP1 = interrupt, out
EP2 = interrupt, in
1 configuration (configuration 1)
1 interface (interface 0)
idVendor = 0xFFFF
idProduct = 0xFFF1
OS: ubuntu
Expand|Select|Wrap|Line Numbers
- import usb
- def OpenDevice(idVendor, idProduct):
- devices = []
- for b in usb.busses():
- for d in b.devices():
- if d.idVendor = idVendor and d.idProduct = id.Product:
- devices.append(d)
- if len(devices) == 1:
- device = devices[0]
- return device
- elif not devices:
- print "Device not found"
- else
- print "More than one device found"
- IRCVENDOR = 0xFFFF
- POXPRODUCT = 0xFFF1
- if __name__ == "__main__":
- device = OpenDevice(IRCVENDOR,POXPRODUCT)
- packet_len = 8
- dh = device.open()
- dh.setConfiguration(1)
- dh.claimInterface(0)
- ADCdata = dh.interruptRead(2,2,100)
- print ADCdata
i get these errors:
usb.USBError: could not set config 1: Operation not permitted
what does this error mean? i tried surfing the net for answers but couldnt find any...i also tried ommiting the dh.setConfiguration line since i only have one configuration but i also got errors (guess that really wasnt the way to solve it :P )
also, what does "error submitting urb" mean?
please help! thanks