WO2017041461A1 - Efficient universal serial bus utilization method and universal serial bus device - Google Patents

Efficient universal serial bus utilization method and universal serial bus device Download PDF

Info

Publication number
WO2017041461A1
WO2017041461A1 PCT/CN2016/075995 CN2016075995W WO2017041461A1 WO 2017041461 A1 WO2017041461 A1 WO 2017041461A1 CN 2016075995 W CN2016075995 W CN 2016075995W WO 2017041461 A1 WO2017041461 A1 WO 2017041461A1
Authority
WO
WIPO (PCT)
Prior art keywords
usb
data communication
communication hardware
pin signal
hardware pin
Prior art date
Application number
PCT/CN2016/075995
Other languages
French (fr)
Chinese (zh)
Inventor
王超
Original Assignee
深圳市中兴微电子技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳市中兴微电子技术有限公司 filed Critical 深圳市中兴微电子技术有限公司
Publication of WO2017041461A1 publication Critical patent/WO2017041461A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/40Bus structure
    • G06F13/4063Device-to-bus coupling
    • G06F13/4068Electrical coupling
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/40Bus structure

Definitions

  • the present invention relates to a universal serial bus (USB) technology, and more particularly to a USB efficient use method, a USB device, and a storage medium.
  • USB universal serial bus
  • USB as a universal serial bus, is an interface technology used in the computer field. It not only provides high-speed data communication, convenient plug-and-play functionality, but also the ability to charge devices when connected to a USB power source or computer.
  • USB protocol stipulates a power-saving mechanism, it is still difficult to meet the current low-power requirements in many practical applications. Therefore, when not using USB, it is best to power down the USB controller and USB chip (USB PHY) to maximize power consumption. For example, when the USB is in the unplugged state or connected to the charger, there is no USB communication, and the USB can be completely powered off.
  • USB enumeration when the USB device detects the insertion action, because it does not know whether the computer or the charger is inserted, it is necessary to power on and initialize the USB first, and then check whether there is USB communication (here mainly referred to as USB enumeration). If there is USB communication, it can be judged to be plugged into the computer (PC, Personal Computer); if the USB communication is not detected for a long time, it can be judged that it is plugged into the charger, and the USB power needs to be disconnected at this time.
  • PC Personal Computer
  • the processing flow of the above USB device insertion has some defects.
  • the charger When the charger is inserted, it takes a long time to judge (the time is too short to confirm whether there is USB communication), and the USB controller and USB are inevitably needed.
  • Power-on initialization and power-down operation of the PHY The entire operation judgment process is relatively cumbersome and time consuming, and there is a problem of identifying errors if the waiting time is insufficient.
  • an embodiment of the present invention provides a USB efficient use method, a USB device, and a storage medium.
  • the USB controller and the USB PHY are not powered on.
  • the detecting the pin data of the USB data communication hardware includes:
  • the level of the USB data communication hardware pin signal is detected.
  • the method further includes:
  • the method further includes:
  • Charging is performed by the charging device.
  • the number of data communication hardware pins of the USB is more than one;
  • the detecting the USB data communication hardware pin signal includes:
  • the detecting unit is configured to detect a USB data communication hardware pin signal when detecting the insertion of the USB cable;
  • a first control unit configured to detect a change in a pin signal of the data communication hardware When it is determined that the inserted device is a communication device, power on the USB controller and the USB PHY;
  • the second control unit is configured to: when it is detected that the data communication hardware pin signal has not changed, determine that the inserted device is a charging device, and not power on the USB controller and the USB PHY.
  • the detecting unit is further configured to detect a level of a data communication hardware pin signal of the USB.
  • the USB device further includes:
  • a communication unit configured to perform USB enumeration and to communicate with the communication device.
  • the USB device further includes:
  • the power storage unit is configured to be charged by the charging device.
  • the number of data communication hardware pins of the USB is more than one; the detecting unit is further configured to detect one or more pins of the USB data communication hardware pin.
  • a storage medium provided by an embodiment of the present invention, wherein the storage medium stores a computer program configured to execute the universal serial bus USB efficient utilization method.
  • the detecting unit is also connected to the data communication hardware pin.
  • the detection unit can detect the USB data communication hardware pin signal. Whether the level signal of the pin signal changes can directly confirm whether the charging device or the communication device (such as a PC) is inserted, and accordingly, it is determined whether the USB controller and the USB PHY need to be powered on. In this way, unnecessary power-on initialization of the USB can be avoided, and the accuracy of the original process and recognition is greatly simplified.
  • FIG. 1 is a schematic flowchart of a method for efficiently utilizing USB according to Embodiment 1 of the present invention
  • USB pin connection according to an embodiment of the present invention
  • FIG. 3 is a connection diagram of a USB 3.0 pin according to an embodiment of the present invention.
  • FIG. 5 is a connection diagram of a USB2.0 pin D+ and D- according to an embodiment of the present invention.
  • FIG. 6 is a schematic flowchart of a method for efficiently utilizing USB according to Embodiment 3 of the present invention.
  • FIG. 7 is a diagram showing a USB 2.0 pin D+ connection according to an embodiment of the present invention.
  • FIG. 8 is a schematic flowchart of a method for efficiently utilizing USB according to Embodiment 4 of the present invention.
  • FIG. 9 is a diagram showing a USB 2.0 pin D-connection according to an embodiment of the present invention.
  • FIG. 10 is a schematic flowchart of a method for efficiently utilizing USB according to Embodiment 5 of the present invention.
  • FIG. 11 is a schematic structural diagram of a USB device according to an embodiment of the present invention.
  • FIG. 1 is a schematic flowchart of a method for efficiently utilizing USB according to Embodiment 1 of the present invention. As shown in FIG. 1 , the method for efficiently utilizing USB includes the following steps:
  • Step 101 When detecting the insertion of the USB cable, detecting the data communication hardware pin signal of the USB.
  • the detecting unit 230 is also connected to the data communication hardware pin.
  • the detecting unit 230 can detect the USB data communication hardware pin signal.
  • the detecting unit 230 first reads the USB data communication hardware pin signal to determine whether the signal has changed.
  • the detection of the USB data communication hardware pin signal is specifically: detecting the level of the USB data communication hardware pin signal.
  • the number of data communication hardware pins of the USB is more than one;
  • the USB version is different and can detect one or more pins in the USB data communication hardware pin.
  • Step 102 When it is detected that the data communication hardware pin signal changes, it is determined that the inserted device is a communication device, and the USB controller and the universal serial bus chip USB PHY are powered on.
  • the USB device is inserted into the communication device such as a PC, and at this time, the USB controller and the USB PHY need to be powered on, and USB enumeration is performed to communicate with the communication device.
  • the level of the data communication hardware pin signal changes from a high level to a low level, or from a low level to a high level, the level of the data communication hardware pin signal is changed.
  • the specific values of the high level and the low level are related to the device, for example, the high level is 5V and the low level is 0V.
  • the types of communication devices may be various, such as a tablet, a mobile phone, a host, a PC, and the like.
  • Step 103 When it is detected that the data communication hardware pin signal has not changed, it is determined that the inserted device is a charging device, and the USB controller and the USB PHY are not powered on.
  • the USB controller and the USB PHY are not powered on. This allows for more efficient use of USB, avoiding unnecessary software processing and hardware power consumption.
  • the USB can quickly identify according to an external situation, so as to achieve flexible adaptability. This simplifies the unnecessary USB up and down operation, shortens the recognition time, and has higher operability.
  • USB efficient use method of the embodiment of the present invention is further described below in conjunction with a specific application scenario of the USB device.
  • FIG. 3 is a connection diagram of a USB 3.0 pin according to an embodiment of the present invention.
  • the USB3.0 hardware interface 310 has six pins for data communication, namely D+, D-, SSTX+, SSTX-, and SSRX+. , SSRX-.
  • the six pins are not only connected to the USB PHY 320, but also connected to the detecting unit 330.
  • the detecting unit 330 can detect the data communication hardware pin signal in the USB3.0 hardware interface 310.
  • the embodiment of the present invention further provides a USB efficient use method. As shown in FIG. 4, the method includes the following steps:
  • Step S410 detecting an insertion action of the USB device.
  • Step S420 detecting the SSTX+/SSTX-/SSRX+/SSRX-/D+/D- pins of the USB, and checking whether the level signal of the SSTX+/SSTX-/SSRX+/SSRX- or the level signal of the D+/D- has changed. Go to step S430 or S450.
  • step S430 if there is a change, it can be considered that the computer is inserted, the USB controller and the USB PHY are powered on, and the initial configuration is performed.
  • step S440 the USB starts enumerating, the USB device can communicate with the computer, and the USB device enters the communication state, and the process ends.
  • step S450 if there is no change, it is judged that the charger is inserted, and there is no need to operate the USB.
  • step S460 without USB communication, the USB device enters a charging state.
  • FIG. 5 is a connection diagram of a USB 2.0 pin D+ and D- according to an embodiment of the present invention.
  • the USB2.0 hardware interface 510 has two pins for data communication, namely D+ and D-.
  • the two pins are not only connected to the USB PHY 520, but also connected to the detecting unit 530.
  • the detecting unit 530 can detect the data communication hardware pin signal in the USB3.0 hardware interface 510.
  • the embodiment of the present invention further provides a USB efficient use method. As shown in FIG. 6, the method includes the following steps:
  • Step S610 detecting an insertion action of the USB device.
  • Step S620 detecting the D+ pin and the D- pin of the USB, checking whether the level signal thereof changes, and performing step S630 or step S650.
  • step S630 if there is a change, it can be considered that the computer is inserted, and the USB controller and the USB PHY need to be powered on and initialized.
  • step S640 the USB starts enumerating, the USB device can communicate with the computer, and the USB device enters the communication state, and the process ends.
  • step S650 if there is no change, it is judged that the charger is inserted, and there is no need to operate the USB.
  • step S660 without USB communication, the USB device enters a charging state.
  • FIG. 7 is a diagram showing a USB 2.0 pin D+ connection according to an embodiment of the present invention.
  • the D+ pin is not only connected to the USB PHY 720, but also connected to the detecting unit 730, and the detecting unit 730 can detect the data communication hardware pin signal in the USB2.0 hardware interface 710.
  • the embodiment of the present invention further provides a USB efficient use method. As shown in FIG. 8, the method includes the following steps:
  • Step S810 detecting an insertion action of the USB device.
  • step S820 the D+ pins of the USB are detected to check whether their level signals have changed, and step S830 or step S850 is performed.
  • step S830 if there is a change, it can be considered that the computer is inserted, and the USB controller and the USB PHY need to be powered on and initialized.
  • step S840 the USB starts enumerating, the USB device can communicate with the computer, and the USB device enters the communication state, and the process ends.
  • step S850 if there is no change, it is judged that the charger is inserted, and there is no need to operate the USB.
  • step S860 without USB communication, the USB device enters a charging state.
  • FIG. 9 is a diagram showing a USB 2.0 pin D-connection according to an embodiment of the present invention.
  • the D- pin is not only connected to the USB PHY 920, but also connected to the detecting unit 930.
  • the detecting unit 930 can detect the data communication hardware pin signal in the USB2.0 hardware interface 910.
  • the embodiment of the present invention further provides a USB efficient use method. As shown in FIG. 10, the method includes the following steps:
  • Step S110 detecting an insertion action of the USB device.
  • step S120 the D- pins of the USB are detected to check whether their level signals have changed, and step S130 or step S150 is performed.
  • step S130 if there is a change, it can be considered that the computer is inserted, and the USB controller and the USB PHY need to be powered on and initialized.
  • step S140 the USB starts enumerating, the USB device can communicate with the computer, and the USB device enters the communication state.
  • step S150 if there is no change, it is judged that the charger is inserted, and there is no need to operate the USB.
  • step S160 without USB communication, the USB device enters a charging state.
  • FIG. 11 is a schematic structural diagram of a USB device according to an embodiment of the present invention. As shown in FIG. 11, the USB device includes:
  • the detecting unit 21 is configured to detect, when the USB cable is plugged in, the data communication hardware pin signal of the USB;
  • the first control unit 22 is configured to: when detecting that the data communication hardware pin signal changes, determine that the inserted device is a communication device, and power on the USB controller and the USB PHY;
  • the second control unit 23 is configured to: when it is detected that the data communication hardware pin signal has not changed, determine that the inserted device is a charging device, not to the USB controller and the USB PHY Power-on.
  • the detecting unit 21 is further configured to detect a level of a data communication hardware pin signal of the USB.
  • the USB device further includes a communication unit 24 configured to perform USB enumeration and to communicate with the communication device.
  • the USB device further includes a power storage unit 25 configured to be charged by the charging device.
  • the number of data communication hardware pins of the USB is more than one; the detecting unit 21 is further configured to detect one or more pins of the USB data communication hardware pins.
  • Embodiments of the present invention describe a storage medium in which a computer program is stored, the computer program being configured to perform the universal serial bus USB efficient use method of the foregoing embodiments.
  • the disclosed method and smart device may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner such as: multiple units or components may be combined, or Can be integrated into another system, or some features can be ignored or not executed.
  • the coupling, or direct coupling, or communication connection of the components shown or discussed may be indirect coupling or communication connection through some interfaces, devices or units, and may be electrical, mechanical or other forms. of.
  • the units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place.
  • the party may also be distributed to multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one second processing unit, or each unit may be separately used as one unit, or two or more units may be integrated into one unit;
  • the above integrated unit can be implemented in the form of hardware or in the form of hardware plus software functional units.
  • the detecting unit when the USB device has an insertion action, can detect the USB data communication hardware pin signal. Whether the level signal of the pin signal changes can directly confirm whether the charging device or the communication device (such as a PC) is inserted, and accordingly, it is determined whether the USB controller and the USB PHY need to be powered on. In this way, unnecessary power-on initialization of the USB can be avoided, and the accuracy of the original process and recognition is greatly simplified.

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Systems (AREA)
  • Power Sources (AREA)

