CN107359661A - Charger, charging system and charging method - Google Patents

Charger, charging system and charging method Download PDF

Info

Publication number
CN107359661A
CN107359661A CN201710637517.5A CN201710637517A CN107359661A CN 107359661 A CN107359661 A CN 107359661A CN 201710637517 A CN201710637517 A CN 201710637517A CN 107359661 A CN107359661 A CN 107359661A
Authority
CN
China
Prior art keywords
terminal
charger
circuit
microcontroller
charging
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.)
Pending
Application number
CN201710637517.5A
Other languages
Chinese (zh)
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.)
Shanghai Yude Technology Co Ltd
Original Assignee
Shanghai Yude Technology 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 Shanghai Yude Technology Co Ltd filed Critical Shanghai Yude Technology Co Ltd
Priority to CN201710637517.5A priority Critical patent/CN107359661A/en
Publication of CN107359661A publication Critical patent/CN107359661A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/007Regulation of charging or discharging current or voltage
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/00032Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries characterised by data exchange
    • H02J7/00034Charger exchanging data with an electronic device, i.e. telephone, whose internal battery is under charge

Abstract

The present invention relates to electronic technology field, discloses a kind of charger, charging system and charging method.In the present invention, charger includes:Charging circuit, microcontroller and switching circuit;The input of charging circuit is connected with power supply, and the control terminal of charging circuit and the control terminal of microcontroller connect;The fixing end of switching circuit is connected with the output end of charging circuit and the input of microcontroller respectively.Charger, charging system and the charging method that embodiment of the present invention provides so that same charger can be that different types of mobile terminal carries out safety, quickly charging.

Description

