Summary of the invention
The main object of the present invention be to provide a kind of USB main equipment standby time be external USB equipment chargeMethod, it is intended to be the function of external USB equipment charge when realizing that USB main equipment is standby.
In order to achieve the above object, the present invention is external USB equipment when proposing that a kind of USB main equipment is standbyThe method of charging, the method comprises the following steps:
S01: whether the USB main equipment of detection holding state accesses external USB equipment;
S02: as accessed external USB equipment, then export the charging voltage of external USB equipment;Go to step S03;
S03: whether detection external USB equipment is rechargeable devices;
S04: if external USB equipment is rechargeable devices, will utilize the described charging voltage in step S02For described external USB equipment charge.
Preferably, described step S02 particularly as follows:
As accessed external USB equipment, then export the system principal voltage of USB main equipment, and by described systemPrincipal voltage is converted to the charging voltage of described external USB equipment and exports;Meanwhile, USB master is disconnectedEquipmentThe output of the various running voltages of start.
Preferably, described step S03 particularly as follows:
The supply voltage of the USB interface of detection USB main equipment, if the supply voltage of described USB interface is more thanPreset voltage value, the most described external USB equipment is rechargeable devices.
Preferably, also include after described step S04:
Step S05: whether detection external USB equipment charges the fullest;
Step S06: if charging is the fullest, then disconnect the output of the system principal voltage of USB main equipment, terminatesThe charging process of described external USB equipment.
Being the system of external USB equipment charge when the present invention also proposes that a kind of USB main equipment is standby, this isSystem includes that power module, the first voltage changer module, equipment access detection module, filling apparatusElectro-detection module, master control IC module and USB interface, wherein:
Described power module, is used for exporting system principal voltage;
Described first voltage changer module, turns for the system principal voltage exported by described power moduleIt is changed to the charging voltage of external USB equipment and exports;
Described equipment accesses detection module, is used for detecting in described USB interface whether accessed external USBEquipment, has external USB equipment if accessing, then output the first detection signal is to master control IC module;
Described equipment charge detection module, is used for detecting whether described external USB equipment is rechargeable devicesIf rechargeable devices, then output the second detection signal gives described master control IC module;
Described master control IC module, for according to described first detection signal, output is corresponding respectively controlsSignal, to power module and the first voltage changer module, controls described power module output systemPrincipal voltage, and control described first voltage changer module described system principal voltage is converted toThe charging voltage of external USB equipment also exports;And according to described second detection signal, control instituteThe described charging voltage stating the first voltage changer module output is described external USB equipment charge;
Described USB interface, is used for accessing external USB equipment.
Preferably, also include:
Second voltage changer module, is converted to for the system principal voltage exported by described power moduleVarious running voltages required during the start of described USB main equipment.
Preferably, described master control IC module is additionally operable to:
According to described first detection signal, export corresponding control signal to described second voltage changerMouldBlock, closes described second voltage changer module, disconnects the various work of USB main equipment startThe output of voltage.
Preferably, described equipment charge detection module specifically for:
Detect the supply voltage of described USB interface, if described supply voltage is more than preset voltage value, the most defeatedGo out the second detection signal to described master control IC module.
Preferably, described equipment charge detection module is additionally operable to:
Detect whether described external USB equipment charges the fullest, if charging is the fullest, then output the 3rd detection letterNumber give described master control IC module.
Preferably, described master control IC module is additionally operable to:
According to described 3rd detection signal, export corresponding control signal to described power module, disconnectionThe output of described power module system principal voltage.
The USB main equipment of present invention proposition is the method for external USB equipment charge time standby, first detectsWhether USB main equipment has accessed external USB equipment, if detecting, USB main equipment access has outside USB equipment, then export the charging voltage of external USB equipment;Then detection USB main equipment is accessedExternal USB equipment whether be rechargeable devices, if the external USB equipment that USB main equipment is accessedBe rechargeable devices, then before utilizing, the charging voltage of output is external USB equipment charge.ThisBright achieve USB main equipment standby time be the function of external USB equipment charge.
Detailed description of the invention
Technical scheme is further illustrated below in conjunction with Figure of description and specific embodiment.ShouldWorking as understanding, specific embodiment described herein, only in order to explain the present invention, is not used to limitDetermine the present invention.
Fig. 1 be USB main equipment of the present invention standby time be the method first embodiment of external USB equipment chargeSchematic flow sheet.
With reference to Fig. 1, it is that the method for external USB equipment charge includes following when USB main equipment of the present invention is standbyStep:
S01: whether the USB main equipment of detection holding state accesses external USB equipment;
S02: as accessed external USB equipment, then export the charging voltage of external USB equipment;Go to step S03;
Specifically, if step S01 detects USB main equipment, access has external USB equipment, then export USBThe system principal voltage of main equipment, and outside being converted to be accessed by the system principal voltage of USB main equipmentThe charging voltage of portion's USB device also exports;Meanwhile, the various works of USB main equipment start are disconnectedMake the output of voltage, so that other operational modules of USB main equipment start do not work, withReduce power consumption.
Step S03: whether detection external USB equipment is rechargeable devices;
Specifically, the embodiment of the present invention by the supply voltage of USB interface of detection USB main equipment, withRealize the purpose whether detection USB main equipment accessed external USB equipment be rechargeable devices, ifThe supply voltage of the USB interface of USB main equipment is more than preset voltage value, then external USB equipment is canCharger.
Step S04: if external USB equipment is rechargeable devices, then utilize the described charging in step S02Voltage is described external USB equipment charge.
The USB main equipment of present invention proposition is the method for external USB equipment charge time standby, first detectsWhether USB main equipment has accessed external USB equipment, if detecting, USB main equipment access has outside USB equipment, then export the charging voltage of external USB equipment;Then detection USB main equipment is accessedExternal USB equipment whether be rechargeable devices, if the external USB equipment that USB main equipment is accessedIt is to fillElectricity equipment, then before utilizing, the charging voltage of output is external USB equipment charge.The present invention realizesIt it is the function of external USB equipment charge when USB main equipment is standby.
With reference to Fig. 2, it is that the method for external USB equipment charge is in step S when USB main equipment of the present invention is standbyAfter 04, also include:
Step S05: whether detection external USB equipment charges the fullest;
The embodiment of the present invention again may be by the detection of the supply voltage of the USB interface to USB main equipment, and then detect whether external USB equipment charges the fullest.If the supply voltage of USB interface being detectedLess than a preset voltage value, then external USB equipment charge is the fullest.
Step S06: if charging is the fullest, then disconnect the output of the system principal voltage of USB main equipment, terminatesThe charging process of described external USB equipment.
In the present embodiment, if detecting when the external USB equipment charge that USB main equipment is accessed is expired(i.e. detecting when the supply voltage of USB interface is less than a preset voltage value), then disconnect USB masterThe output of the system principal voltage of equipment, terminates the charging process to outside USB device, thus ensuresThe present embodiment is that external USB sets when being to complete in the case of lowest power consumption that USB main equipment is standbyStandby charge function.
Being the system of external USB equipment charge when the present invention also proposes that a kind of USB main equipment is standby, Fig. 3 isIt it is the structure of the system preferred embodiment of external USB equipment charge when USB main equipment of the present invention is standbyBlock diagram.
With reference to Fig. 3, it is that the system of external USB equipment charge includes power supply when USB main equipment of the present invention is standbyModule the 301, first voltage changer module 302, equipment access detection module 303, equipment chargeDetection module 304, master control IC module 305, USB interface 306 and the second voltage changer module 307。
Wherein, the voltage input end of the first voltage changer module 302 and the second voltage changer moduleThe voltage input end of 307 is all connected with the system principal voltage output pin V1 of power module 301, and firstEnable Pin EN1 of voltage changer module 302 is connected with the I/O3 mouth of master control IC module, the second electricityEnable Pin EN2 of pressure converter module 307 is connected with the I/O2 mouth of master control IC module, the first voltageThe voltage output end of converter module 302 is connected with USB interface 306;
Equipment accesses the power input of detection module 303 and the standby voltage output pin of power module 301STB connects, and equipment accesses detection input and the first voltage changer module of detection module 303302Voltage output end connect, and be connected with USB interface 306, equipment accesses the inspection of detection module 303Survey outfan to be connected with the I/O4 mouth of master control IC module 305;
The power input of equipment charge detection module 304 and the standby voltage output pin of power module 301STB connects, the detection outfan of equipment charge detection module 304 and the I/O of master control IC module 3055 mouthfuls of connections;
The I/O1 mouth of master control IC module 305 is connected with the ON/OFF foot ON/OFF of power module 301.
Specifically, power module 301 is used for exporting system principal voltage U1 and standby voltage U2.Wherein, treatDynamo-electric pressure U2 and all exists under holding state under the open state of USB main equipment;
First voltage changer module 302 is for the system principal voltage U1 conversion exported by power module 301For the charging voltage of external USB equipment and export;
Equipment accesses detection module 303 and is used for detecting in USB interface 306 the external USB equipment that whether accessedIf detecting to access in USB interface 306 have external USB equipment, then output the first detection signal is givenThe I/O4 mouth of master control IC module 305.
Equipment charge detection module 304 is used for detecting whether external USB equipment is rechargeable devices, if inspectionMeasuring external USB equipment is rechargeable devices, then output the second detection signal is to master control IC module 3The I/O5 mouth of 04;
Master control IC module 305 is for according to the first detection signal received by its I/O4 mouth, exporting respectivelyCorresponding control signal is to the ON/OFF foot of power module 301 and the first voltage changer module 302Enable Pin EN1, with control power module 301 system principal voltage output pin V1 export system masterVoltage U1, and control the system that power module 301 is exported by the first voltage changer module 302Principal voltage U1 is converted to the charging voltage of external USB equipment and exports;Further, master control IC module 305, always according to the second detection signal received by its I/O5 mouth, controls the first voltage changer mouldThe charging voltage of block 302 output is the external USB equipment charge in USB interface 306;
USB interface 306 is used for accessing external USB equipment (not shown);
Second voltage changer module 307, turns for system principal voltage U1 exported by power module 301It is changed to the various running voltages needed for other operational modules during USB main equipment start.
Wherein, above-mentioned master control IC module 305 is additionally operable to:
According to the first detection signal received by its I/O4 mouth, from the corresponding control of its I/O2 mouth outputEnable Pin EN2 of the second voltage changer module 307 that signal is started shooting to USB main equipment, to closeClose the second voltage changer module 307, disconnect the various running voltages of USB main equipment startOutput, fromAnd other operational modules making USB main equipment start shooting do not work, to reduce power consumption.
The said equipment charging detection module 304 is specifically for detecting the supply voltage of USB interface 306, if inspectionThe supply voltage measuring USB interface 306 is more than preset voltage value, then output the second detection signal is givenThe I/O5 mouth of master control IC module 305.
The said equipment charging detection module 304 is additionally operable to:
Whether detection external USB equipment charges the fullest, if detecting, charging is the fullest, then output the 3rd detectionSignal is to the I/O5 mouth of master control IC module 305.
Above-mentioned master control IC module 305 is additionally operable to:
The 3rd detection signal received according to its I/O5 mouth, controls letter accordingly from the output of its I/O1 mouthNumber give the ON/OFF foot of power module 301, defeated with deenergization module 301 system principal voltage U1Go out.
It is that the work process of the system of external USB equipment charge is specifically retouched when USB main equipment of the present invention is standbyState as follows: (1) equipment accesses outside whether detection module 303 detect and accessed in USB interface 306Portion's USB device, if detecting to access in USB interface 306 have external USB equipment, then exports firstDetection signal is to the I/O4 of master control IC module 305;(2) master control IC module 305 is according to its I/O4 mouthThe first received detection signal, exports corresponding control signal to power supply by its I/O1 mouthThe ON/OFF foot of module 301, exports system principal voltage U1 controlling power module 301, meanwhile,Master control IC module 305 exports corresponding control signal to the first voltage changer also by its I/O3 mouthEnable Pin EN1 of module 302, to control the first voltage changer module 302 by power module 301System principal voltage U1 of output is converted to the charging voltage of external USB equipment.Further, master control IC mouldBlock 305 also by its I/O2 mouth export corresponding control signal start shooting to USB main equipment secondEnable Pin EN2 of voltage changer module 307, to close the second voltage changer module 307(i.e.When second voltage changer module 307 does not export USB main equipment start needed for other operational modulesVarious running voltages), to reduce power consumption;(3) equipment charge detection module 304 detects outsideWhether USB device is rechargeable devices, i.e. detects the supply voltage of USB interface 306, if detectingMore than preset voltage value, (i.e. external USB equipment is rechargeable devices to the supply voltage of USB interface 306Time), then output the second detection signal is to the I/O5 mouth of master control IC module 305;(4) master control ICModule 305, according to the second detection signal received by its I/05 mouth, controls the first voltage changerModule 302 exports charging voltage, for the external USB equipment charge in USB interface 306;(5) whenExternal USB equipment is rechargeable devices when being in charged state, equipment charge detection module 304Whether detection external USB equipment charges the fullest, if detecting, charging is the fullest, then output the 3rd detectionSignal is to the I/O5 mouth of master control IC module 305;(6) master control IC module 305 is according to its I/O5 mouthThe 3rd received detection signal, exports the corresponding control signal ON/ to power module 301OFF foot, with the output of deenergization module 301 system principal voltage U1, terminates the first voltage transformationThe device module 302 charging to outside USB device.
The USB main equipment of present invention proposition is the system of external USB equipment charge time standby, passes through equipmentAccessing in detection module detection USB interface and whether accessed external USB equipment, if detecting, USB connectsAccess in Kou and have external USB equipment, then output the first detection signal is to master control IC module, master control IC module, according to the first detection signal, exports corresponding control signal respectively to power module and firstVoltage changer module, controls power module output system principal voltage, and controls the first voltageThe system principal voltage that power module is exported by converter module is converted to the charged electrical of external USB equipmentPress and export.Meanwhile, the present invention is by being accessed in equipment charge detection module detection USB interfaceExternal USB equipment whether be rechargeable devices, if rechargeable devices, then output second detectionSignal according to the second detection signal to master control IC module, master control IC module, controls the first voltage and becomesThe charging voltage of parallel operation module output is external USB equipment charge.Further, connect when master control IC moduleWhen receiving the 3rd detection signal of equipment charge detection module output, then export and control letter accordinglyNumber give power module, with the output of deenergization modular system principal voltage, thus ensure that thisBright is in the case of lowest power consumption, it is achieved be external USB equipment charge when USB main equipment is standbyFunction.
Fig. 4 be USB main equipment of the present invention standby time be external USB equipment charge system preferred embodiment inEquipment accesses the circuit structure diagram of detection module.
In the lump with reference to Fig. 3 and Fig. 4, it is resistance R1 that the equipment in the embodiment of the present invention accesses detection module.One end of resistance R1 is connected with the standby voltage output pin STB of power module 301, and resistance R1's is anotherOne end is connected with the I/O4 mouth of master control IC module 305, and respectively with the first voltage changer module 3The voltage output end of 02 connects and is connected with USB interface 306.Resistance R1 in the embodiment of the present inventionThe resistance strengthened for resistance, its resistance is 100K ohm-1M ohm.
In the embodiment of the present invention, when the first voltage changer module 302 is closed, at its voltage output endIn high-impedance state.When USB interface 306 does not accesses external USB equipment, master control IC module 305The voltage of I/O4 mouth is approximately the standby voltage U2 of power module 301;Have when USB interface 306 accessesDuring external USB equipment, owing to the impedance of external USB equipment is relatively low, thus by USB interface 306Voltage pull-down so that the voltage of the I/O4 mouth of master control IC module 305 is almost 0, i.e. works as USB interfaceWhen in 306, access has external USB equipment, the I/O4 mouth of master control IC module 305 is low level.Work as masterWhen the I/O4 mouth of control IC module 305 is low level, master control IC module 305 will export from its I/O1 mouthCorresponding control signal is to the ON/OFF foot of power module 301 and corresponding from the output of its I/O3 mouthControl signal gives Enable Pin EN1 of the first voltage changer module 302, to control power module 301 output system main power source, and control the first voltage changer module 302 by defeated for power module 301The system principal voltage gone out is converted to the charging voltage needed for external USB equipment.
Fig. 5 be USB main equipment of the present invention standby time be external USB equipment charge system preferred embodiment inThe circuit structure diagram of equipment charge detection module.
In the lump with reference to Fig. 3 and Fig. 5, the equipment charge detection module 304 in the embodiment of the present invention passes for electric currentSensor, the current sensor that the present embodiment is used is current sensor (this electricity of TMR SOP8Flow sensor can detect the electric current of 0-500mA under relatively low supply voltage).Wherein, electric current passesPower supply input pin VCC(the 1st foot of sensor) and the standby voltage output pin STB of power module 301Connect, its foot of the ground wire GND(the 2nd foot and the 5th foot) ground connection, its voltage output pin OUT(the 6th foot) be connected with the I/O5 mouth of master control IC module 305.
Above-mentioned current sensor is welded in the output of the first voltage changer module 302 by the embodiment of the present inventionThe surface of the PCB trace between end and USB interface 306, by current sensor to above-mentioned PCBThe detection of the electric current (i.e. the charging current of external USB equipment) of cabling, and then detection USB interfaceThe supply voltage of 306, the supply voltage of the USB interface 306 detected is exported extremely by current sensorThe I/O5 mouth of master control IC module 305.
The embodiment of the present invention, through actual measurement and with reference to relevant standard, is learnt when USB interface 306In external USB equipment when being rechargeable devices, its charging current (electricity of the most above-mentioned PCB traceStream) have to be larger than certain certain value, namely when external USB equipment is rechargeable devices, electric current passesThe voltage (i.e. the supply voltage of USB interface 306) that 6th foot (OUT) of sensor exports must be bigIn certain certain value, when this voltage is more than preset voltage value, then USB interface 306 is accessedExternal USB equipment is rechargeable devices;Otherwise, then external USB equipment is not rechargeable devices.When external USB equipment is not rechargeable devices, master control IC module 305 controls corresponding for outputSignal is to power module 301, with the output of deenergization module 301 system principal voltage.
In like manner, the embodiment of the present invention is also electric to the power supply of USB interface 306 by above-mentioned current sensorThe detection of pressure, and then detect whether external USB equipment charges the fullest.Specifically, external USB is worked asEquipmentWhen charging is expired, the supply voltage of USB interface 306 reduces to the least amplitude, i.e. master control IC moduleThe voltage of the I/O5 mouth of 305 reduces to the least amplitude, and now, master control IC module 305 will be the most defeatedGo out corresponding control signal to the ON/OFF foot of power module 301 and the first voltage changer moduleEnable Pin EN1 of 302, the output of deenergization module 301 system principal voltage, stop the first voltageThe converter module 302 charging to outside USB device.
In addition, it is necessary to explanation, it is external USB equipment charge when USB main equipment of the present invention is standbyIt is external USB equipment that above-described embodiment of system is similarly applied to during USB main equipment open stateThe function of charging.
Specifically, with reference to Fig. 3, during USB main equipment start, the embodiment of the present invention is external USB filling apparatusThe process of electricity is described in detail below: (1) equipment accesses detection module 303 and detects USB interface 306In whether accessed external USB equipment, if detect in USB interface 306 access have external USB to setStandby, then output the first detection signal is to the I/O4 of master control IC module 305;(2) master control IC module305 according to the first detection signal received by its I/O4 mouth, corresponding by the output of its I/O3 mouthControl signal gives Enable Pin EN1 of the first voltage changer module 302, controls the first voltage transformationSystem principal voltage U1 that power module 301 is exported by device module 302 is converted to filling of external USB equipmentPiezoelectric voltage when start (USB main equipment, power module 301 exports system principal voltage U1 always) andOutput.Meanwhile, master control IC module 305 can also be by the corresponding display of corresponding I/O mouth outputSignal is to the display of USB main equipment main interface (not shown), the display master of USB main equipmentInterface display user's USB interface 306 accesses and has external USB equipment;(3) equipment charge detectionModule 304 detects whether external USB equipment is rechargeable devices, i.e. detects the electricity of USB interface 306Source voltage, if detecting, the supply voltage of USB interface 306 is more than preset voltage value (i.e. outside USWhen B device is rechargeable devices), then output the second detection signal is to the I/ of master control IC module 305O5 mouth;(4) master control IC module 305 is according to the second detection signal received by its I/05 mouth,The charging voltage controlling the first voltage changer module 302 output is the outside U in USB interface 306SB equipment charge.Meanwhile, master control IC module 305 can also be corresponding by the output of corresponding I/O mouthThe main interface of the display displaying signal to USB main equipment, the main interface display of display of USB main equipmentUser's external USB equipment is rechargeable devices;(5) when external USB equipment be rechargeable devices alsoWhen being in charged state, equipment charge detection module 304 detects whether external USB equipment chargesFull, if detecting, charging is the fullest, then output the 3rd detection signal is to the I/O of master control IC module 3055 mouthfuls;(6) master control IC module 305 is according to the 3rd detection signal received by its I/O5 mouth, defeatedGo out corresponding control signal Enable Pin EN1 to the first voltage changer module 302, terminate firstVoltage changerThe module 302 charging process to outside USB device.
The foregoing is only the preferred embodiments of the present invention, not thereby limit the scope of the claims of the present invention, every equivalent structure utilizing description of the invention and accompanying drawing content to be made or equivalence flow process conversion, or directly or indirectly it is used in other relevant technical fields, the most in like manner it is included in the present invention'sIn scope of patent protection.