[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN106253376A - A kind of PID electric current method of calibration and terminal - Google Patents

A kind of PID electric current method of calibration and terminal Download PDF

Info

Publication number
CN106253376A
CN106253376A CN201610638849.0A CN201610638849A CN106253376A CN 106253376 A CN106253376 A CN 106253376A CN 201610638849 A CN201610638849 A CN 201610638849A CN 106253376 A CN106253376 A CN 106253376A
Authority
CN
China
Prior art keywords
current
verification
value
terminal
pid
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201610638849.0A
Other languages
Chinese (zh)
Other versions
CN106253376B (en
Inventor
莫斐
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201610638849.0A priority Critical patent/CN106253376B/en
Publication of CN106253376A publication Critical patent/CN106253376A/en
Application granted granted Critical
Publication of CN106253376B publication Critical patent/CN106253376B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • H02J7/007Regulation of charging or discharging current or voltage
    • H02J7/0071Regulation of charging or discharging current or voltage with a programmable schedule

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)
  • Secondary Cells (AREA)

Abstract

The embodiment of the invention discloses a kind of PID electric current method of calibration and terminal, the method includes: carrying out PID open loop verification, wherein, PID is to include the regulation process that ratio, integration, differential control process;If verification is passed through, then open the regulation of PID closed loop;If verification is not passed through, then carry out fall stream opened loop control.Implement the embodiment of the present invention, the safety of PID regulation charging current can be improved.

Description

A kind of PID electric current method of calibration and terminal
Technical field
The present invention relates to communication technical field, be specifically related to a kind of PID electric current method of calibration and terminal.
Background technology
At present, the charging current of terminal is all to be controlled by charging chip, and charging chip sets charging current and to electricity Pond is charged, and charging chip sets the mode of charging current mainly two kinds, and a kind of is the mode of base current and current offset, Another kind is to use 20% mode arranging charging current.In using 20% mode that charging current is set, present battery Charging current is current setting value 20%.But, practice finds, uses 20% mode that charging current is set to exist certain Error, such as, sets charging current as 700 milliamperes, and actual output of charging chip can reach 745 milliamperes to the electric current of battery.
Use terminal charge electric current dynamic monitoring (English: Proportional with proportional-integral-differential at present Integral Derivative, is called for short: PID) to solve setting charging current value inconsistent with actual charge current for regulation algorithm Problem.In PID regulation algorithm, the current charging current of PID controller feedback information based on feedback module regulating cell. When the hardware circuit in feedback module, (the sampling resistor rosin joint of the sample circuit in such as feedback module, sampling resistor resistance are not Symmetrical etc.) when occurring abnormal, the feedback information of feedback module is inaccurate, causes charging current and battery that PID controller sets There is relatively large deviation in the true charging current needed, battery may be caused damage, bring potential safety hazard.
Summary of the invention
The embodiment of the present invention provides a kind of PID electric current method of calibration and terminal, can improve the peace of PID regulation charging current Quan Xing.
Embodiment of the present invention first aspect, it is provided that a kind of PID electric current method of calibration, including:
Carrying out PID open loop verification, wherein, described PID is to include the regulation process that ratio, integration, differential control process;
If verification is passed through, then open the regulation of PID closed loop;
If verification is not passed through, then carry out fall stream opened loop control.
Embodiment of the present invention second aspect, it is provided that a kind of terminal, including:
Verification unit, is used for carrying out PID open loop verification, and wherein, described PID is for including that ratio, integration, differential control process Regulation process;
Closed loop regulation unit, for when described verification unit verification by time, open PID closed loop regulation;
Opened loop control unit, is used for, when the verification of described verification unit is obstructed out-of-date, carrying out fall stream opened loop control.
In the embodiment of the present invention, carrying out PID PID open loop verification, wherein, described PID is for including ratio, amassing Point, differential control process regulation process;If verification is passed through, then open the regulation of PID closed loop;If verification is not passed through, then drop Stream opened loop control.Use the present invention, electric current verification can be carried out, confirm the feedback in closed loop before opening the regulation of PID closed loop Whether the feedback result of module accurate, when verification by time, just open the regulation of PID closed loop, obstructed out-of-date when verifying, then be not turned on PID closed loop regulates, and carries out fall stream opened loop control, keeps the charging current of battery not over safety value, can improve the battery longevity Life, improves the safety of PID regulation charging current.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing In having technology to describe, the required accompanying drawing used is briefly described, it should be apparent that, the accompanying drawing in describing below is only this Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, it is also possible to Other accompanying drawing is obtained according to these accompanying drawings.
Fig. 1 is the system schematic of a kind of PID electric current verification disclosed in the embodiment of the present invention;
Fig. 2 is the flow chart of a kind of PID electric current method of calibration disclosed in the embodiment of the present invention;
Fig. 2 a is a kind of current time response curve being provided without PID open loop verification disclosed in the embodiment of the present invention;
Fig. 2 b is the another kind of current time response curve being provided without PID open loop verification disclosed in the embodiment of the present invention;
Fig. 2 c is a kind of current time response curve using PID open loop to verify disclosed in the embodiment of the present invention;
Fig. 2 d is the another kind of current time response curve using PID open loop verification disclosed in the embodiment of the present invention;
Fig. 3 is the structural representation of a kind of terminal disclosed in the embodiment of the present invention;
Fig. 4 is the structural representation of another kind of terminal disclosed in the embodiment of the present invention;
Fig. 5 is the structural representation of another kind of terminal disclosed in the embodiment of the present invention;
Fig. 6 is the structural representation of another kind of terminal disclosed in the embodiment of the present invention;
Fig. 7 is the structural representation of the embodiment of the present invention another terminal disclosed.
Detailed description of the invention
Below in conjunction with the accompanying drawing in embodiment of the present invention, the technical scheme in embodiment of the present invention is carried out clearly Chu, it is fully described by.Obviously, described embodiment is a part of embodiment of the present invention rather than whole embodiment party Formula.Based on the embodiment in the present invention, those of ordinary skill in the art are obtained on the premise of not making creative work The every other embodiment obtained, all should belong to the scope of protection of the invention.
Term " first ", " second ", " the 3rd " and " in description and claims of this specification and described accompanying drawing Four " it is etc. for distinguishing different object rather than for describing particular order.Additionally, term " includes " and " having " and it Any deformation, it is intended that cover non-exclusive comprising.Such as contain series of steps or the process of unit, method, be System, product or equipment are not limited to step or the unit listed, but the most also include step or the list do not listed Unit, or the most also include other step intrinsic for these processes, method, product or equipment or unit.
Referenced herein " embodiment " is it is meant that the special characteristic, structure or the characteristic that describe can be wrapped in conjunction with the embodiments It is contained at least one embodiment of the present invention.It is identical that each position in the description occurs that this phrase might not each mean Embodiment, be not and the independent of other embodiments mutual exclusion or alternative embodiment.Those skilled in the art explicitly and Implicitly being understood by, embodiment described herein can combine with other embodiments.
Mobile terminal described by the embodiment of the present invention can include smart mobile phone (as Android phone, iOS mobile phone, Windows Phone mobile phone etc.), panel computer, palm PC, notebook computer, mobile internet device (MID, Mobile Internet Devices) or Wearable etc., above-mentioned mobile terminal is only citing, and non exhaustive, including but not limited to upper State mobile terminal.
The embodiment of the present invention provides a kind of PID electric current method of calibration and terminal, can improve the peace of PID regulation charging current Quan Xing.It is described in detail individually below.
In order to be better understood from the scheme during the present invention implements, what the embodiment of the present invention disclosed the verification of a kind of PID electric current is System, referring to Fig. 1, Fig. 1 is the system schematic of a kind of PID electric current verification disclosed in the embodiment of the present invention, can apply to hands The terminal such as machine, panel computer.As it is shown in figure 1, this system includes PID controller 101, charging chip (charging IC) 102, feedback mould Block 103, checker 104, battery 105 and charging device 20, wherein, PID controller 101, charging IC102, feedback module 103, Checker 104, battery 105 are positioned in terminal 10, and charging device 20 can be wireless with terminal 10, it is also possible to total by communication The wired modes such as line (such as, USB line) connect, and connect in a wired fashion as example in Fig. 1.Charging device 20 is charging IC102 provides supply current, and PID controller 101 is for the current expected value I corresponding according to charging scenarios1Anti-with feedback module The current sampling data I of feedback2Difference (I1-I2) setting current setting value, charging IC102 exports electric current pair according to current setting value Battery 105 is charged, and feedback module 103, for sampling the electric current of input battery 105, obtains current sampling data, school Test device 104 for current sampling data I2With current expected value I1Compare, as current sampling data I2With current expected value I1Difference Time the biggest, then verifying failure, checker 104 does not works, and carries out fall stream opened loop control;As current sampling data I2Expect with electric current Value I1When difference is less, then verifying successfully, checker 104 works, and opens the regulation of PID closed loop.Implement the system shown in Fig. 1, can To improve the safety of PID regulation charging current.
Charging device 20, i.e. charger, can be power supply adaptor, it is also possible to for the USB power source of the terminal units such as computer, It is said that in general, the output of power supply adaptor can be 10~12W, output voltage can be 5~24V, and output electric current is permissible Being 0.5~2A, the output of USB power source is generally 0.5W~2.5W, and output voltage is generally 5V, and output electric current is generally 0.1A~0.5A.
Referring to Fig. 2, Fig. 2 is the flow chart of a kind of PID electric current method of calibration disclosed in the embodiment of the present invention.Such as Fig. 2 institute Show that the PID electric current method of calibration described in the present embodiment comprises the steps.
201, terminal carries out PID open loop verification, and wherein, PID is to include the regulation that ratio, integration, differential control process Journey.
In the embodiment of the present invention, proportional-integral-differential (it is English: Proportional Integral Derivative, It is called for short: PID) controller can carry out ratio control, differential controls and integration control, sets charging current, charging for charging IC Battery is charged by the charging current that IC sets according to PID controller.Wherein, pid algorithm is used often to set charging current Less than 1A.During PID adjusted open loop, PID controller does not has feedback module, PID controller directly according to current expected value for charging IC sets the charging current of battery;During the regulation of PID closed loop, PID controller has feedback module, and PID controller is expected according to electric current The difference of the sample rate current of value and feedback module feedback readjusts the charging current setting battery.If the sampling of feedback module Electric current with charging IC actual export to the electric current difference of battery bigger time, PID controller set electric current can be inaccurate.Terminal exists Carry out PID open loop verification in a period of time before opening the regulation of PID closed loop, such as, when terminal needs to carry out PID regulation, First in 30 seconds, carry out PID open loop verification.
Such as, if the sample rate current of feedback module to be charging IC actual exports to the electric current of battery two/for the moment, logical After crossing PID regulation, the electric current of the charging actual output of IC can double.Referring to Fig. 2 a, Fig. 2 a is that the embodiment of the present invention is open A kind of be provided without PID open loop verification current time response curve, as shown in Figure 2 a, when the sample rate current of feedback module is for filling Electricity IC is actual exports to the electric current of battery two/for the moment, and current expected value is that the current value after 700mA, PID regulation is 700mA, but the electric current actual value of battery is about 1400mA, and battery charge is too high, there is serious potential safety hazard, and And battery can be damaged, affect battery.
The most such as, if the sample rate current of feedback module is actual export to the electric current of battery two times of charging IC, pass through After PID regulation, the electric current of the charging actual output of IC can become original 1/2nd.Fig. 2 b is another disclosed in the embodiment of the present invention A kind of current time response curve being provided without PID open loop verification, as shown in Figure 2 b, when the sample rate current of feedback module is charging IC is actual export to the electric current of battery two times time, current expected value be the current value after 420mA, PID regulation be 420mA, but Be the electric current actual value of battery be about 210mA, battery charge is on the low side, although will not damage battery, but charge efficiency Lowly, the charging interval extends.
When using PID closed loop regulation charging current, terminal may determine that the charging scenarios that terminal is presently in.Due to often The all corresponding current expected value of individual charging scenarios, terminal can be according to current expected value corresponding to the charging scenarios being presently in With the charging current that the sample rate current of feedback module feedback sets battery.In the embodiment of the present invention, regulate it opening PID closed loop Before, first carrying out PID open loop verification, the current expected value that charging scenarios that first verification terminal is presently in is corresponding is anti-with feedback module Whether the difference of the sample rate current of feedback is less than certain value, if less than certain value, then showing that the sample rate current that feedback module feeds back does not has Problem, it is possible to use feedback module, i.e. can open the regulation of PID closed loop;If the charging scenarios that verification terminal is presently in is corresponding The difference of sample rate current of current expected value and feedback module feedback more than certain value, then show that the sampling that feedback module feed back is electric Flowing problematic, it is impossible to use feedback module, terminal carries out fall stream opened loop control.
202, if verification is passed through, terminal opens the regulation of PID closed loop.
203, if verification is not passed through, terminal carries out fall stream opened loop control.
In the embodiment of the present invention, when PID open loop verification by time, terminal open PID closed loop regulation, when PID open loop verify Do not pass through, i.e., when PID open loop verifies unsuccessfully, terminal carries out fall stream opened loop control.Terminal opens the regulation of PID closed loop, i.e. PID controls Device sets the charging current of battery according further to the sample rate current that current expected value and feedback module feed back.Terminal carries out dropping stream and opens Ring controls, i.e. PID controller does not carry out PID regulation, current expected value directly turned down certain amplitude and is set to the charged electrical of battery Stream, to ensure that the charging current of battery will not be too high, also will not be the lowest, after PID open loop verifies unsuccessfully, preventing charged electrical In the case of flowing through height, it is ensured that charge efficiency.
Optionally, step 201 may include that
11) terminal profile verification current value, verification current value is the current expected value of the charging scenarios that terminal is presently in;
12) terminal utilizes sample circuit to sample the actual charge current of battery, obtains current sampling data;
13) whether terminal judges verification current value and the absolute value of the difference of current sampling data be less than the first predetermined threshold value;
14) if so, terminal determines that verification is passed through;
15) if it is not, terminal determines that verification is not passed through.
In the embodiment of the present invention, when terminal needs to carry out PID regulation, terminal in a period of time set, such as 30 seconds Inside carry out PID open loop verification.Terminal carries out the process of PID open loop verification and is specifically as follows: terminal profile verification current value, verification Current value is the current expected value of the charging scenarios that terminal is presently in, such as, if the charging scenarios that terminal is presently in is " electricity Pond temperature is in 5-12 degree and cell voltage at below 4.18V ", corresponding current expected value is 700mA;If terminal is presently in Charging scenarios be " battery temperature is in 5-12 degree and cell voltage at more than 4.18V ", corresponding current expected value is 420mA.Terminal utilizes sample circuit to sample the actual charge current of battery, obtains current sampling data, battery here Actual charge current is that charging IC exports to the electric current of battery, and sample circuit can include operational amplifier, sampling resistor etc., when When sampling resistor rosin joint, sampling resistor resistance are asymmetric, sample circuit obtains current sampling data can be inaccurate, and PID can be caused to adjust There is deviation, as shown in Figure 2 a and 2 b in joint.Terminal judges verification current value is the least with the absolute value of the difference of current sampling data In the first predetermined threshold value, the first preset value here can be set to fixed value, such as 100mA, and optionally, the first predetermined threshold value is also Can determine according to the current expected value of the charging scenarios that terminal is presently in, such as, set up the first predetermined threshold value and electric current phase The mapping table of prestige value, current expected value is the biggest, and the first corresponding predetermined threshold value is the biggest.Due to charging IC actual export to The current value that the electric current of battery and PID set has deviation, and the current value that PID sets also has deviation with verification current value, The sampled current value that sample circuit obtains be accurately in the case of, verification current value also can exist certain inclined with current sampling data Difference, but this deviation typically can be smaller, typically at about 10mA.Absolute when verification current value and the difference of current sampling data When value is less than the first predetermined threshold value, showing that the sampled result of sample circuit does not has deviation substantially, terminal determines that verification is passed through;Work as school When the absolute value of the difference of electrical verification flow valuve and current sampling data is more than or equal to the first predetermined threshold value, show the sampling knot of sample circuit There is relatively large deviation in fruit, terminal determines that verification is not passed through.The embodiment of the present invention provides the side of a kind of concrete PID open loop verification Method, can accurately judge to verify whether pass through.
If verification is passed through, then terminal carries out PID regulation as usual, opens PID closed loop control;If verification is not passed through, table Bright PID regulation is inaccurate, does not carry out PID regulation, carries out fall stream opened loop control, directly current expected value is turned down certain amplitude and set For the charging current of battery, to ensure that the charging current of battery will not be too high, also will not be the lowest.
For example, referring to Fig. 2 c, Fig. 2 c is a kind of electric current using PID open loop to verify disclosed in the embodiment of the present invention Time response curve, as shown in Figure 2 c, if current expected value is 700mA, when feedback module sample circuit obtain electric current adopt Sample value be charging IC actual export to the electric current of battery two/for the moment, PID open loop verify unsuccessfully, does not use PID to regulate, general It is 650mA that current expected value is turned down to 620mA (turning down 80mA) as current setting value, the electric current actual value in Fig. 2 c, such as figure Electric current actual value in 2a is that 1400mA compares, when the sampled result of the sample circuit of feedback module is inaccurate, the most permissible Set a preferable current setting value, while preventing battery charge too high, it is ensured that the charge efficiency of battery.
For example, referring to Fig. 2 d, Fig. 2 d is the another kind of electricity using PID open loop verification disclosed in the embodiment of the present invention Stream curve time response, as shown in Figure 2 d, if current expected value is 420mA, when the electric current that the sample circuit of feedback module obtains When sampled value is actual export to the electric current of battery two times of charging IC, PID open loop verifies unsuccessfully, does not use PID to regulate, by electricity Stream expected value is turned down to 340mA (turning down 80mA) as current setting value, and the electric current actual value in Fig. 2 d is 350mA, such as Fig. 2 b In electric current actual value be that 210mA compares, when the sampled result of the sample circuit of feedback module is inaccurate, still can set One preferable current setting value, it is ensured that the charge efficiency of battery.
Optionally, step 201 may include that
21) terminal profile multiple verification current value, any one in multiple verification current values and filling that terminal is presently in The difference of the current expected value of electric field scape is less than the second predetermined threshold value;
22) under each verification current value, terminal utilizes sample circuit to sample the actual charge current of battery, obtains Take the current sampling data that each verification current value is corresponding;
23) absolute value of the difference of the current sampling data that terminal judges each verification current value is corresponding with each verification current value Whether it is respectively less than the first predetermined threshold value;
24) if so, terminal determines that verification is passed through;
25) if it is not, terminal determines that verification is not passed through.
In the embodiment of the present invention, when terminal needs to carry out PID regulation, terminal in a period of time set, such as 30 seconds Inside carry out PID open loop verification.Terminal carries out the process of PID open loop verification and is specifically as follows: terminal profile multiple verification current value, The difference of the current expected value of any one charging scenarios being presently in terminal in multiple verification current values is preset less than second Threshold value, the second predetermined threshold value can be set as fixed value, such as 40mA, the choosing of the multiple verification current values in the embodiment of the present invention Take and determine according to current expected value, typically choose value near current expected value as verification current value, can be accurate Detection electric current check value near open loop verification the most accurate.Such as, if the charging scenarios that terminal is presently in is " battery temperature Degree is in 5-12 degree and cell voltage at below 4.18V ", corresponding current expected value is 700mA, then can set 670mA, 700mA, 730mA tri-verifies current value.If the charging scenarios that terminal is presently in is for " battery temperature is in 5-12 degree and battery Voltage is at more than 4.18V ", corresponding current expected value is 420mA, then can set 390mA, 420mA, 450mA tri-verification Current value.Under each verification current value, terminal utilizes sample circuit to sample the actual charge current of battery, obtains every The current sampling data that individual verification current value is corresponding.Here battery actual charge current is that charging IC exports to the electric current of battery, Sample circuit can include operational amplifier, sampling resistor etc., when sampling resistor rosin joint, sampling resistor resistance are asymmetric, adopts Sample circuit obtains current sampling data can be inaccurate, and PID regulation can be caused deviation occur.Terminal judges each verification current value is with every Whether the absolute value of the difference of the current sampling data that individual verification current value is corresponding is respectively less than the first predetermined threshold value, and first here is preset Value can be set to fixed value, such as 100mA, optionally, the charging field that the first predetermined threshold value can also be presently according to terminal The current expected value of scape determines, such as, sets up the mapping table of the first predetermined threshold value and current expected value, and current expected value is more Greatly, the first corresponding predetermined threshold value is the biggest.
Such as, if current expected value is 700mA, sets 670mA, 700mA, 730mA tri-and verify current value, if in school When electrical verification flow valuve is 670mA, current sampling data is 650mA;When verifying current value and being 700mA, current sampling data is 680mA, When verifying current value and being 730mA, current sampling data is 700mA, and the most each verification current value is corresponding with each verification current value The absolute value of difference of current sampling data be respectively less than 100mA, determine that verification is passed through.
Such as, if current expected value is 700mA, sets 670mA, 700mA, 730mA tri-and verify current value, if in school When electrical verification flow valuve is 670mA, current sampling data is 650mA;When verifying current value and being 700mA, current sampling data is 350mA, When verifying current value and being 730mA, current sampling data is 700mA, then have the verification current value difference with current sampling data Absolute value is more than 100mA, it is determined that verification is not passed through.As long as there being a check value not pass through, then verify failure.
In the embodiment of the present invention, use the mode setting multiple verification current values, the accuracy of check results can be improved.
Optionally, step 203 may include that
31) current expected value of the charging scenarios that terminal is presently in by terminal reduces the 3rd predetermined threshold value, obtains target Current expected value;
32) the current charging current of terminal profile battery is target current expected value, with target current expected value to battery Charging.
In the embodiment of the present invention, the 3rd predetermined threshold value can be set in advance, for example, it is possible to be set to 80mA, the 3rd is pre- If threshold value can be set to definite value, it is also possible to be set to relevant to current expected value, such as, can the 3rd predetermined threshold value expect with electric current The mapping table of value, current expected value is the biggest, and the 3rd predetermined threshold value is the biggest.It is the most permissible that terminal carries out fall stream opened loop control For: the current expected value of the charging scenarios that terminal is presently in by terminal reduces the 3rd predetermined threshold value, obtains target current expectation Value, the current charging current of terminal profile battery is target current expected value, charges battery with target current expected value.Citing For, if current expected value is 700mA, 700mA is reduced 80mA by terminal, and obtaining target current expected value is 620mA, and terminal sets The current charging current determining battery is 620mA, charges battery with 620mA, owing to lacking PID regulation, and the actual output of IC of charging Current value and target current expected value 620mA may there is certain deviation, this deviation is typically in about 30mA, charging The actual output of IC may be for 650mA or 640mA to the electric current of battery.3rd predetermined threshold value is set to 80mA by the embodiment of the present invention, On the one hand the actual charge current being possible to prevent battery is too high, and the opposing party also ensures that the actual charge current of battery was unlikely to Low, in the case of there is no PID regulation, it is ensured that the charge efficiency of battery.
Referring to Fig. 3, Fig. 3 is the structural representation of a kind of terminal disclosed in the embodiment of the present invention.As it is shown on figure 3, this reality Execute the terminal described in example, including verification unit 301, closed loop regulation unit 302 and opened loop control unit 303, wherein:
Verification unit 301, is used for carrying out PID open loop verification, and wherein, PID is for including that ratio, integration, differential control process Regulation process.
Closed loop regulation unit 302, for when verification unit 301 verify by time, open PID closed loop regulation.
Opened loop control unit 303, for when verification unit 301 verify obstructed out-of-date, carry out fall stream opened loop control.
Implement the terminal shown in Fig. 3, the too high situation of charging current can prevented after PID open loop verifies unsuccessfully Under, it is ensured that charge efficiency.
Optionally, referring to Fig. 4, Fig. 4 is to optimize further to obtain on the basis of Fig. 3, and Fig. 4 is the embodiment of the present invention The structural representation of disclosed another kind of terminal.As shown in Figure 4, verification unit 301 includes:
First sets subelement 3011, is used for setting verification current value, and verification current value is the charging that terminal is presently in The current expected value of scene.
First sampling subelement 3012, for utilizing sample circuit to sample the actual charge current of battery, obtains Current sampling data.
First judgment sub-unit 3013, it is judged that whether verification current value is less than first with the absolute value of the difference of current sampling data Predetermined threshold value.
First determines unit 3014, for when the first judgment sub-unit 3013 judged result is for being, determines that verification is passed through.
First determines unit 3014, is additionally operable to when the first judgment sub-unit 3013 judged result is no, determines verification not Pass through.
Implement the terminal shown in Fig. 4, can accurately judge to verify whether pass through.
Optionally, the current expected value of the charging scenarios that the first predetermined threshold value is presently according to terminal determines.
Optionally, referring to Fig. 5, Fig. 5 is to optimize further to obtain on the basis of Fig. 3, and Fig. 5 is the embodiment of the present invention The structural representation of disclosed another kind of terminal.As it is shown in figure 5, verification unit 301 includes:
Second sets subelement 3015, is used for setting multiple verification current value, any one in multiple verification current values with The difference of the current expected value of the charging scenarios that terminal is presently in is less than the second predetermined threshold value.
Second sampling subelement 3016, under each verification current value, utilizes sample circuit to fill the actual of battery Electricity electric current is sampled, and obtains the current sampling data that each verification current value is corresponding.
Second judgment sub-unit 3017, for judging that the electric current that each verification current value is corresponding with each verification current value is adopted Whether the absolute value of the difference of sample value is respectively less than the first predetermined threshold value.
Second determines unit 3018, for when the second judgment sub-unit 3017 judged result is for being, determines that verification is passed through.
Second determines unit 3018, for when the second judgment sub-unit 3017 judged result is no, determines that verification is obstructed Cross.
Implement the terminal shown in Fig. 5, use the mode setting multiple verification current values, the accurate of check results can be improved Property.
Optionally, referring to Fig. 6, Fig. 6 is to optimize further to obtain on the basis of Fig. 3, and Fig. 6 is the embodiment of the present invention The structural representation of disclosed another kind of terminal.As shown in Figure 6, opened loop control unit 303 includes:
Regulon unit 3031, the current expected value of the charging scenarios for terminal being presently in reduces the 3rd and presets threshold Value, obtains target current expected value.
Charging subelement 3032, for setting the current charging current of battery as target current expected value, with target current Battery is charged by expected value.
Implementing the terminal shown in Fig. 6, the actual charge current being on the one hand possible to prevent battery is too high, and the opposing party also ensures electricity The actual charge current in pond is unlikely to too low, in the case of not having PID regulation, it is ensured that the charge efficiency of battery.
Referring to the structural representation that Fig. 7, Fig. 7 are the embodiment of the present invention another terminals disclosed, terminal includes storage Device 701 and processor 702 (quantity of processor 702 can be one or more, in Fig. 7 as a example by a processor), at this In some bright embodiments, memorizer 701 and processor 702 can be connected by bus or alternate manner, wherein, in Fig. 7 with As a example by being connected by bus.Memorizer 701 is used for storing instruction, and processor 702 calls the instruction being stored in memorizer 701 and holds The following operation of row:
Carrying out PID open loop verification, wherein, PID is to include the regulation process that ratio, integration, differential control process;
If verification is passed through, then open the regulation of PID closed loop;
If verification is not passed through, then carry out fall stream opened loop control.
Optionally, processor 702 carries out PID open loop verification, particularly as follows:
Setting verification current value, verification current value is the current expected value of the charging scenarios that terminal is presently in;
Utilize sample circuit that the actual charge current of battery is sampled, obtain current sampling data;
Judge whether to verify the current value absolute value with the difference of current sampling data less than the first predetermined threshold value;
If, it is determined that verification is passed through;
If not, it is determined that verification is not passed through.
Optionally, processor 702 carries out PID open loop verification, particularly as follows:
Set multiple verification current value, any one charging scenarios being presently in terminal in multiple verification current values The difference of current expected value is less than the second predetermined threshold value;
Under each verification current value, utilize sample circuit that the actual charge current of battery is sampled, obtain each The current sampling data that verification current value is corresponding;
Judge that the absolute value of the difference of the current sampling data that each verification current value is corresponding with each verification current value is the most equal Less than the first predetermined threshold value;
If, it is determined that verification is passed through;
If not, it is determined that verification is not passed through.
Optionally, processor 702 carries out fall stream opened loop control, particularly as follows:
The current expected value of charging scenarios terminal being presently in reduces the 3rd predetermined threshold value, obtains target current expectation Value;
Set the current charging current of battery as target current expected value, with target current expected value, battery is charged.
Optionally, the current expected value of the charging scenarios that the first predetermined threshold value is presently according to terminal determines.
Implement the terminal shown in Fig. 7, battery life can be improved, improve the safety of PID regulation charging current.
The embodiment of the present invention also provides for a kind of computer-readable storage medium, and wherein, this computer-readable storage medium can store journey Sequence, this program includes the part or all of of any PID electric current method of calibration described in said method embodiment when performing Step.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment is can Completing instructing relevant hardware by program, this program can be stored in a computer-readable recording medium, storage Medium may include that flash disk, read only memory (Read-Only Memory, ROM), random access device (Random Access Memory, RAM), disk or CD etc..
A kind of PID electric current method of calibration provided the embodiment of the present invention above and terminal are described in detail, this Applying specific case in literary composition to be set forth principle and the embodiment of the present invention, the explanation of above example is only intended to Help to understand method and the core concept thereof of the present invention;Simultaneously for one of ordinary skill in the art, according to the think of of the present invention Thinking, the most all will change, in sum, it is right that this specification content should not be construed as The restriction of the present invention.

