WO2018195992A1 - Procédé de commande, système usb et appareil électronique - Google Patents

Procédé de commande, système usb et appareil électronique Download PDF

Info

Publication number
WO2018195992A1
WO2018195992A1 PCT/CN2017/082596 CN2017082596W WO2018195992A1 WO 2018195992 A1 WO2018195992 A1 WO 2018195992A1 CN 2017082596 W CN2017082596 W CN 2017082596W WO 2018195992 A1 WO2018195992 A1 WO 2018195992A1
Authority
WO
WIPO (PCT)
Prior art keywords
interface
signal line
circuit
switching circuit
usb
Prior art date
Application number
PCT/CN2017/082596
Other languages
English (en)
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 深圳市大疆创新科技有限公司
Priority to CN201780004893.9A priority Critical patent/CN108513656B/zh
Priority to PCT/CN2017/082596 priority patent/WO2018195992A1/fr
Publication of WO2018195992A1 publication Critical patent/WO2018195992A1/fr

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/4004Coupling between buses
    • G06F13/4009Coupling between buses with data restructuring
    • G06F13/4018Coupling between buses with data restructuring with data-width conversion
    • 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
    • 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
    • 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/42Bus transfer protocol, e.g. handshake; Synchronisation
    • 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/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus

Definitions

  • the present invention relates to the field of electronic technologies, and in particular, to a control method, a USB system, and an electronic device.
  • USB interface In the related art, a USB interface is widely used. Many USB devices belong to OTG devices, and can be used as both USB and USB slaves. For different usage scenarios, the USB standard defines different interface types. Popular interfaces include standard A interface, Mini interface, and Micro interface. However, an interface can only match one type of USB data cable. Thus, the integrated USB host slave and the type of interface, the user's device often brings many uses due to the mismatch of data lines and interface types. inconvenient.
  • Embodiments of the present invention provide a control method, a USB system, and an electronic device.
  • a control method of an embodiment of the present invention is for controlling a USB system
  • the USB system includes an embedded circuit, a USB controller, and a plurality of interfaces
  • the embedded circuit includes a switching circuit
  • the switching circuit connects the plurality of interfaces
  • the switch circuit is used to establish a link between the USB controller and the interface accessed by the presence device when it is determined that one of the interfaces of the plurality of interfaces has device access.
  • a USB system includes an embedded circuit, a USB controller, a plurality of interfaces, a main controller, and a memory
  • the embedded circuit includes a switching circuit
  • the switching circuit connects the plurality of interfaces
  • the main A controller is coupled to the switching circuit
  • the memory is for storing instructions
  • the main controller is configured to execute the instructions to:
  • the switch circuit is used to establish a link between the USB controller and the interface accessed by the presence device when it is determined that one of the interfaces of the plurality of interfaces has device access.
  • the body, the USB system is mounted on the body.
  • the control method, the USB system and the electronic device of the embodiments of the present invention can realize a USB system by extending different types of interfaces and establishing corresponding links according to device access states of multiple interfaces. With technical effects with various USB functions and interfaces.
  • FIG. 1 is a schematic flow chart of a control method according to an embodiment of the present invention.
  • FIG. 2 is a schematic block diagram of a USB system according to an embodiment of the present invention.
  • FIG. 3 is another schematic flowchart of a control method according to an embodiment of the present invention.
  • FIG. 4 is a schematic diagram showing a connection relationship between signal lines and ground lines of a plurality of interfaces according to an embodiment of the present invention
  • FIG. 5 is a schematic diagram showing a connection relationship of power lines of a plurality of interfaces according to an embodiment of the present invention
  • FIG. 6 is a schematic diagram showing a connection relationship of state lines of a plurality of interfaces according to an embodiment of the present invention.
  • FIG. 7 is another schematic flowchart of a control method according to an embodiment of the present invention.
  • FIG. 8 is another schematic flowchart of a control method according to an embodiment of the present invention.
  • FIG. 9 is another schematic flowchart of a control method according to an embodiment of the present invention.
  • FIG. 10 is another schematic flowchart of a control method according to an embodiment of the present invention.
  • FIG. 11 is another schematic flowchart of a control method according to an embodiment of the present invention.
  • FIG. 12 is another schematic flowchart of a control method according to an embodiment of the present invention.
  • FIG. 13 is another schematic flowchart of a control method according to an embodiment of the present invention.
  • 15 is a schematic block diagram of an electronic device according to an embodiment of the present invention.
  • USB system 10 embedded circuit 11, switching circuit 112, first switching circuit 1122, second switching circuit 1124, third switching circuit 1126, fourth switching circuit 1128, voltage output circuit 114, first voltage detecting circuit 1162, The two voltage detecting circuit 1164, the USB controller 12, the interface 13, the preset interface 131, the first interface 132, the second interface 134, the third interface 136, the main controller 14, the memory 15, the body 40, and the electronic device 100.
  • first and second are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated.
  • features defining “first” or “second” may include one or more of the described features either explicitly or implicitly.
  • the meaning of "a plurality" is two or more unless specifically defined otherwise.
  • the terms “installation”, “connected”, and “connected” should be understood broadly, and may be a fixed connection, for example, or It is a detachable connection, or is integrally connected; it may be directly connected or indirectly connected through an intermediate medium, and may be an internal connection of two elements or an interaction relationship of two elements.
  • installation should be understood broadly, and may be a fixed connection, for example, or It is a detachable connection, or is integrally connected; it may be directly connected or indirectly connected through an intermediate medium, and may be an internal connection of two elements or an interaction relationship of two elements.
  • the "on" or “below” of the second feature may include direct contact of the first and second features, and may also include the first sum, unless otherwise specifically defined and defined.
  • the second feature is not in direct contact but through additional features between them.
  • the first feature “above”, “above” and “above” the second feature includes the first feature directly above and above the second feature, or merely indicating that the first feature level is higher than the second feature.
  • the first feature “below”, “below” and “below” the second feature includes the first feature directly below and below the second feature, or merely the first feature level being less than the second feature.
  • a control method of an embodiment of the present invention is used to control the USB system 10.
  • the USB system 10 includes an embedded circuit 11, a USB controller 12, and a plurality of interfaces 13.
  • the embedded circuit 11 includes a switching circuit 112.
  • the switching circuit 112 connects the plurality of interfaces 13.
  • the control method includes the following steps:
  • S11 polling the plurality of interfaces 13 to determine device access status of the plurality of interfaces 13;
  • the switch circuit 112 When it is determined that one of the interfaces 13 of the plurality of interfaces 13 has device access, the switch circuit 112 is used to establish a link between the USB controller 12 and the interface 13 where the device is accessed.
  • the USB system 10 of the embodiment of the present invention includes an embedded circuit 11, a USB controller 12, a plurality of interfaces 13, a main controller 14, and a memory 15.
  • the embedded circuit 11 includes a switching circuit 112.
  • the switching circuit 112 connects the plurality of interfaces 13.
  • the main controller 14 is connected to the switching circuit 112.
  • the memory 15 is used to store instructions.
  • the main controller 14 is configured to execute instructions to: poll the plurality of interfaces 13 to determine device access states of the plurality of interfaces 13; and utilize the switching circuit 112 when it is determined that one of the interfaces 13 of the plurality of interfaces 13 has device access A link is established between the USB controller 12 and the interface 13 where the device is connected. That is to say, step S11 and step S13 can be implemented by the main controller 14.
  • the control method and the USB system 10 of the embodiments of the present invention can realize a USB system 10 by extending a plurality of interfaces 13 of different types and establishing corresponding links according to device access states of the plurality of interfaces 13.
  • the USB controller 12 of the embodiment of the present invention has an OTG function, and the USB system 10 can be either a USB host or a USB slave.
  • the plurality of interfaces 13 include a preset interface 131.
  • the control method further includes the steps of:
  • S14 Establish a link between the USB controller 12 and the preset interface 131 by using the switching circuit 112 when it is determined that there is no device access in the plurality of interfaces 13.
  • the plurality of interfaces 13 includes a preset interface 131.
  • the main controller 14 is further configured to execute an instruction to establish a link of the USB controller 12 and the preset interface 131 by using the switching circuit 112 when it is determined that none of the interfaces 13 have device access. That is to say, step S14 can be implemented by the main controller 14.
  • the plurality of interfaces 13 may include a standard A female port, a MiniAB female port, a MicroAB female port, and the like, wherein the standard A female port may be used as the preset interface 131.
  • the USB system 10 establishes a link between the USB controller 12 and the standard A female port by default.
  • the plurality of interfaces 13 includes a first interface 132, a second interface 134, and a third interface 136.
  • the embedded circuit 11 also includes a voltage output circuit 114 and a voltage detection circuit.
  • the first interface 132, the second interface 134, and the ground GND of the third interface 136 are connected in common.
  • the signal lines D+/D- of the first interface 132, the second interface 134, and the third interface 136 are respectively connected to the signal line D+/D- of the USB controller 12 through the switching circuit 112.
  • the power supply pins Vbus of the first interface 132, the second interface 134, and the third interface 136 are connected to the voltage output circuit 114 through the switching circuit 112, respectively.
  • the power pin Vbus of the second interface 134 and the third interface 136 respectively The voltage detecting circuit is connected through the switching circuit 112.
  • the state pin IDs of the second interface 134 and the third interface 136 are respectively connected to the voltage detecting circuit through the switching circuit 112.
  • USB interface 13 is generally divided into a standard A interface, a Mini interface, and a Micro interface.
  • the working process of the control method is described by taking the first interface 132 as the standard A female port, the second interface 134 as the MiniAB female port, and the third interface 136 as the MicroAB female port as an example.
  • the plurality of interfaces 13 may include a greater number of interfaces, and the types of the first interface 132, the second interface 134, and the third interface 136 are not limited to the above three interface types.
  • the switching circuit 112 is a switching switch, an analog switch, or other switching element or chip having a switching connection function.
  • the switching circuit 112 includes a first switching circuit 1122, a second switching circuit 1124, a third switching circuit 1126, and a fourth switching circuit 1128.
  • the voltage detection circuit includes a first voltage detection circuit 1162 and a second voltage detection circuit 1164.
  • the signal line D+/D- of the USB controller 12 is switched to turn on the signal line D+/D- of the first interface 132, the second interface 134, and the third interface 136 through the first switching circuit 1122, and the first interface 132 and the second interface
  • the ground line GND of the 134 and the third interface 136 are connected together and then grounded (as shown in FIG. 4).
  • the voltage output circuit 114 switches the power supply pin Vbus of the first interface 132, the second interface 134, and the third interface 136 through the second switching circuit 1124.
  • the first voltage detecting circuit 1162 switches the power supply pin Vbus of the second interface 134 and the third interface 136 through the third switching circuit 1126 (as shown in FIG. 5).
  • the second voltage detecting circuit 1164 switches the state pin IDs of the second interface 134 and the third interface 136 to be turned on by the fourth switching circuit 1128 (as shown in FIG. 6). It will be appreciated that in some embodiments, the second voltage detection circuit 1164 can include two sub-detection circuits, each sub-detection circuit corresponding to detecting the voltage of one interface 13.
  • the USB controller 12 connects the first interface 132, the second interface 134, and the first switching circuit 1122.
  • the third interface 136, and which interface 13 the USB controller 12 is conducting to establish a link depends on the device access status of the interface 13. For example, when the first interface 132 has device access, the first switching circuit 1122 switches the USB controller 12 and the first interface 132 to be turned on, so that the circuit between the USB controller 12 and the first interface 132 is turned on, and the circuit is established.
  • the link while the USB controller 12 and the second interface 134 and the third interface 136 are not conducting, but the second interface 134 and the third interface 136 are still connected to the USB controller 12 via the first switching circuit 1122.
  • voltage output circuit 114 outputs a voltage of 4.4-5.25 volts. Preferably, voltage output circuit 114 outputs a 5V voltage to interface 13.
  • step S14 specifically includes the steps of:
  • the control method further includes the steps of:
  • the control voltage output circuit 114 supplies power to the power pin Vbus of the preset interface 131.
  • the main controller 14 is further configured to execute an instruction to: when the plurality of interfaces 13 are determined to have no device access, the switching circuit 112 switches the signal line D+/D- of the USB controller 12 The signal line D+/D- to the preset interface 131 is turned on.
  • the main controller 14 is also operative to execute instructions to enable the control voltage output circuit 114 to supply power to the power pin Vbus of the preset interface 131. That is, step S142 and step S15 can be implemented by the main controller 14.
  • the first interface 132 can be used as the preset interface 131.
  • the signal of the USB controller 12 is switched to the signal of the first interface 132 by the switching circuit 112.
  • Line D+/D-, control voltage output circuit 114 supplies power to power supply pin Vbus of first interface 132.
  • the power pins Vbus of the first interface 132, the second interface 134, and the third interface 136 of the embodiment of the present invention are respectively connected to the voltage output circuit 114 through the switching circuit 112. Therefore, the main controller 14 controls the voltage by using the switching circuit 112.
  • the output circuit 114 supplies power to the power supply pin Vbus of one of the interfaces 13.
  • step S13 specifically includes the steps of:
  • the switching circuit 112 is used to switch the signal line D+/D- of the USB controller 12 to the signal line D+/D- of the first interface 132;
  • the control method further includes the steps of:
  • the control voltage output circuit 114 supplies power to the power pin Vbus of the first interface 132.
  • the main controller 14 is further configured to execute an instruction to: when the first interface 132 is determined to have device access, the switching circuit 112 switches the signal line D+/D- of the USB controller 12 to be turned on. The signal line D+/D- to the first interface 132.
  • the main controller 14 is also operative to execute instructions to: control the voltage output circuit 114 to supply power to the power pin Vbus of the first interface 132. That is, step S131 and step S16 can be implemented by the main controller 14.
  • the USB system 10 acts as a USB host, and the signal line D+/D- of the USB controller 12 is switched to the signal line of the first interface 132 by using the switching circuit 112. D+/D-, the control voltage output circuit 114 supplies power to the power pin Vbus of the first interface 132, and the states of the second interface 134 and the third interface 136 are no longer queried.
  • the first switching circuit 1122 switches the signal line D+/D- of the USB controller 12 to the signal line D+/D of the first interface 132. -.
  • the second switching circuit 1124 switches the voltage output circuit 114 to the power supply pin Vbus of the first interface 132.
  • the USB controller 12 when the preset interface 131 is the first interface 132, in the initial state, the USB controller 12 The signal line D+/D- is connected to the first interface 132 through the switching circuit 112, and the voltage output circuit 114 supplies power to the power pin Vbus of the first interface 132. If it is determined that the first interface 132 has device access, it is only required to remain The connection of the USB controller 12 to the first interface 132 is sufficient.
  • step S11 specifically includes the steps of:
  • S111 detecting, by using a voltage detecting circuit, a level state of a power pin Vbus of the second interface 134;
  • Step S13 specifically includes the steps of:
  • the main controller 14 is further configured to execute an instruction to: detect a level state of the power pin Vbus of the second interface 134 by using a voltage detecting circuit; and detect a power pin Vbus of the second interface 134 when detecting When there is a high level input, it is determined that the second interface 134 has device access; and when it is determined that the second interface 134 has device access, the switching circuit 112 switches the signal line D+/D- of the USB controller 12 to the first The signal line D+/D- of the second interface 134. That is, step S111, step S112, and step S132 can be implemented by the main controller 14.
  • the second interface 134 is connected as an interface of the USB slave to
  • the interface of the other USB host switches the signal line D+/D- of the USB controller 12 to the signal line D+/D- of the second interface 134 by the switching circuit 112, and is in the USB slave (ie, the USB system 10)
  • the state of the first interface 132 and the third interface 136 is no longer queried until the other USB host (ie, the device accessing the second interface 134) is disconnected.
  • the third switching circuit 1126 switches the first voltage detecting circuit 1162 to the power pin Vbus of the second interface 134.
  • the first switching circuit 1122 switches the signal line D+/D- of the USB controller 12 to the signal line D+/D- of the second interface 134.
  • step S11 specifically includes the steps of:
  • S113 detecting, by using a voltage detecting circuit, a level state of a power pin Vbus of the third interface 136;
  • Step S13 specifically includes the steps of:
  • the main controller 14 is further configured to execute an instruction to: detect a level state of the power pin Vbus of the third interface 136 by using a voltage detecting circuit; and detect a power pin Vbus of the third interface 136 when detecting When there is a high level input, it is determined that the third interface 136 has device access; and when it is determined that the third interface 136 has device access, the switching circuit 112 is used to switch the signal line D+/D- of the USB controller 12 to the first The signal line D+/D- of the triple interface 136. That is, step S113, step S114, and step S133 can be implemented by the main controller 14.
  • the third interface 136 is connected as an interface of the USB slave to
  • the interface 13 of the other USB host switches the signal line D+/D- of the USB controller 12 to the signal line D+/D- of the third interface 136 by the switching circuit 112, and the USB slave (ie, the USB system) 10)
  • the state of the first interface 132 and the second interface 134 is no longer queried until the other USB host (ie, the device accessing the third interface 136) is disconnected.
  • the third switching circuit 1126 switches the first voltage detecting circuit 1162 to the power pin Vbus of the third interface 136.
  • the first switching circuit 1122 switches the signal line D+/D- of the USB controller 12 to the signal line D+/D- of the third interface 136.
  • step S11 specifically includes the steps of:
  • S115 detecting, by using a voltage detecting circuit, a level state of a state pin ID of the second interface 134;
  • the control voltage output circuit 114 alternately supplies power to the power pins Vbus of the first interface 132 and the second interface 134 in turn;
  • S118 Polling the first interface 132 and the second interface 134 to determine device access states of the first interface 132 and the second interface 134;
  • Step S13 specifically includes the steps of:
  • the control method further includes the steps of:
  • the control voltage output circuit 114 maintains the power supply pin Vbus to the first interface 132 or the second interface 134. powered by.
  • the main controller 14 is further configured to execute an instruction to: detect a level state of a state pin ID of the second interface 134 using a voltage detection circuit; and detect a state pin ID of the second interface 134 when detecting
  • the signal line D+/D- of the USB controller 12 is alternately switched on to the signal line D+/D- of the first interface 132 and the second interface 134 by the switching circuit 112 at a predetermined cycle; the control voltage The output circuit 114 accordingly alternately supplies power to the power pins Vbus of the first interface 132 and the second interface 134; polling the first interface 132 and the second interface 134 to determine device access status of the first interface 132 and the second interface 134 And when it is determined that the first interface 132 or the second interface 134 has device access, the signal line D+/D- of the USB controller 12 is kept turned on by the switching circuit 112 to the signal line of the first interface 132 or the second interface 134.
  • the main controller 14 is also operative to execute instructions to enable the control voltage output circuit 114 to maintain power to the power supply pin Vbus of the first interface 132 or the second interface 134. That is, step S115, step S116, step S117, step S118, step S134, and step S17 can be implemented by the main controller 14.
  • the signal line D+/D- of the USB controller 12 is switched by the switching circuit 112.
  • the control voltage output circuit 114 supplies power to the power pin Vbus of the first interface 132 correspondingly to the signal line D+/D- of the first interface 132, and detects the device access status of the first interface 132 when the first interface is detected.
  • the connection between the current USB controller 12 and the first interface 132 is maintained, the control voltage output circuit 114 maintains power supply to the first interface 132, and the USB host (ie, the USB system 10) and the other The state of the second interface 134 and the third interface 136 is no longer queried until the USB slave (ie, the device accessing the first interface 132) is disconnected.
  • the signal of the USB controller 12 is switched to the signal of the second interface 134 by the switching circuit 112.
  • the control voltage output circuit 114 supplies power to the power pin Vbus of the second interface 134 correspondingly, detects the device access status of the second interface 134, and when detecting that the second interface 134 has device access, Keeping the current USB controller 12 connected to the second interface 134, the control voltage output circuit 114 keeps supplying power to the second interface 134, and the USB host (ie, the USB system 10) and another USB slave (ie, accessing the first The state of the first interface 132 and the third interface 136 is no longer queried until the device of the second interface 134 is disconnected.
  • the USB host ie, the USB system 10
  • another USB slave ie, accessing the first The state of the first interface 132 and the third interface 136 is no longer queried until the device of the second interface 134 is disconnected.
  • the signal of the USB controller 12 is switched to the signal of the first interface 132 by the switching circuit 112.
  • the line D+/D-, the control voltage output circuit 114 supplies power to the power pin Vbus of the first interface 132 correspondingly, detects the device access state of the first interface 132, and repeats the operation.
  • the fourth switching circuit 1128 switches the second voltage detecting circuit 1164 to the state pin ID of the second interface 134.
  • the first switching circuit 1122 turns the signal line D+/D- of the USB controller 12 in turn to the signal line D+/D- of the first interface 132 and the second interface 134 in a predetermined cycle.
  • the second switching circuit 1124 turns the voltage output circuit 114 in turn to the power supply pin Vbus of the first interface 132 and the second interface 134.
  • the first switching circuit 1122 keeps the signal line D+/D ⁇ of the USB controller 12 on the signal line D+ of the first interface 132 or the second interface 134. /D-.
  • the second switching circuit 1124 maintains the voltage output circuit 114 to the power supply pin Vbus of the first interface 132 or the second interface 134.
  • step S11 specifically includes the steps of:
  • S119 detecting, by using a voltage detecting circuit, a level state of a state pin ID of the third interface 136;
  • the control voltage output circuit 114 alternately supplies power to the power pin Vbus of the first interface 132 and the third interface 136 in turn;
  • S122 polling the first interface 132 and the third interface 136 to determine device access states of the first interface 132 and the third interface 136;
  • Step S13 specifically includes the steps of:
  • the control method further includes the steps of:
  • the control voltage output circuit 114 maintains power supply to the power pin Vbus of the first interface 132 or the third interface 136.
  • the main controller 14 is further configured to execute an instruction to: detect a level state of a state pin ID of the third interface 136 using a voltage detection circuit; and detect a state pin ID of the third interface 136 when detecting
  • the signal line D+/D- of the USB controller 12 is alternately switched to the signal line D+/D- of the first interface 132 and the third interface 136 by the switching circuit 112 at a predetermined cycle; the control voltage The output circuit 114 alternately supplies power to the power pins Vbus of the first interface 132 and the third interface 136 in turn; polling the first interface 132 and the third interface 136 to determine device access status of the first interface 132 and the third interface 136 And when it is determined that the first interface 132 or the third interface 136 has device access, the signal line D+/D- of the USB controller 12 is kept turned on by the switching circuit 112 to the signal line of the first interface 132 or the third interface 136.
  • the main controller 14 is also operative to execute instructions to enable the control voltage output circuit 114 to maintain power to the power supply pin Vbus of the first interface 132 or the third interface 136. That is, step S119, step S120, step S121, step S122, step S135, And step S18 can be implemented by the main controller 14.
  • the signal line D+/D- of the USB controller 12 is switched by the switching circuit 112.
  • the control voltage output circuit 114 supplies power to the power pin Vbus of the first interface 132 correspondingly to the signal line D+/D- of the first interface 132, and detects the device access status of the first interface 132 when the first interface is detected.
  • the connection between the current USB controller 12 and the first interface 132 is maintained, the control voltage output circuit 114 maintains power supply to the first interface 132, and the USB host (ie, the USB system 10) and the other The state of the second interface 134 and the third interface 136 is no longer queried until the USB slave (ie, the device accessing the first interface 132) is disconnected.
  • the signal of the USB controller 12 is switched to the signal of the third interface 136 by the switching circuit 112.
  • the control voltage output circuit 114 supplies power to the power pin Vbus of the third interface 136 correspondingly, and detects the device access status of the third interface 136. When it is detected that the third interface 136 has device access, then Keeping the current USB controller 12 connected to the third interface 136, the control voltage output circuit 114 keeps supplying power to the third interface 136, and the USB host (ie, the USB system 10) and another USB slave (ie, accessing the first The state of the first interface 132 and the second interface 134 is no longer queried until the device of the three interface 136 is disconnected.
  • the USB host ie, the USB system 10
  • another USB slave ie, accessing the first The state of the first interface 132 and the second interface 134 is no longer queried until the device of the three interface 136 is disconnected.
  • the signal of the USB controller 12 is switched to the signal of the first interface 132 by the switching circuit 112.
  • the line D+/D-, the control voltage output circuit 114 supplies power to the power pin Vbus of the first interface 132 correspondingly, detects the device access state of the first interface 132, and repeats the operation.
  • the fourth switching circuit 1128 switches the second voltage detecting circuit 1164 to the state pin ID of the third interface 136.
  • the first switching circuit 1122 turns the signal line D+/D ⁇ of the USB controller 12 into the first interface 132 and the first cycle in a predetermined cycle.
  • the second switching circuit 1124 turns the voltage output circuit 114 in turn to the power supply pin Vbus of the first interface 132 and the third interface 136.
  • the first switching circuit 1122 keeps the signal line D+/D ⁇ of the USB controller 12 on the signal line D+ of the first interface 132 or the third interface 136. /D-.
  • the second switching circuit 1124 maintains the voltage output circuit 114 to the power supply pin Vbus of the first interface 132 or the third interface 136.
  • step S11 specifically includes the steps of:
  • S123 detecting, by using a voltage detecting circuit, a level state of a state pin ID of the second interface 134 and the third interface 136;
  • the control voltage output circuit 114 alternately supplies power to the power pins Vbus of the first interface 132, the second interface 134, and the third interface 136 in turn;
  • S126 polling the first interface 132, the second interface 134, and the third interface 136 to determine device access states of the first interface 132, the second interface 134, and the third interface 136;
  • Step S13 specifically includes the steps of:
  • the control method further includes the steps of:
  • the control voltage output circuit 114 maintains power supply to the power pin Vbus of the first interface 132, the second interface 134, or the third interface 136.
  • the main controller 14 is further configured to execute instructions to: detect a level state of a state pin ID of the second interface 134 and the third interface 136 using a voltage detection circuit; when detecting the second interface 134 When the state pin ID of the third interface 136 has a low level input, the signal line D+/D- of the USB controller 12 is alternately switched to the first interface 132 and the second interface by the switching circuit 112 at a predetermined cycle.
  • the control voltage output circuit 114 alternately supplies power to the power pins Vbus of the first interface 132, the second interface 134, and the third interface 136; polling the first interface 132
  • the second interface 134 and the third interface 136 determine device access states of the first interface 132, the second interface 134, and the third interface 136; and when it is determined that the first interface 132, the second interface 134, or the third interface 136 exists
  • the signal line D+/D- of the USB controller 12 is kept turned on by the switching circuit 112 to the signal line D+/D- of the first interface 132, the second interface 134 or the third interface 136.
  • the main controller 14 is also operative to execute instructions to enable the control voltage output circuit 114 to maintain power to the power pin Vbus of the first interface 132, the second interface 134, or the third interface 136. That is, step S123, step S124, step S125, step S126, step S136, and step S19 can be implemented by the main controller 14.
  • the signal line D+ of the USB controller 12 is used by the switching circuit 112.
  • the control voltage output circuit 114 correspondingly supplies power to the power pin Vbus of the first interface 132, detecting the device access status of the first interface 132, when When it is detected that the first interface 132 has device access, the connection between the current USB controller 12 and the first interface 132 is maintained, and the control voltage output circuit 114 keeps supplying power to the first interface 132, and the USB host (ie, the USB system) 10) No longer querying the second interface 134 before disconnecting from another USB slave (ie, the device accessing the first interface 132) And the state of the third interface 136.
  • the USB host ie, the USB system
  • the signal of the USB controller 12 is switched to the signal of the second interface 134 by the switching circuit 112.
  • the line D+/D-, the control voltage output circuit 114 supplies power to the power pin Vbus of the second interface 134 correspondingly, detects the device access status of the second interface 134, and when detecting that the second interface 134 has device access, Keeping the current USB controller 12 connected to the second interface 134, the control voltage output circuit 114 keeps supplying power to the second interface 134, and the USB host (ie, the USB system 10) and another USB slave (ie, accessing the first The state of the first interface 132 and the third interface 136 is no longer queried until the device of the second interface 134 is disconnected.
  • the signal of the USB controller 12 is switched to the signal of the third interface 136 by the switching circuit 112.
  • the line D+/D-, the control voltage output circuit 114 supplies power to the power pin Vbus of the third interface 136 correspondingly, and detects the device access status of the third interface 136.
  • the control voltage output circuit 114 keeps supplying power to the third interface 136, and the USB host (ie, the USB system 10) and another USB slave (ie, accessing the first The state of the first interface 132 and the second interface 134 is no longer queried until the device of the three interface 136 is disconnected.
  • the signal of the USB controller 12 is switched to the signal of the first interface 132 by the switching circuit 112.
  • the line D+/D-, the control voltage output circuit 114 supplies power to the power pin Vbus of the first interface 132 correspondingly, detects the device access state of the first interface 132, and repeats the operation.
  • the fourth switching circuit 1128 switches the second voltage detecting circuit 1164 to the state pin ID of the second interface 134 and the third interface 136.
  • the first switching circuit 1122 turns the signal line D+/D ⁇ of the USB controller 12 into turns in a predetermined cycle.
  • the second switching circuit 1124 turns the voltage output circuit 114 in turn to the power supply pin Vbus of the first interface 132, the second interface 134, and the third interface 136.
  • the first switching circuit 1122 keeps the signal line D+/D- of the USB controller 12 on the first interface 132 and the second interface. 134 or the signal line D+/D- of the third interface 136.
  • the second switching circuit 1124 maintains the voltage output circuit 114 to the power supply pin Vbus of the first interface 132, the second interface 134, or the third interface 136.
  • the predetermined period is 2-3 seconds.
  • the detection can be quickly detected and the connection of the USB controller 12 to the interface 13 can be established or maintained.
  • USB system 10 includes control buttons.
  • the control method also includes the following steps:
  • S20 Receive an input of the control button and establish a link of the USB controller 12 and one of the interfaces 13 according to the input of the control button.
  • the USB system 10 includes control buttons.
  • the main controller 14 is operative to execute instructions to: receive an input of a control button and establish a link of the USB controller 12 with one of the interfaces 13 based on the input of the control button. That is to say, step S20 can be implemented by the main controller 14.
  • the link of the USB controller 12 to one of the interfaces 13 can be established according to the input of the control button.
  • the input of the control button can be input by the user.
  • an electronic device 100 includes the USB system 10 and the body 40 of any of the above embodiments.
  • the USB system 10 is mounted on the body 40.
  • the electronic device 100 of the embodiment of the present invention includes a Pad, a mobile phone, a notebook computer, a camera, a video camera, a printer, or other electronic device having a USB interface 13.
  • the body 40 can be the body of the electronic device 100.
  • control method and the USB system 10 is also applicable to the electronic device 100 of the embodiment of the present invention, and details are not described herein again.
  • a "computer readable medium” can be any A device that stores, communicates, propagates, or transmits a program for use in an instruction execution system, apparatus, or device, or in conjunction with such an instruction execution system, apparatus, or device.
  • computer readable media include the following: electrical connections (control methods) having one or more wires, portable computer disk cartridges (magnetic devices), random access memory (RAM), Read only memory (ROM), erasable editable read only memory (EPROM or flash memory), fiber optic devices, and portable compact disk read only memory (CDROM).
  • the computer readable medium may even be a paper or other suitable medium on which the program can be printed, as it may be optically scanned, for example by paper or other medium, followed by editing, interpretation or, if appropriate, other suitable The method is processed to obtain the program electronically and then stored in computer memory.
  • portions of the embodiments of the invention may be implemented in hardware, software, firmware or a combination thereof.
  • multiple steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system.
  • a suitable instruction execution system For example, if implemented in hardware, as in another embodiment, it can be implemented by any one or combination of the following techniques well known in the art: having logic gates for implementing logic functions on data signals. Discrete logic circuits, application specific integrated circuits with suitable combinational logic gates, programmable gate arrays (PGAs), field programmable gate arrays (FPGAs), etc.
  • each functional unit in each embodiment of the present invention may be integrated into one processing module, or each unit may exist physically separately, or two or more units may be integrated into one module.
  • the above integrated modules can be implemented in the form of hardware or in the form of software functional modules.
  • the integrated modules, if implemented in the form of software functional modules and sold or used as stand-alone products, may also be stored in a computer readable storage medium.
  • the above mentioned storage medium may be a read only memory, a magnetic disk or an optical disk or the like.

Landscapes

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

Abstract

L'invention concerne un procédé de commande qui sert à commander un système USB (10). Le système USB (10) comprend un circuit intégré (11), un contrôleur USB (12) et de multiples interfaces (13), le circuit intégré (11) comprenant un circuit de commutation (112) ; et le circuit de commutation (112) étant connecté aux multiples interfaces (13). Le procédé de commande comprend les étapes suivantes consistant à : (S11) interroger de multiples interfaces pour déterminer un état d'accès au dispositif des multiples interfaces ; et (S12) lorsqu'il est déterminé qu'il existe un dispositif accédant à l'une des multiples interfaces, utiliser un circuit de commutation pour établir une liaison entre un contrôleur USB et l'interface. De plus, l'invention concerne en outre un système USB (10) et un appareil électronique (100).
PCT/CN2017/082596 2017-04-28 2017-04-28 Procédé de commande, système usb et appareil électronique WO2018195992A1 (fr)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201780004893.9A CN108513656B (zh) 2017-04-28 2017-04-28 控制方法、usb系统和电子装置
PCT/CN2017/082596 WO2018195992A1 (fr) 2017-04-28 2017-04-28 Procédé de commande, système usb et appareil électronique

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/082596 WO2018195992A1 (fr) 2017-04-28 2017-04-28 Procédé de commande, système usb et appareil électronique

Publications (1)

Publication Number Publication Date
WO2018195992A1 true WO2018195992A1 (fr) 2018-11-01

Family

ID=63375235

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/082596 WO2018195992A1 (fr) 2017-04-28 2017-04-28 Procédé de commande, système usb et appareil électronique

Country Status (2)

Country Link
CN (1) CN108513656B (fr)
WO (1) WO2018195992A1 (fr)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112527721B (zh) * 2020-12-04 2024-07-02 苏州华兴源创科技股份有限公司 一种集成电路总线接口控制装置、方法以及系统

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200700995A (en) * 2005-06-29 2007-01-01 High Tech Comp Corp Cradle for connecting to portable electronic apparatus
CN101101582A (zh) * 2006-07-03 2008-01-09 泰金宝电通股份有限公司 通用序列总线连接端口的扩充模块及扩充方法
CN101901201A (zh) * 2010-08-06 2010-12-01 中兴通讯股份有限公司 一种在电子设备上实现usb otg功能的方法和装置

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4318075B2 (ja) * 2003-08-29 2009-08-19 富士フイルム株式会社 Usbファンクション装置
CN102778918B (zh) * 2011-05-09 2016-08-24 国家电网公司 便携式电子装置
US9959239B2 (en) * 2015-10-16 2018-05-01 Dell Products L.P. Secondary data channel communication system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200700995A (en) * 2005-06-29 2007-01-01 High Tech Comp Corp Cradle for connecting to portable electronic apparatus
CN101101582A (zh) * 2006-07-03 2008-01-09 泰金宝电通股份有限公司 通用序列总线连接端口的扩充模块及扩充方法
CN101901201A (zh) * 2010-08-06 2010-12-01 中兴通讯股份有限公司 一种在电子设备上实现usb otg功能的方法和装置

Also Published As

Publication number Publication date
CN108513656A (zh) 2018-09-07
CN108513656B (zh) 2021-05-28

Similar Documents

Publication Publication Date Title
US10042801B2 (en) System for detecting universal serial bus (USB) device and method thereof
JP5301512B2 (ja) 省電力装置及びその省電力方法
US9329672B2 (en) High-definition multimedia interface (HDMI) receiver apparatuses, HDMI systems using the same, and control methods therefor
US20100199112A1 (en) Information processing apparatus and power supply control method
JP6517327B2 (ja) デバイスのモードを制御する方法および装置
US20110060850A1 (en) Mobile device of supporting uart and usb communication using same connector and operating method there-of
US20130191653A1 (en) Usb hub for supplying power and method thereof
JP6714469B2 (ja) 電子機器およびその制御方法
US10725939B2 (en) Host-detecting USB hub
CN109478176B (zh) 一种USB Type-C端口设备识别对端设备的方法、装置和系统
US10565145B2 (en) Felxconnect disconnect detection
US10136223B1 (en) Control method and control system for audio device
US11011945B2 (en) Systems and methods for wireless charging and wired data transfer
US20190213159A1 (en) Universal serial bus type-c interface circuit and pin bypass method thereof
US20130244455A1 (en) Processing device and processing system
WO2018195992A1 (fr) Procédé de commande, système usb et appareil électronique
CN110800168B (zh) 改变连接器中包括的端子的阻抗的方法和装置
TWI510928B (zh) 周邊裝置及其控制方法
US8205108B2 (en) Method and module for power detection and peripheral apparatus using the same
KR20110015742A (ko) 유에스비 인터페이스를 이용한 전원 공급 방법 및 이를 이용하는 휴대 단말기
JP2018185664A (ja) 制御システム、電子機器および制御方法
KR20170090954A (ko) 초소형 컴퓨터용 usb 허브
US20160239447A1 (en) Data acquisition system, electronic device, and data acquisition terminal
WO2021262143A1 (fr) Ports d'entrée/de sortie
JP2017224219A (ja) 電子機器

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: 17907150

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: 17907150

Country of ref document: EP

Kind code of ref document: A1