Summary of the invention
Fundamental purpose of the present invention is the method for external USB equipment charge when providing a kind of USB main equipment standby, is the function of external USB equipment charge when being intended to realize the standby of USB main equipment.
In order to achieve the above object, the present invention is the method for external USB equipment charge when proposing a kind of USB main equipment standby, and this method may further comprise the steps:
S01: whether the USB main equipment that detects holding state inserts external USB equipment;
S02:, then export the charging voltage of external USB equipment as inserting external USB equipment; Change step S03;
S03: detect whether external USB equipment is rechargeable devices;
S04: like external USB equipment is rechargeable devices, is said external USB equipment charge with utilizing the said charging voltage among the step S02.
Preferably, said step S02 is specially:
As insert external USB equipment, then export system's principal voltage of USB main equipment, and convert said system principal voltage the charging voltage and the output of said external USB equipment into; Simultaneously, break off the output of the various WVs of USB main equipment start usefulness.
Preferably, said step S03 is specially:
Detect the supply voltage of the USB interface of USB main equipment, if the supply voltage of said USB interface is greater than the predeterminated voltage value, then said external USB equipment is rechargeable devices.
Preferably, also comprise after the said step S04:
Step S05: detect external USB equipment and whether charge full;
Step S06: if charging is full, then break off the output of system's principal voltage of USB main equipment, finish the charging process of said external USB equipment.
The present invention is the system of external USB equipment charge when also proposing a kind of USB main equipment standby, and this system comprises that power module, the first voltage changer module, equipment insert detection module, equipment charge detection module, master control IC module and USB interface, wherein:
Said power module is used for the output system principal voltage;
The said first voltage changer module is used for system's principal voltage of said power module output is converted into the charging voltage and the output of external USB equipment;
Said equipment inserts detection module, is used for detecting said USB interface and whether has access to external USB equipment, if having access to external USB equipment, then exports first detection signal and gives master control IC module;
Said equipment charge detection module, whether be rechargeable devices, if rechargeable devices is then exported second detection signal and given said master control IC module if being used to detect said external USB equipment;
Said master control IC module; Be used for according to said first detection signal; Export control signal corresponding respectively and give the power module and the first voltage changer module; Control said power module output system principal voltage, and control charging voltage and output that the said first voltage changer module converts said system principal voltage into external USB equipment; And according to said second detection signal, the said charging voltage of controlling said first voltage changer module output is said external USB equipment charge;
Said USB interface is used to insert external USB equipment.
Preferably, also comprise:
The second voltage changer module, required various WVs when being used for system's principal voltage with the output of said power module and converting said USB main equipment start into.
Preferably, said master control IC module also is used for:
According to said first detection signal, the output control signal corresponding is given the said second voltage changer module, closes the said second voltage changer module, breaks off the output of the various WVs of USB main equipment start usefulness.
Preferably, said equipment charge detection module specifically is used for:
Detect the supply voltage of said USB interface, give said master control IC module if said supply voltage, is then exported second detection signal greater than the predeterminated voltage value.
Preferably, said equipment charge detection module also is used for:
Detect said external USB equipment and whether charge fullly,, then export the 3rd detection signal and give said master control IC module if charging is full.
Preferably, said master control IC module also is used for:
According to said the 3rd detection signal, the output control signal corresponding is given said power module, breaks off the output of said power module system principal voltage.
During USB main equipment standby that the present invention proposes is the method for external USB equipment charge, at first detects the USB main equipment and whether has access to external USB equipment, if detecting the USB main equipment has access to external USB equipment, then exports the charging voltage of external USB equipment; Detect then whether the external USB equipment that the USB main equipment inserted is rechargeable devices, if the external USB equipment that the USB main equipment is inserted is rechargeable devices, the charging voltage of output is the external USB equipment charge before then utilizing.The present invention is the function of external USB equipment charge when having realized the standby of USB main equipment.
Embodiment
Further specify technical scheme of the present invention below in conjunction with Figure of description and specific embodiment.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
Fig. 1 is the schematic flow sheet of method first embodiment of external USB equipment charge when being USB main equipment standby of the present invention.
With reference to Fig. 1, be that the method for external USB equipment charge may further comprise the steps during USB main equipment standby of the present invention:
S01: whether the USB main equipment that detects holding state inserts external USB equipment;
S02:, then export the charging voltage of external USB equipment as inserting external USB equipment; Change step S03;
Particularly,, then export system's principal voltage of USB main equipment, and convert system's principal voltage of USB main equipment the charging voltage and the output of the external USB equipment that is inserted into if step S01 detects the USB main equipment and has access to external USB equipment; Simultaneously, break off the output of the various WVs of USB main equipment start usefulness, thereby make other operational modules of USB main equipment start usefulness not work, to reduce power consumption.
Step S03: detect whether external USB equipment is rechargeable devices;
Particularly; The embodiment of the invention is through the supply voltage of the USB interface of detection USB main equipment; Whether to realize that detection USB main equipment is inserted external USB equipment is the purpose of rechargeable devices; If the supply voltage of the USB interface of USB main equipment is greater than the predeterminated voltage value, then external USB equipment is rechargeable devices.
Step S04: like external USB equipment is rechargeable devices, and then utilizing the said charging voltage among the step S02 is said external USB equipment charge.
During USB main equipment standby that the present invention proposes is the method for external USB equipment charge, at first detects the USB main equipment and whether has access to external USB equipment, if detecting the USB main equipment has access to external USB equipment, then exports the charging voltage of external USB equipment; Detect then whether the external USB equipment that the USB main equipment inserted is rechargeable devices, if the external USB equipment that the USB main equipment is inserted is rechargeable devices, the charging voltage of output is the external USB equipment charge before then utilizing.The present invention is the function of external USB equipment charge when having realized the standby of USB main equipment.
With reference to Fig. 2, the method that during USB main equipment standby of the present invention is the external USB equipment charge also comprises after step S04:
Step S05: detect external USB equipment and whether charge full;
Whether the embodiment of the invention can be passed through the detection to the supply voltage of the USB interface of USB main equipment equally, and then detect external USB equipment and charge full.If the supply voltage that detects USB interface is less than a predeterminated voltage value, then the external USB equipment charge is full.
Step S06: if charging is full, then break off the output of system's principal voltage of USB main equipment, finish the charging process of said external USB equipment.
In the present embodiment; If when detecting external USB equipment charge that the USB main equipment inserted and having expired (supply voltage that detects USB interface less than a predeterminated voltage value time); Then break off the output of system's principal voltage of USB main equipment; End is to the charging process of outside USB device, thereby guaranteed that present embodiment is is the charge function of external USB equipment when under the situation of lowest power consumption, accomplishing the standby of USB main equipment.
The present invention is the system of external USB equipment charge when also proposing a kind of USB main equipment standby, and Fig. 3 is the structured flowchart of system's preferred embodiment of external USB equipment charge when being USB main equipment standby of the present invention.
With reference to Fig. 3, be that the system of external USB equipment charge comprises thatpower module 301, the firstvoltage changer module 302, equipmentinsert detection module 303, equipmentcharge detection module 304, mastercontrol IC module 305,USB interface 306 and the secondvoltage changer module 307 during USB main equipment standby of the present invention.
Wherein, The voltage input end of the voltage input end of the firstvoltage changer module 302 and the secondvoltage changer module 307 all is connected with the principal voltage output pin V1 of system ofpower module 301; The Enable Pin EN1 of the firstvoltage changer module 302 is connected with the I/O3 mouth of master control IC module; The Enable Pin EN2 of the secondvoltage changer module 307 is connected with the I/O2 mouth of master control IC module, and the voltage output end of the firstvoltage changer module 302 is connected withUSB interface 306;
The power input that equipmentinserts detection module 303 is connected with the standby voltage output pin STB ofpower module 301; The detection input end that equipmentinserts detection module 303 is connected with the voltage output end of the firstvoltage changer module 302; And be connected withUSB interface 306, the detection output terminal that equipmentinserts detection module 303 is connected with the I/O4 mouth of mastercontrol IC module 305;
The power input of equipmentcharge detection module 304 is connected with the standby voltage output pin STB ofpower module 301, and the detection output terminal of equipmentcharge detection module 304 is connected with the I/O5 mouth of mastercontrol IC module 305;
The I/O1 mouth of mastercontrol IC module 305 is connected with the ON/OFF pin ON/OFF ofpower module 301.
Particularly,power module 301 is used for output system principal voltage U1 and standby voltage U 2.Wherein,standby voltage U 2 all exists under the open state of USB main equipment with under the holding state;
The firstvoltage changer module 302 is used for the principal voltage U1 of system ofpower module 301 outputs is converted into the charging voltage and the output of external USB equipment;
Equipmentaccess detection module 303 is used for detectingUSB interface 306 and whether has access to external USB equipment, has access to external USB equipment in theUSB interface 306 if detect, and then exports the I/O4 mouth that first detection signal is given mastercontrol IC module 305.
Whether equipmentcharge detection module 304 is used to detect external USB equipment is rechargeable devices, if detecting external USB equipment is rechargeable devices, then exports the I/O5 mouth that second detection signal is given mastercontrol IC module 304;
Mastercontrol IC module 305 is used for according to the first received detection signal of its I/O4 mouth; Export control signal corresponding respectively and give the ON/OFF pin ofpower module 301 and the Enable Pin EN1 of the firstvoltage changer module 302; With the principal voltage output pin V1 of the system output system principal voltage U1 ofcontrol power module 301, and control charging voltage and the output that the firstvoltage changer module 302 converts the principal voltage U1 of system ofpower module 301 outputs into external USB equipment; And mastercontrol IC module 305 is also according to the second received detection signal of its I/O5 mouth, and the charging voltage of controlling 302 outputs of the first voltage changer module is the external USB equipment charge in theUSB interface 306;
USB interface 306 is used to insert external USB equipment (not shown);
The secondvoltage changer module 307, the required various WVs of other operational modules when being used for the principal voltage U1 of system withpower module 301 output and converting the start of USB main equipment into.
Wherein, above-mentioned mastercontrol IC module 305 also is used for:
According to the first received detection signal of its I/O4 mouth; Give the Enable Pin EN2 of the secondvoltage changer module 307 of USB main equipment start usefulness from its I/O2 mouth output control signal corresponding; To close the secondvoltage changer module 307; Break off the output of the various WVs of USB main equipment start usefulness, thereby other operational modules of USB main equipment start usefulness are not worked, to reduce power consumption.
The said equipment chargingdetection module 304 specifically is used to detect the supply voltage ofUSB interface 306, if the supply voltage that detectsUSB interface 306 greater than the predeterminated voltage value, is then exported the I/O5 mouth that second detection signal is given mastercontrol IC module 305.
The said equipment chargingdetection module 304 also is used for:
It is full whether detection external USB equipment charges, if it is full to detect charging, then exports the I/O5 mouth that the 3rd detection signal is given mastercontrol IC module 305.
Above-mentioned mastercontrol IC module 305 also is used for:
According to the 3rd detection signal that its I/O5 mouth receives, export the ON/OFF pin that control signal corresponding is givenpower module 301 from its I/O1 mouth, with the output of thedeenergization module 301 principal voltage U1 of system.
The course of work that during USB main equipment standby of the present invention is the system of external USB equipment charge specifically describes as follows: (1) equipment inserts in the detection module 303 detection USB interfaces 306 whether have access to external USB equipment; If detect and have access to external USB equipment in the USB interface 306, then export the I/O4 that first detection signal is given master control IC module 305; (2) master control IC module 305 is according to the first received detection signal of its I/O4 mouth; Give the ON/OFF pin of power module 301 through its I/O1 mouth output control signal corresponding; With control power module 301 output system principal voltage U1; Simultaneously; Master control IC module 305 is also given the Enable Pin EN1 of the first voltage changer module 302 through its I/O3 mouth output control signal corresponding, to control the charging voltage that the first voltage changer module 302 converts the principal voltage U1 of system of power module 301 outputs into external USB equipment.And; Master control IC module 305 is also given the Enable Pin EN2 of the second voltage changer module 307 of USB main equipment start usefulness through its I/O2 mouth output control signal corresponding; To close the second voltage changer module 307 (the required various WVs of other operational modules when promptly the second voltage changer module 307 is not exported the start of USB main equipment), to reduce power consumption; (3) equipment charge detection module 304 detects whether external USB equipment is rechargeable devices; Promptly detect the supply voltage of USB interface 306; If the supply voltage that detects USB interface 306 is then exported the I/O5 mouth that second detection signal is given master control IC module 305 greater than predeterminated voltage value when being rechargeable devices (be external USB equipment); (4) master control IC module 305 is controlled the first voltage changer module, 302 output charging voltages according to the second received detection signal of its I/05 mouth, is the external USB equipment charge in the USB interface 306; (5) when external USB equipment be rechargeable devices and when being in charged state, whether equipment charge detection module 304 detects the external USB equipment and charges fullly, if it is full to detect charging, then exports the I/O5 mouth that the 3rd detection signal is given master control IC module 305; (6) master control IC module 305 is according to the 3rd received detection signal of its I/O5 mouth; The output control signal corresponding is given the ON/OFF pin of power module 301; With the output of the deenergization module 301 principal voltage U1 of system, finish the charging of 302 pairs of outside USB devices of the first voltage changer module.
During USB main equipment standby that the present invention proposes is the system of external USB equipment charge; Insert detection module through equipment and detect in the USB interface whether have access to external USB equipment; Have access to external USB equipment in the USB interface if detect; Then export first detection signal and give master control IC module, master control IC module is exported control signal corresponding respectively and is given the power module and the first voltage changer module according to first detection signal; Control power module output system principal voltage, and control charging voltage and the output that the first voltage changer module converts system's principal voltage of power module output into external USB equipment.Simultaneously; The present invention detects through the equipment charge detection module whether the external USB equipment that is inserted in the USB interface is rechargeable devices; If rechargeable devices; Then export second detection signal and give master control IC module, master control IC module is according to second detection signal, and the charging voltage of controlling the output of the first voltage changer module is the external USB equipment charge.And; When master control IC module receives the 3rd detection signal of equipment charge detection module output; Then export control signal corresponding and give power module; With the output of deenergization modular system principal voltage, thereby having guaranteed that the present invention is under the situation of lowest power consumption, is the function of external USB equipment charge when realizing the standby of USB main equipment.
Fig. 4 is the circuit structure diagram that equipment inserts detection module in system's preferred embodiment of external USB equipment charge when being USB main equipment standby of the present invention.
With reference to Fig. 3 and Fig. 4, it isresistance R 1 that the equipment in the embodiment of the invention inserts detection module in the lump.One end ofresistance R 1 is connected with the standby voltage output pin STB ofpower module 301, and the other end ofresistance R 1 is connected with the I/O4 mouth of mastercontrol IC module 305, and is connected with the voltage output end of the firstvoltage changer module 302 respectively and is connected with USB interface 306.The resistance thatresistance R 1 in the embodiment of the invention strengthens for resistance, its resistance is 100K ohm-1M ohm.
In the embodiment of the invention, when the firstvoltage changer module 302 was closed, its voltage output end was in high-impedance state.When not inserting external USB equipment in theUSB interface 306, the voltage of the I/O4 mouth of mastercontrol IC module 305 is approximately thestandby voltage U 2 ofpower module 301; WhenUSB interface 306 has access to external USB equipment; Because the impedance of external USB equipment is lower; Thereby the voltage ofUSB interface 306 is dragged down; Make the voltage of I/O4 mouth of mastercontrol IC module 305 be almost 0, promptly when having access to external USB equipment in theUSB interface 306, the I/O4 mouth of mastercontrol IC module 305 is a low level.When the I/O4 mouth of mastercontrol IC module 305 is low level; Mastercontrol IC module 305 will be given the ON/OFF pin ofpower module 301 from its I/O1 mouth output control signal corresponding; And give the Enable Pin EN1 of the firstvoltage changer module 302 from its I/O3 mouth output control signal corresponding; Withcontrol power module 301 output system primary powers, and control the firstvoltage changer module 302 and convert system's principal voltage ofpower module 301 outputs into external USB equipment required charging voltage.
Fig. 5 is the circuit structure diagram of equipment charge detection module in system's preferred embodiment of external USB equipment charge when being USB main equipment standby of the present invention.
In the lump with reference to Fig. 3 and Fig. 5; Equipmentcharge detection module 304 in the embodiment of the invention is a current sensor, and the current sensor that present embodiment adopted is the current sensor (this current sensor can detect the electric current of 0-500mA under lower supply voltage) of TMR SOP8.Wherein, The power supply input pin VCC (the 1st pin) of current sensor is connected with the standby voltage output pin STB ofpower module 301; Its foot of the ground wire GND (the 2nd pin and the 5th pin) ground connection, its voltage output pin OUT (the 6th pin) is connected with the I/O5 mouth of mastercontrol IC module 305.
The embodiment of the invention above-mentioned current sensor is welded in the firstvoltage changer module 302 output terminal and the PCB cabling between theUSB interface 306 directly over; Through the detection of current sensor to the electric current (being the charging current of external USB equipment) of above-mentioned PCB cabling; And then the supply voltage ofdetection USB interface 306, current sensor exports the supply voltage of detectedUSB interface 306 in the I/O5 mouth of mastercontrol IC module 305.
The embodiment of the invention is through actual measurement and with reference to relevant standard; Learn when the external USB equipment in theUSB interface 306 is rechargeable devices; Its charging current (being the electric current of above-mentioned PCB cabling) must be greater than certain certain value; Also promptly when external USB equipment is rechargeable devices; The voltage (being the supply voltage of USB interface 306) of the 6th pin (OUT) of current sensor output must be greater than certain certain value, and when this voltage during greater than the predeterminated voltage value, the external USB equipment that is then inserted in theUSB interface 306 is rechargeable devices; Otherwise then external USB equipment is not rechargeable devices.When external USB equipment is not rechargeable devices, mastercontrol IC module 305 will be exported control signal corresponding and givepower module 301, with the output ofdeenergization module 301 system's principal voltages.
Whether in like manner, the embodiment of the invention also is through the detection of above-mentioned current sensor to the supply voltage ofUSB interface 306, and then detect external USB equipment and charge full.Particularly; When the external USB equipment charge was expired, the supply voltage ofUSB interface 306 was reduced to very little amplitude, and promptly the voltage of the I/O5 mouth of mastercontrol IC module 305 is reduced to very little amplitude; At this moment; Mastercontrol IC module 305 will be exported control signal corresponding respectively and give the ON/OFF pin ofpower module 301 and the Enable Pin EN1 of the firstvoltage changer module 302, and the output ofdeenergization module 301 system's principal voltages stops the charging of 302 pairs of outside USB devices of the first voltage changer module.
In addition, need to prove, is that the foregoing description of the system of external USB equipment charge is the function of external USB equipment charge when can be applicable to USB main equipment open state equally during USB main equipment standby of the present invention.
Particularly; With reference to Fig. 3; During the start of USB main equipment; The embodiment of the invention is that the process of external USB equipment charge specifically describes as follows: (1) equipment inserts detection module 303 and detects in the USB interface 306 whether have access to external USB equipment, has access to external USB equipment in the USB interface 306 if detect, and then exports the I/O4 that first detection signal is given master control IC module 305; (2) master control IC module 305 is according to the first received detection signal of its I/O4 mouth; Give the Enable Pin EN1 of the first voltage changer module 302 through its I/O3 mouth output control signal corresponding; Control charging voltage (during the start of USB main equipment, power module 301 is output system principal voltage U1 always) and output that the first voltage changer module 302 converts the principal voltage U1 of system of power module 301 outputs into external USB equipment.Simultaneously, master control IC module 305 can also be exported the main interface of the demonstration (not shown) that corresponding shows signal is given the USB main equipment through corresponding I/O mouth, has access to external USB equipment in the main interface display user's USB interface 306 of the demonstration of USB main equipment; (3) equipment charge detection module 304 detects whether external USB equipment is rechargeable devices; Promptly detect the supply voltage of USB interface 306; If the supply voltage that detects USB interface 306 is then exported the I/O5 mouth that second detection signal is given master control IC module 305 greater than predeterminated voltage value when being rechargeable devices (be external USB equipment); (4) master control IC module 305 is according to the second received detection signal of its I/05 mouth, and the charging voltage of controlling 302 outputs of the first voltage changer module is the external USB equipment charge in the USB interface 306.Simultaneously, master control IC module 305 can also be exported the main interface of demonstration that corresponding shows signal is given the USB main equipment through corresponding I/O mouth, and the main interface display user's external USB of the demonstration of USB main equipment equipment is rechargeable devices; (5) when external USB equipment be rechargeable devices and when being in charged state, whether equipment charge detection module 304 detects the external USB equipment and charges fullly, if it is full to detect charging, then exports the I/O5 mouth that the 3rd detection signal is given master control IC module 305; (6) master control IC module 305 is according to the 3rd received detection signal of its I/O5 mouth, and the output control signal corresponding is given the Enable Pin EN1 of the first voltage changer module 302, finishes the charging process of 302 pairs of outside USB devices of the first voltage changer module.
The above is merely the preferred embodiments of the present invention; Be not so limit claim of the present invention; Every equivalent structure or equivalent flow process conversion that utilizes instructions of the present invention and accompanying drawing content to be done; Or directly or indirectly be used in other relevant technical fields, all in like manner be included in the scope of patent protection of the present invention.