Abstract

A USB utilization method, a USB device and a storage medium. The method comprises: when it is detected that a USB connection cable is inserted, detecting a data communication hardware pin signal of a USB; when it is detected that the data communication hardware pin signal changes, determining that an inserted device is a communication device, and powering up a USB controller and a USB PHY; and when it is detected that the data communication hardware pin signal does not change, determining that the inserted device is a charging device, and not powering up the USB controller and the USB PHY. In this way, an unnecessary power-up initialization action of a USB can be avoided, both greatly simplifying an original flow and improving the accuracy of recognition.

Description

通用串行总线高效利用方法、通用串行总线设备Universal serial bus efficient use method, universal serial bus device 技术领域Technical field
本发明涉及通用串行总线(USB,Universal Serial Bus)技术,尤其涉及一种USB高效利用方法、USB设备、存储介质。The present invention relates to a universal serial bus (USB) technology, and more particularly to a USB efficient use method, a USB device, and a storage medium.
背景技术Background technique
USB作为通用串行总线,是应用在计算机领域的接口技术。它不仅提供了高速率的数据通信功能、方便的即插即用功能,而且在连接USB电源或者电脑时还具有为设备充电的能力。USB, as a universal serial bus, is an interface technology used in the computer field. It not only provides high-speed data communication, convenient plug-and-play functionality, but also the ability to charge devices when connected to a USB power source or computer.
USB协议虽然规定了一套省电机制,但是很多实际应用的时候仍然难以满足现今的低功耗需求。因此在不使用USB的时候,最好将USB控制器和USB芯片(USB PHY)掉电,以达到最大化降低功耗的目的。例如USB处于拔出状态或与充电器相连时,是没有USB通讯的,此时就可以给USB彻底下电。Although the USB protocol stipulates a power-saving mechanism, it is still difficult to meet the current low-power requirements in many practical applications. Therefore, when not using USB, it is best to power down the USB controller and USB chip (USB PHY) to maximize power consumption. For example, when the USB is in the unplugged state or connected to the charger, there is no USB communication, and the USB can be completely powered off.
另外,当USB设备侦测到插入动作时,因为不知道插入的是电脑还是充电器,所以需要先给USB上电并初始化,随后查看是否有USB通讯(这里主要指USB枚举)。如果有USB通讯,则可判断是插入到电脑(PC,Personal Computer)上;如果长时间没检测到USB通讯,则可判断出是插入到充电器上,此时需要再将USB电断开。In addition, when the USB device detects the insertion action, because it does not know whether the computer or the charger is inserted, it is necessary to power on and initialize the USB first, and then check whether there is USB communication (here mainly referred to as USB enumeration). If there is USB communication, it can be judged to be plugged into the computer (PC, Personal Computer); if the USB communication is not detected for a long time, it can be judged that it is plugged into the charger, and the USB power needs to be disconnected at this time.
上述USB设备插入的处理流程存在一些缺陷,当插入的是充电器时,需要较长时间才能判断确定(时间过短没法确认是否会有USB通讯),另外不可避免的需要USB控制器和USB PHY的上电初始化以及掉电操作。整个操作判断过程相对繁琐、耗时,而且如果等待时间不足会存在识别错误的问题。 The processing flow of the above USB device insertion has some defects. When the charger is inserted, it takes a long time to judge (the time is too short to confirm whether there is USB communication), and the USB controller and USB are inevitably needed. Power-on initialization and power-down operation of the PHY. The entire operation judgment process is relatively cumbersome and time consuming, and there is a problem of identifying errors if the waiting time is insufficient.
发明内容Summary of the invention
为解决上述技术问题,本发明实施例提供了一种USB高效利用方法、USB设备、存储介质。To solve the above technical problem, an embodiment of the present invention provides a USB efficient use method, a USB device, and a storage medium.
本发明实施例提供的USB高效利用方法包括:The USB efficient utilization method provided by the embodiment of the present invention includes:
检测到插入USB连接线时,对USB的数据通讯硬件引脚信号进行检测;When detecting the insertion of the USB cable, the data communication hardware pin signal of the USB is detected;
当检测到所述数据通讯硬件引脚信号发生变化时,确定所插入的设备为通讯设备,对USB控制器和USB PHY上电;When it is detected that the data communication hardware pin signal changes, it is determined that the inserted device is a communication device, and the USB controller and the USB PHY are powered on;
当检测到所述数据通讯硬件引脚信号未发生变化时,确定所插入的设备为充电设备,不对所述USB控制器和USB PHY上电。When it is detected that the data communication hardware pin signal has not changed, it is determined that the inserted device is a charging device, and the USB controller and the USB PHY are not powered on.
本发明实施例中,所述对USB的数据通讯硬件引脚信号进行检测,包括:In the embodiment of the present invention, the detecting the pin data of the USB data communication hardware includes:
对USB的数据通讯硬件引脚信号的电平进行检测。The level of the USB data communication hardware pin signal is detected.
本发明实施例中,所述对USB控制器和USB PHY上电后,所述方法还包括:In the embodiment of the present invention, after the USB controller and the USB PHY are powered on, the method further includes:
进行USB枚举,并与所述通讯设备进行通讯。Perform USB enumeration and communicate with the communication device.
本发明实施例中,所述确定所插入的设备为充电设备后,所述方法还包括:In the embodiment of the present invention, after the determining that the inserted device is a charging device, the method further includes:
通过所述充电设备进行充电。Charging is performed by the charging device.
本发明实施例中,所述USB的数据通讯硬件引脚的个数为一个以上;In the embodiment of the present invention, the number of data communication hardware pins of the USB is more than one;
所述对USB的数据通讯硬件引脚信号进行检测,包括:The detecting the USB data communication hardware pin signal includes:
对USB的数据通讯硬件引脚中的一个或多个引脚进行检测。Detect one or more pins in the USB data communication hardware pin.
本发明实施例提供的USB设备包括:The USB device provided by the embodiment of the present invention includes:
检测单元,配置为检测到插入USB连接线时,对USB的数据通讯硬件引脚信号进行检测;The detecting unit is configured to detect a USB data communication hardware pin signal when detecting the insertion of the USB cable;
第一控制单元,配置为当检测到所述数据通讯硬件引脚信号发生变化 时,确定所插入的设备为通讯设备,对USB控制器和USB PHY上电;a first control unit configured to detect a change in a pin signal of the data communication hardware When it is determined that the inserted device is a communication device, power on the USB controller and the USB PHY;
第二控制单元,配置为当检测到所述数据通讯硬件引脚信号未发生变化时,确定所插入的设备为充电设备,不对所述USB控制器和USB PHY上电。The second control unit is configured to: when it is detected that the data communication hardware pin signal has not changed, determine that the inserted device is a charging device, and not power on the USB controller and the USB PHY.
本发明实施例中,所述检测单元,还配置为对USB的数据通讯硬件引脚信号的电平进行检测。In the embodiment of the present invention, the detecting unit is further configured to detect a level of a data communication hardware pin signal of the USB.
本发明实施例中,所述USB设备还包括:In the embodiment of the present invention, the USB device further includes:
通讯单元,配置为进行USB枚举,并与所述通讯设备进行通讯。A communication unit configured to perform USB enumeration and to communicate with the communication device.
本发明实施例中,所述USB设备还包括:In the embodiment of the present invention, the USB device further includes:
蓄电单元,配置为通过所述充电设备进行充电。The power storage unit is configured to be charged by the charging device.
本发明实施例中,所述USB的数据通讯硬件引脚的个数为一个以上;所述检测单元,还配置为对USB的数据通讯硬件引脚中的一个或多个引脚进行检测。In the embodiment of the present invention, the number of data communication hardware pins of the USB is more than one; the detecting unit is further configured to detect one or more pins of the USB data communication hardware pin.
本发明实施例提供的存储介质,所述存储介质中存储有计算机程序,所述计算机程序配置为执行所述的通用串行总线USB高效利用方法。A storage medium provided by an embodiment of the present invention, wherein the storage medium stores a computer program configured to execute the universal serial bus USB efficient utilization method.
本发明实施例的技术方案中,在USB PHY与USB硬件接口的数据通信硬件引脚相连的基础上,检测单元也同数据通讯硬件引脚相连。这样在USB设备有插入动作时,检测单元就可以对USB的数据通讯硬件引脚信号进行检测。引脚信号的电平信号是否发生变化可以直接确认插入的是充电设备还是通讯设备(如PC),并据此判断是否需要对USB控制器和USB PHY上电。这样就可以避免USB不必要的上电初始化动作,同时大大简化了原有流程及识别的准确性。In the technical solution of the embodiment of the present invention, on the basis that the USB PHY is connected to the data communication hardware pin of the USB hardware interface, the detecting unit is also connected to the data communication hardware pin. In this way, when the USB device has an insertion action, the detection unit can detect the USB data communication hardware pin signal. Whether the level signal of the pin signal changes can directly confirm whether the charging device or the communication device (such as a PC) is inserted, and accordingly, it is determined whether the USB controller and the USB PHY need to be powered on. In this way, unnecessary power-on initialization of the USB can be avoided, and the accuracy of the original process and recognition is greatly simplified.
附图说明DRAWINGS
图1为本发明实施例一的USB高效利用方法的流程示意图;1 is a schematic flowchart of a method for efficiently utilizing USB according to Embodiment 1 of the present invention;
图2为本发明实施例的USB引脚连接; 2 is a USB pin connection according to an embodiment of the present invention;
图3为本发明实施例的USB3.0引脚连接图;3 is a connection diagram of a USB 3.0 pin according to an embodiment of the present invention;
图4为本发明实施例二的USB高效利用方法的流程示意图;4 is a schematic flowchart of a method for efficiently utilizing USB according to Embodiment 2 of the present invention;
图5为本发明实施例的USB2.0引脚D+、D-连接图;FIG. 5 is a connection diagram of a USB2.0 pin D+ and D- according to an embodiment of the present invention; FIG.
图6为本发明实施例三的USB高效利用方法的流程示意图;6 is a schematic flowchart of a method for efficiently utilizing USB according to Embodiment 3 of the present invention;
图7为本发明实施例的USB2.0引脚D+连接图;FIG. 7 is a diagram showing a USB 2.0 pin D+ connection according to an embodiment of the present invention; FIG.
图8为本发明实施例四的USB高效利用方法的流程示意图;8 is a schematic flowchart of a method for efficiently utilizing USB according to Embodiment 4 of the present invention;
图9为本发明实施例的USB2.0引脚D-连接图;FIG. 9 is a diagram showing a USB 2.0 pin D-connection according to an embodiment of the present invention; FIG.
图10为本发明实施例五的USB高效利用方法的流程示意图;10 is a schematic flowchart of a method for efficiently utilizing USB according to Embodiment 5 of the present invention;
图11为本发明实施例的USB设备的结构组成示意图。FIG. 11 is a schematic structural diagram of a USB device according to an embodiment of the present invention.
具体实施方式detailed description
为了能够更加详尽地了解本发明实施例的特点与技术内容,下面结合附图对本发明实施例的实现进行详细阐述,所附附图仅供参考说明之用,并非用来限定本发明实施例。The embodiments of the present invention are described in detail below with reference to the accompanying drawings.
图1为本发明实施例一的USB高效利用方法的流程示意图,如图1所示,所述USB高效利用方法包括以下步骤:FIG. 1 is a schematic flowchart of a method for efficiently utilizing USB according to Embodiment 1 of the present invention. As shown in FIG. 1 , the method for efficiently utilizing USB includes the following steps:
步骤101:检测到插入USB连接线时,对USB的数据通讯硬件引脚信号进行检测。Step 101: When detecting the insertion of the USB cable, detecting the data communication hardware pin signal of the USB.
参照图2,在USB PHY 220与USB硬件接口210的数据通信硬件引脚相连的基础上,检测单元230也同数据通讯硬件引脚相连。当有USB连接线插入时,检测单元230就可以对USB的数据通讯硬件引脚信号进行检测。检测单元230首先读取USB的数据通讯硬件引脚信号,判断该信号是否有发生变化。Referring to FIG. 2, on the basis of the USB PHY 220 being connected to the data communication hardware pin of the USB hardware interface 210, the detecting unit 230 is also connected to the data communication hardware pin. When a USB cable is inserted, the detecting unit 230 can detect the USB data communication hardware pin signal. The detecting unit 230 first reads the USB data communication hardware pin signal to determine whether the signal has changed.
本发明实施例中,对USB的数据通讯硬件引脚信号进行检测具体为:对USB的数据通讯硬件引脚信号的电平进行检测。In the embodiment of the present invention, the detection of the USB data communication hardware pin signal is specifically: detecting the level of the USB data communication hardware pin signal.
本发明实施例中,USB的数据通讯硬件引脚的个数为一个以上;根据 USB的版本不同而不同,可以对USB的数据通讯硬件引脚中的一个或多个引脚进行检测。In the embodiment of the present invention, the number of data communication hardware pins of the USB is more than one; The USB version is different and can detect one or more pins in the USB data communication hardware pin.
步骤102:当检测到所述数据通讯硬件引脚信号发生变化时,确定所插入的设备为通讯设备,对USB控制器和通用串行总线芯片USB PHY上电。Step 102: When it is detected that the data communication hardware pin signal changes, it is determined that the inserted device is a communication device, and the USB controller and the universal serial bus chip USB PHY are powered on.
本发明实施例中,如果数据通讯硬件引脚信号的电平发生了变化,则可以确认USB设备是插入到通讯设备如PC中,此时,需要对USB控制器和USB PHY上电初始化,并进行USB枚举,与所述通讯设备进行通讯。In the embodiment of the present invention, if the level of the data communication hardware pin signal changes, it can be confirmed that the USB device is inserted into the communication device such as a PC, and at this time, the USB controller and the USB PHY need to be powered on, and USB enumeration is performed to communicate with the communication device.
例如,数据通讯硬件引脚信号的电平由高电平变为了低电平,或者由低电平变为了高电平,则认为数据通讯硬件引脚信号的电平发生了变化。这里,高电平与低电平的具体数值与设备有关,例如,高电平为5V,低电平为0V。For example, if the level of the data communication hardware pin signal changes from a high level to a low level, or from a low level to a high level, the level of the data communication hardware pin signal is changed. Here, the specific values of the high level and the low level are related to the device, for example, the high level is 5V and the low level is 0V.
上述方案中,通讯设备的类型可以是多种,例如平板电脑、手机、主机、PC等等。In the above solution, the types of communication devices may be various, such as a tablet, a mobile phone, a host, a PC, and the like.
步骤103:当检测到所述数据通讯硬件引脚信号未发生变化时,确定所插入的设备为充电设备,不对所述USB控制器和USB PHY上电。Step 103: When it is detected that the data communication hardware pin signal has not changed, it is determined that the inserted device is a charging device, and the USB controller and the USB PHY are not powered on.
本发明实施例中,如果数据通讯硬件引脚信号的电平未发生变化,则可以确认USB设备是插入到充电设备上,此时不会用USB来通讯,因此无需再对USB采取额外的操作,即不对所述USB控制器和USB PHY上电。这样可以更加有效的使用USB,避免不必要的软件处理和硬件功耗。In the embodiment of the present invention, if the level of the data communication hardware pin signal does not change, it can be confirmed that the USB device is inserted into the charging device, and the USB communication is not performed at this time, so there is no need to perform additional operations on the USB. That is, the USB controller and the USB PHY are not powered on. This allows for more efficient use of USB, avoiding unnecessary software processing and hardware power consumption.
本发明实施例在USB设备的插拔场景中,USB能够根据外部情况,快捷的进行识别,以达到灵活的适应能力。这样简化不必要的USB上、下电动作的同时,缩短了识别时间,具有更高的可以操作性。In the plug-and-play scenario of the USB device in the embodiment of the present invention, the USB can quickly identify according to an external situation, so as to achieve flexible adaptability. This simplifies the unnecessary USB up and down operation, shortens the recognition time, and has higher operability.
下面结合USB设备的具体应用场景对本发明实施例的USB高效利用方法做进一步描述。The USB efficient use method of the embodiment of the present invention is further described below in conjunction with a specific application scenario of the USB device.
实施例一 Embodiment 1
参照图3,图3为本发明实施例的USB3.0引脚连接图,USB3.0硬件接口310具有6个用于数据通讯的引脚,分别为D+、D-、SSTX+、SSTX-、SSRX+、SSRX-。这6个引脚不仅与USB PHY 320相连,还与检测单元330相连,检测单元330能够检测到USB3.0硬件接口310中数据通讯硬件引脚信号。Referring to FIG. 3, FIG. 3 is a connection diagram of a USB 3.0 pin according to an embodiment of the present invention. The USB3.0 hardware interface 310 has six pins for data communication, namely D+, D-, SSTX+, SSTX-, and SSRX+. , SSRX-. The six pins are not only connected to the USB PHY 320, but also connected to the detecting unit 330. The detecting unit 330 can detect the data communication hardware pin signal in the USB3.0 hardware interface 310.
结合图3所示的USB3.0引脚连接图,本发明实施例还提供一种USB高效利用方法,如图4所示,所述方法包括以下步骤:In conjunction with the USB 3.0 pin connection diagram shown in FIG. 3, the embodiment of the present invention further provides a USB efficient use method. As shown in FIG. 4, the method includes the following steps:
步骤S410,侦测USB设备的插入动作。Step S410, detecting an insertion action of the USB device.
步骤S420,检测USB的SSTX+/SSTX-/SSRX+/SSRX-/D+/D-引脚,查看SSTX+/SSTX-/SSRX+/SSRX-的电平信号或者D+/D-的电平信号是否有发生变化,执行步骤S430或S450。Step S420, detecting the SSTX+/SSTX-/SSRX+/SSRX-/D+/D- pins of the USB, and checking whether the level signal of the SSTX+/SSTX-/SSRX+/SSRX- or the level signal of the D+/D- has changed. Go to step S430 or S450.
步骤S430,如果有发生变化,则可以认为插入的是电脑,给USB控制器和USB PHY上电,并进行初始化配置。In step S430, if there is a change, it can be considered that the computer is inserted, the USB controller and the USB PHY are powered on, and the initial configuration is performed.
步骤S440,USB开始枚举,USB设备与电脑可以通讯,USB设备进入通讯状态,结束本流程。In step S440, the USB starts enumerating, the USB device can communicate with the computer, and the USB device enters the communication state, and the process ends.
步骤S450,如果没有发生变化,则判断插入的是充电器,无需对USB进行操作。In step S450, if there is no change, it is judged that the charger is inserted, and there is no need to operate the USB.
步骤S460,没有USB通讯,USB设备进入充电状态。In step S460, without USB communication, the USB device enters a charging state.
实施例二Embodiment 2
参照图5,图5为本发明实施例的USB2.0引脚D+、D-连接图,USB2.0硬件接口510具有2个用于数据通讯的引脚,分别为D+、D-。这2个引脚不仅与USB PHY 520相连,还与检测单元530相连,检测单元530能够检测到USB3.0硬件接口510中数据通讯硬件引脚信号。Referring to FIG. 5, FIG. 5 is a connection diagram of a USB 2.0 pin D+ and D- according to an embodiment of the present invention. The USB2.0 hardware interface 510 has two pins for data communication, namely D+ and D-. The two pins are not only connected to the USB PHY 520, but also connected to the detecting unit 530. The detecting unit 530 can detect the data communication hardware pin signal in the USB3.0 hardware interface 510.
结合图5所示的USB2.0引脚D+、D-连接图,本发明实施例还提供一种USB高效利用方法,如图6所示,所述方法包括以下步骤: In conjunction with the USB 2.0 pin D+ and D-connection diagrams shown in FIG. 5, the embodiment of the present invention further provides a USB efficient use method. As shown in FIG. 6, the method includes the following steps:
步骤S610,侦测USB设备的插入动作。Step S610, detecting an insertion action of the USB device.
步骤S620,检测USB的D+引脚和D-引脚,查看它的电平信号是否有发生变化,执行步骤S630或步骤S650。Step S620, detecting the D+ pin and the D- pin of the USB, checking whether the level signal thereof changes, and performing step S630 or step S650.
步骤S630,如果有发生变化,则可以认为插入的是电脑,需要给USB控制器和USB PHY上电,并进行初始化配置。In step S630, if there is a change, it can be considered that the computer is inserted, and the USB controller and the USB PHY need to be powered on and initialized.
步骤S640,USB开始枚举,USB设备与电脑可以通讯,USB设备进入通讯状态,结束本流程。In step S640, the USB starts enumerating, the USB device can communicate with the computer, and the USB device enters the communication state, and the process ends.
步骤S650,如果没有发生变化,则判断插入的是充电器,无需对USB进行操作。In step S650, if there is no change, it is judged that the charger is inserted, and there is no need to operate the USB.
步骤S660,没有USB通讯,USB设备进入充电状态。In step S660, without USB communication, the USB device enters a charging state.
实施例三Embodiment 3
参照图7,图7为本发明实施例的USB2.0引脚D+连接图。D+引脚不仅与USB PHY 720相连,还与检测单元730相连,检测单元730能够检测到USB2.0硬件接口710中数据通讯硬件引脚信号。Referring to FIG. 7, FIG. 7 is a diagram showing a USB 2.0 pin D+ connection according to an embodiment of the present invention. The D+ pin is not only connected to the USB PHY 720, but also connected to the detecting unit 730, and the detecting unit 730 can detect the data communication hardware pin signal in the USB2.0 hardware interface 710.
结合图7所示的USB2.0引脚D+连接图,本发明实施例还提供一种USB高效利用方法,如图8所示,所述方法包括以下步骤:In conjunction with the USB 2.0 pin D+ connection diagram shown in FIG. 7, the embodiment of the present invention further provides a USB efficient use method. As shown in FIG. 8, the method includes the following steps:
步骤S810,侦测USB设备的插入动作。Step S810, detecting an insertion action of the USB device.
步骤S820,检测USB的D+引脚,查看它们的电平信号是否有发生变化,执行步骤S830或步骤S850。In step S820, the D+ pins of the USB are detected to check whether their level signals have changed, and step S830 or step S850 is performed.
步骤S830,如果有发生变化,则可以认为插入的是电脑,需要给USB控制器和USB PHY上电,并进行初始化配置。In step S830, if there is a change, it can be considered that the computer is inserted, and the USB controller and the USB PHY need to be powered on and initialized.
步骤S840,USB开始枚举,USB设备与电脑可以通讯,USB设备进入通讯状态,结束本流程。In step S840, the USB starts enumerating, the USB device can communicate with the computer, and the USB device enters the communication state, and the process ends.
步骤S850,如果没有发生变化,则判断插入的是充电器,无需对USB进行操作。 In step S850, if there is no change, it is judged that the charger is inserted, and there is no need to operate the USB.
步骤S860,没有USB通讯,USB设备进入充电状态。In step S860, without USB communication, the USB device enters a charging state.
实施例四Embodiment 4
参照图9,图9为本发明实施例的USB2.0引脚D-连接图。D-引脚不仅与USB PHY 920相连,还与检测单元930相连,检测单元930能够检测到USB2.0硬件接口910中数据通讯硬件引脚信号。Referring to FIG. 9, FIG. 9 is a diagram showing a USB 2.0 pin D-connection according to an embodiment of the present invention. The D- pin is not only connected to the USB PHY 920, but also connected to the detecting unit 930. The detecting unit 930 can detect the data communication hardware pin signal in the USB2.0 hardware interface 910.
结合图9所示的USB2.0引脚D-连接图,本发明实施例还提供一种USB高效利用方法,如图10所示,所述方法包括以下步骤:In conjunction with the USB 2.0 pin D-connection diagram shown in FIG. 9, the embodiment of the present invention further provides a USB efficient use method. As shown in FIG. 10, the method includes the following steps:
步骤S110,侦测USB设备的插入动作。Step S110, detecting an insertion action of the USB device.
步骤S120,检测USB的D-引脚,查看它们的电平信号是否有发生变化,执行步骤S130或步骤S150。In step S120, the D- pins of the USB are detected to check whether their level signals have changed, and step S130 or step S150 is performed.
步骤S130,如果有发生变化,则可以认为插入的是电脑,需要给USB控制器和USB PHY上电,并进行初始化配置。In step S130, if there is a change, it can be considered that the computer is inserted, and the USB controller and the USB PHY need to be powered on and initialized.
步骤S140,USB开始枚举,USB设备与电脑可以通讯,USB设备进入通讯状态。In step S140, the USB starts enumerating, the USB device can communicate with the computer, and the USB device enters the communication state.
步骤S150,如果没有发生变化,则判断插入的是充电器,无需对USB进行操作。In step S150, if there is no change, it is judged that the charger is inserted, and there is no need to operate the USB.
步骤S160,没有USB通讯,USB设备进入充电状态。In step S160, without USB communication, the USB device enters a charging state.
图11为本发明实施例的USB设备的结构组成示意图,如图11所示,所述USB设备包括:FIG. 11 is a schematic structural diagram of a USB device according to an embodiment of the present invention. As shown in FIG. 11, the USB device includes:
检测单元21,配置为检测到插入USB连接线时,对USB的数据通讯硬件引脚信号进行检测;The detecting unit 21 is configured to detect, when the USB cable is plugged in, the data communication hardware pin signal of the USB;
第一控制单元22,配置为当检测到所述数据通讯硬件引脚信号发生变化时,确定所插入的设备为通讯设备,对USB控制器和USB PHY上电;The first control unit 22 is configured to: when detecting that the data communication hardware pin signal changes, determine that the inserted device is a communication device, and power on the USB controller and the USB PHY;
第二控制单元23,配置为当检测到所述数据通讯硬件引脚信号未发生变化时,确定所插入的设备为充电设备,不对所述USB控制器和USB PHY 上电。The second control unit 23 is configured to: when it is detected that the data communication hardware pin signal has not changed, determine that the inserted device is a charging device, not to the USB controller and the USB PHY Power-on.
所述检测单元21,还配置为对USB的数据通讯硬件引脚信号的电平进行检测。The detecting unit 21 is further configured to detect a level of a data communication hardware pin signal of the USB.
所述USB设备还包括:通讯单元24,配置为进行USB枚举,并与所述通讯设备进行通讯。The USB device further includes a communication unit 24 configured to perform USB enumeration and to communicate with the communication device.
所述USB设备还包括:蓄电单元25,配置为通过所述充电设备进行充电。The USB device further includes a power storage unit 25 configured to be charged by the charging device.
所述USB的数据通讯硬件引脚的个数为一个以上;所述检测单元21,还配置为对USB的数据通讯硬件引脚中的一个或多个引脚进行检测。The number of data communication hardware pins of the USB is more than one; the detecting unit 21 is further configured to detect one or more pins of the USB data communication hardware pins.
本领域技术人员应当理解,图11所示的USB设备中的各单元的实现功能可参照前述USB高效利用方法的相关描述而理解。It should be understood by those skilled in the art that the implementation functions of the units in the USB device shown in FIG. 11 can be understood by referring to the related description of the aforementioned USB efficient utilization method.
本发明实施例记载了一种存储介质,所述存储介质中存储有计算机程序,所述计算机程序配置为执行前述各实施例的通用串行总线USB高效利用方法。Embodiments of the present invention describe a storage medium in which a computer program is stored, the computer program being configured to perform the universal serial bus USB efficient use method of the foregoing embodiments.
本发明实施例所记载的技术方案之间,在不冲突的情况下,可以任意组合。The technical solutions described in the embodiments of the present invention can be arbitrarily combined without conflict.
在本发明所提供的几个实施例中,应该理解到,所揭露的方法和智能设备,可以通过其它的方式实现。以上所描述的设备实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,如:多个单元或组件可以结合,或可以集成到另一个系统,或一些特征可以忽略,或不执行。另外,所显示或讨论的各组成部分相互之间的耦合、或直接耦合、或通信连接可以是通过一些接口,设备或单元的间接耦合或通信连接,可以是电性的、机械的或其它形式的。In the several embodiments provided by the present invention, it should be understood that the disclosed method and smart device may be implemented in other manners. The device embodiments described above are merely illustrative. For example, the division of the unit is only a logical function division. In actual implementation, there may be another division manner, such as: multiple units or components may be combined, or Can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, or direct coupling, or communication connection of the components shown or discussed may be indirect coupling or communication connection through some interfaces, devices or units, and may be electrical, mechanical or other forms. of.
上述作为分离部件说明的单元可以是、或也可以不是物理上分开的,作为单元显示的部件可以是、或也可以不是物理单元,即可以位于一个地 方,也可以分布到多个网络单元上;可以根据实际的需要选择其中的部分或全部单元来实现本实施例方案的目的。The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place. The party may also be distributed to multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
另外,在本发明各实施例中的各功能单元可以全部集成在一个第二处理单元中,也可以是各单元分别单独作为一个单元,也可以两个或两个以上单元集成在一个单元中;上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one second processing unit, or each unit may be separately used as one unit, or two or more units may be integrated into one unit; The above integrated unit can be implemented in the form of hardware or in the form of hardware plus software functional units.
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。The above is only a specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily think of changes or substitutions within the technical scope of the present invention. It should be covered by the scope of the present invention.
工业实用性Industrial applicability
根据本发明,在USB设备有插入动作时,检测单元就可以对USB的数据通讯硬件引脚信号进行检测。引脚信号的电平信号是否发生变化可以直接确认插入的是充电设备还是通讯设备(如PC),并据此判断是否需要对USB控制器和USB PHY上电。这样就可以避免USB不必要的上电初始化动作,同时大大简化了原有流程及识别的准确性。 According to the present invention, when the USB device has an insertion action, the detecting unit can detect the USB data communication hardware pin signal. Whether the level signal of the pin signal changes can directly confirm whether the charging device or the communication device (such as a PC) is inserted, and accordingly, it is determined whether the USB controller and the USB PHY need to be powered on. In this way, unnecessary power-on initialization of the USB can be avoided, and the accuracy of the original process and recognition is greatly simplified.

