USB OTG Device Identification via Built-in Resistor Voltage Detection
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing USB OTG protocols require manual selection and setting to determine the type of connected OTG devices, leading to inflexible operations and poor user experience, especially when supporting multiple types of OTG devices.
Innovation Solution
A terminal device uses a built-in resistor of the OTG device to determine its type by measuring voltage values and resistance, transferring this information to the USB OTG protocol stack to automatically load the corresponding driver or configuration, enhancing data interaction flexibility and convenience.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Adaptability or versatility
If manual selection and setting are used to determine OTG device type, then the terminal device can support multiple OTG device types, but the operations become inflexible and user experience deteriorates
Solution Approach 1:
The OTG device automatically identifies its own type through the built-in resistor and voltage detection mechanism, eliminating the need for manual user selection. The terminal device reads the resistance value from the OTG device's built-in resistor and automatically determines the device type, allowing the system to serve itself rather than requiring user intervention.
Solution Approach 2:
The patent uses different resistance values (parameters) in the built-in resistor of the OTG device to encode device type information. By detecting and measuring these resistance parameters, the terminal device can distinguish between different OTG device types and automatically load appropriate drivers, transforming manual selection into automatic parameter-based identification.
2Measurement precision
If manual selection method is used to determine device type, then the terminal device can identify connected OTG device, but the process requires user intervention and reduces automation
Solution Approach 1:
The patent replaces the mechanical/manual selection process with an electrical measurement system. The terminal device uses voltage detection and resistance measurement to automatically identify the OTG device type, substituting manual user actions with automated electrical sensing and processing mechanisms.
Solution Approach 2:
The system implements a feedback loop where the terminal device detects the resistance value from the OTG device's built-in resistor, processes this information to determine device type, and automatically loads the appropriate driver. This closed-loop feedback mechanism enables automatic identification without user intervention while maintaining accurate device type determination.
Applied Scientific Principles
This section explains which scientific principles are used to turn an abstract innovation direction into a practical engineering solution.
Function Achieved in This Case
The solution improves operation flexibility and user experience by enabling automatic identification of OTG devices and seamless data interaction between terminal and OTG devices, supporting standard protocols and multiple device types without manual intervention.
Implementation Method 1
the terminal device obtains a voltage value of the first ID signal pin by using the ADC
Data Source
Figure 1~2
Figure 3
Figure 4~5
AI summary
Embodiments of the present invention provide a USB OTG device identification method, which includes a terminal device and an OTG device, where the terminal device includes a processor, a first USB connector, and a first resistor, where the processor includes an ADC, a GPIO module, and a USB_PHY module, where pins of the first USB connector include a first ID signal pin, and one end of the first ID signal pin is separately connected to the ADC and the GPIO module, and is connected to a power supply by means of the first resistor, and the other end of the first ID signal pin is connected to the OTG device; and the OTG device includes a second USB connector, where pins of the second USB connector include a second ID signal pin, one end of the second ID signal pin is connected to the first ID signal pin, and the other end of the second ID signal pin is grounded by means of a second resistor. By means of the present invention, flexibility of OTG device identification can be improved, and convenience of data interaction between a terminal device and an OTG device can be enhanced.