Charger, charging system and charging method
Technical field
The present invention relates to car networking applied technical field, more particularly to a kind of charger, charging system and charging method.
Background technology
As the intellectuality of mobile terminal and the portable terminal such as fast development, mobile phone of Mobile solution business have turned into An essential part in people's life, and as the popularization of mobile terminal, a user possess multiple mobile terminals Situation is commonplace.
Inventor has found that at least there are the following problems in the prior art:Although the mobile end of current same operation system End, as mobile phone, tablet personal computer can share a charger, but the mobile terminal of same operation system as brand with And the difference of type, corresponding charger support the voltage of output, electric current would also vary from.And when user goes out, if A charger is only carried, other non-supporting mobile terminals, may be because of the charger when using charger charging Voltage, the electric current of output are too small, cause to charge slow, it is also possible to because voltage, the electric current of charger output are too big, cause Charge too fast, terminal inner mainboard temperature steep temperature rise, phenomena such as causing terminal cisco unity malfunction, or even blast occurs.
The content of the invention
The purpose of embodiment of the present invention is to provide a kind of charger, charging system and charging method so that same to fill Electrical equipment can be that different types of mobile terminal carries out safety, quickly charging.
In order to solve the above technical problems, embodiments of the present invention provide a kind of charger, the charger includes:Charging Circuit, microcontroller and switching circuit;The input of charging circuit is connected with power supply, the control terminal and micro-control of charging circuit The control terminal connection of device processed;The fixing end of switching circuit connects with the output end of charging circuit and the input of microcontroller respectively Connect;Wherein, after charger inserts terminal, the earth terminal of charger and the earth terminal of terminal connect;The microcontroller of charger Input be fixedly connected by switching circuit with the negative data terminal of the control circuit of terminal, the switch terminal of switching circuit difference It is connected with the correction data terminal of the input of the charging circuit of terminal and the control circuit of terminal;Or the microcontroller of charger The input of device is fixedly connected by switching circuit with the correction data terminal of the control circuit of terminal, the switch terminal point of switching circuit Negative data terminal not with the input of the charging circuit of terminal and the control circuit of terminal is connected.
Embodiments of the present invention additionally provide a kind of charging system, and the charging system includes terminal and the present invention is any The charger provided in charger embodiments.
Embodiments of the present invention additionally provide a kind of charging method, and the charging method includes:Terminal is inserted in charger, And after the input of the microcontroller of charger turns on the correction data terminal and negative data terminal of the control circuit of terminal, micro-control The version information of the terminal stored in device read control circuit processed;Microcontroller is according to the version information read, adjustment charging The magnitude of voltage and/or current value of the output end output of the charging circuit of device.
Embodiment of the present invention is in terms of existing technologies, there is provided charger, pass through the integrated charge in charger Circuit, microcontroller and switching circuit, so as to turn on the company between charger and terminal as desired by switching circuit Connect, and the data read by microcontroller according to correction data terminal, the negative data terminal of the control circuit from terminal, control are filled The magnitude of voltage and/current value of the charging circuit output of electrical equipment, it is achieved thereby that same charger can provide symbol for different terminals The charging voltage value and/or current value of the terminal charge standard are closed, and make it that charging process is safe, quick.
In addition, microcontroller adjusts the output end output of the charging circuit of charger according to the version information read Magnitude of voltage and/or current value, are specifically included:Microcontroller is by the version information read and the version information table prestored Version information matched;Microcontroller is it is determined that appointing in the version information read and the version information table prestored During one matches version information, corresponding with version information magnitude of voltage and/or current value in version information table are obtained.By existing in advance In the microcontroller of charger be stored in various terminals version information, and for each version information set corresponding to magnitude of voltage and/or Current value, so that in the version information read and the matches version information to prestore, can be directly according to the version information pair The magnitude of voltage and/or current value answered, fast and accurately adjust charger charging circuit output end output magnitude of voltage and/ Or current value.
In addition, after the magnitude of voltage and/or current value of the output end output of the charging circuit of adjustment charger, charging side Method also includes:The switching circuit of charger disconnects the input of microcontroller and correction data terminal and the negative data end of control circuit The connection of son, turn on the connection of correction data terminal and negative data terminal;The output of the charging circuit of microprocessor control charger The magnitude of voltage after output adjustment and/or current value are held to the charging circuit of terminal.Microcontroller is according to the version letter read Cease, after the magnitude of voltage and/or current value of the output end output for adjusting the charging circuit of charger, pass through the switching circuit of charger Disconnect the connection of the input of microcontroller and the correction data terminal and negative data terminal of control circuit, the control electricity of conduction terminal The correction data terminal on road connects with negative data terminal so that correction data terminal and negative data terminal short circuit, so that charger Charging circuit output electric current can inflow terminal, be embodied as terminal battery charging.
In addition, magnitude of voltage and/or electricity after the output end output adjustment of the charging circuit of microprocessor control charger After flow valuve to the charging circuit of terminal, charging method also includes:Switching circuit according to predetermined period, disconnect correction data terminal and The connection of negative data terminal, turn on the connection of the input and correction data terminal and negative data terminal of microcontroller;Microcontroller The version information of the terminal stored in read control circuit, and according to the version information read, the charging for adjusting charger is electric The magnitude of voltage and/or current value of the output end output on road.By every the set time, reacquiring the terminal being connected with charger Version information, whether the terminal so as to determine to be connected with charger in time change so that charger can adjust in time The voltage and/or electric current of the charging circuit output of interior device are filled, further ensures the security of charge efficiency and charging process.
Brief description of the drawings
One or more embodiments are illustrative by the picture in corresponding accompanying drawing, and these are exemplary Illustrate not form the restriction to embodiment, the element with same reference numbers label is expressed as similar member in accompanying drawing Part, unless there are special statement, composition does not limit the figure in accompanying drawing.
Fig. 1 is the structured flowchart of the charger of first embodiment of the invention;
Fig. 2 is the structured flowchart of the charger of second embodiment of the invention;
Fig. 3 be third embodiment of the invention charging system in the connection diagram of charger and terminal;
Fig. 4 be four embodiment of the invention charging system in the connection diagram of charger and terminal;
Fig. 5 is the flow chart of the charging method of fifth embodiment of the invention;
Fig. 6 is the flow chart of the charging method of sixth embodiment of the invention.
Embodiment
To make the object, technical solutions and advantages of the present invention clearer, each reality below in conjunction with accompanying drawing to the present invention The mode of applying is explained in detail.However, it will be understood by those skilled in the art that in each embodiment of the present invention, In order that reader more fully understands the application and proposes many ins and outs.But even if without these ins and outs and base Many variations and modification in following embodiment, the application technical scheme claimed can also be realized.
The first embodiment of the present invention is related to a kind of charger, and concrete structure is as shown in Figure 1.
Charger 100 shown in Fig. 1 is mainly used in mobile terminal, such as mobile phone, tablet personal computer, and specifically, Fig. 1 is related to And charger 100 mainly include charging circuit 101, microcontroller 102 and switching circuit 103.Wherein, charging circuit 101 Input is connected with power supply (being to show in figure), and the control terminal of charging circuit 101 connects with the control terminal of microcontroller 102 Connect, the fixing end of switching circuit 103 is connected with the output end of charging circuit 101 and the input of microcontroller 102 respectively.
Specifically, after charger 100 inserts terminal, earth terminal (GND in Fig. 1) meeting of charger 100 and terminal Earth terminal connection so that charger 100 and terminal are grounded, ensure the safety of charging process.And charger 100 is micro- The input of controller 102 can be fixedly connected by switching circuit 103 with the negative data terminal of the control circuit of terminal, switching electricity The switch terminal on road 103 can be respectively with the input of the charging circuit of terminal and the control circuit of terminal correction data terminal be connected, So as to realize the conducting of the charging circuit of the charging circuit 101 of charger 100 and terminal, the microcontroller 102 of charger 100 with The conducting of the correction data terminal and negative data terminal of the control circuit of terminal so that microcontroller 102 can read terminal The version information of the relevant information of the terminal stored in control circuit, such as terminal, system information.
In addition, it is necessary to explanation, in actual applications, can also set the input of the microcontroller 102 of charger 100 End is fixedly connected by switching circuit 103 with the correction data terminal of the control circuit of terminal, the switch terminal difference of switching circuit 103 It is connected with the negative data terminal of the input of the charging circuit of terminal and the control circuit of terminal, specifically can be according to being actually needed It is configured, is not limited herein.
In addition, in actual applications, switching circuit 103 can have two switch units, respectively the first switch unit With the second switch unit.
Specifically, the first switch unit includes the first fixing end, the second fixing end and the first switch terminal.Wherein, first First fixing end of switch unit is connected with the output end of the charging circuit 101 of charger 100, and the second of the first switch unit is solid Fixed end is used to be connected with the input of the charging circuit of terminal, the first switch terminal and the first switch unit of the first switch unit First fixing end is fixedly connected, the first fixing end and the second of the first switch unit for first switch unit that is turned on or off The connection of fixing end, so as to after charger 100 inserts terminal, realize the charging circuit 101 of charger 100 and the charging of terminal The connection or disconnection of circuit.
It should be noted that in actual applications, the first switch unit is specifically as follows a single-pole double-throw switch (SPDT), also may be used Think other controlling switches, can specifically be selected according to actual conditions, be not limited herein.
And the second switch unit includes the first fixing end, the second fixing end, the 3rd fixing end and the first switch terminal.Wherein, First fixing end of the second switch unit is connected with the input of microcontroller 102, the second fixing end point of the second switch unit Correction data terminal not with the input of microcontroller 102 and the control circuit of terminal is connected, and the 3rd of the second switch unit is solid The negative data terminal connection of the control circuit of fixed end and terminal, the first switch terminal and the second switch unit of the second switch unit 3rd fixing end is fixedly connected, for turning on the first fixing end of the second switch unit and the 3rd fixing end of the second switch unit Connection, or the connection of the 3rd fixing end of the second fixing end and the second switch unit of the second switch unit of conducting.
In addition, in actual applications, it can also be:First fixing end of the second switch unit is defeated with microcontroller 102 Enter end connection, the second fixing end of the second switch unit respectively with the control circuit of the input of microcontroller 102 and terminal Negative data terminal connects, and the correction data terminal of the 3rd fixing end of the second switch unit and the control circuit of terminal connects, and second First switch terminal of switch unit is fixedly connected with the 3rd fixing end of the second switch unit, for turning on the second switch unit The connection of 3rd fixing end of the first fixing end and the second switch unit, or the second fixing end of the second switch unit of conducting and the The connection of 3rd fixing end of two switch units, it can specifically be configured according to being actually needed, not be limited herein.
In addition, in actual applications, the second switch unit is specifically as follows one and unidirectionally inputted, the switch of multinomial output, It can also be two single-pole double-throw switch (SPDT)s, can specifically be selected according to actual conditions, be not limited herein.
In actual applications, the number for the switch unit that switching circuit 103 includes can be according to being actually needed and select The particular type for the switch unit selected is set, and is not limited herein.
It is noted that in order to ensure the safety of each component and circuit in charger 100, the grounding lead of each component The earth terminal of pin and circuit can be connected to the earth terminal of charger 100, so as to after the earth terminal of charger 100 ground connection, reach It is grounded to internal components and circuit, ensure that security.
In addition, the charging circuit 101 being arranged in present embodiment in charger 100 is specifically as follows charging chip and (filled Electric IC), or other have the component of charge function, are not limited herein, in actual applications can be as needed Choose suitable component and form charging circuit.
In addition, it is necessary to explanation, the charger 100 provided in present embodiment after terminal is inserted, charger 100 Access identification pin is hanging, will not be known with the access of the access identification pin or terminal inner other devices, circuit of terminal Other pin connection, therefore be to show in Fig. 1.
Compared with prior art, the charger that present embodiment provides, passes through integrated charging circuit, micro-control in charger Device processed and switching circuit, so as to turn on the connection between charger and terminal as desired by switching circuit, and by micro- The data that controller is read according to correction data terminal, the negative data terminal of the control circuit from terminal, control filling for charger The magnitude of voltage and/or current value that circuit can export, meet it is achieved thereby that same charger can provide for different terminals The charging voltage value and/or current value of the terminal charge standard, and make it that charging process is safe, quick.
Second embodiment of the present invention is related to a kind of charger.Present embodiment is done on the basis of first embodiment Further improvement, specific improvements are:Also include AC to DC converter circuit in charger, concrete structure is as shown in Figure 2.
As shown in Fig. 2 the charger 100 in present embodiment also wraps in addition to circuit and component in including Fig. 1 Include AC to DC converter circuit 104.
Specifically, the input of AC to DC converter circuit 104 is connected with power supply, AC to DC converter circuit 104 The input of output end and charging circuit connects, that is to say, that by setting up AC to DC converter circuit 104 in charger 100, And the connection of charging circuit 101 and power supply is realized using AC to DC converter circuit 104, no matter so that charger 100 Can be that terminal is charged under alternating current or direct current.
In addition, it is necessary to explanation, in the present embodiment, the control terminal of the charging circuit 101 in charger 100 with it is micro- Between the control terminal of controller 102 connection, that is, this area are realized particular by bidirectional two-line synchronous serial bus The usually said I2C buses of technical staff.
Because I2C buses can realize the connection with any component, and actually there are two connections in I2C buses Line, i.e. serial data line (SDA) and serial time clock line (SCL), therefore after charging circuit 101 is connected with microcontroller 102, The Regulate signal exported by microcontroller 102 can reach charging circuit 102 in real time so that and it is whole to adjust process quick and precisely, Specific those skilled in the art can be set as needed, and here is omitted.
Third embodiment of the present invention is related to a kind of charging system, and charger and the specific of terminal connect in present embodiment Connect as shown in Figure 3.
It should be noted that the terminal 200 shown in Fig. 3 is to coordinate to make with the charger 100 provided in embodiment of the present invention Terminal, such as mobile phone, tablet personal computer, specifically, the terminal 200 that Fig. 3 is related to mainly include charging circuit 201, control Circuit 202, battery 203 and electric power management circuit 204.
Wherein, control circuit 202 includes correction data terminal (D+ in Fig. 3) and negative data terminal (D- in Fig. 3), battery 203 reality include positive pole ear and negative lug (being not shown in figure).After charger inserts terminal 200, terminal 200 connects Ground terminal (GND in Fig. 3) can be connected with the earth terminal of charger 100, so that terminal 200 and charger 100 are grounded, be protected Demonstrate,prove the safety of charging process.In actual applications, in order to ensure the safety of each component and circuit in terminal 200, each component Grounding pin and the earth terminal of circuit can be connected to the earth terminal of terminal 200, so as to be grounded in the earth terminal of terminal 200 Afterwards, reach internal components and circuit is grounded, ensure that security.
In addition, it is necessary to explanation, in actual applications, between the electric power management circuit 204 and battery 203 of terminal 200 It can be electrically connected, so as to reach the discharge and recharge of control battery 203, and control battery 203 enters for each component of terminal 200 The purpose of row power supply, ensure the normal use of terminal 200.And also can basis between electric power management circuit 204 and control circuit 202 Need to establish and connect, so as to so that control circuit 202 can send control command to electric power management circuit 204 so that power supply Management circuit 204 can be controlled accordingly battery 203 as required.
Specifically, terminal 200 is inserted in charger 100, when being charged for terminal 200, the charging electricity of charger 100 The connection with the charging circuit 201 of terminal 200 is realized on road 101 by switching circuit 103, and the microcontroller 102 of charger 100 leads to The realization of switching circuit 103 and the connection of the D+ terminals and D- terminals of the control circuit 202 in terminal 200 are crossed, so as to pass through D + terminal and D- terminals get the relevant information for the terminal 200 being stored in control circuit 202, such as version information, system information Deng.
Microcontroller 102 is believed after the relevant information of terminal 200 is got according to the version in the relevant information got The magnitude of voltage and/or current value of the output end output of the charging circuit 101 of breath adjustment charger 100, so that charger 100 Charging circuit 100 can export the magnitude of voltage and/or current value of suitable terminal 200, be reached for the safety of terminal 200, quickly Charging.
It is seen that the charger in present embodiment is the charger provided in first embodiment, the first embodiment party The relevant technical details mentioned in formula are still effective in the present embodiment, in order to reduce repetition, repeat no more here.
The 4th embodiment of the present invention is related to a kind of charging system.Present embodiment is on the basis of the 3rd embodiment Further improvement is done, specific improvements are:By setting AC to DC converter circuit 104 in charger 100, so that Charged no matter charger 100 can be terminal 200 under alternating current or direct current, charger and end in present embodiment The specific connection at end is as shown in Figure 4.
It is seen that the charger in present embodiment is the charger provided in second embodiment, the second embodiment party The relevant technical details mentioned in formula are still effective in the present embodiment, in order to reduce repetition, repeat no more here.
The 5th embodiment of the present invention is related to a kind of charging method.The charging method being related in present embodiment, mainly Applied to the terminal in the charger and any termini embodiment in above-mentioned any charger embodiments, charger and terminal Interaction it is specifically as shown in Figure 5.
In step 501, the version information of the terminal stored in microcontroller read control circuit.
Specifically, the operation of the version information of the terminal stored in microcontroller read control circuit is, it is necessary to charge Device inserts terminal, and the correction data terminal and negative data terminal of the control circuit of the input of the microcontroller of charger and terminal Performed after conducting, and in the present embodiment, the version information for the terminal being stored in advance in control circuit can be specifically The current system of the type of terminal, the model of terminal, terminal, brand of terminal etc., can also be the standard that terminal can be supported Magnitude of voltage and current value etc., it specifically can rationally be set according to being actually needed, be not limited herein.
In addition, it is necessary to illustrate, the type for the terminal that version information includes specifically refers to currently in present embodiment Terminal is mobile phone, tablet personal computer, wearable device etc., be will not enumerate herein.
In step 502, the magnitude of voltage and/or electric current of the output end output of the charging circuit of microcontroller adjustment charger Value.
It should be noted that microcontroller needs, according to the version information read, to adjust the charging circuit of charger The magnitude of voltage and/or current value of output end output.
Specifically, microcontroller is needed the version in the version information read and the version information table prestored Information is matched.
It should be noted that the version information table deposited in advance in present embodiment is to set in the microcontroller, therefore Microcontroller, can be directly by the version information read with depositing in advance after the version information of the terminal currently connected is read Version information in the version information table of storage is matched.In actual applications, can also be set in charger one it is miniature Memory, by version information table storage in memory, when needing to match the version information that reads, by micro- Controller reads the version information deposited in version information table from memory and carried out with the version information for the terminal being currently connected Matching, specifically can be as needed, is configured, is not limited herein.
Microcontroller is it is determined that the version information read and any version information in the version information table prestored During matching, corresponding with version information magnitude of voltage and/or current value in version information table are obtained, so as to filling charger The magnitude of voltage and/current value of the output end output of circuit are adjusted to the magnitude of voltage and/or current value got, ensure that adjustment As a result accuracy.
Such as the version information of the terminal in the current connection read is version information B, and deposited in advance in charger Version information 1, version information 2, version information 3, and the correspondence set for version information 1 are stored with the version information table of storage Magnitude of voltage is 5V, and current value is 2A (can be expressed as 5V/2A), is that the corresponding voltage value that version information 2 is set is 5V, current value It is that the corresponding voltage value that version information 3 is set is 7V, current value is that 2A (can be represented for 1.5A (5V/1.5A can be expressed as) For 7V/2A), if by matching, judge that version information B matches with the version information 2 in version information table, then filling charger The magnitude of voltage of the output end output of circuit is arranged to 5V, and current value is arranged into 1.5A.
Limit for example, not formed to technical scheme it should be noted that these are only, actually should In, it can as needed be configured, not be limited herein.
In addition, it is noted that in actual applications, operation entry can be provided, it is as needed by user, to advance Magnitude of voltage, current value corresponding to version information and version information in the version information table being stored in charger deleted, The operations such as modification, addition, so that charger can preferably adapt to different terminals, connection can also read The standard charge voltage value of terminal, after current value, judge whether exist in version information table, and in the absence of when, Automatic input can specifically set according to being actually needed, not be limited herein into version information table.
In step 503, switching circuit disconnects the company of the input and correction data terminal and negative data terminal of microcontroller Connect, turn on the connection of correction data terminal and negative data terminal.
Specifically, after inserting terminal due to charger, the only correction data terminal and negative data of the control circuit of terminal Terminal short circuit so that after terminal inner forms the loop of closure, the charging circuit of charger could output current filling to terminal In circuit, therefore, after the magnitude of voltage and/or current value of the output end output of the charging circuit of adjustment charger, charging The switching circuit of device disconnects the connection of the input of microcontroller and the correction data terminal and negative data terminal of control circuit, conducting The connection of correction data terminal and negative data terminal.
In step 504, the magnitude of voltage after the output end output adjustment of the charging circuit of microprocessor control charger and/ Or current value is to the charging circuit of terminal.
It should be noted that in actual applications, above-mentioned steps 503 and step 504 can pass through the charging in charger Circuit, microcontroller coordinate switching circuit to complete, specifically:Can be in microcontroller according to the version information read, adjustment When the magnitude of voltage and/or current value of the output end output of the charging circuit of charger, while by connecting the charging electricity of charger Road and the bidirectional two-line synchronous serial bus of microcontroller, a cut-off signals are transmitted, the charging circuit in charger is complete Into after the magnitude of voltage and/or current value of adjustment output, according to the cut-off signals, control switching circuit disconnects the charging electricity of charger The connection of the charging circuit of road and terminal, and after disconnecting, a response signal is returned to microcontroller, so as to microcontroller Device can determine that the charging circuit of charger is adjusted and finish the magnitude of voltage and/or current value for needing to export, and now need to break The connection of the correction data terminal and negative data terminal of the control circuit of microcontroller and terminal is opened, then by correction data terminal and negative Data terminal short circuit, and after correction data terminal and the success of negative data terminal short circuit, connection instruction is sent by microcontroller so that The charging circuit of charger can control switching circuit turn on again charger charging circuit and terminal charging circuit it is direct Connection, charger starts to be charged for terminal.
Limited in addition, these are only for example, not formed to technical scheme, in actual applications, can To be configured as needed, it is not limited herein.
Compared with prior art, the charging method that is provided in present embodiment, terminal, and charger are inserted in charger After the input of microcontroller turns on the correction data terminal and negative data terminal of the control circuit of terminal, using micro- in charger Controller is according to the version information of the terminal read from the control circuit of terminal, to the output end of the charging circuit of charger The magnitude of voltage and/or current value of output are adjusted, it is achieved thereby that same charger can provide for different terminals meets this The charging voltage value and/or current value of terminal charge standard, and make it that charging process is safe, quick.
It is seen that present embodiment is method embodiment corresponding with the 3rd or the 4th embodiment, this embodiment party Formula can cooperate with the 3rd or the 4th embodiment to be implemented.The relevant technical details mentioned in 3rd or the 4th embodiment exist In present embodiment still effectively, in order to reduce repetition, repeat no more here.
The 6th embodiment of the present invention is related to a kind of charging method.Present embodiment is on the basis of the 5th embodiment Further improvement is done, specific improvements are:In the output end output adjustment of the charging circuit of microprocessor control charger After magnitude of voltage and/or current value afterwards to the charging circuit of terminal, switching circuit can disconnect correction data end according to predetermined period The connection of son and negative data terminal, turn on the connection of the input and correction data terminal and negative data terminal of microcontroller, micro-control Device processed can re-read the version information of the terminal stored in control circuit, and according to the version information read, adjustment charging The magnitude of voltage and/or current value of the output end output of the charging circuit of device, idiographic flow are as shown in Figure 6.
Specifically, in the present embodiment, comprising step 601 to step 605, wherein, step 601 to step 604 is divided Not roughly the same to step 504 with the step 501 in the 5th embodiment, here is omitted.Difference is mainly introduced below Place:
In step 605, switching circuit disconnects the connection of correction data terminal and negative data terminal, turns on the defeated of microcontroller Enter end and the connection of correction data terminal and negative data terminal.
Specifically, the switching circuit in charger was needed according to the default cycle, performed the operation in step 605, and And the predetermined period can be what charger was set in preparation process, inlet porting can also be provided to user, by user It is configured as needed, such as, user, can be at end after charger is connected with terminal by USB USBs The duration of predetermined period in end to being stored in charger is modified compiling, specifically, those skilled in the art can root It is configured according to being actually needed, is not limited herein.
In step 606, the version information of the terminal stored in microcontroller read control circuit, adjusts filling for charger The magnitude of voltage and/or current value of the output end output of circuit.
It should be noted that microcontroller after the version information for the terminal being connected with charger is re-read, it is necessary to First the version information read is judged, however, it is determined that the version information currently read and the last version information read Equally, then the magnitude of voltage and/or current value of the output end output of the charging circuit of charger need not be adjusted.
If it is determined that the version information currently read and the version information that the last time reads are different, then will currently read Version information matched with the version information in the version information table prestored, and after the match is successful, according to the version Magnitude of voltage corresponding to this information and/or current value, readjust charger charging circuit output end output magnitude of voltage and/ Or current value.
Limited it should be noted that these are only for example, not formed to technical scheme.
Compared with prior art, the charging method provided in present embodiment, by setting switching circuit according to default In the cycle, the connection of correction data terminal and negative data terminal is disconnected, turn on the input and correction data terminal and negative of microcontroller According to the connection of terminal, and after the connection of the input and correction data terminal and negative data terminal of microcontroller, by microcontroller The specific version information for the terminal being currently connected with charger is reacquired, so as to determine the end being connected with charger in time Whether change at end so that charger can adjust the voltage and/or electric current of the charging circuit output for filling inside in time, further protect The security of charge efficiency and charging process is demonstrate,proved.
The step of various methods divide above, be intended merely to describe it is clear, can be merged into when realizing a step or Some steps are split, are decomposed into multiple steps, as long as including identical logical relation, all protection domain in this patent It is interior;To either adding inessential modification in algorithm in flow or introducing inessential design, but its algorithm is not changed Core design with flow is all in the protection domain of the patent.
It will be appreciated by those skilled in the art that realize that all or part of step in above-mentioned embodiment method is to lead to Program is crossed to instruct the hardware of correlation to complete, the program storage is in the storage medium, including some instructions are causing One equipment (can be single-chip microcomputer, chip etc.) or processor (processor) perform each embodiment method of the application All or part of step.Concrete operation step in any means embodiment of the present invention, it is mainly stored in the present invention and arbitrarily fills , in actual applications, can also be as needed in charger in microcontroller in the charger provided in electrical equipment embodiment Middle the step of setting other storage mediums to preserve the above method, it is not limited specifically.
It will be understood by those skilled in the art that the respective embodiments described above are to realize the specific embodiment party of the present invention Formula, and in actual applications, can to it, various changes can be made in the form and details, without departing from the spirit and model of the present invention Enclose.