Claims (11)

  1. 一种通用串行总线USB高效利用方法,所述方法包括:A method for efficiently utilizing a universal serial bus USB, the method comprising:
    检测到插入USB连接线时,对USB的数据通讯硬件引脚信号进行检测;When detecting the insertion of the USB cable, the data communication hardware pin signal of the USB is detected;
    当检测到所述数据通讯硬件引脚信号发生变化时,确定所插入的设备为通讯设备,对USB控制器和通用串行总线芯片USB PHY上电;When it is detected that the data communication hardware pin signal changes, it is determined that the inserted device is a communication device, and the USB controller and the universal serial bus chip USB PHY are powered on;
    当检测到所述数据通讯硬件引脚信号未发生变化时,确定所插入的设备为充电设备,不对所述USB控制器和USB PHY上电。When it is detected that the data communication hardware pin signal has not changed, it is determined that the inserted device is a charging device, and the USB controller and the USB PHY are not powered on.
  2. 根据权利要求1所述的USB高效利用方法,其中,所述对USB的数据通讯硬件引脚信号进行检测,包括:The USB efficient use method according to claim 1, wherein the detecting the USB data communication hardware pin signal comprises:
    对USB的数据通讯硬件引脚信号的电平进行检测。The level of the USB data communication hardware pin signal is detected.
  3. 根据权利要求1所述的USB高效利用方法,其中,所述对USB控制器和USB PHY上电后,所述方法还包括:The USB efficient use method according to claim 1, wherein after the USB controller and the USB PHY are powered on, the method further includes:
    进行USB枚举,并与所述通讯设备进行通讯。Perform USB enumeration and communicate with the communication device.
  4. 根据权利要求1所述的USB高效利用方法,其中,所述确定所插入的设备为充电设备后,所述方法还包括:The USB efficient use method according to claim 1, wherein after the determining that the inserted device is a charging device, the method further includes:
    通过所述充电设备进行充电。Charging is performed by the charging device.
  5. 根据权利要求1至4任一项所述的USB高效利用方法,其中,所述USB的数据通讯硬件引脚的个数为一个以上;The USB efficient use method according to any one of claims 1 to 4, wherein the number of data communication hardware pins of the USB is one or more;
    所述对USB的数据通讯硬件引脚信号进行检测,包括:The detecting the USB data communication hardware pin signal includes:
    对USB的数据通讯硬件引脚中的一个或多个引脚进行检测。Detect one or more pins in the USB data communication hardware pin.
  6. 一种USB设备,所述USB设备包括:A USB device, the USB device comprising:
    检测单元,配置为检测到插入USB连接线时,对USB的数据通讯硬件引脚信号进行检测;The detecting unit is configured to detect a USB data communication hardware pin signal when detecting the insertion of the USB cable;
    第一控制单元,配置为当检测到所述数据通讯硬件引脚信号发生变化时,确定所插入的设备为通讯设备,对USB控制器和USB PHY上电; a first control unit configured to: when detecting that the data communication hardware pin signal changes, determine that the inserted device is a communication device, and power on the USB controller and the USB PHY;
    第二控制单元,配置为当检测到所述数据通讯硬件引脚信号未发生变化时,确定所插入的设备为充电设备,不对所述USB控制器和USB PHY上电。The second control unit is configured to: when it is detected that the data communication hardware pin signal has not changed, determine that the inserted device is a charging device, and not power on the USB controller and the USB PHY.
  7. 根据权利要求6所述的USB设备,其中,所述检测单元,还配置为对USB的数据通讯硬件引脚信号的电平进行检测。The USB device of claim 6, wherein the detecting unit is further configured to detect a level of a data communication hardware pin signal of the USB.
  8. 根据权利要求6所述的USB设备,其中,所述USB设备还包括:The USB device of claim 6, wherein the USB device further comprises:
    通讯单元,配置为进行USB枚举,并与所述通讯设备进行通讯。A communication unit configured to perform USB enumeration and to communicate with the communication device.
  9. 根据权利要求6所述的USB设备,其中,所述USB设备还包括:The USB device of claim 6, wherein the USB device further comprises:
    蓄电单元,配置为通过所述充电设备进行充电。The power storage unit is configured to be charged by the charging device.
  10. 根据权利要求6至9任一项所述的USB设备,其中,所述USB的数据通讯硬件引脚的个数为一个以上;所述检测单元,还配置为对USB的数据通讯硬件引脚中的一个或多个引脚进行检测。The USB device according to any one of claims 6 to 9, wherein the number of data communication hardware pins of the USB is one or more; the detecting unit is further configured to be in a data communication hardware pin of the USB. One or more pins are tested.
  11. 一种存储介质,所述存储介质中存储有计算机程序,所述计算机程序配置为执行权利要求1至5任一项所述的通用串行总线USB高效利用方法。 A storage medium storing a computer program configured to perform the universal serial bus USB efficient use method according to any one of claims 1 to 5.
