Adding video interface without closing already opened serial communication #2717
Unanswered
pstadelmann
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm using TinyUSB with CDC and video interfaces. At startup, only the CDC interface is configured, so that I can open a serial communication, which is used to configure an image sensor with ROI chosen by the user. Once this is done, I add the video interface and issue tud_disconnect() / tud_connect(). Since the user has now specified the ROI, the configuration callback can return a video descriptor with the correct image size.
This works fine, the only issue is that the disconnect / connect causes the serial communication to close on the host. Moreover it cannot be simply reopened since the numerical part of the device name ( e.g. /dev/tty.usbmodem14303) changes, forcing the user to issue a rescan and select the new device name.
Is there a way of achieving the same behavior without causing the serial communication to close?
Thanks
Patrick
Beta Was this translation helpful? Give feedback.
All reactions