Hi,
We have a requirement to use one USB OTG as Host and the Other USB OTG as Host and device.
I have tried by using one OTG as Host with MSD, keyboard etc and other OTG as Device for virtual communication.
Is there any example which demonstrates how to configure the USB OTG to enable it to work in device and host mode.
Thanks.
Hi @jingpan,
The keyboard2mouse example in the sdk is for using OTG1 as device and OTG2 as host right?
In my case I want to use OTG1 as host or device based on what is connected and OTG2 to be host. How to achieve this.
Thanks.
HI @EmbeddedTech ,
No, in this demo one controller work as host and the other work as device.
And the pin_detect_hid_mouse is OTG demo.
There isn't other demo can exactly mean your case. You have to combine these demos to your project.
Regards,
Jing