PCT/CN2016/075995 2015-09-10 2016-03-09 Efficient universal serial bus utilization method and universal serial bus device WO2017041461A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510575235.8A CN106528472A (en) 2015-09-10 2015-09-10 Efficient utilization method for USB (Universal Serial Bus), and USB
CN201510575235.8 2015-09-10

Publications (1)

Publication Number Publication Date
WO2017041461A1 true WO2017041461A1 (en) 2017-03-16

Family

ID=58239105

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/075995 WO2017041461A1 (en) 2015-09-10 2016-03-09 Efficient universal serial bus utilization method and universal serial bus device

Country Status (2)

Country Link
CN (1) CN106528472A (en)
WO (1) WO2017041461A1 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101030189A (en) * 2007-03-09 2007-09-05 华为技术有限公司 Method for inspecting connected peripheral apparatus mode, terminal, earphone, charger and USB interface
TWI297833B (en) * 2006-01-03 2008-06-11 Mitac Int Corp
CN101383627A (en) * 2007-09-04 2009-03-11 大唐移动通信设备有限公司 Device and method for terminal charger charging, USB charging and data communication
CN101702146A (en) * 2009-11-02 2010-05-05 北京中星微电子有限公司 Method and unit for distinguishing charger and data line of universal serial bus
US20100162011A1 (en) * 2008-12-22 2010-06-24 Samsung Electronics Co., Ltd. Method and apparatus for controlling interrupts in portable terminal
TW201351160A (en) * 2012-06-01 2013-12-16 Acer Inc Computer device and charging method therefor

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9336170B2 (en) * 2010-05-11 2016-05-10 Mediatek Inc. Universal serial bus device and charging and enumeration method
CN101901201B (en) * 2010-08-06 2014-07-16 中兴通讯股份有限公司 Method and device for realizing USB OTG function on electronic equipment
US8683087B2 (en) * 2011-04-11 2014-03-25 Fairchild Semiconductor Corporation Mobile device auto detection apparatus and method
CN103760451B (en) * 2014-01-28 2016-08-17 天地融科技股份有限公司 The interface access module detection method of a kind of intelligent cipher key equipment and equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI297833B (en) * 2006-01-03 2008-06-11 Mitac Int Corp
CN101030189A (en) * 2007-03-09 2007-09-05 华为技术有限公司 Method for inspecting connected peripheral apparatus mode, terminal, earphone, charger and USB interface
CN101383627A (en) * 2007-09-04 2009-03-11 大唐移动通信设备有限公司 Device and method for terminal charger charging, USB charging and data communication
US20100162011A1 (en) * 2008-12-22 2010-06-24 Samsung Electronics Co., Ltd. Method and apparatus for controlling interrupts in portable terminal
CN101702146A (en) * 2009-11-02 2010-05-05 北京中星微电子有限公司 Method and unit for distinguishing charger and data line of universal serial bus
TW201351160A (en) * 2012-06-01 2013-12-16 Acer Inc Computer device and charging method therefor

