CN110109792A - USB device plug-pull detecting circuit under a kind of operating system off-line state - Google Patents

USB device plug-pull detecting circuit under a kind of operating system off-line state Download PDF

Info

Publication number
CN110109792A
CN110109792A CN201910439631.6A CN201910439631A CN110109792A CN 110109792 A CN110109792 A CN 110109792A CN 201910439631 A CN201910439631 A CN 201910439631A CN 110109792 A CN110109792 A CN 110109792A
Authority
CN
China
Prior art keywords
usb
plug
detecting circuit
usb device
field
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
CN201910439631.6A
Other languages
Chinese (zh)
Other versions
CN110109792B (en
Inventor
刘南豪
梁绍辉
周旭辉
詹美
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.)
Zhuhai Science And Technology Co Ltd Toast
Original Assignee
Zhuhai Science And Technology Co Ltd Toast
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 Zhuhai Science And Technology Co Ltd Toast filed Critical Zhuhai Science And Technology Co Ltd Toast
Priority to CN201910439631.6A priority Critical patent/CN110109792B/en
Publication of CN110109792A publication Critical patent/CN110109792A/en
Application granted granted Critical
Publication of CN110109792B publication Critical patent/CN110109792B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • G06F11/2215Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested to test error correction or detection circuits
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/26Functional testing
    • G06F11/273Tester hardware, i.e. output processing circuits
    • G06F11/2733Test interface between tester and unit under test

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Power Sources (AREA)

Abstract

The invention discloses USB device plug-pull detecting circuits under a kind of operating system off-line state, including the USB connector for connecting USB device and the USB plug-pull detecting circuit for detecting USB device plug state, the USB connector is electrically connected with the USB plug-pull detecting circuit.Compared to traditional technology, the present invention has rational design, power consumption is lower, facilitate user still can be with the plug state of real-time detection USB under operating system off-line state, cooperate the USB plug-pull detecting circuit as composed by various passive devices based on USB connector, has many advantages, such as that power consumption is low, can normally plug USB to realize data communication.

Description