Claims (9)

1. a kind of charger, it is characterised in that the charger includes:Charging circuit, microcontroller and switching circuit;
The input of the charging circuit is connected with power supply, the control terminal of the charging circuit and the control of the microcontroller End connection processed;
The fixing end of the switching circuit is connected with the output end of the charging circuit and the input of the microcontroller respectively;
Wherein, after the charger inserts the terminal, the earth terminal of the charger and the earth terminal of terminal connect;
The negative data that the input of the microcontroller of the charger passes through the switching circuit and the control circuit of the terminal Terminal is fixedly connected, the switch terminal of the switching circuit respectively with the input of the charging circuit of the terminal and the terminal The correction data terminal connection of control circuit;
Or the input of the microcontroller of the charger by the control circuit of the switching circuit and the terminal just Data terminal is fixedly connected, the switch terminal of the switching circuit input with the charging circuit of the terminal and the end respectively The negative data terminal connection of the control circuit at end.
2. charger according to claim 1, it is characterised in that the switching circuit includes the first switch unit and second Switch unit;
First switch unit includes the first fixing end, the second fixing end and the first switch terminal;Wherein, first switching is single First fixing end of member is connected with the output end of the charging circuit of the charger, the second fixing end of first switch unit Input for the charging circuit with the terminal is connected, and the first switch terminal of first switch unit is cut with described first The first fixing end for changing unit is fixedly connected, the first fixing end and described for first switch unit that is turned on or off The connection of second fixing end of one switch unit;
Second switch unit includes the first fixing end, the second fixing end, the 3rd fixing end and the first switch terminal;Wherein, institute The first fixing end for stating the second switch unit is connected with the input of the microcontroller, and the second of second switch unit is solid The correction data terminal of the fixed end respectively with the input of the microcontroller and the control circuit of the terminal is connected, and described 3rd fixing end of two switch units is connected with the negative data terminal of the control circuit of the terminal, and second switching is single First switch terminal of member is fixedly connected with the 3rd fixing end of second switch unit, for turning on second switch unit The first fixing end and second switch unit the 3rd fixing end connection, or the second of conducting second switch unit The connection of fixing end and the 3rd fixing end of second switch unit;
Or the first fixing end of second switch unit is connected with the input of the microcontroller, second switching Second fixing end of unit respectively with the input of the microcontroller and the negative data end of the control circuit of the terminal Son connection, the 3rd fixing end of second switch unit are connected with the correction data terminal of the control circuit of the terminal, First switch terminal of second switch unit is fixedly connected with the 3rd fixing end of second switch unit, for turning on State the connection of the first fixing end of the second switch unit and the 3rd fixing end of second switch unit, or conducting described second The connection of second fixing end of switch unit and the 3rd fixing end of second switch unit.
3. charger according to claim 1 or 2, it is characterised in that the charger also includes AC to DC converter circuit;
The input of the AC to DC converter circuit is connected with the power supply, the output end of the AC to DC converter circuit with The input connection of the charging circuit of the charger.
4. charger according to claim 1 or 2, it is characterised in that the control terminal of the charging circuit of the charger with The control terminal of the microcontroller is connected by bidirectional two-line synchronous serial bus.
5. a kind of charging system, it is characterised in that including the charger described in terminal and Claims 1-4 any one.
6. a kind of charging method, it is characterised in that based on the charging system described in claim 5;The charging method includes:
Terminal, and the input of the microcontroller of the charger and the positive number of the control circuit of the terminal are inserted in charger After terminal and the conducting of negative data terminal, the microcontroller reads the version letter of the terminal stored in the control circuit Breath;
The microcontroller adjusts the output end output of the charging circuit of the charger according to the version information read Magnitude of voltage and/or current value.
7. charging method according to claim 6, it is characterised in that the microcontroller is according to the version read Information, the magnitude of voltage and/or current value of the output end output of the charging circuit of the charger are adjusted, is specifically included:
The microcontroller carries out the version information in the version information read and the version information table prestored Matching;
The microcontroller is it is determined that the version information read and any in the version information table prestored During matches version information, corresponding with the version information magnitude of voltage and/or current value in the version information table are obtained.
8. the charging method according to claim 6 or 7, it is characterised in that adjusting the charging circuit of the charger After the magnitude of voltage and/or current value of output end output, the charging method also includes:
The switching circuit of the charger disconnects the input of the microcontroller and the correction data end of the control circuit The connection of sub and described negative data terminal, turn on the connection of the correction data terminal and negative data terminal;
Magnitude of voltage and/or current value after the output end output adjustment of the charging circuit of charger described in the microprocessor control To the charging circuit of the terminal.
9. charging method according to claim 8, it is characterised in that in filling for charger described in the microprocessor control After magnitude of voltage and/or current value to the charging circuit of the terminal after the output end output adjustment of circuit, the charging Method also includes:
The switching circuit disconnects the connection of the correction data terminal and the negative data terminal, turns on institute according to predetermined period State the connection of the input and the correction data terminal and the negative data terminal of microcontroller;
The microcontroller reads the version information of the terminal stored in the control circuit, and according to reading Version information, adjust the magnitude of voltage and/or current value of the output end output of the charging circuit of the charger.
CN201710637517.5A 2017-07-31 2017-07-31 Charger, charging system and charging method Pending CN107359661A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710637517.5A CN107359661A (en) 2017-07-31 2017-07-31 Charger, charging system and charging method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710637517.5A CN107359661A (en) 2017-07-31 2017-07-31 Charger, charging system and charging method

