US20110029703A1 - Electronic device capable of automatically switching between a master mode and a slave mode - Google Patents

Electronic device capable of automatically switching between a master mode and a slave mode Download PDF

Info

Publication number
US20110029703A1
US20110029703A1 US12/699,899 US69989910A US2011029703A1 US 20110029703 A1 US20110029703 A1 US 20110029703A1 US 69989910 A US69989910 A US 69989910A US 2011029703 A1 US2011029703 A1 US 2011029703A1
Authority
US
United States
Prior art keywords
master
slave
output port
pin
circuit
Prior art date
Legal status (The legal status 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 status listed.)
Granted
Application number
US12/699,899
Other versions
US8095714B2 (en
Inventor
Wei Huo
Zhong-wei Du
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hongfujin Precision Industry Shenzhen Co Ltd
Hon Hai Precision Industry Co Ltd
Original Assignee
Hongfujin Precision Industry Shenzhen Co Ltd
Hon Hai Precision Industry Co Ltd
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 Hongfujin Precision Industry Shenzhen Co Ltd, Hon Hai Precision Industry Co Ltd filed Critical Hongfujin Precision Industry Shenzhen Co Ltd
Assigned to HON HAI PRECISION INDUSTRY CO., LTD., HONG FU JIN PRECISION INDUSTRY (SHENZHEN) CO., LTD. reassignment HON HAI PRECISION INDUSTRY CO., LTD. ASSIGNMENT OF ASSIGNORS INTEREST (SEE DOCUMENT FOR DETAILS). Assignors: DU, Zhong-wei, HUO, Wei
Publication of US20110029703A1 publication Critical patent/US20110029703A1/en
Application granted granted Critical
Publication of US8095714B2 publication Critical patent/US8095714B2/en
Expired - Fee Related legal-status Critical Current
Adjusted expiration legal-status Critical

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

Definitions

  • the present disclosure relates to electronic devices and, particularly, to an electronic device capable of automatically switching between a master and a slave mode.
  • an electronic device has at least two control modes, for example, a master mode and a slave mode.
  • a master mode When the electronic device, such as digital photo frame (DPF), is connected with a computer, the electronic device enters the slave mode, in which the DPF is controlled by the computer; when the DFP is connected with a memory device, such as a flash memory, the DPF enters the master mode, in which the DPF controls the flash memory.
  • a memory device such as a flash memory
  • a present switching circuit of the electronic device to switch between the master mode and the slave mode usually is relatively complex and has a high cost.
  • an electronic device capable of automatically switching between a master mode and a slave mode is desired to overcome the above-described deficiencies.
  • FIG. 1 is a block diagram of an electronic device capable of automatically switching between a master mode and a slave mode.
  • FIG. 2 is a circuit diagram of an electronic device capable of automatically switching between a master mode and a slave mode of FIG. 1 .
  • FIG. 1 is a block diagram of an electronic device capable of automatically selecting between a master mode and a slave mode.
  • the electronic device 1 includes a mode switching circuit 10 and a USB interface 20 .
  • the USB interface 20 is used for connecting an external electronic device 2
  • the mode switching circuit 10 is used for detecting the type of the external electronic device 2 and switching the electronic device 1 to the master mode or the slave mode according to the detected type of the external electronic device 2 .
  • the mode switching circuit 10 switches the electronic device 1 to the slave mode, when the external electronic device 2 is a host device, such as a computer.
  • the switching circuit 10 switches the electronic device 1 to the master mode.
  • the mode switching circuit 10 includes a master-slave selection triggering circuit 101 , a controlling unit 102 , a selection circuit 103 , and a switching circuit 104 .
  • the master-slave selection triggering circuit 101 includes an input port 1011 , a first output port 1012 , and a second output port 1013 .
  • the USB interface 20 includes a power pin 201 and a data pin 202 .
  • the input port 1011 of the master-slave selection triggering circuit 101 is connected to the power pin 201 of the USB interface 20 .
  • the first output port 1012 of the master-slave selection triggering circuit 101 is connected to the controlling unit 102 , and the second output port 1013 of the master-slave selection triggering circuit 101 , which is connected to the selection circuit 103 .
  • the electronic device 1 also includes a processing unit 30 and a power source 40 .
  • the processing unit 30 includes a slave mode controlling pin 301 and a master mode controlling pin 302 .
  • the master-slave selection triggering circuit 101 determines the type of external electronic devices 2 by detecting the voltage of the power pin 201 of the USB interface 20 .
  • the master-slave selection triggering circuit 101 detects the power pin 201 is at high voltage.
  • the master-slave selection triggering circuit 101 determines the external electronic device 2 is a host device and sends a slave triggering signal to the controlling unit 102 and the selection circuit 103 via the first output port 1012 and the second output port 1013 respectively.
  • the master-slave selection triggering circuit 101 detects the power pin 201 is at low voltage
  • the master-slave selection triggering circuit 101 determines the external electronic device 2 is a slave device. Then the master-slave selection triggering circuit 101 sends a master triggering signal to the controlling unit 102 and the selection circuit 103 via the first output port 1012 and the second output port 1013 respectively.
  • the controlling unit 102 is further connected to the switching circuit 104 , and the switching circuit 104 is connected between the power source 40 and the power pin 201 .
  • the controlling unit 102 receives the slave triggering signal from the first output port 1012
  • the controlling unit 102 switches off the switching circuit 104 , then disconnects the connection between the power source 40 and the power pin 201 .
  • the selection circuit 103 receives the slave triggering signal from the second output port 1013
  • the selection circuit 103 connects the slave mode controlling pin 301 of the processing unit 30 with the data pin 202 . Therefore, the electronic device 1 works in the slave mode.
  • the controlling unit 102 When the controlling unit 102 receives the master triggering signal from the first output port 1012 , the controlling unit 102 switches on the switching circuit 104 , then the power source 40 is electrically connects to the power pin 201 via the switching circuit 104 and provides power to the power pin 201 .
  • the selection circuit 103 receives the master triggering signal from the second output port 1013 , the selection circuit 103 connects the master mode controlling pin 302 of the processing unit 30 with the data pin 202 . Therefore, the electronic device 1 works in the master mode.
  • the controlling unit 102 of the electronic devices 1 switches off the switching circuit 104 to disconnect the connection between the power source 40 and the power pin 201 .
  • the selection circuit 103 of the electronic device 1 connects the slave mode controlling pin 301 with the data pin 20 , then the electronic device 1 is switched to the slave mode.
  • the controlling unit 102 of the electronic devices 1 switches on the switching circuit 104 to connect the power source 40 with the power pin 201 , and the power source 40 provides power to the power pin 201 .
  • the selection circuit 103 of the electronic device 1 connects the master mode controlling pin 302 with the data pin 20 , then the electronic device 1 is switched to the master mode.
  • FIG. 2 is a circuit diagram of the electronic device of FIG. 1 .
  • the master-slave selection triggering circuit 101 [Zi] includes a first resistor R 1 , a second resistor R 2 , and a third resistor R 3 .
  • a connection node A between the first resistor R 1 and the second resistor R 2 serves as the input port 1011 of the master-slave selection triggering circuit 101 .
  • a node B between the resistor R 1 and the controlling unit 102 serves as the output port 1012 of the master-slave selection triggering circuit 101
  • a connection node C between the first resistor R 2 and the second resistor R 3 serves as the output port 1013 of the master-slave selection triggering circuit 101 .
  • the controlling unit 102 is a high voltage activated switch, and the controlling unit 102 includes a control terminal, a first conductive terminal, and a second conductive terminal.
  • the exemplary embodiment takes a negative-positive-negative (NPN) bipolar junction transistor (BJT) Q 1 as an example to illustrate the controlling unit 102 .
  • NPN negative-positive-negative
  • BJT bipolar junction transistor
  • a base, an emitter, and a collector of the NPN BJT Q 1 serve as the control terminal, the first conductive terminal, and the second conductive terminal of the controlling unit 102 respectively.
  • the base of the NPN BJT Q 1 is connected to the first output port 1012 of the master-slave selection triggering circuit 101 , the collector of the NPN BJT Q 1 is connected to the switching circuit 104 , and the emitter of the NPN BJT Q 1 is connected to ground.
  • the switching circuit 104 is a high voltage activated circuit, and the switching circuit 104 includes a control terminal, a first conductive terminal, and a second conductive terminal.
  • the control terminal of the switching circuit 104 is connected to the collector of the NPN BJT Q 1 , the first conductive terminal is connected to the power source 40 , and the second conductive terminal is connected to the power pin 201 .
  • the switching circuit 104 is a high voltage activated switch, such as an n-channel metal-oxide-semiconductor field-effect transistor (NMOSFET) or a NPN BJT.
  • NMOSFET n-channel metal-oxide-semiconductor field-effect transistor
  • the slave mode controlling pin 301 of a processing unit 30 includes a “Device D+” pin and a “Device D ⁇ ” pin
  • the master mode controlling pin 302 of a processing unit 30 includes a “Host D+” pin and a “Host D ⁇ ” pin
  • the data pin 202 of the USB interface 20 includes a first data pin (D+ pin) and a second data pin (D ⁇ pin).
  • the selection circuit 103 is a double-pole double-throw switch, which includes a control terminal, two public terminals, and four joint terminals.
  • the control terminal of the selection circuit 103 is connected to the second output port 1013 of the master-slave selection triggering circuit 101 .
  • the two public terminals of the selection circuit 103 are respectively connected to the first data pin and the second data pin of the data pin 202 .
  • the four joint terminals of the selection circuit 103 are respectively connected to the “Device D+” pin, “Device D ⁇ ” pin, “Host D+” pin, “Host D ⁇ ” pin.
  • the two public terminals are connected to the joint terminals, which are connected to the “Device D+” pin, “Device D ⁇ ” pin.
  • the control terminal of the selection circuit 103 is at low voltage, the two public terminals are connected to the joint terminals, which are connected to the “Host D+” pin, “Host D ⁇ ” pin.
  • the power pin 201 of the USB interface 20 receives a high voltage from the external device 2
  • the input port 1011 receives a high voltage from the USB interface 20 accordingly.
  • the output port 1012 receives a high voltage from the input port 1011 via resistor R 1
  • the control terminal of the NPN BJT Q 1 receives a high voltage from the first output port 1012 , thereby causing the NPN BJT Q 1 to be switched on.
  • the control terminal of the switching circuit 104 receives a low voltage from the NPN BJT Q 1 , the switching circuit 104 is switched off accordingly, and the connection between the power source 40 and the power pin 201 of the USB interface 20 is disconnected.
  • the second output 1013 When the input port 1011 receives a high voltage from the USB interface 20 , the second output 1013 receives a high voltage divided by resistor R 2 and resistor R 3 , then the second output 1013 outputs a high voltage slave triggering signal to the selection circuit 103 .
  • the selection circuit 103 connects the “Device D+” pin and “Device D ⁇ ” pin to the first data pin and second data pin of the USB interface 20 by connecting the two public terminals to the joint ends connected to the “Device D+” pin, “Device D ⁇ ” pin.
  • the power supply of the USB interface 20 is from the external electronic device 2 , and the electronic device 1 is switched to the slave mode.
  • the power pin 201 of the USB interface 20 receives a low voltage from the external device 2
  • the input port 1011 receives a low voltage from the power pin 201 accordingly.
  • the output port 1012 receives a low voltage from the input port 1011 via resistor R 1
  • the control terminal of the NPN BJT Q 1 receives a low voltage from the output port 1012
  • the NPN BJT Q 1 is switched off.
  • the control terminal of the switching circuit 104 receives a high voltage from the NPN transistor Q 1 , the switching circuit 104 is switched on, and the power source 40 is connected to the power pin 201 of the USB interface 20 .
  • the second output 1013 When the input port 1011 receives a low voltage from the USB interface 20 , the second output 1013 receives a low voltage divided by resistor R 2 and resistor R 3 then the second output 1013 outputs a low voltage master triggering signal to the selection circuit 103 .
  • the selection circuit 103 connects the “Device D+” pin and “Device D ⁇ ” pin separately to the first data pin and second pin of the USB interface 20 by connecting the two public terminals to the joint ends connected to the “Host D+” pin, “Host D ⁇ ” pin.
  • the power supply of the USB interface 20 is from the electronic device 1 , and the electronic device 1 is switched to the master mode.

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)
  • Power Sources (AREA)

