Hello Jan,
I've successfully developped a USB VCOM slave program on my microcontroller and am able to communicate with it using a PC.
I would like to adapt this program so that I can communicate with a "USB-to-UART bridge controller" on another board, which I presume will be setup as a slave. What would I need to do to, to adapt my micrcontroller program to make it a USB VCOM host program? The ID pin is pulled high, so by default my microcontroller is the slave. My microcontroller has USB OTG.
Based on my reading, my host program will need to provide extra signalling packets (SOF, SETUP, IN/OUT packets) + schedule transfers.
I see that OTG has circuitry to provide HNP and SRP protocols. Can HNP work in my case with 2 slaves orginally? Or would it be better if my microcontroller was the host at the outset?
Do you have any code examples for any of the above?
Thanks in advance for your comments,
Regards,
Alan