USB device plug-pull detecting circuit under a kind of operating system off-line state
Technical field
The present invention relates to USB circuit field, USB device plug detection electricity under especially a kind of operating system off-line state Road.
Background technique
The detection of USB device at present, typically by operating system (such as windows, android etc.) go judgement be It is no to have data communication, when operating system is in off-line state, USB device can not just be detected whether plug, therefore can not Carry out the effective serviceable condition for reminding user USB.Also, under traditional mode, it is if necessary to constant testing USB device No by plug, operating system must be always on, then can a large amount of waves for some low-power consumption products, such as handheld device etc. Power-consuming energy.
Summary of the invention
To solve the above-mentioned problems, the object of the present invention is to provide USB devices under a kind of operating system off-line state to plug Detection circuit, it is low in energy consumption, while facilitating the plug state of user's real-time detection USB.
In order to make up for the deficiencies of the prior art, technical solution used in the embodiment of the present invention is:
USB device plug-pull detecting circuit under a kind of operating system off-line state connects including the USB for connecting USB device Device and the USB plug-pull detecting circuit for detecting USB device plug state are connect, the USB connector and USB plug detect Circuit electrical connection;
The USB plug-pull detecting circuit includes as the field-effect tube of USB device plug detecting element, for preventing circuit The first diode of electric current reverse irrigation, is used for conduct at the first resistor for providing bias voltage for the grid of the field-effect tube The second resistance of the output loading of the field-effect tube, for exporting high level or low level to judge inspection that whether USB is inserted into Survey level output end and for preventing USB device generated interference during plug from damaging the protection of the field-effect tube Circuit;
The protection circuit includes zener diode, for excluding USB device generated interference electricity during plug The first capacitor of stream and the second diode for playing anti-reverse protective effect for the field-effect tube;The field-effect tube Source electrode is connected to by the second resistance with reference to ground, the detection level output end be set to the source electrode of the field-effect tube with Between the second resistance;The grid of the field-effect tube is connected respectively to positive, described first electricity of the zener diode Hold one end and described first resistor one end, the anode of the zener diode and the first capacitor other end are connected to reference Ground, the first resistor other end is connected respectively to drain electrode and the cathode of second diode of the field-effect tube, described The anode of second diode is connected to reference to ground;
The Metal shielding shell of the USB connector is connected to the cathode of the first diode, the first diode Anode be connected respectively to positive, the described first capacitor, the first resistor and the field-effect tube of the zener diode Grid.
Further, the USB connector and the USB plug-pull detecting circuit form detection group, the detection group setting Have mutually indepedent between several groups and each detection group.
Further, the USB connector has the DM data-interface and DP data-interface for connecting USB device.
Further, the USB plug-pull detecting circuit further includes for carrying out power supply for the USB plug-pull detecting circuit Power supply, the power supply are connected to the drain electrode of the field-effect tube by second diode.
Further, the power supply is button cell, and the anode of the button cell is connected to second diode Anode, the cathode of the button cell are connected to reference to ground.
The one or more technical solutions provided in the embodiment of the present invention are at least had the following beneficial effects: and are connected based on USB Device cooperation USB plug-pull detecting circuit as composed by various passive devices is connect, with power consumption is low, can plug USB normally with reality The advantages that existing data communication;The Metal shielding shell of USB connector and the ground wire of external circuit are not connected directly, but are connect in USB The input terminal of plug-pull detecting circuit, when USB device is not inserted into, the cathode of first diode is in vacant state, because of the first electricity The bias of resistance, field-effect tube are in off state, then detect level output end output low level, illustrate that USB device is not inserted Enter;When USB device insertion, since the Metal shielding shell of Universal USB equipment is connect with ground wire, USB can be made to connect The Metal shielding shell ground connection of device is connect, then the cathode ground connection of first diode, field-effect tube conducting, detection level output end output High level illustrates that USB device is inserted into.Therefore, the present invention has rational design, and power consumption is lower, facilitates user in the offline shape of operating system It still can be with the plug state of real-time detection USB under state.
Detailed description of the invention
Present pre-ferred embodiments are provided, with reference to the accompanying drawing with the embodiment that the present invention will be described in detail.
Fig. 1 is the circuit theory of USB device plug-pull detecting circuit under a kind of operating system off-line state of the embodiment of the present invention Figure.
Specific embodiment
This part will be described in specific embodiments of the present invention, and the preferred embodiments of the invention is shown in the accompanying drawings, attached The effect of figure be with figure remark additionally book word segment description, enable a person to intuitively, visually understand of the invention Each technical characteristic and overall technical architecture, but it should not be understood as limiting the scope of the invention.
In the description of the present invention, it is to be understood that, be related to orientation description, for example, above and below, front, rear, left and right etc. The orientation or positional relationship of instruction is to be based on the orientation or positional relationship shown in the drawings, and is merely for convenience of the description present invention and letter Change description, rather than the device or element of indication or suggestion meaning must have a particular orientation, with specific orientation construct and Operation, therefore be not considered as limiting the invention.
In the description of the present invention, several to be meant that one or more, it is multiple to be meant that two or more, be greater than, Be less than, more than etc. be interpreted as not including this number, it is above, following, within etc. be interpreted as including this number.If there is being described to first, Second is only intended to for the purpose of distinguishing technical characteristic, is not understood to indicate or imply relative importance or implicitly indicates institute The quantity of the technical characteristic of instruction or the precedence relationship for implicitly indicating indicated technical characteristic.
In description of the invention, unless otherwise restricted clearly, the words such as setting, installation, connection be shall be understood in a broad sense, institute Above-mentioned word in the present invention specific can rationally be determined with the particular content of combination technology scheme by belonging to technical field technical staff Meaning.
With reference to the accompanying drawing, the embodiment of the present invention is further elaborated.
Referring to Fig.1, the embodiment of the invention provides USB device plug-pull detecting circuit under a kind of operating system off-line state, Including the USB connector U1 for connecting USB device and the USB plug-pull detecting circuit for detecting USB device plug state 100, the USB connector U1 is electrically connected with the USB plug-pull detecting circuit 100;
The USB plug-pull detecting circuit 100 includes as the field-effect tube Q1 of USB device plug detecting element, for preventing Only circuital current flow backward first diode D1, for providing the first resistor of bias voltage for the grid of the field-effect tube Q1 R1, for the second resistance R2 of the output loading as the field-effect tube Q1, for exporting high level or low level to judge Detection level output end DET-OUT that whether USB is inserted into and for preventing USB device generated interference during plug Damage the protection circuit of the field-effect tube Q1;
The protection circuit includes zener diode D3, for excluding USB device generated interference during plug The first capacitor C1 of electric current and the second diode D2 for playing anti-reverse protective effect for the field-effect tube Q1;The field The source electrode of effect pipe Q1 is connected to by the second resistance R2 with reference to ground, and the detection level output end DET-OUT is set to Between the source electrode of the field-effect tube Q1 and the second resistance R2;The grid of the field-effect tube Q1 is connected respectively to described steady Positive, described one end first capacitor C1 and the one end the first resistor R1 of diode D3 are pressed, the zener diode D3 is just Pole and the first capacitor C1 other end are connected to reference to ground, and the first resistor R1 other end is connected respectively to the field-effect The drain electrode of pipe Q1 and the cathode of the second diode D2, the anode of the second diode D2 are connected to reference to ground;
The Metal shielding shell of the USB connector U1 is connected to the cathode of the first diode D1, and the described 1st The anode of pole pipe D1 be connected respectively to the zener diode D3 positive, described first capacitor C1, the first resistor R1 and The grid of the field-effect tube Q1.
In the present embodiment, USB connector U1 can be used for connecting USB, realize normal data communication, be connected based on USB Device U1 cooperation USB plug-pull detecting circuit 100 as composed by various passive devices is connect, with power consumption is low, can normally plug USB The advantages that realize data communication;The Metal shielding shell of USB connector U1 and the ground wire of external circuit are not connected directly, but are connect In the input terminal of USB plug-pull detecting circuit 100, when USB device is not inserted into, the cathode of first diode D1 is in hanging shape State, because of the bias of first resistor R1, field-effect tube Q1 is in off state, then detects level output end DET-OUT output Low level illustrates that USB device is not inserted into;When USB device insertion, since the Metal shielding shell of Universal USB equipment is and ground Line connection, therefore if insertion USB device, USB device can be made to be electrically connected with USB connector U1, therefore pass through USB The relationship that equipment is connect with ground wire can be such that the Metal shielding shell of USB connector U1 is grounded at this moment, then first diode The cathode of D1 is grounded, and field-effect tube Q1 is connected at this time, and detection level output end DET-OUT exports high level, illustrates that USB device is inserted Enter.
Using detection level output end DET-OUT test level height, whether measurement USB device is inserted into indirectly to realize, should Mode is directly considerable, monitors convenient for user;What the second diode D2, zener diode D3 and first capacitor C1 cooperated acts on In: protected for predominantly detecting device field-effect tube Q1, while enable first diode D1 conducting input signal through It is exported again after crossing filtering, the interference electric current for preventing USB device from generating in swapping process is flowed into field-effect tube Q1, guarantees inspection That surveys is normally carried out;First resistor R1, which then plays, provides the purpose of bias voltage for field-effect tube Q1, and second resistance R2 is as defeated It loads out, plays and provide the purpose of detection voltage for detection level output end DET-OUT.
Therefore, the present invention has rational design, and power consumption is lower, facilitates user still can be real-time under operating system off-line state Detect the plug state of USB.
Further, another embodiment of the present invention provides USB device plug detections under a kind of operating system off-line state Circuit, wherein the USB connector U1 and the USB plug-pull detecting circuit 100 form detection group, and the detection group is provided with It is mutually indepedent between several groups and each detection group.In the present embodiment, relationship similar can be interpreted as circuit between each detection group In parallel relationship between multiple resistance, design in this way can accommodate the insertion situation for detect multiple USB devices simultaneously, for need The frequently locality (such as printing portion etc.) of plug USB device, is able to ascend the detection efficiency of its USB device.
Further, another embodiment of the present invention provides USB device plug detections under a kind of operating system off-line state Circuit, wherein the USB connector U1 has the DM data-interface and DP data-interface for connecting USB device.In this implementation In example, two data-interfaces that USB connector U1 has universality strong can be matched with the USB device of polymorphic type, for user For, it is more convenient to use.
Further, another embodiment of the present invention provides USB device plug detections under a kind of operating system off-line state Circuit, wherein the USB plug-pull detecting circuit 100 further includes for carrying out power supply for the USB plug-pull detecting circuit 100 Power supply B1, the power supply B1 are connected to the drain electrode of the field-effect tube Q1 by the second diode D2.In the present embodiment, Power supply B1 is powered by the second diode D2 of forward conduction to field-effect tube Q1, due to USB plug-pull detecting circuit 100 Using being all small-power passive device, such as capacitor, resistance etc., therefore power supply B1 voltage is lower, generally reaches output energy Enough be connected the second diode D2, the power of such integrated circuit is low, also has preferable protection to each passive device Property.
Further, another embodiment of the present invention provides USB device plug detections under a kind of operating system off-line state Circuit, wherein the power supply B1 is button cell, and the anode of the button cell is being connected to the second diode D2 just Pole, the cathode of the button cell are connected to reference to ground.In the present embodiment, power supply B1 preferably uses button cell, voltage It is not high, coincident circuit design requirement, and it is at low cost, it is convenient for industrial production, naturally it is also possible to use pressure common voltage source or electricity Stream source is replaced.
Presently preferred embodiments of the present invention and basic principle is discussed in detail in the above content, but the invention is not limited to Above embodiment, those skilled in the art should be recognized that also have on the premise of without prejudice to spirit of the invention it is various Equivalent variations and replacement, these equivalent variations and replacement all fall within the protetion scope of the claimed invention.

