I'm trying to read voltages from a Tenma 72-7732 multimeter with a HID USB connection using PyUSB and libusb. This is my code so far:
def main():
import usb.core
import usb.util
import usb.backend
import sys
#find device
dev = usb.core.find(idVendor=0x1a86, idProduct=0xe008)
# did you find it?
if dev is None:
raise ValueError('Device not found')
else:
print "Device found"
dev.set_configuration()
endpoint = dev[0][(0,0)][0]
data = dev.read(endpoint.bEndpointAddress, endpoint.wMaxPacketSize, 0, 100000)
print data
main()
This finds the device, but when it tries to read the data, it gives a timeout error. The multimeter has very bad documentation and support, so I can't go there for help. How can I read the device successfully?