Also Published As

Publication number Publication date
CN106528472A (en) 2017-03-22

Similar Documents

Publication Publication Date Title
US9652351B2 (en) System to detect charger and remote host for type-C connector
CN107423169B (en) Method and system for testing high speed peripheral device interconnection equipment
US8862790B2 (en) Method for identifying version type of windows operating system on a host by a USB device
TWI676895B (en) Configuring docks
TWI421670B (en) Interface unit,interfacing system method and power management controller
US20160004287A1 (en) Portable electronic device and power management method thereof
TWI782919B (en) Usb multi-host endpoint reflector hub
US8332545B1 (en) USB switch which allows primary USB connection in response to USB signaling
WO2013168289A1 (en) Electronic device and control method therefor
US8533380B2 (en) Apparatus for peer-to-peer communication over a universal serial bus link
US8862921B1 (en) Apparatus for remote wake-up during dedicated charging mode
TWI744483B (en) Univereasal serial bus (usb) apparatus, usb hub and method of operating usb hub
CN109672950B (en) Power saving circuit and power saving method based on Type-C earphone
US20110320837A1 (en) Power supply circuit, power supply method, and signal processing apparatus
US9779046B2 (en) Electronic apparatus and port control method for locking downstream USB ports
CN214670566U (en) Computer wake-up circuit and computer
US20180338206A1 (en) Control method and control system for audio device
CN102073602A (en) Computer system, connection control device as well as connecting and disconnecting method
US20150169491A1 (en) Electronic device using usb socket to load firmware and firmware loading method thereof
JP3140192U (en) Transmission cable for transmitting E-SATA signal and power
CN111881074B (en) Electronic system, host device and control method
US20140157012A1 (en) Information processing apparatus and power supplying method
TW201327126A (en) Auto-detection control device and method thereof
WO2017041461A1 (en) Efficient universal serial bus utilization method and universal serial bus device
US11334506B2 (en) Interface connection device, system and method thereof

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16843401

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16843401

Country of ref document: EP

Kind code of ref document: A1