Is it possible to use a USB mini B as opposed to the USB mini AB for USB OTG?
Can I use either USB mini or USB micro and does it need to be type AB or can I just use type B?
Electrical Engineering Stack Exchange is a question and answer site for electronics and electrical engineering professionals, students, and enthusiasts. It only takes a minute to sign up.Sign up to join this community
As stated by Wikipedia [USB OTG]
"An OTG product must have a single micro-AB receptacle and no other USB receptacles.
An OTG cable has a micro-A plug on one end, and a micro-B plug on the other end (it cannot have two plugs of the same type). OTG adds a fifth pin to the standard USB connector, called the ID-pin; the micro-A plug has the ID pin grounded, while the ID in the micro-B plug is floating. A device with a micro-A plug inserted becomes an OTG A-device, and a device with a micro-B plug inserted becomes a B-device. The type of plug inserted is detected by the state of the pin ID."
There are several other sources which have information about USB OTG.
can ı use usb mini b type receptable instead of mini ab, for OTG?
According to this section of a Wikipedia page, you should only use a "mini ab" receptacle for On The Go (OTG) complaint USB hosts and devices. All non-compliant hosts are to use the "mini a" and non-complaint devices are to use the "mini b".
Note, there is an "mini a" type plug and receptacle and a "mini b" type plug and receptacle designed to be incomparable (can not be interchanged accidentally) with one another. Here are images of the receptacles:
By contrast, the "mini ab" receptacle is designed to accept either "mini a" or "mini b" plugs. Here is an image of the "mini ab" receptacle:
A device that has a "mini ab" receptacle is responsible for detecting if the "a" end or the "b" end of a USB cable has been inserted into the "mini ab" receptacle. This is done using the 5th pin or the ID pin. This text, from the above Wikipedia link, explains how this works:
To enable Type-AB receptacles to distinguish which end of a cable is plugged in, mini and micro plugs have an "ID" pin in addition to the four contacts found in standard-size USB connectors. This ID pin is connected to GND in Type-A plugs, and left unconnected in Type-B plugs. Typically, a pull-up resistor in the device is used to detect the presence or absence of an ID connection.