Are USB-C cables OTG? What are your utilities?

2023-07-12 02:43:47

Not every USB-C cable is OTG due to the way the wires are connected internally. The connection at the end where the data will be received must follow a specific standard to activate the OTG (On-The-Go) function on the mobile device, be it a cell phone, tablet or DAP (Digital Audio Player). Although not every device supports OTG connection, today the vast majority accept this type of data transmission.

Uses of an OTG cable

What is USB OTG and what are its uses in connecting equipment. Source: innov8wholesale

Through an OTG cable, it is possible to connect a mobile phone, tablet or DAP (Digital Audio Player) to a mouse, keyboard and even an external HDD. With this you can extend the capabilities of a mobile device with ease. An example of this is replacing a notebook with a DAP when playing music using a dedicated desktop DAC, where the player will only have the function of running the applications necessary to read the music and send the data through the USB OTG.

Asynchronous USB and OTG cables in digital audio systems

Asynchronous USB operation using USB OTG cables. Source: usbdacs

In the case of asynchronous communication via USB, it will be necessary to use the USBRequest API, something that is common in audio transmission when connecting DACs. The reason for this is that the DAC (Digital to Analog Converter or Digital to Analog Converter) uses its own clock [1] to adjust the data rate provided by the device that is playing the songs.

[1] The clocks (clocks) of a DAC determine the exact time of the process of converting the digital signal to analogue. Each sound sample recorded in the digital file needs to be positioned at exactly the right time to faithfully recreate the analog signal, thus generating a “distorted” sound in this regard.

About USB OTG

OTG Lightning to USB-A cable “ddHiFi MFi06F”. Source: addictedtoaudio

First used in 2001, the USB OTG specification has evolved over time to reach the Universal Serial Bus (USB) 3.0 specification. Basically, a USB OTG cable makes the interconnected devices have the functions of “Power” and “Host”. It is a supplement to USB designed to allow for a more flexible connection between devices. With this it is possible to connect via USB OTG pen drives, cameras, mouse keyboards to cell phones and tablets.

One of the devices (“OTG-A”) will supply power while the other will consume it (OTB-B). In the default configuration, device A will act as a USB host and device B will function as a peripheral. The host is responsible for powering the USB bus and listing the connected devices. However, there are several USB host APIs (application programming interface) on Android phones and tablets. Are they:

UsbManager
UsbDevice
UsbInterface
UsbEndpoint
UsbDeviceConnection
UsbRequest
UsbConstants

According to the Android developers website, to make communication between two devices via USB it is necessary to use most of the above APIs.

1689134282
#USBC #cables #OTG #utilities

Leave a Replay