Publications (1)

Publication Number Publication Date
CN107359661A true CN107359661A (en) 2017-11-17

Family

ID=60284939

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710637517.5A Pending CN107359661A (en) 2017-07-31 2017-07-31 Charger, charging system and charging method

Country Status (1)

Country Link
CN (1) CN107359661A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109687551A (en) * 2019-01-08 2019-04-26 温岭阿凡达机电有限公司 A kind of numerically controlled charger with defencive function

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1914582A (en) * 2004-02-11 2007-02-14 捷讯研究有限公司 Battery charger for portable devices and related methods
CN104103868A (en) * 2014-07-21 2014-10-15 Tcl通讯(宁波)有限公司 Charging method and system for charger of mobile terminal
US20160372936A1 (en) * 2015-06-19 2016-12-22 Cypress Semiconductor Corporation Automatic scheme to detect Multi-Standard Charger Types
CN106340780A (en) * 2016-09-21 2017-01-18 奇酷互联网络科技(深圳)有限公司 Terminal device and control method thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1914582A (en) * 2004-02-11 2007-02-14 捷讯研究有限公司 Battery charger for portable devices and related methods
CN104103868A (en) * 2014-07-21 2014-10-15 Tcl通讯(宁波)有限公司 Charging method and system for charger of mobile terminal
US20160372936A1 (en) * 2015-06-19 2016-12-22 Cypress Semiconductor Corporation Automatic scheme to detect Multi-Standard Charger Types
CN106340780A (en) * 2016-09-21 2017-01-18 奇酷互联网络科技(深圳)有限公司 Terminal device and control method thereof

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109687551A (en) * 2019-01-08 2019-04-26 温岭阿凡达机电有限公司 A kind of numerically controlled charger with defencive function

