CN113093030A - Automatic test method for battery charging and discharging and electronic equipment - Google Patents
Automatic test method for battery charging and discharging and electronic equipment Download PDFInfo
- Publication number
- CN113093030A CN113093030A CN202110272339.7A CN202110272339A CN113093030A CN 113093030 A CN113093030 A CN 113093030A CN 202110272339 A CN202110272339 A CN 202110272339A CN 113093030 A CN113093030 A CN 113093030A
- Authority
- CN
- China
- Prior art keywords
- test
- battery
- tested
- state
- 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.)
- Granted
Links
- 238000007599 discharging Methods 0.000 title claims abstract description 78
- 238000010998 test method Methods 0.000 title claims description 7
- 238000012360 testing method Methods 0.000 claims abstract description 293
- 238000000034 method Methods 0.000 claims abstract description 47
- 230000008569 process Effects 0.000 claims description 18
- 230000006870 function Effects 0.000 description 6
- 238000010586 diagram Methods 0.000 description 3
- 238000001514 detection method Methods 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R31/00—Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
- G01R31/36—Arrangements for testing, measuring or monitoring the electrical condition of accumulators or electric batteries, e.g. capacity or state of charge [SoC]
- G01R31/385—Arrangements for measuring battery or accumulator variables
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02E—REDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
- Y02E60/00—Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation
- Y02E60/10—Energy storage using batteries
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Charge And Discharge Circuits For Batteries Or The Like (AREA)
Abstract
The invention relates to the field of testing, and discloses an automatic testing method for battery charging and discharging and electronic equipment. The method comprises the following steps: s1, running a test program; s2, setting the test state of the battery to be tested as an initial state; s3, acquiring the current electric quantity of the battery to be tested; s4, judging the test state of the battery to be tested, if the test state is the initial state, entering the step S5, if the test state is the discharge test state, entering the step S6, if the test state is the charge test state, entering the step S8; if the condition of the step S5 is met, setting the test state of the battery to be tested as a discharge test state, performing a discharge test, and then turning to the step S3; if the condition of the step S6 is met, setting the test state of the battery to be tested as a charging test state, performing a charging test, and then turning to the step S3; if the condition of step S8 is satisfied, it is determined that the battery charging test to be tested is successful, so that not only the condition of missing test can be avoided, but also the test efficiency can be improved.
Description
Technical Field
The invention relates to the field of testing, in particular to an automatic testing method for battery charging and discharging and electronic equipment.
Background
The battery is used as an important accessory of the electronic equipment, and needs to be detected before production and shipment, so that the problem that the quality of the battery is lost to customers and the product quality is influenced is avoided.
In the conventional technology, a manual operation mode is usually adopted to carry out charge and discharge tests on a battery, specifically, a tester connects a test wire harness to a tested battery, firstly, an operation function detection device carries out function detection on the tested battery, after the function test is completed, the charge and discharge equipment is operated to carry out charge and discharge operations on the tested battery, and finally, a test result is recorded manually, so that the test mode has long time consumption and low test efficiency in the test process.
Disclosure of Invention
The embodiment of the invention provides an automatic testing method for battery charging and discharging and electronic equipment, which can improve testing efficiency.
In a first aspect, an embodiment of the present invention provides an automatic test method for battery charging and discharging, which is applied to an electronic device, and the method includes:
s1, running a test program;
s2, setting the test state of the battery to be tested as an initial state based on the test program, wherein the test state comprises an initial state, a charging test state and a discharging test state;
s3, acquiring the current electric quantity of the battery to be tested;
s4, judging the test state of the battery to be tested, if the test state is the initial state, entering the step S5, if the test state is the discharge test state, entering the step S6, if the test state is the charge test state, entering the step S8;
s5: judging whether the current electric quantity of the battery to be tested is in a test charging and discharging interval, and if the current electric quantity of the battery to be tested is in the test charging and discharging interval, entering the step S9;
s6: judging whether the current electric quantity of the battery to be tested is lower than a discharge threshold value, if so, determining that the discharge test of the battery to be tested is successful, setting the test state of the battery to be tested as the charge test state, and turning to the step S7;
s7: performing a charging test, and then proceeding to step S3;
s8: judging whether the current electric quantity of the battery to be tested is greater than a charging threshold value, if so, determining that the charging test of the battery to be tested is successful;
s9: setting the test state of the battery to be tested as a discharge test state;
s10: the discharge test is performed, and then the process proceeds to step S3.
In some embodiments, the step S5 further includes: if the current electric quantity of the battery to be tested is not in the test charging and discharging interval, executing step S11,
the method further comprises the following steps:
s11: the battery to be tested is charged or discharged, and then the process proceeds to step S3.
In some embodiments, the test charging/discharging interval includes a first preset electric quantity and a second preset electric quantity, and the first preset electric quantity is smaller than the second preset electric quantity.
In some embodiments, the charging or discharging the battery to be tested includes:
if the current electric quantity of the battery to be tested is higher than the second preset electric quantity, discharging the battery to be tested;
and if the current electric quantity of the battery to be tested is lower than the first preset electric quantity, charging the battery to be tested.
In some embodiments, the step S6 further includes:
and if the current electric quantity of the battery to be tested is not lower than the discharge threshold, the step S10 is entered.
In some embodiments, the step S8 further includes:
if the current electric quantity of the battery to be tested is not greater than the charging threshold, the step S7 is entered.
In some embodiments, the step S7 further includes: carrying out charging test prompt; the step S10 further includes: and performing discharge test prompting.
In some embodiments, after the setting the test state of the battery to be tested to the initial state based on the test program, the method further includes:
acquiring the state of a power adapter;
judging whether the power adapter is connected with the electronic equipment or not according to the state of the power adapter;
if the power adapter is connected with the electronic equipment, judging whether a battery exists in the electronic equipment;
if the battery exists in the electronic device, the step S3 is performed;
if the power adapter is not connected with the electronic equipment, prompting connection;
and if the battery does not exist in the electronic equipment, prompting shutdown.
In a second aspect, an embodiment of the present invention further provides an electronic device, including:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the above-described method.
In a third aspect, the present invention also provides a non-transitory computer-readable storage medium, which stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, the processor is caused to execute the above method.
In the automatic testing method for battery charging and discharging and the electronic equipment, by running a testing program, then setting a testing state of a battery to be tested as an initial state based on the testing program, wherein the testing state comprises the initial state, a charging testing state and a discharging testing state, then acquiring the current electric quantity of the battery to be tested, judging the testing state of the battery to be tested, if the testing state is the initial state, continuously judging whether the current electric quantity of the battery to be tested is positioned in a testing charging and discharging interval, if the current electric quantity of the battery to be tested is positioned in the testing charging and discharging interval, setting the testing state of the battery to be tested as a discharging testing state, performing a discharging test, and then continuously executing the step of acquiring the current electric quantity of the battery to be tested; if the test state is a discharge test state, judging whether the current electric quantity of the battery to be tested is lower than a discharge threshold value, if so, determining that the discharge test of the battery to be tested is successful, setting the test state of the battery to be tested as the charge test state, performing a charge test, and then continuing to execute the step of obtaining the current electric quantity of the battery to be tested; if the test state is a charging test state, whether the current electric quantity of the battery to be tested is larger than a charging threshold value or not is judged, if yes, the battery to be tested is determined to be successfully charged and tested, the automatic test method is used for entering an initial state, entering a discharging state after conditions are met, and finally entering a charging state, so that the condition of missing test can be avoided, and the test efficiency can be improved.
Drawings
One or more embodiments are illustrated by way of example in the accompanying drawings, which correspond to the figures in which like reference numerals refer to similar elements and which are not to scale unless otherwise specified.
FIG. 1 is a schematic flow chart of a method for automated testing of battery charging and discharging according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart illustrating the process of determining whether the power adapter and the battery are normal in one embodiment of the present invention;
FIG. 3 is a schematic flow chart illustrating an exemplary method for automatically testing charging and discharging of a battery according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of an automated testing apparatus for battery charging and discharging according to an embodiment of the present invention;
fig. 5 is a schematic diagram of a hardware structure of an electronic device in an embodiment of the invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that, if not conflicted, the various features of the embodiments of the invention may be combined with each other within the scope of protection of the invention. Additionally, while functional block divisions are performed in apparatus schematics, with logical sequences shown in flowcharts, in some cases, steps shown or described may be performed in sequences other than block divisions in apparatus or flowcharts. The terms "first", "second", "third", and the like used in the present invention do not limit data and execution order, but distinguish the same items or similar items having substantially the same function and action.
As shown in fig. 1, an embodiment of the present invention provides an automatic testing method for battery charging and discharging, where the method is applied to an electronic device, and the method includes:
step S1, running the test program.
In the embodiment of the invention, the test program is a battery test application program which is installed in the electronic equipment in advance, and when the battery needs to be tested, the battery test application program is operated.
And S2, setting the test state of the battery to be tested to be an initial state based on the test program, wherein the test state comprises an initial state, a charging test state and a discharging test state.
In the embodiment of the present invention, the test states include 3 types, i.e., an initial state, a charge test state, and a discharge test state. Specifically, the automatic test of the battery to be tested needs to be performed sequentially through an initial state, a discharge test state and a charge test state. Firstly, setting the test state of the battery to be tested as an initial state based on the test program.
S3: and acquiring the current electric quantity of the battery to be tested.
Specifically, after the test state of the battery to be tested is set to the initial state, the current electric quantity of the battery to be tested is obtained.
And S4, judging the test state of the battery to be tested, if the test state is the initial state, entering the step S5, if the test state is the discharge test state, entering the step S6, and if the test state is the charge test state, entering the step S8.
In the embodiment of the present invention, the test states are previously divided into the initial state, the discharge test state, and the charge test state, and the test order is previously specified as the initial state, the discharge test state, and the charge test state in this order. The different test states can be distinguished conveniently, the state identification can be adopted for identification, and when the state identification is the first identification, the test state is represented as an initial state; when the state mark is the second mark, the test state is a discharge test state; when the state flag is the third flag, it indicates that the test state is the charging test state. The first flag of the test state may be 0, the second flag may be 1, and the third flag may be 2. In addition, the first identifier of the test status may be 1, the second identifier may be 2, and the third identifier may be 3, which is only an example and is not limited thereto.
After the current electric quantity of the battery to be tested is acquired, judging the test state of the battery to be tested, specifically, judging the test state of the battery to be tested through a test identifier, if the test state is an initial state, entering step S5, if the test state is a discharge test state, entering step S6, and if the test state is a charge test state, entering step S7.
S5: and judging whether the current electric quantity of the battery to be tested is in a test charging and discharging interval, and if the current electric quantity of the battery to be tested is in the test charging and discharging interval, entering the step S9.
In the embodiment of the invention, the test charging and discharging interval is a range for testing charging and discharging. Specifically, the test charging and discharging interval comprises a first preset electric quantity and a second preset electric quantity, and the first preset electric quantity is smaller than the second preset electric quantity. The first preset electric quantity is a charging amount, and the second preset electric quantity is a discharging amount.
Specifically, if the test state is the initial state, it is determined whether the current electric quantity of the battery to be tested is in the test charge/discharge interval, and if the current electric quantity of the battery to be tested is in the test charge/discharge interval, the process proceeds to step S9. Exemplarily, the test charging and discharging interval is [ 3% -20% ], and if the current electric quantity of the battery to be tested is 5%, it is known that the current electric quantity of the battery to be tested is located in the test charging and discharging interval, the step S9 is performed. In addition, the current electric quantity of the battery to be tested is 3% or 20%, and the current electric quantity of the battery to be tested is also considered to be in a test charging and discharging interval.
S6: and judging whether the current electric quantity of the battery to be tested is lower than a discharge threshold value, if so, determining that the discharge test of the battery to be tested is successful, setting the test state of the battery to be tested as the charge test state, and turning to the step S7.
In the embodiment of the invention, the discharge threshold is a discharge limit, and is set in advance. Specifically, if the test state is a discharge test state, whether the current electric quantity of the battery to be tested is lower than a discharge threshold is judged, if the current electric quantity of the battery to be tested is lower than the discharge threshold, it is determined that the battery to be tested is successfully discharged, a next test state, namely a charge test state, is entered, and at this time, the test state of the battery to be tested is set to be a charge test state.
S7: the charging test is performed, and then the process proceeds to step S3.
Specifically, after the test state of the battery to be tested is set as the charging test state, the charging test is performed, and further, in the charging test process, a charging test prompt is performed. And then, the step S3 is executed to obtain the current electric quantity of the battery to be tested.
S8: and judging whether the current electric quantity of the battery to be tested is greater than a charging threshold value, if so, determining that the charging test of the battery to be tested is successful.
In the embodiment of the invention, the charging threshold is a charging amount, and is set in advance. Specifically, if the test state is a charging test state, whether the current electric quantity of the battery to be tested is greater than a charging threshold is judged, if the current electric quantity of the battery to be tested is greater than the charging threshold, it is determined that the charging test of the battery to be tested is successful, and if the charging test is successful, the test is passed.
S9: and setting the test state of the battery to be tested as a discharge test state.
Specifically, if the current electric quantity of the battery to be tested is in the test charging and discharging interval, the test state of the battery to be tested is set to be a discharging test state.
S10: the discharge test is performed, and then the process proceeds to step S3.
Specifically, after the test state of the battery to be tested is set to the discharge test state, the discharge test is performed, and further, in the discharge test process, a discharge test prompt is performed. And then, the step S3 is executed to obtain the current electric quantity of the battery to be tested.
In the embodiment of the invention, a test program is operated, then the test state of a battery to be tested is set to be an initial state based on the test program, the test state comprises an initial state, a charging test state and a discharging test state, then the current electric quantity of the battery to be tested is obtained, the test state of the battery to be tested is judged, if the test state is the initial state, whether the current electric quantity of the battery to be tested is positioned in a test charging and discharging interval is continuously judged, if the current electric quantity of the battery to be tested is positioned in the test charging and discharging interval, the test state of the battery to be tested is set to be the discharging test state, a discharging test is carried out, and then the step of obtaining the current electric quantity of the battery to; if the test state is a discharge test state, judging whether the current electric quantity of the battery to be tested is lower than a discharge threshold value, if so, determining that the discharge test of the battery to be tested is successful, setting the test state of the battery to be tested as the charge test state, performing a charge test, and then continuing to execute the step of obtaining the current electric quantity of the battery to be tested; if the test state is a charging test state, whether the current electric quantity of the battery to be tested is larger than a charging threshold value or not is judged, if yes, the battery to be tested is determined to be successfully charged and tested, the automatic test method is used for entering an initial state, entering a discharging state after conditions are met, and finally entering a charging state, so that the condition of missing test can be avoided, and the test efficiency can be improved.
In some other embodiments, the step S5 further includes: if the current electric quantity of the battery to be tested is not in the test charging and discharging interval, executing step S11,
the method further comprises the following steps:
s11: the battery to be tested is charged or discharged, and then the process proceeds to step S3.
Specifically, the test charging and discharging interval comprises a first preset electric quantity and a second preset electric quantity, and the first preset electric quantity is smaller than the second preset electric quantity. And if the current electric quantity of the battery to be tested is not in the test charging and discharging interval, charging or discharging the battery to be tested.
In some embodiments, as an implementation of step S11, the method includes: if the current electric quantity of the battery to be tested is higher than the second preset electric quantity, discharging the battery to be tested; and if the current electric quantity of the battery to be tested is lower than the first preset electric quantity, charging the battery to be tested.
In an embodiment of the invention, the first predetermined electric quantity is a charge amount, and the second predetermined electric quantity is a discharge amount. If the current electric quantity of the battery to be tested is higher than the second preset electric quantity, namely the discharge amount, discharging the battery to be tested, if the current electric quantity of the battery to be tested is lower than the first preset electric quantity, charging the battery to be tested, and then entering step S3.
In some other embodiments, the step S6 further includes: and if the current electric quantity of the battery to be tested is not lower than the discharge threshold, the step S10 is entered.
In the embodiment of the present invention, if the current electric quantity of the battery to be tested is not lower than the discharging threshold, the step S10 is entered, i.e. the discharging test is performed. And performing discharge test prompting in the process of the discharge test.
In some other embodiments, the step S8 further includes:
if the current electric quantity of the battery to be tested is not greater than the charging threshold, the step S7 is entered.
In the embodiment of the present invention, if the current charge of the battery to be tested is not greater than the charging threshold, step S7 is entered, i.e., a charging test is performed. And the charging test prompt is carried out in the charging test process.
In some embodiments, before performing the automated testing on the battery, it is necessary to determine whether the power adapter and the battery are normal, as shown in fig. 2, and after setting the testing state of the battery to be tested to the initial state based on the testing program, the method further includes:
In an embodiment of the present invention, the state of the power adapter includes a connected state and a non-connected state. Specifically, the state of the power adapter is acquired, and then whether the power adapter is connected with the electronic device is judged based on the acquired state of the power adapter. If the power adapter is connected with the electronic device, continuously judging whether a battery exists in the electronic device, and if the battery exists in the electronic device, entering step S3 to obtain the current electric quantity of the battery to be tested. In addition, if the power adapter is not connected with the electronic equipment, connection is prompted, and if the battery does not exist in the electronic equipment, shutdown is prompted. And testing after the battery is connected.
To facilitate understanding of the present invention, a description will be given below of an embodiment, as shown in fig. 3,
s300, running the test program, and turning to S301;
s301, setting the test state of the battery to be tested as an initial state based on the test program, and turning to S302;
s302, acquiring the state of the power adapter, and turning to S303;
s303, judging whether the power adapter is connected with the electronic equipment or not according to the state of the power adapter, if so, turning to S304, and if not, turning to S305;
s304, judging whether a battery exists in the electronic equipment, if not, turning to S306, otherwise, turning to S307;
s305, prompting connection, and turning to S302;
s306, prompting shutdown, and turning to S302;
s307, acquiring the current electric quantity of the battery to be tested, and turning to S308;
and S308, judging the test state of the battery to be tested, if the test state is the initial state, turning to S309, if the test state is the discharge test state, turning to S310, and if the test state is the charge test state, turning to S311.
S309, judging whether the current electric quantity of the battery to be tested is in a test charging and discharging interval, if so, turning to S312, otherwise, turning to S313;
s310, judging whether the current electric quantity of the battery to be tested is lower than a discharge threshold value, if so, turning to S314, otherwise, turning to S315;
s311, judging whether the current electric quantity of the battery to be tested is larger than a charging threshold value, if so, turning to S316, otherwise, turning to S317;
s312, setting the test state of the battery to be tested as a discharge test state, and turning to S315;
s313, charging or discharging the battery to be tested, and turning to S307;
s314, determining that the discharging test of the battery to be tested is successful, setting the test state of the battery to be tested as the charging test state, and turning to S317;
s315, performing a discharge test, and turning to S307;
s316, determining that the charging test of the battery to be tested is successful, and turning to S328;
s317, carrying out a charging test, and turning to S307;
and S318, ending.
Accordingly, an embodiment of the present invention further provides an automatic battery charging and discharging testing apparatus 400, as shown in fig. 4, including:
an operation module 401, configured to S1, operate the test program;
a first setting module 402, configured to S2, set a test state of the battery to be tested as an initial state based on the test program, where the test state includes an initial state, a charging test state, and a discharging test state;
an obtaining module 403, configured to, at S3, obtain a current electric quantity of the battery to be tested;
a first determining module 404 for determining a testing state of the battery to be tested at S4, if the testing state is an initial state, entering step S5, if the testing state is a discharging testing state, entering step S6, and if the testing state is a charging testing state, entering step S8;
a second decision module 405 for S5: judging whether the current electric quantity of the battery to be tested is in a test charging and discharging interval, and if the current electric quantity of the battery to be tested is in the test charging and discharging interval, entering the step S9;
a third determining module 406, configured to S6: judging whether the current electric quantity of the battery to be tested is lower than a discharge threshold value, if so, determining that the discharge test of the battery to be tested is successful, setting the test state of the battery to be tested as the charge test state, and turning to the step S7;
a charging test module 407, configured to S7: performing a charging test, and then proceeding to step S3;
a fourth determining module 408, configured to S8: judging whether the current electric quantity of the battery to be tested is greater than a charging threshold value, if so, determining that the charging test of the battery to be tested is successful;
a second setting module 409, configured to S9: setting the test state of the battery to be tested as a discharge test state;
discharge test module 410, for S10: the discharge test is performed, and then the process proceeds to step S3.
In the embodiment of the invention, a test program is run through a running module, then a first setting module is used for setting the test state of a battery to be tested as an initial state based on the test program, then the current electric quantity of the battery to be tested is obtained through an obtaining module, then the test state of the battery to be tested is judged through a first judging module, if the test state is the initial state, the step S5 is entered, if the test state is a discharging test state, the step S6 is entered, and if the test state is a charging test state, the step S8 is entered; further, whether the current electric quantity of the battery to be tested is in a test charging and discharging interval is judged through a second judging module, and if the current electric quantity of the battery to be tested is in the test charging and discharging interval, the step S9 is executed; then, judging whether the current electric quantity of the battery to be tested is lower than a discharge threshold value through a third judgment module, if so, determining that the discharge test of the battery to be tested is successful, setting the test state of the battery to be tested as the charge test state, and turning to the step S7; performing a charging test through the charging test module, and then proceeding to step S3; judging whether the current electric quantity of the battery to be tested is larger than a charging threshold value or not through a fourth judging module, and if so, determining that the charging test of the battery to be tested is successful; setting the test state of the battery to be tested as a discharge test state through a second setting module; the discharge test is carried out through the discharge test module, and then the step S3 is carried out, so that the condition of test missing can be avoided, and the test efficiency can be improved.
It should be noted that, the above-mentioned automatic testing apparatus for battery charging and discharging may execute the automatic testing method for battery charging and discharging provided by the embodiment of the present invention, and has the corresponding function module and beneficial effect of the execution method, and the technical details not described in detail in the embodiment of the automatic testing apparatus for battery charging and discharging may refer to the automatic testing method for battery charging and discharging provided by the embodiment of the present invention.
Fig. 5 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention, and as shown in fig. 5, the electronic device 500 includes:
one or more processors 510 and memory 520, with one processor 510 being an example in fig. 5.
The processor 510 and the memory 520 may be connected by a bus or other means, such as by a bus in FIG. 5.
The memory 520, which is a non-volatile computer-readable storage medium, may be used to store non-volatile software programs, non-volatile computer-executable programs, and modules, such as program instructions/modules corresponding to the method for automatically testing charging and discharging of a battery according to the embodiment of the present invention. The processor 510 executes various functional applications and data processing of the network device by running the nonvolatile software programs, instructions and modules stored in the memory 520, that is, implements the automatic test method for battery charging and discharging in the above embodiments.
The memory 520 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the automatic test apparatus for charging and discharging the battery, and the like. Further, the memory 520 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some embodiments, memory 520 may optionally include memory located remotely from processor 510, which may be connected to an automated test equipment for battery charging and discharging over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The embodiment of the invention also provides a nonvolatile computer-readable storage medium, which stores computer-executable instructions, and when the computer-executable instructions are executed by one or more processors, the one or more processors can execute the automatic testing method for battery charging and discharging in any method embodiment.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a general hardware platform, and certainly can also be implemented by hardware. It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware related to instructions of a computer program, which can be stored in a computer readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Wherein the storage medium can be a magnetic disk, an optical disk, a read-only memory
A Memory-Only Memory (ROM) or a Random Access Memory (RAM), etc.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; within the idea of the invention, also technical features in the above embodiments or in different embodiments may be combined, steps may be implemented in any order, and there are many other variations of the different aspects of the invention as described above, which are not provided in detail for the sake of brevity; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.
Claims (10)
1. An automatic test method for battery charging and discharging is applied to electronic equipment, and is characterized by comprising the following steps:
s1, running a test program;
s2, setting the test state of the battery to be tested as an initial state based on the test program, wherein the test state comprises an initial state, a charging test state and a discharging test state;
s3, acquiring the current electric quantity of the battery to be tested;
s4, judging the test state of the battery to be tested, if the test state is the initial state, entering the step S5, if the test state is the discharge test state, entering the step S6, if the test state is the charge test state, entering the step S8;
s5: judging whether the current electric quantity of the battery to be tested is in a test charging and discharging interval, and if the current electric quantity of the battery to be tested is in the test charging and discharging interval, entering the step S9;
s6: judging whether the current electric quantity of the battery to be tested is lower than a discharge threshold value, if so, determining that the discharge test of the battery to be tested is successful, setting the test state of the battery to be tested as the charge test state, and turning to the step S7;
s7: performing a charging test, and then proceeding to step S3;
s8: judging whether the current electric quantity of the battery to be tested is greater than a charging threshold value, if so, determining that the charging test of the battery to be tested is successful;
s9: setting the test state of the battery to be tested as a discharge test state;
s10: the discharge test is performed, and then the process proceeds to step S3.
2. The method according to claim 1, wherein the step S5 further comprises: if the current electric quantity of the battery to be tested is not in the test charging and discharging interval, executing step S11,
the method further comprises the following steps:
s11: the battery to be tested is charged or discharged, and then the process proceeds to step S3.
3. The method according to claim 2, wherein the test charging/discharging interval includes a first preset power and a second preset power, and the first preset power is smaller than the second preset power.
4. The method of claim 3, wherein said charging or discharging said battery under test comprises:
if the current electric quantity of the battery to be tested is higher than the second preset electric quantity, discharging the battery to be tested;
and if the current electric quantity of the battery to be tested is lower than the first preset electric quantity, charging the battery to be tested.
5. The method according to claim 1, wherein the step S6 further comprises:
and if the current electric quantity of the battery to be tested is not lower than the discharge threshold, the step S10 is entered.
6. The method according to claim 1, wherein the step S8 further comprises:
if the current electric quantity of the battery to be tested is not greater than the charging threshold, the step S7 is entered.
7. The method of claim 1,
the step S7 further includes: carrying out charging test prompt;
the step S10 further includes: and performing discharge test prompting.
8. The method of any of claims 1-7, wherein after setting the test state of the battery under test to the initial state based on the test program, the method further comprises:
acquiring the state of a power adapter;
judging whether the power adapter is connected with the electronic equipment or not according to the state of the power adapter;
if the power adapter is connected with the electronic equipment, judging whether a battery exists in the electronic equipment;
if the battery exists in the electronic device, the step S3 is performed;
if the power adapter is not connected with the electronic equipment, prompting connection;
and if the battery does not exist in the electronic equipment, prompting shutdown.
9. An electronic device, comprising:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-8.
10. A non-transitory computer-readable storage medium storing computer-executable instructions that, when executed by a processor, cause the processor to perform the method of any one of claims 1-8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110272339.7A CN113093030B (en) | 2021-03-12 | 2021-03-12 | Automatic test method for battery charging and discharging and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110272339.7A CN113093030B (en) | 2021-03-12 | 2021-03-12 | Automatic test method for battery charging and discharging and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113093030A true CN113093030A (en) | 2021-07-09 |
CN113093030B CN113093030B (en) | 2023-01-31 |
Family
ID=76667090
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110272339.7A Active CN113093030B (en) | 2021-03-12 | 2021-03-12 | Automatic test method for battery charging and discharging and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113093030B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114114045A (en) * | 2021-11-22 | 2022-03-01 | 北京胜能能源科技有限公司 | Method and device for testing direct current internal resistance of high-power battery |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1800866A (en) * | 2005-01-06 | 2006-07-12 | 联发科技股份有限公司 | Cell detection system and method thereof |
TWI280397B (en) * | 2006-06-30 | 2007-05-01 | Wistron Corp | Automatic battery test system and method of an electronic device |
CN101114009A (en) * | 2006-07-24 | 2008-01-30 | 纬创资通股份有限公司 | Battery automatically testing system and method of electronic device |
US20120226455A1 (en) * | 2011-03-01 | 2012-09-06 | Hitachi, Ltd. | Anomalously Charged State Detection Device and Test Method for Lithium Secondary Cell |
JP2013126317A (en) * | 2011-12-15 | 2013-06-24 | Fujitsu Ltd | Operation testing method, information processor, and program |
CN103269098A (en) * | 2013-05-21 | 2013-08-28 | 东莞宇龙通信科技有限公司 | Method for improving double-battery charging efficiency and mobile terminal |
CN111239617A (en) * | 2020-02-24 | 2020-06-05 | Tcl移动通信科技(宁波)有限公司 | Control method and device for charge and discharge test, storage medium and system |
-
2021
- 2021-03-12 CN CN202110272339.7A patent/CN113093030B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1800866A (en) * | 2005-01-06 | 2006-07-12 | 联发科技股份有限公司 | Cell detection system and method thereof |
TWI280397B (en) * | 2006-06-30 | 2007-05-01 | Wistron Corp | Automatic battery test system and method of an electronic device |
CN101114009A (en) * | 2006-07-24 | 2008-01-30 | 纬创资通股份有限公司 | Battery automatically testing system and method of electronic device |
US20120226455A1 (en) * | 2011-03-01 | 2012-09-06 | Hitachi, Ltd. | Anomalously Charged State Detection Device and Test Method for Lithium Secondary Cell |
JP2013126317A (en) * | 2011-12-15 | 2013-06-24 | Fujitsu Ltd | Operation testing method, information processor, and program |
CN103269098A (en) * | 2013-05-21 | 2013-08-28 | 东莞宇龙通信科技有限公司 | Method for improving double-battery charging efficiency and mobile terminal |
CN111239617A (en) * | 2020-02-24 | 2020-06-05 | Tcl移动通信科技(宁波)有限公司 | Control method and device for charge and discharge test, storage medium and system |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114114045A (en) * | 2021-11-22 | 2022-03-01 | 北京胜能能源科技有限公司 | Method and device for testing direct current internal resistance of high-power battery |
Also Published As
Publication number | Publication date |
---|---|
CN113093030B (en) | 2023-01-31 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110908888B (en) | Server testing method and device | |
CN108271150B (en) | Method and system for supporting simultaneous flashing or data clearing of multiple mobile phones | |
CN113093030B (en) | Automatic test method for battery charging and discharging and electronic equipment | |
CN111624500A (en) | Method for detecting vehicle generator and battery detector | |
CN110404827B (en) | Battery screening method and device and storage medium | |
CN113391229B (en) | Performance evaluation method, equipment and system for retired power battery | |
CN112736302B (en) | Method and device for judging abnormal capacity of battery cell, vehicle and storage medium | |
CN113075563A (en) | Detection method and device for lithium separation of power battery and vehicle | |
CN112307647A (en) | Charging pile communication interruption testing method and device, storage medium and processor | |
CN112487588B (en) | Wind power plant reactive voltage regulation function test method, terminal equipment and storage medium | |
CN107179972A (en) | For the method for calculation machine, microcontroller, test equipment and test system | |
CN111651350B (en) | Test case processing method, device, equipment and computer readable storage medium | |
CN110908489B (en) | Test method and test equipment for battery management system | |
CN107016054A (en) | A kind of method and device of log information storage | |
CN112793420A (en) | Vehicle combination instrument initialization method, device, equipment and storage medium | |
CN111176917A (en) | Method, system, terminal and storage medium for testing functional stability of CPU SST-BF | |
CN116859262A (en) | Storage battery pack operation and maintenance method and system | |
CN108899595B (en) | Temperature detection method, device and equipment for battery | |
CN109726124A (en) | Test macro, test method, managing device, test device and calculating equipment | |
CN110413531A (en) | Realize IOMT automatic test approach, device, computer equipment and storage medium | |
CN111204314A (en) | Identity recognition method and system for battery replacement battery entering battery replacement system | |
CN114264965A (en) | Battery short-circuit fault early warning information generation method and device, equipment and medium | |
CN112747946A (en) | Equipment structure damage detection method and device | |
CN109002694B (en) | Method and device for positioning problem point after application code confusion | |
CN113836032A (en) | Android interface concurrent testing method, device, equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20231027 Address after: 518000, 4th Floor, No. 31, Xiacun Community, Gongming Street, Guangming District, Shenzhen City, Guangdong Province Patentee after: Shenzhen Baoxinchuang Information Technology Co.,Ltd. Address before: 518000 501-2, building a, wisdom Plaza, 4068 Qiaoxiang Road, Gaofa community, Shahe street, Nanshan District, Shenzhen City, Guangdong Province Patentee before: Shenzhen baoxinchuang Technology Co.,Ltd. |