Abstract

An electronic device, includes a USB interface, a processing unit, a master-slave select triggering circuit, a controlling unit, a selection circuit and a switching circuit. The master-slave selection triggering circuit including an input port, a first output port and a second output port. The master-slave select triggering circuit is used to detect the type of external electronic devices connected to the USB interface, if the external electronic device is a master device, the first and second output port output a slave triggering signal, the controlling unit switches off the switching circuit t and the selection circuit selects the processing unit into slave mode; if the external electronic device is the slave device, the first and second output port output a master triggering signal, the controlling unit switches on the switching circuit and the selection circuit select the processing unit into master mode.

Description

    BACKGROUND
  • 1. Technical Field
  • The present disclosure relates to electronic devices and, particularly, to an electronic device capable of automatically switching between a master and a slave mode.
  • 2. Description of Related Art
  • In general, an electronic device has at least two control modes, for example, a master mode and a slave mode. When the electronic device, such as digital photo frame (DPF), is connected with a computer, the electronic device enters the slave mode, in which the DPF is controlled by the computer; when the DFP is connected with a memory device, such as a flash memory, the DPF enters the master mode, in which the DPF controls the flash memory. There is a need to change the control mode when the DPF connects to different external device.
  • However, a present switching circuit of the electronic device to switch between the master mode and the slave mode usually is relatively complex and has a high cost.
  • Therefore, an electronic device capable of automatically switching between a master mode and a slave mode is desired to overcome the above-described deficiencies.
  • BRIEF DESCRIPTION OF THE DRAWINGS
  • The components in the drawings are not necessarily drawn to scale, the emphasis instead being placed upon clearly illustrating the principles of the electronic device. Moreover, in the drawings, like reference numerals designate corresponding parts throughout the several views
  • FIG. 1 is a block diagram of an electronic device capable of automatically switching between a master mode and a slave mode.
  • FIG. 2 is a circuit diagram of an electronic device capable of automatically switching between a master mode and a slave mode of FIG. 1.
  • DETAILED DESCRIPTION
  • FIG. 1 is a block diagram of an electronic device capable of automatically selecting between a master mode and a slave mode. The electronic device 1 includes a mode switching circuit 10 and a USB interface 20. The USB interface 20 is used for connecting an external electronic device 2, and the mode switching circuit 10 is used for detecting the type of the external electronic device 2 and switching the electronic device 1 to the master mode or the slave mode according to the detected type of the external electronic device 2. For example, the mode switching circuit 10 switches the electronic device 1 to the slave mode, when the external electronic device 2 is a host device, such as a computer. When the external device 2 is a slave device, such as a flash memory, the switching circuit 10 switches the electronic device 1 to the master mode.
  • The mode switching circuit 10 includes a master-slave selection triggering circuit 101, a controlling unit 102, a selection circuit 103, and a switching circuit 104. The master-slave selection triggering circuit 101 includes an input port 1011, a first output port 1012, and a second output port 1013. The USB interface 20 includes a power pin 201 and a data pin 202. The input port 1011 of the master-slave selection triggering circuit 101, is connected to the power pin 201 of the USB interface 20. The first output port 1012 of the master-slave selection triggering circuit 101, is connected to the controlling unit 102, and the second output port 1013 of the master-slave selection triggering circuit 101, which is connected to the selection circuit 103.
  • The electronic device 1 also includes a processing unit 30 and a power source 40. The processing unit 30 includes a slave mode controlling pin 301 and a master mode controlling pin 302.
  • When the external electronic device 2 connects to the USB interface 20, the master-slave selection triggering circuit 101 determines the type of external electronic devices 2 by detecting the voltage of the power pin 201 of the USB interface 20. When the master-slave selection triggering circuit 101 detects the power pin 201 is at high voltage. The master-slave selection triggering circuit 101 determines the external electronic device 2 is a host device and sends a slave triggering signal to the controlling unit 102 and the selection circuit 103 via the first output port 1012 and the second output port 1013 respectively. When the master-slave selection triggering circuit 101 detects the power pin 201 is at low voltage, the master-slave selection triggering circuit 101 determines the external electronic device 2 is a slave device. Then the master-slave selection triggering circuit 101 sends a master triggering signal to the controlling unit 102 and the selection circuit 103 via the first output port 1012 and the second output port 1013 respectively.
  • The controlling unit 102 is further connected to the switching circuit 104, and the switching circuit 104 is connected between the power source 40 and the power pin 201. When the controlling unit 102 receives the slave triggering signal from the first output port 1012, the controlling unit 102 switches off the switching circuit 104, then disconnects the connection between the power source 40 and the power pin 201. When the selection circuit 103 receives the slave triggering signal from the second output port 1013, the selection circuit 103 connects the slave mode controlling pin 301 of the processing unit 30 with the data pin 202. Therefore, the electronic device 1 works in the slave mode.
  • When the controlling unit 102 receives the master triggering signal from the first output port 1012, the controlling unit 102 switches on the switching circuit 104, then the power source 40 is electrically connects to the power pin 201 via the switching circuit 104 and provides power to the power pin 201. When the selection circuit 103 receives the master triggering signal from the second output port 1013, the selection circuit 103 connects the master mode controlling pin 302 of the processing unit 30 with the data pin 202. Therefore, the electronic device 1 works in the master mode.
  • Therefore, when the external electronic device 2 is a host device, such as a computer, the controlling unit 102 of the electronic devices 1 switches off the switching circuit 104 to disconnect the connection between the power source 40 and the power pin 201. At the same time, the selection circuit 103 of the electronic device 1 connects the slave mode controlling pin 301 with the data pin 20, then the electronic device 1 is switched to the slave mode. When the external electronic device 2 is a slave device, the controlling unit 102 of the electronic devices 1 switches on the switching circuit 104 to connect the power source 40 with the power pin 201, and the power source 40 provides power to the power pin 201. At the same time, the selection circuit 103 of the electronic device 1 connects the master mode controlling pin 302 with the data pin 20, then the electronic device 1 is switched to the master mode.
  • FIG. 2 is a circuit diagram of the electronic device of FIG. 1. The master-slave selection triggering circuit 101 [Zi] includes a first resistor R1, a second resistor R2, and a third resistor R3. Referring to FIG. 2, a connection node A between the first resistor R1 and the second resistor R2 serves as the input port 1011 of the master-slave selection triggering circuit 101. A node B between the resistor R1 and the controlling unit 102 serves as the output port 1012 of the master-slave selection triggering circuit 101, and a connection node C between the first resistor R2 and the second resistor R3 serves as the output port 1013 of the master-slave selection triggering circuit 101.
  • The controlling unit 102 is a high voltage activated switch, and the controlling unit 102 includes a control terminal, a first conductive terminal, and a second conductive terminal. The exemplary embodiment, takes a negative-positive-negative (NPN) bipolar junction transistor (BJT) Q1 as an example to illustrate the controlling unit 102. A base, an emitter, and a collector of the NPN BJT Q1 serve as the control terminal, the first conductive terminal, and the second conductive terminal of the controlling unit 102 respectively.
  • The base of the NPN BJT Q1 is connected to the first output port 1012 of the master-slave selection triggering circuit 101, the collector of the NPN BJT Q1 is connected to the switching circuit 104, and the emitter of the NPN BJT Q1 is connected to ground.
  • The switching circuit 104 is a high voltage activated circuit, and the switching circuit 104 includes a control terminal, a first conductive terminal, and a second conductive terminal. The control terminal of the switching circuit 104 is connected to the collector of the NPN BJT Q1, the first conductive terminal is connected to the power source 40, and the second conductive terminal is connected to the power pin 201. In the exemplary embodiment, the switching circuit 104 is a high voltage activated switch, such as an n-channel metal-oxide-semiconductor field-effect transistor (NMOSFET) or a NPN BJT.
  • In the exemplary embodiment, the slave mode controlling pin 301 of a processing unit 30 includes a “Device D+” pin and a “Device D−” pin, the master mode controlling pin 302 of a processing unit 30 includes a “Host D+” pin and a “Host D−” pin. The data pin 202 of the USB interface 20 includes a first data pin (D+ pin) and a second data pin (D− pin).
  • The selection circuit 103 is a double-pole double-throw switch, which includes a control terminal, two public terminals, and four joint terminals. The control terminal of the selection circuit 103 is connected to the second output port 1013 of the master-slave selection triggering circuit 101. The two public terminals of the selection circuit 103 are respectively connected to the first data pin and the second data pin of the data pin 202. The four joint terminals of the selection circuit 103 are respectively connected to the “Device D+” pin, “Device D−” pin, “Host D+” pin, “Host D−” pin. When the control terminal of the selection circuit 103 is at high voltage, the two public terminals are connected to the joint terminals, which are connected to the “Device D+” pin, “Device D−” pin. When the control terminal of the selection circuit 103 is at low voltage, the two public terminals are connected to the joint terminals, which are connected to the “Host D+” pin, “Host D−” pin.
  • When the external electronic device 2 connected to the electronic device 1 is the host device, the power pin 201 of the USB interface 20 receives a high voltage from the external device 2, and the input port 1011 receives a high voltage from the USB interface 20 accordingly. The output port 1012 receives a high voltage from the input port 1011 via resistor R1, and the control terminal of the NPN BJT Q1 receives a high voltage from the first output port 1012, thereby causing the NPN BJT Q1 to be switched on. The control terminal of the switching circuit 104 receives a low voltage from the NPN BJT Q1, the switching circuit 104 is switched off accordingly, and the connection between the power source 40 and the power pin 201 of the USB interface 20 is disconnected.
  • When the input port 1011 receives a high voltage from the USB interface 20, the second output 1013 receives a high voltage divided by resistor R2 and resistor R3, then the second output 1013 outputs a high voltage slave triggering signal to the selection circuit 103. The selection circuit 103 connects the “Device D+” pin and “Device D−” pin to the first data pin and second data pin of the USB interface 20 by connecting the two public terminals to the joint ends connected to the “Device D+” pin, “Device D−” pin.
  • Therefore, the power supply of the USB interface 20 is from the external electronic device 2, and the electronic device 1 is switched to the slave mode.
  • When the external electronic device 2 connected to the electronic device 1 is the slave device, the power pin 201 of the USB interface 20 receives a low voltage from the external device 2, and the input port 1011 receives a low voltage from the power pin 201 accordingly. The output port 1012 receives a low voltage from the input port 1011 via resistor R1, the control terminal of the NPN BJT Q1 receives a low voltage from the output port 1012, and the NPN BJT Q1 is switched off. The control terminal of the switching circuit 104 receives a high voltage from the NPN transistor Q1, the switching circuit 104 is switched on, and the power source 40 is connected to the power pin 201 of the USB interface 20.
  • When the input port 1011 receives a low voltage from the USB interface 20, the second output 1013 receives a low voltage divided by resistor R2 and resistor R3 then the second output 1013 outputs a low voltage master triggering signal to the selection circuit 103. The selection circuit 103 connects the “Device D+” pin and “Device D−” pin separately to the first data pin and second pin of the USB interface 20 by connecting the two public terminals to the joint ends connected to the “Host D+” pin, “Host D−” pin.
  • Therefore, the power supply of the USB interface 20 is from the electronic device 1, and the electronic device 1 is switched to the master mode.
  • It is believed that the present embodiments and their advantages will be understood from the foregoing description, and it will be apparent that various changes may be made thereto without departing from the spirit and scope of the disclosure or sacrificing all of its material advantages, the examples hereinbefore described merely being preferred or exemplary embodiments of the present disclosure.

Claims (7)

1. An electronic device capable of automatically switching between a master mode and a slave mode, comprising:
a USB interface comprising a power pin and a date pin;
a power source;
a switching circuit connected between the power source and the power pin of the USB interface;
a controlling unit connected to the switching circuit;
a selection unit;
a master-slave selection triggering circuit comprising an input port connected to the power pin of the USB interface, a first output port connected to the controlling unit, and a second output port connected to the selection unit, which configured for detecting the voltage of the power pin of the USB interface and sending corresponding signals to the controlling unit and the selection unit via the first output port and the second output port respectively;
wherein, when the master-slave selection triggering circuit detects the power pin is at high voltage, the master-slave selection triggering circuit sends a slave triggering signal to the controlling unit and the selection circuit respectively via the first output port and the second output port, when the master-slave selection triggering circuit detects the power pin is at low voltage, the master-slave selection triggering circuit sends a master triggering signal to the controlling unit and the selection circuit respectively via the first output port and the second output port;
when the controlling unit receives the slave triggering signal from the first output port, the controlling unit switches off the switching circuit, then disconnects the connection between the power source and the power pin, when the selection circuit receives the slave triggering signal from the second output port, the selection circuit connects the slave mode controlling pin of the processing unit with the data pin;
when the controlling unit receives the master triggering signal from the first output port, the controlling unit switches on the switching circuit, then the power source is electrically connects to the power pin and provides power to the power pin; when the selection circuit receives the master triggering signal from the second output port, the selection circuit connects the master mode controlling pin of the processing unit with the data pin.
2. The electronic device capable of automatically switching between a master mode and a slave mode of claim 1, wherein the master-slave selection triggering circuit comprises a first resistor, a second resistor, and a third resistor, a connection node between the first resistor and the second resistor serves as the input port of the master-slave selection triggering circuit, a connection node between the first resistor and the controlling unit serves as the output port of the master-slave selection triggering circuit, and a connection node between the first resistor and the second resistor serves as the output port of the master-slave selection triggering circuit.
3. The electronic device capable of automatically switching between a master mode and a slave mode of claim 2, wherein the controlling unit is a high voltage activated switch, the controlling unit comprises a control terminal, a first conductive terminal, and a second conductive terminal, the control terminal is connected to the first output port, the first conductive terminal is connected to ground, and the second conductive terminal is connected to the switching circuit.
4. The electronic device capable of automatically switching between a master mode and a slave mode of claim 3, wherein the switching circuit is a high voltage activated switch, which comprises a control terminal, a first conductive terminal, and a second conductive terminal, the control terminal of the switching circuit is connected to the second conductive terminal of the controlling unit, the first conductive terminal is connected to the power source, and the second conductive terminal is connected to the power pin.
5. The electronic device capable of automatically switching between a master mode and a slave mode of claim 4, wherein when the power pin of the USB interface receives a high voltage from an external device, the input port receives a high voltage from the USB interface, the output port receives a high voltage from the input port via the first resistor, the controlling terminal of the controlling unit receives a high voltage from the first output port, and the controlling unit is switched on; when the power pin of the USB interface receives a low voltage from the external device, the input port receives a low voltage from the USB interface, the first output port receives a low voltage from the input port via the first resistor, the controlling terminal of the controlling unit receives a low voltage from the first output port, and the controlling unit is switched off.
6. The electronic device capable of automatically switching between a master mode and a slave mode of claim 2, wherein the selection circuit is a double-pole double-throw switch, which comprises a control terminal, the control terminal is connected to the second output port of the master-slave selection triggering circuit, when the selection circuit receives the slave triggering signal from the second output port, the selection circuit connects the slave mode controlling pin with the data pin, when the selection circuit receives the master triggering signal from the second output port, the selection circuit connects the master mode controlling pin with the data pin.
7. The electronic device capable of automatically switching between a master and a slave mode of claim 6, wherein when the master mode controlling pin connects to the data pin, the electronic device is switched to the master mode, when the slave mode controlling pin connects to the data pin, the electronic device is switched to the slave mode.
US12/699,899 2009-07-29 2010-02-04 Electronic device capable of automatically switching between a master mode and a slave mode Expired - Fee Related US8095714B2 (en)

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
CN200910304969.7 2009-07-29
CN200910304969 2009-07-29
CN2009103049697A CN101989246A (en) 2009-07-29 2009-07-29 Electronic device capable of automatically switching master and slave equipment modes of universal serial bus (USB)

Publications (2)

Publication Number Publication Date
US20110029703A1 true US20110029703A1 (en) 2011-02-03
US8095714B2 US8095714B2 (en) 2012-01-10

Family

ID=43528058

Family Applications (1)

Application Number Title Priority Date Filing Date
US12/699,899 Expired - Fee Related US8095714B2 (en) 2009-07-29 2010-02-04 Electronic device capable of automatically switching between a master mode and a slave mode

Country Status (2)

Country Link
US (1) US8095714B2 (en)
CN (1) CN101989246A (en)

Cited By (27)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110084651A1 (en) * 2009-10-08 2011-04-14 Audiovox Corporation Charging station
US20110227535A1 (en) * 2010-03-22 2011-09-22 Audiovox Corporation Charge clip
CN102841877A (en) * 2012-07-05 2012-12-26 深圳芯邦科技股份有限公司 Detecting method and automatic detecting circuit of working mode
WO2013006753A1 (en) * 2011-07-07 2013-01-10 Voxx International Corporation Current selectable usb charger
US20130326094A1 (en) * 2010-11-24 2013-12-05 Shanghai Actions Semiconductor Co., Ltd. Usb device and detection method thereof
US20140180618A1 (en) * 2012-12-22 2014-06-26 Hon Hai Precision Industry Co., Ltd. Test device for testing startup function of electronic device
US20140183974A1 (en) * 2012-12-27 2014-07-03 Wayne L. Proefrock Universal power interface
WO2015059654A1 (en) * 2013-10-22 2015-04-30 Allgo Embedded Systems Private Limited Universal serial bus (usb) hub for switching downstream ports between host mode and slave mode
USD734253S1 (en) 2012-01-09 2015-07-14 Voxx International Corporation Housing for a USB wall plate charger
US9166434B2 (en) 2012-06-29 2015-10-20 Intel Corporation Universal charger
US9184627B2 (en) 2012-12-28 2015-11-10 Intel Corporation Charging system for electronic device
US9188325B2 (en) 2012-01-09 2015-11-17 Voxx International Corporation Travel nightlight with USB charger
US9281699B2 (en) 2012-12-27 2016-03-08 Intel Corporation Electronic device to be powered by alternative power source
EP3016363A4 (en) * 2013-06-26 2017-02-08 Huizhou TCL Mobile Communication Co., Ltd. Communication module and terminal for realizing hot plug
US20170039155A1 (en) * 2015-08-07 2017-02-09 Xiaomi Inc. Interface circuit, method and device for state switching
US20170177530A1 (en) * 2015-12-21 2017-06-22 Xiaomi Inc. Method and apparatus for switching state
US20180121373A1 (en) * 2015-04-23 2018-05-03 Zte Corporation Circuit, Method and Apparatus for USB Interface Sharing
US10162788B2 (en) * 2016-08-19 2018-12-25 Microchip Technology Incorporated USB on the go (OTG) multi-hub endpoint reflector hub
CN109344016A (en) * 2018-08-31 2019-02-15 珠海全志科技股份有限公司 Can the USB device switched between host and equipment mode and switching method
US20200212640A1 (en) * 2018-12-26 2020-07-02 Dexin Electronic Ltd. Peripheral device
US10714958B2 (en) 2018-08-17 2020-07-14 Chicony Power Technology Co., Ltd. Charging apparatus and operating method thereof
US11128126B2 (en) * 2019-01-17 2021-09-21 Hongfujin Precision Electronics (Zhengzhou) Co., Ltd. Internal voltage-canceling circuit and USB device using the same
US11137932B2 (en) * 2019-12-02 2021-10-05 Western Digital Technologies, Inc. Pad indication for device capability
CN113505089A (en) * 2021-07-27 2021-10-15 联想(北京)有限公司 Electronic equipment and control method
CN114064535A (en) * 2021-11-15 2022-02-18 深圳市闪芯微电子有限公司 USB chip and manufacturing method thereof
US11611452B2 (en) * 2018-05-04 2023-03-21 Continental Automotive Gmbh Gateway for data communication in a vehicle
CN117827716A (en) * 2024-02-28 2024-04-05 苏州元脑智能科技有限公司 Master-slave switching interface structure of server and application equipment thereof

Families Citing this family (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9232265B2 (en) * 2011-03-31 2016-01-05 Lattice Semiconductor Corporation Method, apparatus and system for transitioning an audio/video device between a source mode and a sink mode
CN103139031A (en) * 2011-12-02 2013-06-05 亚旭电子科技(江苏)有限公司 Universal serial bus (USB) front-arrangement judging circuit
CN103219033A (en) * 2012-01-18 2013-07-24 百度在线网络技术(北京)有限公司 Portable memory
CN102662898B (en) * 2012-04-06 2015-01-21 华为技术有限公司 Host-slave compatibility method, device and system for USB (universal serial bus) device
CN105335311A (en) * 2014-07-04 2016-02-17 纬创资通股份有限公司 Portable electronic device and power management method
CN105068958B (en) * 2015-08-13 2019-04-16 小米科技有限责任公司 Method for handover control and device
TWI575875B (en) * 2015-10-29 2017-03-21 智原科技股份有限公司 Flip-flop circuit
CN107318037A (en) * 2016-04-26 2017-11-03 宏碁股份有限公司 Electronic installation and image transmission control method
CN106066840A (en) * 2016-05-27 2016-11-02 北京小鸟看看科技有限公司 A kind of method switching electronic equipment master slave mode and a kind of electronic equipment
KR20180002462A (en) * 2016-06-29 2018-01-08 삼성전자주식회사 Method for determing role of electronic device and electronic device thereof
CN107818064B (en) * 2016-09-14 2021-03-09 展汇科技股份有限公司 Operation method of universal serial bus concentrator supporting master-slave conversion
CN106445863A (en) * 2016-09-28 2017-02-22 广州视睿电子科技有限公司 Interface circuit
CN106776428B (en) * 2016-12-06 2020-05-08 广州视源电子科技股份有限公司 Terminal device, read-write device, data transmission system and hardware initialization method
CN106844276B (en) * 2016-12-30 2020-04-28 深圳市广和通无线股份有限公司 USB circuit
DE102019126690A1 (en) 2019-10-02 2021-04-08 Phoenix Contact Gmbh & Co. Kg METHOD FOR DATA TRANSFER BETWEEN A PERIPHERAL DEVICE AND A DATA COLLECTION UNIT, PERIPHERAL DEVICE AND DATA COLLECTION UNIT
CN110618672A (en) 2019-10-18 2019-12-27 深圳市道通科技股份有限公司 Interface circuit and interface communication method and device thereof
CN113419515A (en) * 2021-06-22 2021-09-21 上海星融汽车科技有限公司 Master-slave mode switching method, electronic equipment and vehicle diagnostic instrument
CN114860520B (en) * 2022-04-22 2023-03-21 珠海海奇半导体有限公司 USB slave equipment extraction detection circuit

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080263245A1 (en) * 2007-04-20 2008-10-23 Genesys Logic, Inc. Otg device for multi-directionally transmitting gps data and controlling method of same
US20100161842A1 (en) * 2008-12-16 2010-06-24 Lenovo (Beijing) Limited Mobile terminal and switching method for controlling data transmission interface thereof

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080263245A1 (en) * 2007-04-20 2008-10-23 Genesys Logic, Inc. Otg device for multi-directionally transmitting gps data and controlling method of same
US20100161842A1 (en) * 2008-12-16 2010-06-24 Lenovo (Beijing) Limited Mobile terminal and switching method for controlling data transmission interface thereof

Cited By (41)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110084651A1 (en) * 2009-10-08 2011-04-14 Audiovox Corporation Charging station
US20110227535A1 (en) * 2010-03-22 2011-09-22 Audiovox Corporation Charge clip
US8686683B2 (en) 2010-03-22 2014-04-01 Audiovox Corporation Charge clip
US20130326094A1 (en) * 2010-11-24 2013-12-05 Shanghai Actions Semiconductor Co., Ltd. Usb device and detection method thereof
US8793425B2 (en) * 2010-11-24 2014-07-29 Shanghai Actions Semiconductor Co., Ltd. USB device and detection method thereof
US9083192B2 (en) 2011-07-07 2015-07-14 Voxx International Corporation Current selectable USB charger
WO2013006753A1 (en) * 2011-07-07 2013-01-10 Voxx International Corporation Current selectable usb charger
US9312704B2 (en) 2012-01-09 2016-04-12 Voxx International Corporation USB wall plate charger
US9188325B2 (en) 2012-01-09 2015-11-17 Voxx International Corporation Travel nightlight with USB charger
USD734253S1 (en) 2012-01-09 2015-07-14 Voxx International Corporation Housing for a USB wall plate charger
US9166434B2 (en) 2012-06-29 2015-10-20 Intel Corporation Universal charger
CN102841877A (en) * 2012-07-05 2012-12-26 深圳芯邦科技股份有限公司 Detecting method and automatic detecting circuit of working mode
US20140180618A1 (en) * 2012-12-22 2014-06-26 Hon Hai Precision Industry Co., Ltd. Test device for testing startup function of electronic device
TWI559122B (en) * 2012-12-27 2016-11-21 英特爾公司 Universal power interface
US20140183974A1 (en) * 2012-12-27 2014-07-03 Wayne L. Proefrock Universal power interface
KR20150072447A (en) * 2012-12-27 2015-06-29 인텔 코포레이션 Universal power interface
US9281699B2 (en) 2012-12-27 2016-03-08 Intel Corporation Electronic device to be powered by alternative power source
US9287702B2 (en) * 2012-12-27 2016-03-15 Intel Corporation Universal power interface
KR101654780B1 (en) * 2012-12-27 2016-09-06 인텔 코포레이션 Universal power interface
US9184627B2 (en) 2012-12-28 2015-11-10 Intel Corporation Charging system for electronic device
EP3016363A4 (en) * 2013-06-26 2017-02-08 Huizhou TCL Mobile Communication Co., Ltd. Communication module and terminal for realizing hot plug
WO2015059654A1 (en) * 2013-10-22 2015-04-30 Allgo Embedded Systems Private Limited Universal serial bus (usb) hub for switching downstream ports between host mode and slave mode
US9910806B2 (en) 2013-10-22 2018-03-06 Allgo Embedded Systems Private Limited Universal serial bus (USB) hub for switching downstream ports between host mode and slave mode
US10528492B2 (en) * 2015-04-23 2020-01-07 Xi'an Zhongxing New Software Co., Ltd. Circuit, method and apparatus for USB interface sharing
US20180121373A1 (en) * 2015-04-23 2018-05-03 Zte Corporation Circuit, Method and Apparatus for USB Interface Sharing
US20170039155A1 (en) * 2015-08-07 2017-02-09 Xiaomi Inc. Interface circuit, method and device for state switching
US10210122B2 (en) * 2015-08-07 2019-02-19 Xiaomi Inc. Interface circuit, method and device for state switching
US20170177530A1 (en) * 2015-12-21 2017-06-22 Xiaomi Inc. Method and apparatus for switching state
US10572424B2 (en) * 2015-12-21 2020-02-25 Xiaomi Inc. Method and apparatus for switching state
US10162788B2 (en) * 2016-08-19 2018-12-25 Microchip Technology Incorporated USB on the go (OTG) multi-hub endpoint reflector hub
US11611452B2 (en) * 2018-05-04 2023-03-21 Continental Automotive Gmbh Gateway for data communication in a vehicle
US10714958B2 (en) 2018-08-17 2020-07-14 Chicony Power Technology Co., Ltd. Charging apparatus and operating method thereof
CN109344016A (en) * 2018-08-31 2019-02-15 珠海全志科技股份有限公司 Can the USB device switched between host and equipment mode and switching method
US20200212640A1 (en) * 2018-12-26 2020-07-02 Dexin Electronic Ltd. Peripheral device
US11025020B2 (en) * 2018-12-26 2021-06-01 Dexin Electronic Ltd. Peripheral device
US11128126B2 (en) * 2019-01-17 2021-09-21 Hongfujin Precision Electronics (Zhengzhou) Co., Ltd. Internal voltage-canceling circuit and USB device using the same
TWI763968B (en) * 2019-01-17 2022-05-11 鴻海精密工業股份有限公司 Protection circuit and usb tranmission device using the same
US11137932B2 (en) * 2019-12-02 2021-10-05 Western Digital Technologies, Inc. Pad indication for device capability
CN113505089A (en) * 2021-07-27 2021-10-15 联想(北京)有限公司 Electronic equipment and control method
CN114064535A (en) * 2021-11-15 2022-02-18 深圳市闪芯微电子有限公司 USB chip and manufacturing method thereof
CN117827716A (en) * 2024-02-28 2024-04-05 苏州元脑智能科技有限公司 Master-slave switching interface structure of server and application equipment thereof

Also Published As

Publication number Publication date
CN101989246A (en) 2011-03-23
US8095714B2 (en) 2012-01-10

Similar Documents

Publication Publication Date Title
US8095714B2 (en) Electronic device capable of automatically switching between a master mode and a slave mode
US10153652B2 (en) Charging system
US8344743B2 (en) Testing system for power supply unit
US20130181660A1 (en) Charge control circuit for usb device
US9407987B2 (en) Audio interface self-adaptation device
TWI468920B (en) Electronic device with power consumption detection function
US7582987B2 (en) Double power sources switching circuit
US8147138B2 (en) Power supply circuit for motherboard
US9183162B2 (en) Electronic device capable of being debugged via earphone port
US20130268797A1 (en) Power-off protection circuit and electronic device with power-off protection circuit
US20060015670A1 (en) Apparatus for detecting connection of a peripheral unit to a host system
US20130257442A1 (en) Power source detection circuit and electronic device with power source detection circuit
TW201107991A (en) Electronic device capable of switching between a USB master and a USB slave mode automatically
KR20230016687A (en) Data cables and charging devices
US20130283077A1 (en) Wake-up circuit and electronic device
CN107333073B (en) Prevent external image information source interface circuit of halting
US8148998B2 (en) Orientation detection circuit and electronic device using the same
US8996894B2 (en) Method of booting a motherboard in a server upon a successful power supply to a hard disk driver backplane
US20230032344A1 (en) Touch display device and power supply control method
TW201301013A (en) Electrical device
CN106888396B (en) Separated television control circuit and method and separated television
CN212060420U (en) Low-voltage servo power-down detection circuit
US9841797B2 (en) Power supply switch apparatus
CN111404538B (en) Connection circuit and connection method thereof
US20190251803A1 (en) Ringer control device and ringer control method

Legal Events

Date Code Title Description
AS Assignment

Owner name: HON HAI PRECISION INDUSTRY CO., LTD., TAIWAN

Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNORS:HUO, WEI;DU, ZHONG-WEI;REEL/FRAME:023895/0253

Effective date: 20100120

Owner name: HONG FU JIN PRECISION INDUSTRY (SHENZHEN) CO., LTD

Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNORS:HUO, WEI;DU, ZHONG-WEI;REEL/FRAME:023895/0253

Effective date: 20100120

REMI Maintenance fee reminder mailed
LAPS Lapse for failure to pay maintenance fees
STCH Information on status: patent discontinuation

Free format text: PATENT EXPIRED DUE TO NONPAYMENT OF MAINTENANCE FEES UNDER 37 CFR 1.362

FP Lapsed due to failure to pay maintenance fee

Effective date: 20160110