In [1]:
import usb1
context = usb1.USBContext()
handle = context.openByVendorIDAndProductID(
0x08f7,
0x0008,
skip_on_error=True)
if handle is None:
print("LabQuest mini not present on system")
In [2]:
handle.claimInterface(0)
Out[2]:
In [3]:
handle.getASCIIStringDescriptor(1)
Out[3]:
In [4]:
handle.getASCIIStringDescriptor(2)
Out[4]:
In [5]:
handle.controlRead?
In [21]:
handle.controlRead(0,0,0,0,4,timeout=10)
Out[21]:
In [6]:
handle.releaseInterface(0)
In [7]:
handle.close()
In [ ]: