Hello, I've recently bought an OTG cable for my smartphone and also an external battery. Once I plugged the OTG cable into my smartphone, questions started to come to my mind:
1. How does the smartphone know, when you plug a mouse through the OTG cable, if it needs to "feed" current or draw current?
In other words, why if you connect a mouse, the smartphone gives current to the mouse, but if you connect a regular charger cable it receives current? Both in the same port micro USB of the smartphone.
2. How can a smartphone charge another smartphone via OTG, how do you know which one will be charged and which one will donate battery?
It's like connecting 4 wires to each pin: ground with ground, data+ with data+, data- with data- and 5V with 5V.
3. The external battery has 2 kind of ports: input and output. If you connect the input port of the battery to the OTG cable, and this cable to the smartphone, how does it know that it needs to give current through the micro USB port? (kind of the same question as number 1)
1. How does the smartphone know, when you plug a mouse through the OTG cable, if it needs to "feed" current or draw current?
In other words, why if you connect a mouse, the smartphone gives current to the mouse, but if you connect a regular charger cable it receives current? Both in the same port micro USB of the smartphone.
2. How can a smartphone charge another smartphone via OTG, how do you know which one will be charged and which one will donate battery?
It's like connecting 4 wires to each pin: ground with ground, data+ with data+, data- with data- and 5V with 5V.
3. The external battery has 2 kind of ports: input and output. If you connect the input port of the battery to the OTG cable, and this cable to the smartphone, how does it know that it needs to give current through the micro USB port? (kind of the same question as number 1)