Method, device and equipment for switching Tepy-C to OTG mode based on Android and medium
A mode, device technology, applied in the field of Android system
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0034] Preferred embodiments of the present invention is an Android-based Tepy-C method of switching to OTG mode, such as Figure 1-2 shown, including the following steps:
[0035]S00: Connect the USB signal and USB power supply to the Tepy-C interface respectively;
[0036] It is worth noting that in order to better switch in the later stage, after the device is turned on, the USB mode defaults to Host mode.
[0037] S10: After the device is powered on, the user enters the Android sets UI and selects the USB mode through the UI;
[0038] S20: After the driver layer of Tepy-C receives the information sent by the UI in S10, it configures the USB ID_CTL IO of the CPU to high / low;
[0039] S30: The CPU's USB OTG driver detects the USB ID_CTL level state in S20 and drives the USB OTG_B_IDIO changes with the change of USB ID_CTL IO;
[0040] S40: The CPU's USB OTG controller switches the USB mode to Host mode or Device mode according to the status of the USB OTG_B_ID IO in the S30;
[0...
Embodiment 2
[0048] as Figure 4 Illustrated embodiment of the present invention provided a Tepy-C based On Android-C switching to OTC mode apparatus block diagram, for ease of illustration, only shows a portion relevant to the embodiments of the present invention, wherein the apparatus comprises:
[0049] Receive module 101: Tepy-C driver layer receives the USB mode information sent by the Android settings UI, the CPU USB ID_CTL IO is configured high / low;
[0050] Detect module 102, the USB OTG driver of the CPU detects the USB ID_CTL level state, and drives the USB OTG_B_IDIO changes with the change of USB ID_CTL IO;
[0051] Switching module 103, the USB OTG controller of the CPU switches the USB mode to Host mode or Device mode according to the state of the USB OTG_B_ID IO.
[0052]In an embodiment of the present invention, the Android-based Tepy-C switching to OTG mode of the apparatus each module may be implemented by the corresponding hardware or software module, each module may be a s...
Embodiment 3
[0054] as Figure 5 Embodiments of the present invention is shown in an Android-based Tepy-C switched to an OTG mode block diagram, for ease of illustration, only the relevant parts of the embodiments of the present invention are shown, comprising:
[0055] In an embodiment of the present invention, there is provided a device, comprising a memory 201, a processor 202 and a computer program stored in memory and may run on the processor 203, wherein the computer program 203 is executed by the processor 202 to implement such as the above-described Android-based Tepy-C method switched to OTG mode step; e.g., for example Figure 1 Steps S00 to S50 are shown. Alternatively, the processor 202 implements the functions of each unit in each embodiment of the above-described apparatus when executing a computer program 203, for example Figure 4 The function of the receiving module 101, the detection module 102 and the switching module 103 is shown.
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


