Skip to main content
Visitor II
May 18, 2020
Question

I have a question about hid otg connector selection

  • May 18, 2020
  • 2 replies
  • 659 views

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

0693W000001cOPjQAM.jpg

    This topic has been closed for replies.

    2 replies

    Super User
    May 18, 2020

    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

    HSHIN.1Author
    Visitor II
    May 18, 2020

    Thank you for answer

    Is there any way to make stm32 to be recognized as a device with the connector in the picture above?

    Super User
    May 18, 2020

    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