Claims (10)

1. a PID electric current method of calibration, it is characterised in that including:
Carrying out PID open loop verification, wherein, described PID is to include the regulation process that ratio, integration, differential control process;
If verification is passed through, then open the regulation of PID closed loop;
If verification is not passed through, then carry out fall stream opened loop control.
Method the most according to claim 1, it is characterised in that described in carry out PID open loop verification, including:
Setting verification current value, described verification current value is the current expected value of the charging scenarios that terminal is presently in;
Utilize sample circuit that the actual charge current of battery is sampled, obtain current sampling data;
Judge that whether the described verification current value absolute value with the difference of described current sampling data is less than the first predetermined threshold value;
If, it is determined that verification is passed through;
If not, it is determined that verification is not passed through.
Method the most according to claim 1, it is characterised in that described in carry out PID open loop verification, including:
Set multiple verification current value, any one charging field being presently in described terminal in the plurality of verification current value The difference of the current expected value of scape is less than the second predetermined threshold value;
Under each verification current value, utilize sample circuit that the actual charge current of battery is sampled, obtain each verification The current sampling data that current value is corresponding;
Judge whether the absolute value of the difference of the current sampling data that each verification current value is corresponding with each verification current value is respectively less than First predetermined threshold value;
If, it is determined that verification is passed through;
If not, it is determined that verification is not passed through.
4. according to the method described in any one of claim 1-3, it is characterised in that described in carry out fall stream opened loop control, including:
The current expected value of the charging scenarios described terminal being presently in reduces the 3rd predetermined threshold value, obtains target current expectation Value;
Set the current charging current of described battery as described target current expected value, with described target current expected value to described Battery charges.
Method the most according to claim 2, it is characterised in that described first predetermined threshold value is presently according to described terminal The current expected value of charging scenarios determine.
6. a terminal, it is characterised in that including:
Verification unit, is used for carrying out PID open loop verification, and wherein, described PID is to include the tune that ratio, integration, differential control process Joint process;
Closed loop regulation unit, for when described verification unit verification by time, open PID closed loop regulation;
Opened loop control unit, is used for, when the verification of described verification unit is obstructed out-of-date, carrying out fall stream opened loop control.
Terminal the most according to claim 6, it is characterised in that described verification unit includes:
First sets subelement, is used for setting verification current value, and described verification current value is the charging scenarios that terminal is presently in Current expected value;
First sampling subelement, for utilizing sample circuit to sample the actual charge current of battery, obtains current sample Value;
First judgment sub-unit, it is judged that whether described verification current value is less than first with the absolute value of the difference of described current sampling data Predetermined threshold value;
First determines unit, for when described first judgment sub-unit judged result is for being, determines that verification is passed through;
Described first determines unit, is additionally operable to when described first judgment sub-unit judged result is no, determines that verification is not passed through.
Terminal the most according to claim 6, it is characterised in that described verification unit includes:
Second sets subelement, is used for setting multiple verification current value, and any one in the plurality of verification current value is with described The difference of the current expected value of the charging scenarios that terminal is presently in is less than the second predetermined threshold value;
Second sampling subelement, under each verification current value, utilizes sample circuit to enter the actual charge current of battery Row sampling, obtains the current sampling data that each verification current value is corresponding;
Second judgment sub-unit, is used for the difference of the current sampling data judging that each verification current value is corresponding with each verification current value Absolute value whether be respectively less than the first predetermined threshold value;
Second determines unit, for when described second judgment sub-unit judged result is for being, determines that verification is passed through;
Described second determines unit, for when described second judgment sub-unit judged result is no, determines that verification is not passed through.
9. according to the terminal described in any one of claim 6-8, it is characterised in that described opened loop control unit includes:
Regulon unit, the current expected value of the charging scenarios for described terminal being presently in reduces the 3rd predetermined threshold value, Obtain target current expected value;
Charging subelement, for setting the current charging current of described battery as described target current expected value, with described target Described battery is charged by current expected value.
Terminal the most according to claim 7, it is characterised in that described first predetermined threshold value is according to the current institute of described terminal The current expected value of the charging scenarios at place determines.
CN201610638849.0A 2016-08-04 2016-08-04 A kind of PID electric current method of calibration and terminal Active CN106253376B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610638849.0A CN106253376B (en) 2016-08-04 2016-08-04 A kind of PID electric current method of calibration and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610638849.0A CN106253376B (en) 2016-08-04 2016-08-04 A kind of PID electric current method of calibration and terminal

Publications (2)

Publication Number Publication Date
CN106253376A true CN106253376A (en) 2016-12-21
CN106253376B CN106253376B (en) 2019-04-09

Family

ID=58078642

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610638849.0A Active CN106253376B (en) 2016-08-04 2016-08-04 A kind of PID electric current method of calibration and terminal

Country Status (1)

Country Link
CN (1) CN106253376B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112590600A (en) * 2020-12-21 2021-04-02 上汽通用五菱汽车股份有限公司 Self-adaptive adjustment method for charging request current of quick-charging pile

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102789824A (en) * 2012-08-08 2012-11-21 中广核工程有限公司 Debugging method and system for closed-loop control system of nuclear power plant
CN103324225A (en) * 2013-04-01 2013-09-25 朱银娟 Series PID (Proportion Integration Differentiation) control compensation method for vehicle-mounted charging system
CN103496638A (en) * 2013-09-26 2014-01-08 苏州汇川技术有限公司 Lifting protection system and lifting method for hoisting equipment
DE102013015859A1 (en) * 2013-09-24 2014-04-24 Daimler Ag Method for controlling charge current that is utilized for charging battery of motor car, involves reducing charge current to maximum current if difference is positive, and switching current to current limit if difference is negative
CN104184325A (en) * 2014-08-07 2014-12-03 哈尔滨工程大学 Rapid dynamic compensation control apparatus and control method of voltage control type DC/DC converter
CN104331113A (en) * 2014-10-14 2015-02-04 苏州工业职业技术学院 High-precision numerically-controlled constant current source
CN105180138A (en) * 2015-10-26 2015-12-23 广东电网有限责任公司电力科学研究院 Control method and system for power station boiler air and flue gas system
CN105356543A (en) * 2015-11-25 2016-02-24 Tcl移动通信科技(宁波)有限公司 Charging current setting and processing method and system for mobile terminal

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102789824A (en) * 2012-08-08 2012-11-21 中广核工程有限公司 Debugging method and system for closed-loop control system of nuclear power plant
CN103324225A (en) * 2013-04-01 2013-09-25 朱银娟 Series PID (Proportion Integration Differentiation) control compensation method for vehicle-mounted charging system
DE102013015859A1 (en) * 2013-09-24 2014-04-24 Daimler Ag Method for controlling charge current that is utilized for charging battery of motor car, involves reducing charge current to maximum current if difference is positive, and switching current to current limit if difference is negative
CN103496638A (en) * 2013-09-26 2014-01-08 苏州汇川技术有限公司 Lifting protection system and lifting method for hoisting equipment
CN104184325A (en) * 2014-08-07 2014-12-03 哈尔滨工程大学 Rapid dynamic compensation control apparatus and control method of voltage control type DC/DC converter
CN104331113A (en) * 2014-10-14 2015-02-04 苏州工业职业技术学院 High-precision numerically-controlled constant current source
CN105180138A (en) * 2015-10-26 2015-12-23 广东电网有限责任公司电力科学研究院 Control method and system for power station boiler air and flue gas system
CN105356543A (en) * 2015-11-25 2016-02-24 Tcl移动通信科技(宁波)有限公司 Charging current setting and processing method and system for mobile terminal

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112590600A (en) * 2020-12-21 2021-04-02 上汽通用五菱汽车股份有限公司 Self-adaptive adjustment method for charging request current of quick-charging pile

Also Published As

Publication number Publication date
CN106253376B (en) 2019-04-09

Similar Documents

Publication Publication Date Title
CN103117570B (en) Switching battery charging systems and method
CN105449759A (en) Charging method and mobile terminal
CN103427460B (en) A kind of power supply terminal, charge control method and device
CN201167239Y (en) USB charging circuit with current-limiting function
CN103475054B (en) A kind of lithium battery charger of Based Intelligent Control and charge control method
CN104617615B (en) Charging method and electronic equipment
CN107742907B (en) Lithium battery protection plate capable of self-adapting to charging voltage and lithium battery charging method
CN108134424A (en) The method and charging equipment for mobile phone of charging current are controlled in a kind of mobile phone charging process
CN105048555A (en) Method and system for identifying charging of universal serial bus (USB) charger
CN106208213A (en) The method of a kind of PID regulation charging current and terminal
CN106329615A (en) Master slave charging architecture with communication between chargers
CN114421581B (en) Control circuit, method and device for backup battery unit and storage system
CN107171384A (en) The charge control method and device of battery
CN103001290A (en) Self-adaption charging circuit and corresponding mobile terminal
CN114487774A (en) Test system of charging and discharging integrated circuit chip
CN106655343A (en) Charging method and device of mobile terminal
CN112018463A (en) Battery charging method, device, equipment and medium
CN105891736A (en) QC2.0 fast charge detection circuit and detection method
CN105445604B (en) A kind of USB3.1 TYPE c-types cable automatic test approach
CN105743185B (en) A kind of mobile terminal and charging method
CN105826959A (en) Charging method, device and mobile terminal
CN106253376A (en) A kind of PID electric current method of calibration and terminal
CN103792984B (en) Overcurrent protection chip of power supply and setting method thereof
CN106549458A (en) Battery charger and charging method
CN108919132A (en) Track method and apparatus, chip, battery and the aircraft of battery over-discharge

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant after: OPPO Guangdong Mobile Communications Co., Ltd.

Address before: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant before: Guangdong OPPO Mobile Communications Co., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant