USB On-The-Go, an extension of the USB 2.0 specification for connecting peripheral devices to each other. USB OTG products can communicate with each other without the need to be connected to a PC. For example, a digital camera can connect to a PDA, or a mobile phone can connect to a printer or a scanner, as long as all the devices are USB OTG-compatible.
One of the important features of USB OTG is that the standard does not require a host PC in order for the devices to communicate. USB OTG devices, known as dual-role peripherals, can act as limited hosts or peripherals themselves depending on how the cables are connected to the devices, and they also can connect to a host PC.
Dual Role device
The USB On-The-Go introduces two new protocols-
-SRP (Session Request Protocol)
-HNP (Host Negotiation Protocol).
SRP (Session Request Protocol)
SRP allows both communicating devices to control when the link's power session is active; in standard USB, only the host is capable of doing so. That allows fine control over the power consumption, which is very important for portable devices such as photo/video cameras and mobile phones. The OTG host can leave the USB link unpowered, and the peripheral asks it to start delivering power. OTG hosts may not have much power to spare from their batteries, and leaving the USB link unpowered helps stretch battery life.
HNP ( Host Negotiation Protocol ).
HNP allows the two devices to exchange their host/slave roles, provide both are OTG dual-role devices. By using HNP for reversing host/slave roles, the USB OTG peripheral is capable of acquiring the control over the data scheduling of the USB. Thus, any device is capable of initiating the data transfer over USB OTG bus.