debug: device connection

This commit is contained in:
Cyrille Nofficial 2022-01-23 15:39:15 +01:00
parent fe9bb60fd0
commit b2e4ca1c28

View File

@ -47,7 +47,7 @@ class FramePublisher(Thread):
def run(self): def run(self):
logger.info("device %s", self._device_info) logger.info("device %s", self._device_info)
# Connect to device and start pipeline # Connect to device and start pipeline
with dai.Device(self._pipeline) as device: with dai.Device(self._pipeline, devInfo=self._device_info, usb2Mode=False) as device:
logger.info('MxId: %s', device.getDeviceInfo().getMxId()) logger.info('MxId: %s', device.getDeviceInfo().getMxId())
logger.info('USB speed: %s', device.getUsbSpeed()) logger.info('USB speed: %s', device.getUsbSpeed())
logger.info('Connected cameras: %s', device.getConnectedCameras()) logger.info('Connected cameras: %s', device.getConnectedCameras())