2020-05-17 05:04 PM
I am trying to implement hid otg with stm32f105
But you can use micro 5pin as otg usb connector
USB communication does not work with the normal connector as shown in the picture below.
I wonder why it doesn't work depending on the usb connector
And is there any way to use the connector like picture?
Thank you
2020-05-17 05:30 PM
OTG means, that the STM32 would be capable to work as both device and host (not simultaneously though).
The 5th pin in the mini-AB connector is there to be able to determine, whether the STM32 should work as host or as device.
JW
2020-05-17 05:43 PM
Thank you for answer
Is there any way to make stm32 to be recognized as a device with the connector in the picture above?
2020-05-18 12:47 AM
And do you need the role changing at all?
You can base it on any stimulus, e.g. add some element into your User Interface saying "host/device", or place a simple switch next to the connector.
It will be nonstandard, but the standard way is not that well known among the users anyway...
JW