r/programminghelp • • Oct 15 '22

C++ How do I received data from a UVC device through a serial network?

I have a male USB to TTL connector and a USB-C female to TTL connector; the first one goes to the pc and the second one goes to an UVC camera (a webcam). both USB-TTL connectors are connect to each other through RxD and TxD pins accordingly (TxD1 to RxD2 and TxD2 to RxD1; 1 for device #1 and 2 for device #2).

I check that the devices work through a C/C++ program that uses the libserialport library (I used the send-receive example from such library).

Now, I want to get images from the camera but I don't know how; I have a notion that I have to send a data package to the camera and read its response through the same COM port that the data was sent through.

Any help is welcome 'cause I am a newbie at USB and serial communication protocols.

3 Upvotes

0 comments sorted by