Unlock instant, AI-driven research and patent intelligence for your innovation.

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

Pending Publication Date: 2022-05-20
深圳市智微智能科技股份有限公司
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] In today's rapid technology change, the hardware interface is also constantly updated, such as the USB OTG interface used to connect to the computer on the Android device, from the original mini USB interface, micro USB interface to the popular Tepy-C USB interface, Tepy- The C USB interface function is also more and more sought after by mass consumers, but not all main control chips support Tepy-C USB full functions, and the existing Tepy-C USB generally requires an additional external communication chip to realize Tepy -C USB OTG mode switching, in order to meet the consumption trend, replace the previous micro USB interface with the current Tepy-C interface, and only do USB function, but because there is no chip, it is impossible to switch the USB OTG mode, such as connecting to a computer You need to switch USB OTG to Device function, but you need to switch USB OTG to Host mode when connecting a USB flash drive to recognize the contents of the USB flash drive

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method, device and equipment for switching Tepy-C to OTG mode based on Android and medium
  • Method, device and equipment for switching Tepy-C to OTG mode based on Android and medium
  • Method, device and equipment for switching Tepy-C to OTG mode based on Android and medium

Examples

Experimental program
Comparison scheme
Effect test

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.

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention relates to a method for switching a Tepy-C mode into an OTG mode based on Android, and the method comprises the following steps: S10, after equipment is started, a user enters a settes of the Android to set a UI, and selects a USB mode through the UI; s20, after the driving layer of the Tepy-C receives the information sent by the UI in the step S10, configuring a high / low level for the USB IDCTLIO of the CPU; s30, the USB OTG driver of the CPU detects the level state of the USB IDCTL in the step S20, and drives the USBOTGBID IO to change along with the change of the USB IDCTL IO; and S40, the USB OTG controller of the CPU switches the USB mode to the Host mode or the Device mode according to the state of the USB OTG BID IO in the step S30. When the system is started up, a user enters a USB to set UI Settings, a Tepyc mode is selected through the UI Settings, a driving layer of the Tepy-CD configures high and low levels for a USB IDCTL IO of a CPU, meanwhile, a USB OTGBID IO of the CPU can change along with the USB IDCTL IO, a USB controller of the CPU can be switched for switching when the USB OTGBIID IO of the CPU changes, and therefore switching of the USB mode is achieved.

Description

Technical field [0001] The present invention relates to the android system technology field, more particularly, to a method, apparatus, device and medium based on Android-based Tepy-C switching to OTG mode. Background [0002] Nowadays, in the rapid change of technology, the hardware interface is also constantly updated, such as the USB OTG interface used to connect with the computer on Android devices, from the initial mini USB interface, micro USB interface to the current popular Tepy-C USB interface, Tepy-C USB interface function is also more and more sought after by mass consumers, but not all main control chips support Tepy-C USB full function, the existing Tepy-C USB generally also needs an additional plug-in communication chip to achieve the switch of Tepy-C USB OTG mode, in order to meet the consumer trend, the previous micro USB interface is replaced by the current Tepy-C interface, and only do USB function, but because there is no chip can not do USB OTG mode switching,...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F13/10G06F13/40
CPCG06F13/102G06F13/4018G06F13/4068G06F2213/0042Y02D10/00
Inventor 马镭
Owner 深圳市智微智能科技股份有限公司