i am using this code to read in python for reading data from my usb barcode scanner on my raspberry pi
# find our device
dev = usb.core.find(idVendor=0x05e0, idProduct=0x1200)
# was it found?
if dev is None:
raise ValueError('Device not found')
# configuration will be the active one
print "Device found!"
#Read value from device
for bRequest in range(255):
read = dev.ctrl_transfer(0x81, bRequest, 0, 0, 8) #read 8 bytes
print "bRequest ", bRequest
but I am getting an this error "USBError: [Errno 13] Access denied (insufficient permission)"
Does anyone know how to get rid of it??
Thanks in advance
2 posts • Page 1 of 1