Plug and play device identification method and electronic device

A plug-and-play technology for electronic equipment, applied in current collectors, electric vehicles, electrical components, etc., can solve the problems of adding USBIC equipment and high cost
CN108475245BActive Publication Date: 2020-12-22HONOR DEVICE CO LTD

Patent Information

Authority / Receiving Office
CN Β· China
Current Assignee / Owner
HONOR DEVICE CO LTD
Publication Date
2020-12-22

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

Abstract

The embodiments of the present invention relate to a method for recognizing a plug-and-play device, and an electronic device. In this method, an electronic device determines a device type of an external device according to a working state of a power bus pin of a universal serial bus (USB) connector. When the device type is a charging-type device, the electronic device enters a charging mode. Alternatively, when the device type is a non-charging-type device, the electronic device acquires a first voltage value of an ID pin of the USB connector. If the first voltage value is greater than a first voltage threshold and is less than a second voltage threshold, the electronic device turns off a plug-and-play OTG function, and the first voltage threshold is less than the second voltage threshold. The method improves the accuracy of identifying the electronic device entering an OTG mode without adding a device, reduces costs, and at the same time, avoids the power consumption generated by frequently awakening the electronic device due to voltage fluctuations of a GPIO port in a non-OTG mode, and prevents the OTG mode from being entered by mistake.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application claims the priority of the Chinese patent application submitted to the China Patent Office on December 20, 2016, with the application number 201611186660.9, and the title of the invention is "A method and device for realizing OTG function on electronic equipment", the entire content of which is incorporated by reference Incorporated in this application document. It is only for the sake of concise expression, and its entire content will not be repeated in the original text in this application document. technical field

[0002] The embodiment of the present application relates to the technical field of electronic device data interface, and in particular to a method for identifying a plug-and-play device and an electronic device. Background technique

[0003] The plug-and-play (On The Go, OTG) technology can realize the connection between various electronic devices for data exchange without a host (Host).

[0004] An electronic device (such as a mobile ...

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