Similar Documents

Publication Publication Date Title
CN103618356B (en) The charging system of a kind of mobile terminal and charging method thereof
CN101783427B (en) Intelligent charging method and intelligent charging device of terminal
CN102694400B (en) Imput output circuit
CN103327656B (en) Communication module and portable terminal
CN104272216A (en) Electronic device and control method therefor
CN104007801A (en) Method and apparatus for providing power to an electronic device
CN105811506A (en) Method for charging electronic device and electronic device
CN103915863B (en) Terminal unit and method of supplying power to thereof
CN101853970A (en) Method and device for charging through universal serial bus (USB) interface
CN103197258B (en) A kind of battery type detection method and mobile terminal
CN108599281A (en) a kind of mobile terminal and charging method
CN207007249U (en) Connect equipment and field apparatus
CN105762883A (en) Method for charging electronic equipment, and electronic equipment
CN104485712B (en) Charging method and electronic equipment
CN100490273C (en) mobile terminal voltage dynamic management system and method
CN108181978B (en) Power control method and device for electronic equipment
CN107359661A (en) Charger, charging system and charging method
CN102882499A (en) Hot-plug control circuit and system of power supply
US10481576B2 (en) Method and device for implementing connection control
CN205829206U (en) Support the vehicle-mounted quick charge device of two-way of the positive anti-plug of USB
CN113836065B (en) One drags multidata line circuit and data line
CN105119118B (en) A kind of USB charging wires
CN210927185U (en) Mobile power supply
CN107579551A (en) Terminal, charger, charging system and charging method
CN103095929B (en) Method and system capable of preventing terminal from restarting repeatedly and mobile terminal using the same

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
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20171117