#!/usr/bin/env python3 # Passive: only reads from EP-IN; sends nothing. import logging from edlclient.Library.Connection.usblib import usb_class cdc = usb_class(portconfig=[[0x05c6, 0x9008, -1]], loglevel=logging.INFO) print("connect", cdc.connect()) for i in range(3): try: v = cdc.read(length=0x30, timeout=2000) except Exception as e: v = f"exc {e}" print(i, v.hex() if isinstance(v, (bytes, bytearray)) else v)