Claims (5)

1. USB device plug-pull detecting circuit under a kind of operating system off-line state, it is characterised in that:
Including the USB connector for connecting USB device and the USB plug-pull detecting circuit for detecting USB device plug state, The USB connector is electrically connected with the USB plug-pull detecting circuit;
The USB plug-pull detecting circuit includes as the field-effect tube of USB device plug detecting element, for preventing circuital current The first diode of reverse irrigation, is used for described in conduct the first resistor for providing bias voltage for the grid of the field-effect tube The second resistance of the output loading of field-effect tube, for exporting high level or low level to judge detection that whether USB is inserted into electricity Flat output end and for preventing USB device generated interference during plug from damaging the protection electricity of the field-effect tube Road;
The protection circuit includes zener diode, for excluding USB device generated interference electric current during plug First capacitor and the second diode for playing anti-reverse protective effect for the field-effect tube;The source electrode of the field-effect tube Be connected to by the second resistance with reference to ground, the detection level output end be set to the source electrode of the field-effect tube with it is described Between second resistance;The grid of the field-effect tube is connected respectively to positive, the described first capacitor one of the zener diode End and described first resistor one end, the anode of the zener diode and the first capacitor other end are connected to reference to ground, institute State the first resistor other end be connected respectively to the field-effect tube drain electrode and second diode cathode, the described 2nd 2 The anode of pole pipe is connected to reference to ground;
The Metal shielding shell of the USB connector is connected to the cathode of the first diode, and the first diode is just Pole is connected respectively to the grid of positive, the described first capacitor of the zener diode, the first resistor and the field-effect tube Pole.
2. USB device plug-pull detecting circuit under a kind of operating system off-line state according to claim 1, feature exist In: the USB connector and the USB plug-pull detecting circuit form detection group, and the detection group is provided with several groups and each inspection It is mutually indepedent between survey group.
3. USB device plug-pull detecting circuit under a kind of operating system off-line state according to claim 1 or 2, feature Be: the USB connector has the DM data-interface and DP data-interface for connecting USB device.
4. USB device plug-pull detecting circuit under a kind of operating system off-line state according to claim 1 or 2, feature Be: the USB plug-pull detecting circuit further includes the power supply for carrying out power supply for the USB plug-pull detecting circuit, the electricity Source is connected to the drain electrode of the field-effect tube by second diode.
5. USB device plug-pull detecting circuit under a kind of operating system off-line state according to claim 4, feature exist In: the power supply is button cell, and the anode of the button cell is connected to the anode of second diode, the button electricity The cathode in pond is connected to reference to ground.
CN201910439631.6A 2019-05-24 2019-05-24 USB device plug detection circuit under off-line state of operating system Active CN110109792B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910439631.6A CN110109792B (en) 2019-05-24 2019-05-24 USB device plug detection circuit under off-line state of operating system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910439631.6A CN110109792B (en) 2019-05-24 2019-05-24 USB device plug detection circuit under off-line state of operating system

Publications (2)

Publication Number Publication Date
CN110109792A true CN110109792A (en) 2019-08-09
CN110109792B CN110109792B (en) 2024-06-25

Family

ID=67492161

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910439631.6A Active CN110109792B (en) 2019-05-24 2019-05-24 USB device plug detection circuit under off-line state of operating system

Country Status (1)

Country Link
CN (1) CN110109792B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111766545A (en) * 2020-05-14 2020-10-13 浙江南都电源动力股份有限公司 Connector testing method and device

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101266587A (en) * 2008-04-22 2008-09-17 惠州市德赛汽车电子有限公司 USB equipment detection circuit
CN202957572U (en) * 2012-12-26 2013-05-29 深圳市伊爱高新技术开发有限公司 RS485 bus hot-swap protection circuit for remote DC supply
CN103560502A (en) * 2013-10-19 2014-02-05 国家电网公司 485 port hot plug protecting circuit
US20150015300A1 (en) * 2013-07-12 2015-01-15 Linear Technology Corporation Detecting faults in hot-swap applications
CN204945293U (en) * 2015-08-31 2016-01-06 深圳市创维电器科技有限公司 A kind of serial port detection circuit of access device and test fixture
CN105577858A (en) * 2015-12-23 2016-05-11 周岩 Circuit for automatically powering on after SIM card inserted into communication terminal
CN206249131U (en) * 2016-12-13 2017-06-13 深圳Tcl数字技术有限公司 Power protecting circuit and supply unit
CN107666307A (en) * 2017-08-31 2018-02-06 普联技术有限公司 A kind of USB insertion detection circuits and USB insert detection device
CN109189617A (en) * 2018-07-27 2019-01-11 维沃移动通信有限公司 A kind of universal serial bus c-type interface detection method and terminal
CN210038763U (en) * 2019-05-24 2020-02-07 珠海多士科技有限公司 USB equipment plug detection circuit under operating system off-line state

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101266587A (en) * 2008-04-22 2008-09-17 惠州市德赛汽车电子有限公司 USB equipment detection circuit
CN202957572U (en) * 2012-12-26 2013-05-29 深圳市伊爱高新技术开发有限公司 RS485 bus hot-swap protection circuit for remote DC supply
US20150015300A1 (en) * 2013-07-12 2015-01-15 Linear Technology Corporation Detecting faults in hot-swap applications
CN103560502A (en) * 2013-10-19 2014-02-05 国家电网公司 485 port hot plug protecting circuit
CN204945293U (en) * 2015-08-31 2016-01-06 深圳市创维电器科技有限公司 A kind of serial port detection circuit of access device and test fixture
CN105577858A (en) * 2015-12-23 2016-05-11 周岩 Circuit for automatically powering on after SIM card inserted into communication terminal
CN206249131U (en) * 2016-12-13 2017-06-13 深圳Tcl数字技术有限公司 Power protecting circuit and supply unit
CN107666307A (en) * 2017-08-31 2018-02-06 普联技术有限公司 A kind of USB insertion detection circuits and USB insert detection device
CN109189617A (en) * 2018-07-27 2019-01-11 维沃移动通信有限公司 A kind of universal serial bus c-type interface detection method and terminal
CN210038763U (en) * 2019-05-24 2020-02-07 珠海多士科技有限公司 USB equipment plug detection circuit under operating system off-line state

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
董攀: "一种用于USB 设备自动热插拔的多通道检测系统设计", 《化工自动化及仪表》, vol. 46, no. 5, pages 356 - 360 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111766545A (en) * 2020-05-14 2020-10-13 浙江南都电源动力股份有限公司 Connector testing method and device
CN111766545B (en) * 2020-05-14 2022-11-15 浙江南都电源动力股份有限公司 Connector testing device

Also Published As

Publication number Publication date
CN110109792B (en) 2024-06-25

Similar Documents

Publication Publication Date Title
CN203759164U (en) Circuit for detecting access state of USB load equipment
CN105676054B (en) Cable reversal connection and short-circuit detecting circuit
CN101042413B (en) Alternating current recognition device
CN210038763U (en) USB equipment plug detection circuit under operating system off-line state
CN110109792A (en) USB device plug-pull detecting circuit under a kind of operating system off-line state
CN206210071U (en) One kind exchanges dead electricity alarm signal output circuit for distribution automation remote terminal unit
CN105445596B (en) Battery detection circuit
CN201788261U (en) Switching value detection circuit
CN206180986U (en) Trigger circuit and earphone restore to throne
CN105116200B (en) A kind of detection circuit of compatible switch amount and level amount
CN101697410B (en) Short-circuit protection circuit adopted in battery charger circuit
CN207601191U (en) A kind of relay protection outlet pulse-detecting circuit
CN214795150U (en) Vortex shedding flowmeter disconnection detection circuit, device and electronic product
CN210201806U (en) Miniaturized infrared switch module
CN107884666A (en) MBUS bus short circuits detect circuit and its detection method
CN110702962B (en) Universal meter pen of digital multimeter with anti-error measurement function
CN209486164U (en) Microcontroller power supply low-voltage detection circuit without A D interface and internal reference voltage
CN208224454U (en) A kind of lithium battery low power testing and active circuit
CN203535153U (en) PE detection device
CN207992366U (en) A kind of detection circuit and detection device
CN110429694A (en) A kind of method and device preventing the concatenated dry cell reversal connection of 4 sections
CN208209256U (en) A kind of intelligent monitoring and control terminal for power distribution cabinet
CN206002585U (en) Perception for electric fire disaster monitoring and resistive load share signal processor
CN218273127U (en) External equipment state sensing device
CN214795231U (en) Detection circuit for descaling device of gas water heater

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant