WO2019061136A1 - Battery test method, terminal, and computer readable storage medium - Google Patents

Battery test method, terminal, and computer readable storage medium Download PDF

Info

Publication number
WO2019061136A1
WO2019061136A1 PCT/CN2017/103918 CN2017103918W WO2019061136A1 WO 2019061136 A1 WO2019061136 A1 WO 2019061136A1 CN 2017103918 W CN2017103918 W CN 2017103918W WO 2019061136 A1 WO2019061136 A1 WO 2019061136A1
Authority
WO
WIPO (PCT)
Prior art keywords
battery
charging
test
power
charge
Prior art date
Application number
PCT/CN2017/103918
Other languages
French (fr)
Chinese (zh)
Inventor
桂云卿
Original Assignee
深圳传音通讯有限公司
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 深圳传音通讯有限公司 filed Critical 深圳传音通讯有限公司
Priority to PCT/CN2017/103918 priority Critical patent/WO2019061136A1/en
Publication of WO2019061136A1 publication Critical patent/WO2019061136A1/en

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/36Arrangements for testing, measuring or monitoring the electrical condition of accumulators or electric batteries, e.g. capacity or state of charge [SoC]

Definitions

  • the present invention relates to the field of electronic technologies, and in particular, to a battery testing method, a terminal, and a computer readable storage medium.
  • the tester needs to perform a charge and discharge test on the battery before the battery is shipped from the factory.
  • the method of charging and discharging the mobile phone battery is mainly to use the mobile phone to charge and discharge the battery of the tested mobile phone, and the tester regularly checks the charging and discharging condition of the battery of the tested mobile phone, and the test method for manually controlling the charging and discharging of the mobile phone is The test is inefficient.
  • Embodiments of the present invention provide a battery testing method, a terminal, and a computer readable storage medium, which are helpful for improving the convenience and efficiency of battery charging and discharging testing.
  • an embodiment of the present invention provides a battery testing method, including:
  • the battery When the power is not greater than the initial charge, the battery is charged until the battery is equal to the end charge;
  • the starting charging amount is less than the ending charging amount.
  • the battery when the power is not greater than the initial charge, the battery is charged until the battery is equal to the end charge, and the battery is cooled; the current battery after cooling When the temperature is not greater than the preset temperature, performing the discharging of the battery when the amount of power is not less than the ending charging amount until the battery is equal to the starting charging amount.
  • the continuous charging time of the battery is counted; when the continuous charging time is greater than the preset charging time, prompt information is sent, where the prompt information is used to prompt the test to fail,
  • the preset charging time is a charging time of the battery power from the start charging amount to the ending charging amount when the battery is charged.
  • the battery when the power is not greater than the initial charge, the battery is charged until the battery is equal to the end of the charge, and the duration of the test is obtained; and the duration is less than the preset total test duration. And performing the step of discharging the battery when the electric quantity is not less than the end charging electric quantity until the electric quantity of the electric quantity is equal to the starting charging electric quantity.
  • the testing is ended and a test report is generated.
  • the specific implementation manner of generating the test report is: acquiring the number of times of charging, the number of discharges, the charging duration of each charging, and the discharging duration of each discharging; according to the charging times of the battery, The number of discharges, the length of charge for each charge, and the length of discharge for each discharge generate a test report.
  • the starting charging power and the ending charging power are preset.
  • an embodiment of the present invention provides a terminal, where the terminal includes a unit for performing the method of the foregoing first aspect.
  • an embodiment of the present invention provides another terminal, including a processor, an input device, an output device, and a memory, where the processor, the input device, the output device, and the memory are connected to each other, wherein the memory is used for storage.
  • a computer program supporting a terminal for performing the above method the computer program comprising program instructions, the processor being configured to invoke the program instructions to perform the method of the first aspect above.
  • an embodiment of the present invention provides a computer readable storage medium, where the computer readable storage medium stores a computer program, where the computer program includes program instructions, and when the program instructions are executed by the processor, The processor performs the method of the first aspect above.
  • the terminal may detect a test command for testing the battery, and respond to the test command to obtain the battery power.
  • the battery When the power is not greater than the initial charge, the battery is charged until the battery charge is equal to the end charge.
  • the power is not less than the end of the charge, the battery is discharged until the battery is equal to the start of the charge, which helps to improve the convenience and efficiency of the battery charge and discharge test.
  • FIG. 1 is a schematic flow chart of a battery testing method according to an embodiment of the present invention.
  • FIG. 2 is a schematic diagram of a terminal operation interface according to an embodiment of the present invention.
  • FIG. 3 is a schematic flow chart of another battery testing method according to an embodiment of the present invention.
  • FIG. 4a is a schematic diagram of another terminal operation interface according to an embodiment of the present invention.
  • FIG. 4b is a schematic diagram of still another terminal operation interface according to an embodiment of the present invention.
  • 4c is a schematic diagram of still another terminal operation interface according to an embodiment of the present invention.
  • FIG. 5 is a schematic block diagram of a terminal according to an embodiment of the present disclosure.
  • FIG. 6 is a schematic block diagram of another terminal according to an embodiment of the present invention.
  • Various applications executing on the terminal may use at least one common physical user interface device such as a touch sensitive surface.
  • a touch sensitive surface One or more functions of the touch sensitive surface and corresponding information displayed on the terminal can be adjusted and/or changed within the application and/or within the respective application.
  • the common physical architecture of the terminal eg, a touch-sensitive surface
  • test command described in the embodiment of the present invention is an instruction for triggering the battery to enter a charge and discharge test
  • specific input manner of the test command may include sliding, pressing, clicking, gesture sensing, voice, and the like.
  • the battery described is mainly a terminal battery.
  • the test described in the embodiment of the present invention is a charge and discharge test, which may include a charge test and a discharge test on the battery, in which charging and discharging of the battery are performed cyclically.
  • the battery's charge is equal to the start charge. It is recorded as the start of a charge and discharge test and a charge test.
  • the battery can be charged from the start charge to the end of the charge.
  • the end of the charge test and the start of a discharge test can be used to end the battery.
  • the discharge of the charge to the start of the charge is recorded as the end of the discharge test and the start of the next charge test, wherein the end of the charge test may also be the end of a charge and discharge test.
  • the primary charge and discharge test can include at least one charge test and discharge test.
  • FIG. 1 is a schematic flowchart of a battery testing method according to an embodiment of the present invention. As shown in FIG. 1 , the battery testing method may include:
  • the terminal detects a test instruction for testing the battery.
  • the terminal acquires the power of the battery in response to the test instruction.
  • the test command can be input at a specified position on the display screen by sliding, pressing, clicking, gesture sensing, voice, etc., at this time, the terminal detects the user input test.
  • the test command can be used to obtain the battery power.
  • the terminal may receive the notification of the battery power change by registering the Android broadcast, thereby obtaining the battery power.
  • the broadcast can be a resident broadcast, that is, when the application corresponding to the battery test is turned off, the notification of the battery power change can also be received, and the registration method is to register in the AndroidManifast.xml of the application.
  • the registration method is usually called static registration. This way, it can be understood that the broadcast registered through the manifest file is handed over to the operating system for processing; the broadcast can also be a non-resident broadcast, that is, when the battery test corresponds to the application. Closed, the broadcast is naturally gone.
  • This registration method is also called dynamic registration. This way can be understood as the broadcast registered by the code is associated with the registrant.
  • the terminal is a mobile phone
  • the user when the user wants to test the battery, the user can enter the interface corresponding to the battery test. As shown in FIG. 2, the user can use the mobile phone to click the position corresponding to the “click to start test” to input the test command.
  • the mobile phone detects the test command input by the user, it can respond to the test command to obtain the battery power.
  • the terminal places the battery when the power is not less than the end charging power. Electric until the battery is charged equal to the starting charge.
  • the foregoing starting charging power and the ending charging power may be preset, and the setting manner may be preset according to the experimental data system, or may be preset by the user according to the needs of the user, or may be preset by the system and preset by the user.
  • the present invention is not limited in this way. Among them, the starting charging amount is less than the ending charging amount.
  • the user can set the starting charging power to 50 according to his own needs, and the ending charging power is set to 100.
  • the terminal after the terminal performs step S102, it can detect whether the battery power is not greater than the starting charging power.
  • the charging component is called to charge the battery.
  • the battery power is continuously charged. Raise, when the battery's charge is equal to the end of the charge, the charge is paused. Further, the terminal can call the discharge component to discharge the battery. During the discharge process, the battery power is continuously reduced. When the battery charge is equal to the start of the charge, the discharge is suspended, and the terminal can call the charging component to charge the battery again.
  • the discharge component is again called to discharge the battery, and the battery is charged and discharged continuously according to the same method.
  • the terminal may call the discharging component to discharge the battery until the battery power is equal to the starting charging power, and then start the test, and step S103 is performed.
  • the discharge assembly may include at least one of a camera, a vibration motor, a display screen, and a speaker.
  • the vibration motor can be controlled to continuously vibrate, and the camera can be continuously shot, and the display can be continuously displayed to achieve rapid power consumption. Consumption, to achieve the purpose of discharge.
  • the terminal may store a test video in advance locally. During the test, when the terminal detects that the battery power is not less than the end charge power, the terminal may play the video through the video player.
  • the segment test video calls the terminal's display screen and speakers to achieve rapid consumption of power and achieve discharge.
  • the charging component can include a charging control switch. Specifically, during the testing process, when the terminal detects that the power is not greater than the starting charging power, the terminal may trigger the charging control switch to connect to the power source to charge the battery.
  • the terminal is a mobile phone
  • the preset set charging power is 15 and the ending charging power is 100
  • the mobile phone performs step S102 to obtain the battery's power is 10.
  • the mobile phone detects that the battery power 10 is less than the starting charging power 15, and can trigger the charging control switch to connect the power supply, and charge the battery until the battery is charged from 15 to 100, suspend charging and brighten the display brightness. Consuming power, discharging the battery.
  • the charging control switch is again triggered to connect to the power supply, charging the battery until the battery reaches 100 and discharging again, and so on. And discharge test.
  • the charging test and the discharge test of the battery can be performed cyclically during the above test.
  • the user wants to stop the test, and can input the operation instruction for stopping the test at any time.
  • the terminal receives the operation instruction, the terminal can respond to the operation instruction and end the test.
  • the terminal may detect a test command for testing the battery, and respond to the test command to obtain the battery power.
  • the battery When the power is not greater than the initial charge, the battery is charged until the battery charge is equal to the end charge.
  • the power is not less than the end of the charge, the battery is discharged until the battery is equal to the start of the charge, which helps to improve the convenience and efficiency of the battery charge and discharge test.
  • FIG. 3 is a schematic flowchart diagram of another battery testing method according to an embodiment of the present invention. As shown in FIG. 3, the battery testing method may include:
  • the terminal detects a test instruction for testing the battery.
  • the terminal acquires the power of the battery in response to the test instruction.
  • the terminal responds to the test instruction, and after obtaining the power of the battery, first determining whether the battery power is equal to the starting charging power, and if yes, executing step S303; if not, determining whether the battery power is greater than the starting charging power. If it is greater than the starting charging power, the discharging component is called to discharge the battery until the battery is equal to the starting charging power, and then the test is started, step S303 is performed; if the charging power is less than the starting charging power, the charging component is called to charge the battery. Until electricity When the battery power is equal to the start of the charging power, the test is started again, and step S303 is performed.
  • step S304 The terminal counts the continuous charging time of the battery, and detects whether the continuous charging time is greater than a preset charging time. If yes, step S305 is performed, and if no, step S306 is performed.
  • the terminal sends a prompt message, where the prompt information is used to prompt the test to fail.
  • the preset charging time is a charging time when the battery is charged, the battery power is from the start of charging to the end of charging.
  • the setting manner of the preset charging time may be preset according to the experimental data system, or may be preset by the user according to the needs of the user, or may be a combination of the system preset setting and the user preset setting, and the present invention is This is not limited.
  • the preset charging time may be set to 30 (minutes) in advance as shown in FIG.
  • the continuous charging time is a time when the battery component is continuously charged by the charging component after the battery is charged.
  • the terminal may prompt the user by prompting, such as vibration, flashing, voice prompting, red screen display or displaying prompt content (such as “test failure”), thereby reaching the user. Handle the purpose of the fault in time.
  • the terminal may trigger the charging component to charge the battery, and turn on the first timer to count down the continuous charging time of the battery according to the preset charging time, corresponding to the first timer.
  • the time is zero, it is detected whether the battery power is less than the end charging power.
  • the terminal may issue a prompt message for prompting the user to fail the test.
  • the terminal detects that the battery power is not less than the end charging power, and the terminal does not issue any prompt information, and continues to perform the subsequent steps.
  • the charging and discharging of the battery is a cyclic process. If the battery is equal to the starting charging capacity, it is recorded as the beginning of the charging test, and the battery is charged from the starting charging capacity to the end charging. The battery is recorded as the end of a charge test. Then it means that each time the charging test starts, the terminal can trigger the first timer to count down the continuous charging time of the battery according to the preset charging time.
  • the end charging power is 90, and the first timer is set to count down.
  • the time ie preset charging time
  • the phone can trigger the charge control switch to connect the power to charge the battery, and turn on the first timer to count down.
  • the time corresponding to a timer is zero, the mobile phone detects that the battery power is 20, and after judging, it is determined that the battery power 20 is less than the end charging power 90, which means that the battery may be damaged.
  • the mobile phone can be in the The prompt content is displayed on the display, such as “Master, charging failure”, and its display effect is shown in Figure 4a.
  • the terminal can also trigger the first timer to time the continuous charging time of the battery while charging the battery, and the time corresponding to the first timer (ie, the continuous charging time)
  • the preset charging time is greater than the preset charging time
  • a prompt message is sent to prompt the user to fail the test.
  • the time corresponding to the first timer is cleared. It can be understood that the initial time corresponding to the first timer is 0 every time the charging test starts.
  • the preset charging time is 20 minutes, and the mobile phone responds to the test command to obtain the battery power.
  • the first charging test starts.
  • the mobile phone triggers the charging control switch to charge the battery, and turns on the first timer to time the battery's continuous charging time.
  • the mobile phone detects the time corresponding to the first timer (ie, the continuous charging time) is 25 minutes, after Judging, it is determined that the continuous charging time is 25 min, which is greater than the preset charging time by 20 min. At this time, the mobile phone can issue a prompt message.
  • the terminal will set the time corresponding to the first timer when the battery power is equal to the ending charging power. Cleared, in such a way as to ensure that the initial time corresponding to the first timer is 0 at the beginning of the next charging test, the continuous charging time of the battery can be continuously counted.
  • the test may be ended, and the battery may be continuously charged.
  • the present invention does not specifically limit this.
  • the terminal cools the battery.
  • the method for cooling the battery may include natural cooling or physical cooling, wherein the natural cooling may be to close all running background programs in the terminal after the battery is charged to the end of the charging power, and the battery is not allowed to be executed. Any other operation; physical cooling can be done in the terminal After all running background programs, turn on the heat sink to dissipate the battery.
  • the heat dissipating component may be a heat dissipating device built in the terminal, such as an exhaust fan, or an external heat dissipating component such as a fan or an exhaust fan.
  • step S307 can be performed. If not, the cooling is continued until the current temperature of the battery is not greater than the preset temperature.
  • the current temperature of the above battery can be obtained by a temperature sensor.
  • the preset temperature is 30 ° C.
  • the heat-dissipating control switch can be used to turn on the exhaust fan to dissipate the battery.
  • the terminal uses the temperature sensor to sense the current battery. If the temperature is 20 ° C, step S307 can be performed; if the terminal senses that the current temperature of the battery is 35 ° C by using the temperature sensor, then the cooling is continued until the current temperature of the battery is not greater than 30 ° C, and then step S307 is performed.
  • step S307 The terminal acquires the duration of the test, and detects whether the duration is less than a preset total test duration. If yes, step S308 is performed, and if no, step S309 is performed.
  • the duration of the test can be obtained by the second timer. Specifically, when the battery's power is equal to the starting charge, the terminal may turn on the second timer to count the duration of the test, and determine the duration recorded by the second timer as the duration of the test. It can be understood that the second timer is in the timed state after being turned on, and will not be cleared in the middle, until the end of the entire testing process, the timing is stopped.
  • the setting manner of the preset total test duration may be preset according to the experimental data system, or may be preset by the user according to his own needs, or may be a combination of the system preset setting and the user preset setting.
  • the invention is not limited thereto.
  • the preset total test duration can be set to 1440 (minutes) in advance as shown in FIG.
  • Step S306 cooling the battery, and performing step S307 when detecting that the current temperature of the battery is not greater than the preset temperature, or performing step S307 to detect whether the duration of the test is less than a preset total test duration, and the duration of the test is less than After the preset total test duration is preset, step S306 is performed.
  • the present invention does not specifically limit the sequence of steps S306 and S307.
  • the terminal may obtain the duration of the test by using the second timer, and when detecting that the duration is less than the preset total test time, continue the test, and call the discharge component to discharge the battery until the battery is equal to starting charging. After the battery is charged, the battery is continuously charged to perform the cycle test of charging and discharging the battery until the terminal performs the step S307 to detect that the test duration is not less than the preset. When the total test duration is long, the test is ended.
  • the terminal ends the test and generates a test report.
  • the test report may include at least one of a number of times of charging of the battery, a number of discharges, a charging duration of each charging, and a discharging duration of each discharging.
  • the above charging times and the number of discharging times can be recorded by a counter. Specifically, when the battery's power is equal to the starting charge, the terminal can call the counter to record the charge once. After the terminal performs step S303, the terminal can call the counter to record the discharge once.
  • the charging duration of each charging described above may be equal to the continuous charging time described in step S303, which is the charging duration of the battery from the start of charging to the ending of charging when charging the battery.
  • the discharge duration is the length of discharge of the battery from the end of the charge to the start of the charge when the battery is discharged after the terminal performs step S303.
  • the discharge duration can be obtained by the first timer.
  • the terminal may call the first timer to time the discharge process of the battery, and obtain the discharge duration recorded by the first timer when the battery charge is discharged from the end of the charge to the start of the charge.
  • the first timer is cleared, and the terminal enters the next test.
  • the first timer records the discharge duration, and so on, until the end of the test.
  • the test ends, and the number of times of charging, the number of discharges, the charging duration of each charging, and the discharge duration of each discharge in the test are obtained.
  • the test data is used to generate a test report by using the test data, so that the user can obtain the performance index of the battery during repeated charging and discharging according to the test report.
  • the test data obtained by the mobile phone during the test is: the total number of times the battery is charged is 3, the total number of discharges is 2, the charging time of the first charging is 20 minutes, and the second charging time is 25min, the charging time of the third charging is 30min, the first discharging time is 60min, and the second discharging time is 50min.
  • the interface of the mobile phone is shown in Figure 4b.
  • the user wants to view the test report he can input the operation command by clicking the position of the “Test Report” in the display with a finger.
  • the test report can be displayed in the interface in response to the operation instruction, and the display effect is as shown in FIG. 4c.
  • the terminal may detect a test command for testing the battery, and respond to the test command to obtain the battery power.
  • the battery When the power is not greater than the initial charge, the battery is charged until the battery charge is equal to the end charge. After the battery is equal to the end of the charging power, the battery is cooled.
  • the current temperature of the battery is not greater than the preset temperature, the length of the test is obtained, and it is detected whether the duration is less than the preset total test duration. If it is less than Continue the test, perform the step of discharging the battery until the battery is equal to the start of the charging, and continue to perform the charging and discharging test of the battery in the same way until the detection of the duration is not less than the preset total test duration, and ends.
  • Testing and generating test reports can help improve the convenience and efficiency of battery charge and discharge tests, and by generating test reports, can help to obtain the performance index of the battery during repeated charge and discharge.
  • An embodiment of the present invention further provides a terminal, where the terminal is used to perform the method of any one of the foregoing methods.
  • FIG. 5 it is a schematic block diagram of a terminal according to an embodiment of the present invention.
  • the terminal of this embodiment includes a detecting unit 50, an obtaining unit 51, a charging unit 52, and a discharging unit 53.
  • the detecting unit 50 is configured to detect a test instruction for testing the battery
  • the obtaining unit 51 is configured to obtain, according to the test instruction, a quantity of the battery
  • the charging unit 52 is configured to charge the battery when the power is not greater than the starting charging power until the battery is equal to the ending charging power;
  • the discharging unit 53 is configured to discharge the battery when the electric quantity is not less than the ending charging electric quantity until the electric quantity of the electric quantity is equal to the starting charging electric quantity;
  • the starting charging amount is less than the ending charging amount.
  • the terminal further includes:
  • a cooling unit 54 configured to cool the battery, and when the current temperature of the cooled battery is not greater than a preset temperature, triggering the discharge unit 53 when the power is not less than the end charging power The battery is discharged until the amount of power of the battery is equal to the starting charge.
  • the terminal further includes:
  • a timing unit 55 configured to time the continuous charging time of the battery
  • the prompting unit 56 is configured to send a prompt message when the continuous charging time is greater than a preset charging time, where the prompting information is used to prompt the test to fail, and the preset charging time is when the battery is charged.
  • the amount of charge of the battery is from the start of the charge to the end of the charge.
  • the terminal further includes: a determining unit 57, where:
  • the obtaining unit 51 is further configured to acquire a duration of the test.
  • the determining unit 57 is configured to: when it is determined that the duration acquired by the acquiring unit 51 is less than a preset total test duration, the triggering discharge unit 53 performs the battery when the power is not less than the ending charging power Discharge until the battery is charged equal to the starting charge.
  • the terminal further includes: a generating unit 58 configured to end the test and generate a test report when the determining unit 57 determines that the duration is not less than the preset total test duration.
  • a generating unit 58 configured to end the test and generate a test report when the determining unit 57 determines that the duration is not less than the preset total test duration.
  • the generating unit 58 is further configured to acquire the number of times of charging, the number of times of discharging, the charging duration of each charging, and the length of discharging each time of discharging; according to the number of times of charging of the battery, The number of discharges, the length of charge for each charge, and the length of discharge for each discharge generate a test report.
  • the terminal further includes: a setting unit 59, configured to preset the starting charging power amount and the ending charging power amount.
  • the detecting unit 50 detects a test command for testing the battery, and the obtaining unit 51 obtains the battery power in response to the test command, and the charging unit 52 charges the battery when the power is not greater than the initial charging power until the battery
  • the electric quantity is equal to the end of the charging electric quantity
  • the discharging unit 53 discharges the battery when the electric quantity is not less than the ending charging electric quantity until the electric quantity of the electric quantity is equal to the starting charging electric quantity, which contributes to improving the convenience and efficiency of the battery charging and discharging test.
  • FIG. 6 is a schematic block diagram of another terminal according to an embodiment of the present invention.
  • the terminal in this embodiment as shown may include one or more processors 801; one or more input devices 802, one or more output devices 803, and memory 804.
  • the above processor 801, input device 802, output device 803, and memory 804 are connected by a bus 805.
  • the memory 802 is used to store a computer program, the computer program including program instructions, and the processor 801 is configured to execute program instructions stored in the memory 802.
  • the processor 801 is configured to invoke the program instruction to execute: detecting a test command for testing a battery; and in response to the test command, acquiring a power of the battery; when the power is not greater than a starting charge, The battery is charged until the battery is equal to the end of the charge; when the charge is not less than the end charge, the battery is discharged until the battery is equal to the start charge.
  • the processor 801 may be a central processing unit (CPU), and the processor may also be another general-purpose processor, a digital signal processor (DSP). , Application Specific Integrated Circuit (ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware component, etc.
  • the general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
  • the input device 802 can include a touchpad (a test command for detecting a test of the battery), a fingerprint sensor (for collecting fingerprint information of the user and direction information of the fingerprint), a microphone, etc.
  • the output device 803 can include a display (LCD) Etc.), speakers, vibration motors, cameras, etc.
  • the memory 804 can include read only memory and random access memory and provides instructions and data to the processor 801. A portion of the memory 804 may also include a non-volatile random access memory. For example, the memory 804 can also store information of the device type.
  • the processor 801, the input device 802, and the output device 803, which are described in the embodiments of the present invention, may be implemented as described in the foregoing method embodiments.
  • the implementation of the terminal is not described here.
  • a computer readable storage medium is stored, the computer readable storage medium storing a computer program, the computer program comprising program instructions, when the program instructions are executed by a processor: detecting a test command to test the battery; in response to the test command, Taking the battery power; when the power is not greater than the initial charge, charging the battery until the battery is equal to the end charge; when the charge is not less than the end charge, The battery is discharged until the amount of power of the battery is equal to the starting charge.
  • the computer readable storage medium may be an internal storage unit of the terminal described in any of the foregoing embodiments, such as a hard disk or a memory of the terminal.
  • the computer readable storage medium may also be an external storage device of the terminal, such as a plug-in hard disk equipped on the terminal, a smart memory card (SMC), and a Secure Digital (SD) card. , Flash Card, etc.
  • the computer readable storage medium may also include both an internal storage unit of the terminal and an external storage device.
  • the computer readable storage medium is for storing the computer program and other programs and data required by the terminal.
  • the computer readable storage medium can also be used to temporarily store data that has been output or is about to be output.
  • the disclosed terminal and method may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, or an electrical, mechanical or other form of connection.
  • the units described as separate components may or may not be physically separated as The components displayed by the unit may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the embodiments of the present invention.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium.
  • the technical solution of the present invention contributes in essence or to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium.
  • a number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like, which can store program codes. .

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)
  • Telephone Function (AREA)

Abstract

A battery test method, a terminal, and a computer readable storage medium. The battery test method comprises: detecting a test instruction for testing a battery (S101); in response to the test instruction, obtaining a battery level of the battery (S102); if the battery level is less than a start charging battery level, charging the battery until the battery level of the battery is equal to a stop charging battery level (S103); and if the battery level is greater than the stop charging battery level, discharging the battery until the battery level of the battery is equal to the start charging battery level (S104). The method improves convenience and efficiency of a battery charging and discharging test.

Description

一种电池测试方法、终端及计算机可读存储介质Battery testing method, terminal and computer readable storage medium 技术领域Technical field
本发明涉及电子技术领域,尤其涉及一种电池测试方法、终端及计算机可读存储介质。The present invention relates to the field of electronic technologies, and in particular, to a battery testing method, a terminal, and a computer readable storage medium.
背景技术Background technique
现阶段,手机电池在出厂前,测试人员需要对电池进行充放电测试。目前,对手机电池进行充放电测试的方法主要是利用手机来给被测手机电池进行充放电,测试人员定时检查被测手机电池的充放电情况,这种依靠人工控制手机充放电的测试方法,测试效率低。At this stage, the tester needs to perform a charge and discharge test on the battery before the battery is shipped from the factory. At present, the method of charging and discharging the mobile phone battery is mainly to use the mobile phone to charge and discharge the battery of the tested mobile phone, and the tester regularly checks the charging and discharging condition of the battery of the tested mobile phone, and the test method for manually controlling the charging and discharging of the mobile phone is The test is inefficient.
发明内容Summary of the invention
本发明实施例提供了一种电池测试方法、终端及计算机可读存储介质,有助于提高电池充放电测试的便捷性以及效率。Embodiments of the present invention provide a battery testing method, a terminal, and a computer readable storage medium, which are helpful for improving the convenience and efficiency of battery charging and discharging testing.
第一方面,本发明实施例提供了一种电池测试方法,该方法包括:In a first aspect, an embodiment of the present invention provides a battery testing method, including:
检测对电池进行测试的测试指令;Testing test instructions for testing the battery;
响应所述测试指令,获取所述电池的电量;Retrieving the amount of power of the battery in response to the test instruction;
在所述电量不大于开始充电电量时,对所述电池进行充电,直至所述电池的电量等于结束充电电量;When the power is not greater than the initial charge, the battery is charged until the battery is equal to the end charge;
在所述电量不小于所述结束充电电量时,对所述电池进行放电,直至所述电池的电量等于所述开始充电电量;Discharging the battery when the amount of power is not less than the ending charging amount until the amount of power of the battery is equal to the starting charging amount;
其中,所述开始充电电量小于所述结束充电电量。The starting charging amount is less than the ending charging amount.
可选地,在所述电量不大于开始充电电量时,对所述电池进行充电,直至所述电池的电量等于结束充电电量之后,对所述电池进行冷却;在冷却后的所述电池的当前温度不大于预设温度时,执行所述在所述电量不小于所述结束充电电量时,对所述电池进行放电,直至所述电池的电量等于所述开始充电电量的步骤。Optionally, when the power is not greater than the initial charge, the battery is charged until the battery is equal to the end charge, and the battery is cooled; the current battery after cooling When the temperature is not greater than the preset temperature, performing the discharging of the battery when the amount of power is not less than the ending charging amount until the battery is equal to the starting charging amount.
可选地,对所述电池的持续充电时间进行计时;在所述持续充电时间大于预设充电时间时,发出提示信息,所述提示信息用于提示所述测试失败,所述 预设充电时间为对所述电池进行充电时所述电池的电量从所述开始充电电量到所述结束充电电量的充电时间。Optionally, the continuous charging time of the battery is counted; when the continuous charging time is greater than the preset charging time, prompt information is sent, where the prompt information is used to prompt the test to fail, The preset charging time is a charging time of the battery power from the start charging amount to the ending charging amount when the battery is charged.
可选地在所述电量不大于开始充电电量时,对所述电池进行充电,直至所述电池的电量等于结束充电电量之后,获取所述测试的时长;在所述时长小于预设总测试时长时,执行所述在所述电量不小于所述结束充电电量时,对所述电池进行放电,直至所述电池的电量等于所述开始充电电量的步骤。Optionally, when the power is not greater than the initial charge, the battery is charged until the battery is equal to the end of the charge, and the duration of the test is obtained; and the duration is less than the preset total test duration. And performing the step of discharging the battery when the electric quantity is not less than the end charging electric quantity until the electric quantity of the electric quantity is equal to the starting charging electric quantity.
可选地,所述获取已响应所述测试指令的时长之后,在所述时长不小于所述预设总测试时长时,结束所述测试并生成测试报告。Optionally, after the obtaining the response time of the test instruction, when the duration is not less than the preset total test duration, the testing is ended and a test report is generated.
可选地,所述生成测试报告的具体实现方式为:获取所述电池的充电次数、放电次数、每次充电的充电时长以及每次放电的放电时长;根据所述电池的所述充电次数、所述放电次数、所述每次充电的充电时长以及所述每次放电的放电时长生成测试报告。Optionally, the specific implementation manner of generating the test report is: acquiring the number of times of charging, the number of discharges, the charging duration of each charging, and the discharging duration of each discharging; according to the charging times of the battery, The number of discharges, the length of charge for each charge, and the length of discharge for each discharge generate a test report.
可选地,所述响应所述测试指令,获取所述电池的电量之前,预先设置所述开始充电电量和所述结束充电电量。Optionally, in response to the test instruction, before the power of the battery is acquired, the starting charging power and the ending charging power are preset.
第二方面,本发明实施例提供了一种终端,该终端包括用于执行上述第一方面的方法的单元。In a second aspect, an embodiment of the present invention provides a terminal, where the terminal includes a unit for performing the method of the foregoing first aspect.
第三方面,本发明实施例提供了另一种终端,包括处理器、输入设备、输出设备和存储器,所述处理器、输入设备、输出设备和存储器相互连接,其中,所述存储器用于存储支持终端执行上述方法的计算机程序,所述计算机程序包括程序指令,所述处理器被配置用于调用所述程序指令,执行上述第一方面的方法。In a third aspect, an embodiment of the present invention provides another terminal, including a processor, an input device, an output device, and a memory, where the processor, the input device, the output device, and the memory are connected to each other, wherein the memory is used for storage. A computer program supporting a terminal for performing the above method, the computer program comprising program instructions, the processor being configured to invoke the program instructions to perform the method of the first aspect above.
第四方面,本发明实施例提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序包括程序指令,所述程序指令当被处理器执行时使所述处理器执行上述第一方面的方法。In a fourth aspect, an embodiment of the present invention provides a computer readable storage medium, where the computer readable storage medium stores a computer program, where the computer program includes program instructions, and when the program instructions are executed by the processor, The processor performs the method of the first aspect above.
本发明实施例中,终端可以检测对电池进行测试的测试指令,并响应测试指令,获取电池的电量,在电量不大于开始充电电量时,对电池进行充电,直至电池的电量等于结束充电电量,在电量不小于结束充电电量时,对电池进行放电,直至电池的电量等于开始充电电量,有助于提高电池充放电测试的便捷性以及效率。 In the embodiment of the present invention, the terminal may detect a test command for testing the battery, and respond to the test command to obtain the battery power. When the power is not greater than the initial charge, the battery is charged until the battery charge is equal to the end charge. When the power is not less than the end of the charge, the battery is discharged until the battery is equal to the start of the charge, which helps to improve the convenience and efficiency of the battery charge and discharge test.
附图说明DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings to be used in the embodiments will be briefly described below. Obviously, the drawings in the following description are only some of the present invention. For the embodiments, those skilled in the art can obtain other drawings according to the drawings without any creative work.
图1为本发明实施例提供的一种电池测试方法的流程示意图;1 is a schematic flow chart of a battery testing method according to an embodiment of the present invention;
图2为本发明实施例提供的一种终端操作界面的示意图;2 is a schematic diagram of a terminal operation interface according to an embodiment of the present invention;
图3为本发明实施例提供的另一种电池测试方法的流程示意图;3 is a schematic flow chart of another battery testing method according to an embodiment of the present invention;
图4a为本发明实施例提供的另一种终端操作界面的示意图;4a is a schematic diagram of another terminal operation interface according to an embodiment of the present invention;
图4b为本发明实施例提供的又一种终端操作界面的示意图;4b is a schematic diagram of still another terminal operation interface according to an embodiment of the present invention;
图4c为本发明实施例提供的又一种终端操作界面的示意图;4c is a schematic diagram of still another terminal operation interface according to an embodiment of the present invention;
图5为本发明实施例提供的一种终端的示意性框图;FIG. 5 is a schematic block diagram of a terminal according to an embodiment of the present disclosure;
图6为本发明实施例提供的另一种终端的示意性框图。FIG. 6 is a schematic block diagram of another terminal according to an embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, but not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
在终端上执行的各种应用程序可以使用诸如触摸敏感表面的至少一个公共物理用户接口设备。可以在应用程序之间和/或相应应用程序内调整和/或改变触摸敏感表面的一个或多个功能以及终端上显示的相应信息。这样,终端的公共物理架构(例如,触摸敏感表面)可以支持具有对用户而言直观且透明的用户界面的各种应用程序。Various applications executing on the terminal may use at least one common physical user interface device such as a touch sensitive surface. One or more functions of the touch sensitive surface and corresponding information displayed on the terminal can be adjusted and/or changed within the application and/or within the respective application. In this way, the common physical architecture of the terminal (eg, a touch-sensitive surface) can support a variety of applications with a user interface that is intuitive and transparent to the user.
需要说明的是,本发明实施例所描述的测试指令为触发电池进入充放电测试的指令,该测试指令的具体输入方式可以包括滑动、按压、点击、手势感应、语音等。其中,所描述的电池主要为终端电池。It should be noted that the test command described in the embodiment of the present invention is an instruction for triggering the battery to enter a charge and discharge test, and the specific input manner of the test command may include sliding, pressing, clicking, gesture sensing, voice, and the like. Among them, the battery described is mainly a terminal battery.
本发明实施例所描述的测试为充放电测试,可以包括对电池的充电测试和放电测试,在测试过程中,对电池的充电和放电是循环执行的。其中,可以将 电池的电量等于开始充电电量记为一次充放电测试和充电测试的开始,可以将电池从开始充电电量充电至结束充电电量记为一次充电测试的结束和一次放电测试的开始,可以将电池从结束充电电量放电至开始充电电量记为一次放电测试的结束和下一次充电测试的开始,其中,一次充电测试的结束也可能是一次充放电测试的结束。可以理解的是,一次充放电测试可以包括至少一次充电测试和放电测试。The test described in the embodiment of the present invention is a charge and discharge test, which may include a charge test and a discharge test on the battery, in which charging and discharging of the battery are performed cyclically. Among them, you can The battery's charge is equal to the start charge. It is recorded as the start of a charge and discharge test and a charge test. The battery can be charged from the start charge to the end of the charge. The end of the charge test and the start of a discharge test can be used to end the battery. The discharge of the charge to the start of the charge is recorded as the end of the discharge test and the start of the next charge test, wherein the end of the charge test may also be the end of a charge and discharge test. It can be understood that the primary charge and discharge test can include at least one charge test and discharge test.
参见图1,图1是本发明实施例提供的一种电池测试方法的流程示意图,如图1所示,该电池测试方法可包括:Referring to FIG. 1 , FIG. 1 is a schematic flowchart of a battery testing method according to an embodiment of the present invention. As shown in FIG. 1 , the battery testing method may include:
S101、终端检测对电池进行测试的测试指令。S101. The terminal detects a test instruction for testing the battery.
S102、终端响应所述测试指令,获取所述电池的电量。S102. The terminal acquires the power of the battery in response to the test instruction.
具体实现中,当用户想要对电池进行充放电测试时,可以通过滑动、按压、点击、手势感应、语音等方式在显示屏的指定位置输入测试指令,此时,终端检测到用户输入的测试指令时,就可以响应该测试指令,获取电池的电量。In a specific implementation, when the user wants to perform a charge and discharge test on the battery, the test command can be input at a specified position on the display screen by sliding, pressing, clicking, gesture sensing, voice, etc., at this time, the terminal detects the user input test. When the command is issued, the test command can be used to obtain the battery power.
可选地,终端可以通过注册Android广播的方式接收电池电量变化的通知,从而获取到电池的电量。其中,该广播可以为常驻型广播,即当电池测试对应的应用程序关闭了,同样也可以接收到电池电量变化的通知,它的注册方式就是在应用程序的AndroidManifast.xml中进行注册,这种注册方式通常又被称作静态注册,这种方式可以理解为通过清单文件注册的广播是交给操作系统去处理的;该广播还可以为非常驻型广播,即当电池测试对应的应用程序关闭了,广播自然就没有了,这种注册方式也叫动态注册,这种方式可以理解为通过代码注册的广播是和注册者关联在一起的。Optionally, the terminal may receive the notification of the battery power change by registering the Android broadcast, thereby obtaining the battery power. The broadcast can be a resident broadcast, that is, when the application corresponding to the battery test is turned off, the notification of the battery power change can also be received, and the registration method is to register in the AndroidManifast.xml of the application. The registration method is usually called static registration. This way, it can be understood that the broadcast registered through the manifest file is handed over to the operating system for processing; the broadcast can also be a non-resident broadcast, that is, when the battery test corresponds to the application. Closed, the broadcast is naturally gone. This registration method is also called dynamic registration. This way can be understood as the broadcast registered by the code is associated with the registrant.
例如,若终端为手机,当用户想要对电池进行测试时,就可以进入电池测试对应的界面,如图2所示,用户就可以使用手机点击“点击开始测试”对应的位置输入测试指令,手机检测到用户输入的测试指令,就可以响应该测试指令,获取电池的电量。For example, if the terminal is a mobile phone, when the user wants to test the battery, the user can enter the interface corresponding to the battery test. As shown in FIG. 2, the user can use the mobile phone to click the position corresponding to the “click to start test” to input the test command. When the mobile phone detects the test command input by the user, it can respond to the test command to obtain the battery power.
S103、在所述电量不大于开始充电电量时,终端对所述电池进行充电,直至所述电池的电量等于结束充电电量。S103. When the power is not greater than the starting charging power, the terminal charges the battery until the battery is equal to the ending charging power.
S104、在所述电量不小于所述结束充电电量时,终端对所述电池进行放 电,直至所述电池的电量等于所述开始充电电量。S104. The terminal places the battery when the power is not less than the end charging power. Electric until the battery is charged equal to the starting charge.
其中,上述开始充电电量和结束充电电量可以预先设置,设置的方式可以是根据实验数据系统预先设置的,也可以是用户根据自身的需求预先设置的,还可以是系统预先设置与用户预先设置两者相结合的方式,本发明对此不作限定。其中,开始充电电量小于结束充电电量。The foregoing starting charging power and the ending charging power may be preset, and the setting manner may be preset according to the experimental data system, or may be preset by the user according to the needs of the user, or may be preset by the system and preset by the user. The present invention is not limited in this way. Among them, the starting charging amount is less than the ending charging amount.
例如,如图2所示,用户可以根据自己的需求将开始充电电量设置为50,结束充电电量设置为100。For example, as shown in FIG. 2, the user can set the starting charging power to 50 according to his own needs, and the ending charging power is set to 100.
具体实现中,终端执行完步骤S102后,可以检测电池的电量是否不大于开始充电电量,在该电量不大于开始充电电量时,调用充电组件对电池进行充电,充电过程中,电池的电量会不断提高,在电池的电量等于结束充电电量时,充电暂停。进一步的,终端可以调用放电组件对电池进行放电,放电过程中,电池的电量会不断降低,在电池的电量等于开始充电电量时,放电暂停,终端又可以再次调用充电组件对电池进行充电,在充电后的电池电量等于结束充电电量时,又再次调用放电组件对电池进行放电,按照同样的方法,不断循环进行电池的充放电测试。In a specific implementation, after the terminal performs step S102, it can detect whether the battery power is not greater than the starting charging power. When the power is not greater than the starting charging power, the charging component is called to charge the battery. During the charging process, the battery power is continuously charged. Raise, when the battery's charge is equal to the end of the charge, the charge is paused. Further, the terminal can call the discharge component to discharge the battery. During the discharge process, the battery power is continuously reduced. When the battery charge is equal to the start of the charge, the discharge is suspended, and the terminal can call the charging component to charge the battery again. When the battery power after charging is equal to the end of the charging power, the discharge component is again called to discharge the battery, and the battery is charged and discharged continuously according to the same method.
或者,终端在执行步骤S102后,检测出电池的电量大于开始电量时,可以调用放电组件对电池进行放电,直至电池的电量等于开始充电电量再开始本次测试,执行步骤S103。Alternatively, after detecting that the battery power is greater than the starting power after performing step S102, the terminal may call the discharging component to discharge the battery until the battery power is equal to the starting charging power, and then start the test, and step S103 is performed.
其中,上述放电组件可以包括摄像头、振动电机、显示屏、扬声器中的至少一种。The discharge assembly may include at least one of a camera, a vibration motor, a display screen, and a speaker.
具体地,如果在测试过程中,终端检测到电池的电量不小于结束充电电量时,可以控制振动电机不断振动,也可以开启摄像头不断拍摄,还可以调亮显示屏不断显示,实现对电量的快速消耗,达到放电的目的。Specifically, if the terminal detects that the battery power is not less than the end charging power during the testing process, the vibration motor can be controlled to continuously vibrate, and the camera can be continuously shot, and the display can be continuously displayed to achieve rapid power consumption. Consumption, to achieve the purpose of discharge.
可选地,如果放电组件为显示屏和扬声器,终端可以预先在本地存储一段测试视频,在测试过程中,当终端检测到电池的电量不小于结束充电电量时,就可以通过视频播放器播放这段测试视频,调用终端的显示屏和扬声器,实现对电量的快速消耗,达到放电的目的。Optionally, if the discharge component is a display screen and a speaker, the terminal may store a test video in advance locally. During the test, when the terminal detects that the battery power is not less than the end charge power, the terminal may play the video through the video player. The segment test video calls the terminal's display screen and speakers to achieve rapid consumption of power and achieve discharge.
需要说明的是,只要可以达到消耗电池电量目的的实现方式,均可以成为本发明实施例中放电的具体实现方式,本发明对此不做具体限定。 It should be noted that, as long as the implementation of the battery power consumption can be achieved, it can be a specific implementation of the discharge in the embodiment of the present invention, which is not specifically limited in the present invention.
其中,充电组件可以包括充电控制开关。具体地,测试过程中,终端检测到电量不大于开始充电电量时,可以触发充电控制开关连接电源,对电池进行充电。Wherein, the charging component can include a charging control switch. Specifically, during the testing process, when the terminal detects that the power is not greater than the starting charging power, the terminal may trigger the charging control switch to connect to the power source to charge the battery.
例如,若终端为手机,预先设置的开始充电电量为15,结束充电电量为100,手机执行步骤S102获取到电池的电量为10。此时,手机检测出电池的电量10小于开始充电电量15,就可以触发充电控制开关连接电源,对电池进行充电,直到将电池的电量从15充电到100,暂停充电并调亮显示屏亮度快速消耗电量,对电池进行放电,当电池的电量从100放电至15时,又再次触发充电控制开关连接电源,对电池进行充电直至电量达到100又再次放电,以此类推,循环执行对电池的充电和放电测试。For example, if the terminal is a mobile phone, the preset set charging power is 15 and the ending charging power is 100, and the mobile phone performs step S102 to obtain the battery's power is 10. At this time, the mobile phone detects that the battery power 10 is less than the starting charging power 15, and can trigger the charging control switch to connect the power supply, and charge the battery until the battery is charged from 15 to 100, suspend charging and brighten the display brightness. Consuming power, discharging the battery. When the battery's power is discharged from 100 to 15, the charging control switch is again triggered to connect to the power supply, charging the battery until the battery reaches 100 and discharging again, and so on. And discharge test.
可以理解的是,在上述测试的进行过程中,对电池的充电测试和放电测试是可以循环执行的。在循环执行的过程中,用户想要停止本次测试,可以随时输入停止测试的操作指令,终端接收到该操作指令,就可以响应该操作指令,结束本次测试。It can be understood that the charging test and the discharge test of the battery can be performed cyclically during the above test. In the process of loop execution, the user wants to stop the test, and can input the operation instruction for stopping the test at any time. When the terminal receives the operation instruction, the terminal can respond to the operation instruction and end the test.
本发明实施例中,终端可以检测对电池进行测试的测试指令,并响应测试指令,获取电池的电量,在电量不大于开始充电电量时,对电池进行充电,直至电池的电量等于结束充电电量,在电量不小于结束充电电量时,对电池进行放电,直至电池的电量等于开始充电电量,有助于提高电池充放电测试的便捷性以及效率。In the embodiment of the present invention, the terminal may detect a test command for testing the battery, and respond to the test command to obtain the battery power. When the power is not greater than the initial charge, the battery is charged until the battery charge is equal to the end charge. When the power is not less than the end of the charge, the battery is discharged until the battery is equal to the start of the charge, which helps to improve the convenience and efficiency of the battery charge and discharge test.
参见图3,图3是本发明实施例提供的另一种电池测试方法的流程示意图,如图3所示,该电池测试方法可包括:Referring to FIG. 3, FIG. 3 is a schematic flowchart diagram of another battery testing method according to an embodiment of the present invention. As shown in FIG. 3, the battery testing method may include:
S301、终端检测对电池进行测试的测试指令。S301. The terminal detects a test instruction for testing the battery.
S302、终端响应所述测试指令,获取所述电池的电量。S302. The terminal acquires the power of the battery in response to the test instruction.
可选地,终端响应测试指令,获取到电池的电量后,可以首先判断电池的电量是否等于开始充电电量,若是,则执行步骤S303;若否,则进一步判断电池的电量是否大于开始充电电量,若大于开始充电电量,则调用放电组件对电池进行放电,直至电池的电量等于开始充电电量时,再开始本次测试,执行步骤S303;若小于开始充电电量,则调用充电组件对电池进行充电,直至电 池的电量等于开始充电电量时,再开始本次测试,执行步骤S303。Optionally, the terminal responds to the test instruction, and after obtaining the power of the battery, first determining whether the battery power is equal to the starting charging power, and if yes, executing step S303; if not, determining whether the battery power is greater than the starting charging power. If it is greater than the starting charging power, the discharging component is called to discharge the battery until the battery is equal to the starting charging power, and then the test is started, step S303 is performed; if the charging power is less than the starting charging power, the charging component is called to charge the battery. Until electricity When the battery power is equal to the start of the charging power, the test is started again, and step S303 is performed.
S303、在所述电量不大于开始充电电量时,终端对所述电池进行充电,直至所述电池的电量等于结束充电电量。S303. When the power is not greater than the starting charging power, the terminal charges the battery until the battery is equal to the ending charging power.
S304、终端对所述电池的持续充电时间进行计时,检测所述持续充电时间是否大于预设充电时间,若是,则执行步骤S305,若否,则执行步骤S306。S304. The terminal counts the continuous charging time of the battery, and detects whether the continuous charging time is greater than a preset charging time. If yes, step S305 is performed, and if no, step S306 is performed.
S305、终端发出提示信息,所述提示信息用于提示所述测试失败。S305. The terminal sends a prompt message, where the prompt information is used to prompt the test to fail.
其中,预设充电时间为对电池进行充电时,电池的电量从开始充电电量到结束充电电量的充电时间。该预设充电时间的设置方式可以是根据实验数据系统预先设置的,也可以是用户根据自身的需求预先设置的,还可以是系统预先设置与用户预先设置两者相结合的方式,本发明对此不作限定。例如,该预设充电时间可以如图2所示的超时阀值,预先设置为30(分)。The preset charging time is a charging time when the battery is charged, the battery power is from the start of charging to the end of charging. The setting manner of the preset charging time may be preset according to the experimental data system, or may be preset by the user according to the needs of the user, or may be a combination of the system preset setting and the user preset setting, and the present invention is This is not limited. For example, the preset charging time may be set to 30 (minutes) in advance as shown in FIG.
其中,所述持续充电时间,为电池的电量等于开始充电电量后,充电组件对电池进行持续充电的时间。The continuous charging time is a time when the battery component is continuously charged by the charging component after the battery is charged.
其中,在持续充电时间大于预设充电时间时,终端可以通过震动、闪光灯闪烁、语音提示、红屏显示或者显示提示内容(如“测试失败”)等提示方式对用户进行提示,从而达到提醒用户及时处理故障的目的。Wherein, when the continuous charging time is greater than the preset charging time, the terminal may prompt the user by prompting, such as vibration, flashing, voice prompting, red screen display or displaying prompt content (such as “test failure”), thereby reaching the user. Handle the purpose of the fault in time.
具体实现中,在电池的电量等于开始充电电量时,终端可以触发充电组件对电池进行充电,并开启第一计时器按照预设充电时间对电池的持续充电时间进行倒计时,在第一计时器对应的时间为零时,检测电池的电量是否小于结束充电电量,此时,如果终端检测出电池的电量小于结束充电电量,就可以发出用于提示用户测试进行失败的提示信息。In a specific implementation, when the battery power is equal to the starting charging power, the terminal may trigger the charging component to charge the battery, and turn on the first timer to count down the continuous charging time of the battery according to the preset charging time, corresponding to the first timer. When the time is zero, it is detected whether the battery power is less than the end charging power. At this time, if the terminal detects that the battery power is less than the ending charging power, it may issue a prompt message for prompting the user to fail the test.
或者,在第一计时器对应的时间为零时,终端检测出电池的电量不小于结束充电电量,此时终端就不发出任何提示信息,继续执行后续步骤。Alternatively, when the time corresponding to the first timer is zero, the terminal detects that the battery power is not less than the end charging power, and the terminal does not issue any prompt information, and continues to perform the subsequent steps.
可以理解的是,在测试中,电池的充电和放电是一个循环进行的过程,如果将电池的电量等于开始充电电量记为一次充电测试的开始,将电池的电量从开始充电电量充电至结束充电电量记为一次充电测试的结束。那么就意味着每次充电测试的开始,终端都可以触发第一计时器按照预设充电时间对电池的持续充电时间进行倒计时。It can be understood that in the test, the charging and discharging of the battery is a cyclic process. If the battery is equal to the starting charging capacity, it is recorded as the beginning of the charging test, and the battery is charged from the starting charging capacity to the end charging. The battery is recorded as the end of a charge test. Then it means that each time the charging test starts, the terminal can trigger the first timer to count down the continuous charging time of the battery according to the preset charging time.
举例来说,若终端为手机,结束充电电量为90,第一计时器设置的倒计 时时间(即预设充电时间)为10min。测试过程中,在电池的电量等于开始充电电量时,意味着一次充电测试的开始,此时,手机就可以触发充电控制开关连接电源对电池进行充电,并开启第一计时器进行倒计时,在第一计时器对应的时间为零时,手机检测电池的电量为20,经过判断,确定电池的电量20小于结束充电电量90,这意味着可能出现了电池损坏的情况,此时,手机就可以在显示屏上显示提示内容,如“主人,充电出现故障”,其显示效果如图4a所示。For example, if the terminal is a mobile phone, the end charging power is 90, and the first timer is set to count down. The time (ie preset charging time) is 10 min. During the test, when the battery's power is equal to the start of the charge, it means the start of a charge test. At this time, the phone can trigger the charge control switch to connect the power to charge the battery, and turn on the first timer to count down. When the time corresponding to a timer is zero, the mobile phone detects that the battery power is 20, and after judging, it is determined that the battery power 20 is less than the end charging power 90, which means that the battery may be damaged. At this time, the mobile phone can be in the The prompt content is displayed on the display, such as “Master, charging failure”, and its display effect is shown in Figure 4a.
可选地,在电池的电量等于开始充电电量时,终端对电池进行充电的同时还可以触发第一计时器对电池的持续充电时间进行计时,在第一计时器对应的时间(即持续充电时间)大于预设充电时间时,发出用于提示用户测试进行失败的提示信息。其中,在充电过程中,终端检测到电池的电量等于结束充电电量时,对第一计时器对应的时间进行清零。可以理解的是,每次充电测试开始时,第一计时器对应的初始时间均为0。Optionally, when the power of the battery is equal to the starting charging power, the terminal can also trigger the first timer to time the continuous charging time of the battery while charging the battery, and the time corresponding to the first timer (ie, the continuous charging time) When the preset charging time is greater than the preset charging time, a prompt message is sent to prompt the user to fail the test. In the charging process, when the terminal detects that the battery power is equal to the end of the charging power, the time corresponding to the first timer is cleared. It can be understood that the initial time corresponding to the first timer is 0 every time the charging test starts.
举例来说,若终端为手机,预设充电时间为20min,手机响应测试指令,获取电池的电量,在电池的电量等于开始充电电量时,第一次充电测试开始。手机触发充电控制开关对电池进行充电,并开启第一计时器对电池的持续充电时间进行计时,充电过程中,如果手机检测出第一计时器对应的时间(即持续充电时间)为25min,经过判断,确定出持续充电时间25min大于预设充电时间20min,此时,手机就可以发出提示信息。For example, if the terminal is a mobile phone, the preset charging time is 20 minutes, and the mobile phone responds to the test command to obtain the battery power. When the battery power is equal to the starting charging power, the first charging test starts. The mobile phone triggers the charging control switch to charge the battery, and turns on the first timer to time the battery's continuous charging time. During the charging process, if the mobile phone detects the time corresponding to the first timer (ie, the continuous charging time) is 25 minutes, after Judging, it is determined that the continuous charging time is 25 min, which is greater than the preset charging time by 20 min. At this time, the mobile phone can issue a prompt message.
或者,若在第一次充电测试中,没有出现第一计时器对应的时间大于预设充电时间的情况,那么终端就会在电池的电量等于结束充电电量时,将第一计时器对应的时间清零,采用这样的方式来保证在下一次充电测试开始的时候,第一计时器对应的初始时间为0,可以继续对电池的持续充电时间进行计时。Alternatively, if, in the first charging test, the time corresponding to the first timer does not exceed the preset charging time, the terminal will set the time corresponding to the first timer when the battery power is equal to the ending charging power. Cleared, in such a way as to ensure that the initial time corresponding to the first timer is 0 at the beginning of the next charging test, the continuous charging time of the battery can be continuously counted.
需要说明的是,在终端检测出持续充电时间大于预设充电时间,发出提示信息后,可以结束本次测试,也可以继续对电池进行充电,本发明对此不做具体限定。It should be noted that, after the terminal detects that the continuous charging time is greater than the preset charging time, and after the prompting information is sent, the test may be ended, and the battery may be continuously charged. The present invention does not specifically limit this.
S306、终端对所述电池进行冷却。S306. The terminal cools the battery.
其中,上述对电池进行冷却的方式可以包括自然冷却或者物理冷却,其中自然冷却,可以为在电池的电量充电至结束充电电量后,关闭终端中所有运行的后台程序,并将电池静置不执行任何其他操作;物理冷却可以为关闭终端中 所有运行的后台程序后,开启散热组件对电池进行散热。其中,散热组件可以为终端内置的散热装置如排风扇,也可以是外部的散热组件如风扇、排风扇等。The method for cooling the battery may include natural cooling or physical cooling, wherein the natural cooling may be to close all running background programs in the terminal after the battery is charged to the end of the charging power, and the battery is not allowed to be executed. Any other operation; physical cooling can be done in the terminal After all running background programs, turn on the heat sink to dissipate the battery. The heat dissipating component may be a heat dissipating device built in the terminal, such as an exhaust fan, or an external heat dissipating component such as a fan or an exhaust fan.
可以理解的是,对电池的充电或者放电过程均会产生许多的热量,使电池的温度升高,过高的温度可能会导致电池膨胀,出现鼓包现象,减小电池的寿命。因此,在测试过程中,对电池进行冷却,可以一定程度上减小测试过程中电池的损坏。It can be understood that the charging or discharging process of the battery generates a lot of heat, which causes the temperature of the battery to rise. Excessive temperature may cause the battery to expand, bulge and reduce the life of the battery. Therefore, during the test, cooling the battery can reduce the damage of the battery during the test to some extent.
具体实现中,终端对电池进行冷却后,可以检测电池的当前温度是否不大于预设温度,若是,则可以执行步骤S307,若否,则继续冷却,直到电池的当前温度不大于预设温度。其中,上述电池的当前温度可以通过温度传感器获取。In a specific implementation, after the terminal cools the battery, it can detect whether the current temperature of the battery is not greater than the preset temperature. If yes, step S307 can be performed. If not, the cooling is continued until the current temperature of the battery is not greater than the preset temperature. Wherein, the current temperature of the above battery can be obtained by a temperature sensor.
例如,若终端为手机,预设温度为30℃,在终端执行完步骤S303后,可以通过散热控制开关开启排风扇对电池进行散热,在散热过程中,若终端利用温度传感器感测出电池的当前温度为20℃,则可以执行步骤S307;若终端利用温度传感器感测出电池的当前温度为35℃,那么就继续冷却,直到电池的当前温度不大于30℃时,再执行步骤S307。For example, if the terminal is a mobile phone, the preset temperature is 30 ° C. After the terminal performs step S303, the heat-dissipating control switch can be used to turn on the exhaust fan to dissipate the battery. During the heat-dissipation process, if the terminal uses the temperature sensor to sense the current battery. If the temperature is 20 ° C, step S307 can be performed; if the terminal senses that the current temperature of the battery is 35 ° C by using the temperature sensor, then the cooling is continued until the current temperature of the battery is not greater than 30 ° C, and then step S307 is performed.
S307、终端获取所述测试的时长,并检测所述时长是否小于预设总测试时长,若是,则执行步骤S308,若否,则执行步骤S309。S307. The terminal acquires the duration of the test, and detects whether the duration is less than a preset total test duration. If yes, step S308 is performed, and if no, step S309 is performed.
S308、在所述电量不小于所述结束充电电量时,终端对所述电池进行放电,直至所述电池的电量等于所述开始充电电量。S308. When the power is not less than the ending charging power, the terminal discharges the battery until the power of the battery is equal to the starting charging power.
其中,该测试的时长可以通过第二计时器获取。具体地,在电池的电量等于开始充电电量时,终端可以开启第二计时器对测试的时长进行计时,并将第二计时器记录的时长确定为测试的时长。可以理解的是,该第二计时器在开启后,一直处于计时状态,中途不会清零,直至整个测试过程结束,才会停止计时。The duration of the test can be obtained by the second timer. Specifically, when the battery's power is equal to the starting charge, the terminal may turn on the second timer to count the duration of the test, and determine the duration recorded by the second timer as the duration of the test. It can be understood that the second timer is in the timed state after being turned on, and will not be cleared in the middle, until the end of the entire testing process, the timing is stopped.
其中,该预设总测试时长的设置方式可以是根据实验数据系统预先设置的,也可以是用户根据自身的需求预先设置的,还可以是系统预先设置与用户预先设置两者相结合的方式,本发明对此不作限定。例如,该预设总测试时长可以如图2所示的测试时间,预先设置为1440(分)。The setting manner of the preset total test duration may be preset according to the experimental data system, or may be preset by the user according to his own needs, or may be a combination of the system preset setting and the user preset setting. The invention is not limited thereto. For example, the preset total test duration can be set to 1440 (minutes) in advance as shown in FIG.
需要说明的是,在测试过程中,终端在执行完步骤S303后,可以先执行 步骤S306对电池进行冷却,并在检测出电池的当前温度不大于预设温度时再执行步骤S307,也可以先执行步骤S307检测测试的时长是否小于预设总测试时长,并在测试的时长小于预设总测试时长后再执行步骤S306。本发明对步骤S306和步骤S307的先后顺序,不做具体限定。It should be noted that, in the testing process, after performing the step S303, the terminal may perform the first execution. Step S306: cooling the battery, and performing step S307 when detecting that the current temperature of the battery is not greater than the preset temperature, or performing step S307 to detect whether the duration of the test is less than a preset total test duration, and the duration of the test is less than After the preset total test duration is preset, step S306 is performed. The present invention does not specifically limit the sequence of steps S306 and S307.
具体实现中,终端可以通过第二计时器获取测试的时长,并在检测出该时长小于预设总测试时间时,继续本次测试,调用放电组件对电池进行放电,直至电池的电量等于开始充电电量,并在电池的电量等于开始充电电量后,继续执行步骤S303,采用同样的方法不断执行对电池充电和放电的循环测试,直到终端在执行步骤S307时,检测出测试的时长不小于预设总测试时长时,结束本次测试。In a specific implementation, the terminal may obtain the duration of the test by using the second timer, and when detecting that the duration is less than the preset total test time, continue the test, and call the discharge component to discharge the battery until the battery is equal to starting charging. After the battery is charged, the battery is continuously charged to perform the cycle test of charging and discharging the battery until the terminal performs the step S307 to detect that the test duration is not less than the preset. When the total test duration is long, the test is ended.
S309、终端结束所述测试并生成测试报告。S309. The terminal ends the test and generates a test report.
其中,所述测试报告可以包括测试过程中电池的充电次数、放电次数、每次充电的充电时长以及每次放电的放电时长中的至少一种。Wherein, the test report may include at least one of a number of times of charging of the battery, a number of discharges, a charging duration of each charging, and a discharging duration of each discharging.
其中,上述充电次数和放电次数可以通过计数器记录。具体地,在电池的电量等于开始充电电量时,终端可以调用计数器记录充电一次,在终端执行完步骤S303后,终端可以调用计数器记录放电一次。Wherein, the above charging times and the number of discharging times can be recorded by a counter. Specifically, when the battery's power is equal to the starting charge, the terminal can call the counter to record the charge once. After the terminal performs step S303, the terminal can call the counter to record the discharge once.
其中,上述每次充电的充电时长可以等于步骤S303中描述的持续充电时间,该充电时长为对电池进行充电时,电池的电量从开始充电电量到结束充电电量的充电时长。上述放电时长为终端执行步骤S303后,对电池进行放电时,电池的电量从结束充电电量到开始充电电量的放电时长。The charging duration of each charging described above may be equal to the continuous charging time described in step S303, which is the charging duration of the battery from the start of charging to the ending of charging when charging the battery. The discharge duration is the length of discharge of the battery from the end of the charge to the start of the charge when the battery is discharged after the terminal performs step S303.
其中,该放电时长可以通过第一计时器获取。具体地,终端可以在执行步骤S306后,调用第一计时器对电池的放电过程进行计时,并在电池的电量从结束充电电量放电至开始充电电量时,获取第一计时器记录的放电时长并将第一计时器清零,在终端进入下一次测试,执行完步骤S306后,再次开启第一计时器记录放电时长,以此类推,直到测试结束。The discharge duration can be obtained by the first timer. Specifically, after performing step S306, the terminal may call the first timer to time the discharge process of the battery, and obtain the discharge duration recorded by the first timer when the battery charge is discharged from the end of the charge to the start of the charge. The first timer is cleared, and the terminal enters the next test. After step S306 is executed, the first timer records the discharge duration, and so on, until the end of the test.
具体实现中,当终端确定出测试的时长不小于预设总测试时长时,结束测试,并获取本次测试中电池的充电次数、放电次数、每次充电的充电时长以及每次放电的放电时长等测试数据,进而利用该测试数据生成测试报告,以便于用户根据该测试报告,得到电池在重复的充放电过程中的性能指数。 In a specific implementation, when the terminal determines that the duration of the test is not less than the preset total test duration, the test ends, and the number of times of charging, the number of discharges, the charging duration of each charging, and the discharge duration of each discharge in the test are obtained. The test data is used to generate a test report by using the test data, so that the user can obtain the performance index of the battery during repeated charging and discharging according to the test report.
例如,若终端为手机,在本次测试过程中手机获取到的测试数据为:电池总计充电次数为3,总计放电次数为2,第一次充电的充电时长为20min,第二次充电时长为25min,第三次充电的充电时长为30min,第一次放电时长为60min,第二次放电时长为50min。在本次测试结束后,手机的界面显示如图4b所示,此时,如果用户想要查看测试报告,就可以通过在显示屏中使用手指点击“测试报告”所在位置的方式输入操作指令,手机检测到用户输入的操作指令后,就可以响应该操作指令将测试报告展示在界面中,展示效果如图4c所示。For example, if the terminal is a mobile phone, the test data obtained by the mobile phone during the test is: the total number of times the battery is charged is 3, the total number of discharges is 2, the charging time of the first charging is 20 minutes, and the second charging time is 25min, the charging time of the third charging is 30min, the first discharging time is 60min, and the second discharging time is 50min. After the end of this test, the interface of the mobile phone is shown in Figure 4b. At this time, if the user wants to view the test report, he can input the operation command by clicking the position of the “Test Report” in the display with a finger. After the mobile phone detects the operation instruction input by the user, the test report can be displayed in the interface in response to the operation instruction, and the display effect is as shown in FIG. 4c.
本发明实施例中,终端可以检测对电池进行测试的测试指令,并响应该测试指令,获取电池的电量,在电量不大于开始充电电量时,对电池进行充电,直至电池的电量等于结束充电电量,在电池的电量等于结束充电电量后对所述电池进行冷却,在电池的当前温度不大于预设温度时,获取测试的时长,并检测该时长是否小于预设总测试时长,如果小于,就继续测试,执行对电池进行放电,直至电池的电量等于开始充电电量的步骤,采用同样的方法继续循环执行对电池的充电和放电测试,直到检测出该时长不小于预设总测试时长时,结束测试并生成测试报告,有助于提高电池充放电测试的便捷性以及效率,并且通过生成测试报告,有助于得到电池在重复充放电过程中的性能指数。In the embodiment of the present invention, the terminal may detect a test command for testing the battery, and respond to the test command to obtain the battery power. When the power is not greater than the initial charge, the battery is charged until the battery charge is equal to the end charge. After the battery is equal to the end of the charging power, the battery is cooled. When the current temperature of the battery is not greater than the preset temperature, the length of the test is obtained, and it is detected whether the duration is less than the preset total test duration. If it is less than Continue the test, perform the step of discharging the battery until the battery is equal to the start of the charging, and continue to perform the charging and discharging test of the battery in the same way until the detection of the duration is not less than the preset total test duration, and ends. Testing and generating test reports can help improve the convenience and efficiency of battery charge and discharge tests, and by generating test reports, can help to obtain the performance index of the battery during repeated charge and discharge.
本发明实施例还提供了一种终端,该终端用于执行前述任一项所述的方法的单元。具体地,参见图5,是本发明实施例提供的一种终端的示意框图。本实施例的终端包括:检测单元50、获取单元51、充电单元52以及放电单元53。An embodiment of the present invention further provides a terminal, where the terminal is used to perform the method of any one of the foregoing methods. Specifically, referring to FIG. 5, it is a schematic block diagram of a terminal according to an embodiment of the present invention. The terminal of this embodiment includes a detecting unit 50, an obtaining unit 51, a charging unit 52, and a discharging unit 53.
检测单元50,用于检测对电池进行测试的测试指令;The detecting unit 50 is configured to detect a test instruction for testing the battery;
获取单元51,用于响应所述测试指令,获取所述电池的电量;The obtaining unit 51 is configured to obtain, according to the test instruction, a quantity of the battery;
充电单元52,用于在所述电量不大于开始充电电量时,对所述电池进行充电,直至所述电池的电量等于结束充电电量;The charging unit 52 is configured to charge the battery when the power is not greater than the starting charging power until the battery is equal to the ending charging power;
放电单元53,用于在所述电量不小于所述结束充电电量时,对所述电池进行放电,直至所述电池的电量等于所述开始充电电量;The discharging unit 53 is configured to discharge the battery when the electric quantity is not less than the ending charging electric quantity until the electric quantity of the electric quantity is equal to the starting charging electric quantity;
其中,所述开始充电电量小于所述结束充电电量。 The starting charging amount is less than the ending charging amount.
可选地,该终端还包括:Optionally, the terminal further includes:
冷却单元54,用于对所述电池进行冷却,并在冷却后的所述电池的当前温度不大于预设温度时,触发放电单元53在所述电量不小于所述结束充电电量时,对所述电池进行放电,直至所述电池的电量等于所述开始充电电量。a cooling unit 54 configured to cool the battery, and when the current temperature of the cooled battery is not greater than a preset temperature, triggering the discharge unit 53 when the power is not less than the end charging power The battery is discharged until the amount of power of the battery is equal to the starting charge.
可选地,该终端还包括:Optionally, the terminal further includes:
计时单元55,用于对所述电池的持续充电时间进行计时;a timing unit 55, configured to time the continuous charging time of the battery;
提示单元56,用于在所述持续充电时间大于预设充电时间时,发出提示信息,所述提示信息用于提示所述测试失败,所述预设充电时间为对所述电池进行充电时所述电池的电量从所述开始充电电量到所述结束充电电量的充电时间。The prompting unit 56 is configured to send a prompt message when the continuous charging time is greater than a preset charging time, where the prompting information is used to prompt the test to fail, and the preset charging time is when the battery is charged. The amount of charge of the battery is from the start of the charge to the end of the charge.
可选地,所述终端还包括:判断单元57,其中:Optionally, the terminal further includes: a determining unit 57, where:
所述获取单元51,还用于获取所述测试的时长;The obtaining unit 51 is further configured to acquire a duration of the test.
所述判断单元57,用于在判断出获取单元51获取到的所述时长小于预设总测试时长时,触发放电单元53在所述电量不小于所述结束充电电量时,对所述电池进行放电,直至所述电池的电量等于所述开始充电电量。The determining unit 57 is configured to: when it is determined that the duration acquired by the acquiring unit 51 is less than a preset total test duration, the triggering discharge unit 53 performs the battery when the power is not less than the ending charging power Discharge until the battery is charged equal to the starting charge.
可选地,所述终端还包括:生成单元58,用于在所述判断单元57判断出所述时长不小于所述预设总测试时长时,结束所述测试并生成测试报告。Optionally, the terminal further includes: a generating unit 58 configured to end the test and generate a test report when the determining unit 57 determines that the duration is not less than the preset total test duration.
可选地,所述生成单元58,具体还用于,获取所述电池的充电次数、放电次数、每次充电的充电时长以及每次放电的放电时长;根据所述电池的所述充电次数、所述放电次数、所述每次充电的充电时长以及所述每次放电的放电时长生成测试报告。Optionally, the generating unit 58 is further configured to acquire the number of times of charging, the number of times of discharging, the charging duration of each charging, and the length of discharging each time of discharging; according to the number of times of charging of the battery, The number of discharges, the length of charge for each charge, and the length of discharge for each discharge generate a test report.
可选地,所述终端还包括:设置单元59,用于预先设置所述开始充电电量和所述结束充电电量。Optionally, the terminal further includes: a setting unit 59, configured to preset the starting charging power amount and the ending charging power amount.
本发明实施例中,检测单元50检测对电池进行测试的测试指令,获取单元51响应测试指令,获取电池的电量,充电单元52在电量不大于开始充电电量时,对电池进行充电,直至电池的电量等于结束充电电量,放电单元53在电量不小于结束充电电量时,对电池进行放电,直至电池的电量等于开始充电电量,有助于提高电池充放电测试的便捷性以及效率。 In the embodiment of the present invention, the detecting unit 50 detects a test command for testing the battery, and the obtaining unit 51 obtains the battery power in response to the test command, and the charging unit 52 charges the battery when the power is not greater than the initial charging power until the battery The electric quantity is equal to the end of the charging electric quantity, and the discharging unit 53 discharges the battery when the electric quantity is not less than the ending charging electric quantity until the electric quantity of the electric quantity is equal to the starting charging electric quantity, which contributes to improving the convenience and efficiency of the battery charging and discharging test.
参见图6,是本发明实施例提供的另一种终端的示意框图。如图所示的本实施例中的终端可以包括:一个或多个处理器801;一个或多个输入设备802,一个或多个输出设备803和存储器804。上述处理器801、输入设备802、输出设备803和存储器804通过总线805连接。存储器802用于存储计算机程序,所述计算机程序包括程序指令,处理器801用于执行存储器802存储的程序指令。其中,处理器801被配置用于调用所述程序指令执行:检测对电池进行测试的测试指令;响应所述测试指令,获取所述电池的电量;在所述电量不大于开始充电电量时,对所述电池进行充电,直至所述电池的电量等于结束充电电量;在所述电量不小于所述结束充电电量时,对所述电池进行放电,直至所述电池的电量等于所述开始充电电量。FIG. 6 is a schematic block diagram of another terminal according to an embodiment of the present invention. The terminal in this embodiment as shown may include one or more processors 801; one or more input devices 802, one or more output devices 803, and memory 804. The above processor 801, input device 802, output device 803, and memory 804 are connected by a bus 805. The memory 802 is used to store a computer program, the computer program including program instructions, and the processor 801 is configured to execute program instructions stored in the memory 802. The processor 801 is configured to invoke the program instruction to execute: detecting a test command for testing a battery; and in response to the test command, acquiring a power of the battery; when the power is not greater than a starting charge, The battery is charged until the battery is equal to the end of the charge; when the charge is not less than the end charge, the battery is discharged until the battery is equal to the start charge.
应当理解,在本发明实施例中,所称处理器801可以是中央处理单元(Central Processing Unit,CPU),该处理器还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。It should be understood that, in the embodiment of the present invention, the processor 801 may be a central processing unit (CPU), and the processor may also be another general-purpose processor, a digital signal processor (DSP). , Application Specific Integrated Circuit (ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware component, etc. The general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
输入设备802可以包括触控板(用于检测对电池进行测试的测试指令)、指纹采传感器(用于采集用户的指纹信息和指纹的方向信息)、麦克风等,输出设备803可以包括显示器(LCD等)、扬声器、振动电机、摄像头等。The input device 802 can include a touchpad (a test command for detecting a test of the battery), a fingerprint sensor (for collecting fingerprint information of the user and direction information of the fingerprint), a microphone, etc., and the output device 803 can include a display (LCD) Etc.), speakers, vibration motors, cameras, etc.
该存储器804可以包括只读存储器和随机存取存储器,并向处理器801提供指令和数据。存储器804的一部分还可以包括非易失性随机存取存储器。例如,存储器804还可以存储设备类型的信息。The memory 804 can include read only memory and random access memory and provides instructions and data to the processor 801. A portion of the memory 804 may also include a non-volatile random access memory. For example, the memory 804 can also store information of the device type.
具体实现中,本发明实施例中所描述的处理器801、输入设备802、输出设备803可执行本发明实施例提供的上述方法实施例所描述的实现方式,也可执行本发明实施例所描述的终端的实现方式,在此不再赘述。In a specific implementation, the processor 801, the input device 802, and the output device 803, which are described in the embodiments of the present invention, may be implemented as described in the foregoing method embodiments. The implementation of the terminal is not described here.
在本发明的另一实施例中提供一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序包括程序指令,所述程序指令被处理器执行时实现:检测对电池进行测试的测试指令;响应所述测试指令,获 取所述电池的电量;在所述电量不大于开始充电电量时,对所述电池进行充电,直至所述电池的电量等于结束充电电量;在所述电量不小于所述结束充电电量时,对所述电池进行放电,直至所述电池的电量等于所述开始充电电量。In another embodiment of the present invention, a computer readable storage medium is stored, the computer readable storage medium storing a computer program, the computer program comprising program instructions, when the program instructions are executed by a processor: detecting a test command to test the battery; in response to the test command, Taking the battery power; when the power is not greater than the initial charge, charging the battery until the battery is equal to the end charge; when the charge is not less than the end charge, The battery is discharged until the amount of power of the battery is equal to the starting charge.
所述计算机可读存储介质可以是前述任一实施例所述的终端的内部存储单元,例如终端的硬盘或内存。所述计算机可读存储介质也可以是所述终端的外部存储设备,例如所述终端上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。进一步地,所述计算机可读存储介质还可以既包括所述终端的内部存储单元也包括外部存储设备。所述计算机可读存储介质用于存储所述计算机程序以及所述终端所需的其他程序和数据。所述计算机可读存储介质还可以用于暂时地存储已经输出或者将要输出的数据。The computer readable storage medium may be an internal storage unit of the terminal described in any of the foregoing embodiments, such as a hard disk or a memory of the terminal. The computer readable storage medium may also be an external storage device of the terminal, such as a plug-in hard disk equipped on the terminal, a smart memory card (SMC), and a Secure Digital (SD) card. , Flash Card, etc. Further, the computer readable storage medium may also include both an internal storage unit of the terminal and an external storage device. The computer readable storage medium is for storing the computer program and other programs and data required by the terminal. The computer readable storage medium can also be used to temporarily store data that has been output or is about to be output.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the various examples described in connection with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both, for clarity of hardware and software. Interchangeability, the composition and steps of the various examples have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the solution. A person skilled in the art can use different methods for implementing the described functions for each particular application, but such implementation should not be considered to be beyond the scope of the present invention.
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,上述描述的终端和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。A person skilled in the art can clearly understand that, for the convenience and brevity of the description, the specific working process of the terminal and the unit described above can be referred to the corresponding process in the foregoing method embodiment, and details are not described herein again.
在本申请所提供的几个实施例中,应该理解到,所揭露的终端和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另外,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口、装置或单元的间接耦合或通信连接,也可以是电的,机械的或其它的形式连接。In the several embodiments provided by the present application, it should be understood that the disclosed terminal and method may be implemented in other manners. For example, the device embodiments described above are merely illustrative. For example, the division of the unit is only a logical function division. In actual implementation, there may be another division manner, for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, or an electrical, mechanical or other form of connection.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为 单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本发明实施例方案的目的。The units described as separate components may or may not be physically separated as The components displayed by the unit may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the embodiments of the present invention.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以是两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分,或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。The integrated unit, if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention contributes in essence or to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium. A number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention. The foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like, which can store program codes. .
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到各种等效的修改或替换,这些修改或替换都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以权利要求的保护范围为准。 The above is only the specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any equivalent person can be easily conceived within the technical scope of the present invention by any person skilled in the art. Modifications or substitutions are intended to be included within the scope of the invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.

Claims (10)

  1. 一种电池测试方法,其特征在于,包括:A battery testing method, comprising:
    检测对电池进行测试的测试指令;Testing test instructions for testing the battery;
    响应所述测试指令,获取所述电池的电量;Retrieving the amount of power of the battery in response to the test instruction;
    在所述电量不大于开始充电电量时,对所述电池进行充电,直至所述电池的电量等于结束充电电量;When the power is not greater than the initial charge, the battery is charged until the battery is equal to the end charge;
    在所述电量不小于所述结束充电电量时,对所述电池进行放电,直至所述电池的电量等于所述开始充电电量;Discharging the battery when the amount of power is not less than the ending charging amount until the amount of power of the battery is equal to the starting charging amount;
    其中,所述开始充电电量小于所述结束充电电量。The starting charging amount is less than the ending charging amount.
  2. 根据权利要求1所述的方法,其特征在于,所述在所述电量不大于开始充电电量时,对所述电池进行充电,直至所述电池的电量等于结束充电电量之后,所述方法还包括:The method according to claim 1, wherein the charging the battery when the amount of power is not greater than the amount of starting charging, until the amount of power of the battery is equal to ending the amount of charging, the method further comprises :
    对所述电池进行冷却;Cooling the battery;
    在冷却后的所述电池的当前温度不大于预设温度时,执行所述在所述电量不小于所述结束充电电量时,对所述电池进行放电,直至所述电池的电量等于所述开始充电电量的步骤。When the current temperature of the cooled battery is not greater than a preset temperature, performing the discharging when the power is not less than the ending charging power, until the battery is equal to the start The step of charging the battery.
  3. 根据权利要求1或2所述的方法,其特征在于,所述方法还包括:The method according to claim 1 or 2, wherein the method further comprises:
    对所述电池的持续充电时间进行计时;Counting the continuous charging time of the battery;
    在所述持续充电时间大于预设充电时间时,发出提示信息,所述提示信息用于提示所述测试失败,所述预设充电时间为对所述电池进行充电时所述电池的电量从所述开始充电电量到所述结束充电电量的充电时间。When the continuous charging time is greater than the preset charging time, a prompt message is sent, where the prompt information is used to prompt the test to fail, and the preset charging time is a quantity of the battery when the battery is charged. The charging time from the start of charging power to the ending charging power is described.
  4. 根据权利要求3所述的方法,其特征在于,所述在所述电量不大于开始充电电量时,对所述电池进行充电,直至所述电池的电量等于结束充电电量之后,所述方法还包括: The method according to claim 3, wherein said charging the battery when said electric quantity is not greater than the starting charging electric quantity until said electric quantity of said battery is equal to ending charging electric quantity, said method further comprising :
    获取所述测试的时长;Obtain the duration of the test;
    在所述时长小于预设总测试时长时,执行所述在所述电量不小于所述结束充电电量时,对所述电池进行放电,直至所述电池的电量等于所述开始充电电量的步骤。When the duration is less than the preset total test duration, the step of discharging the battery when the power is not less than the end charge is performed until the battery is equal to the start charge.
  5. 根据权利要求4所述的方法,其特征在于,所述获取已响应所述测试指令的时长之后,所述方法还包括:The method according to claim 4, wherein after the obtaining the response time of the test command, the method further comprises:
    在所述时长不小于所述预设总测试时长时,结束所述测试并生成测试报告。When the duration is not less than the preset total test duration, the test is ended and a test report is generated.
  6. 根据权利要求5所述的方法,其特征在于,所述生成测试报告,包括:The method of claim 5 wherein said generating a test report comprises:
    获取所述电池的充电次数、放电次数、每次充电的充电时长以及每次放电的放电时长;Obtaining the number of times of charging, the number of discharges, the length of charge for each charge, and the length of discharge for each discharge;
    根据所述电池的所述充电次数、所述放电次数、所述每次充电的充电时长以及所述每次放电的放电时长生成测试报告。A test report is generated based on the number of times of charging of the battery, the number of times of the discharge, the length of charge of the charge per charge, and the length of discharge of the each discharge.
  7. 根据权利要求1所述的方法,其特征在于,所述响应所述测试指令,获取所述电池的电量之前,所述方法还包括:The method according to claim 1, wherein the method further comprises: before the obtaining the power of the battery in response to the test instruction, the method further comprising:
    预先设置所述开始充电电量和所述结束充电电量。The start charging amount and the ending charging amount are set in advance.
  8. 一种终端,其特征在于,包括用于执行如权利要求1-7任一权利要求所述的方法的单元。A terminal characterized by comprising means for performing the method of any of claims 1-7.
  9. 一种终端,其特征在于,包括处理器、输入设备、输出设备和存储器,所述处理器、所述输入设备、所述输出设备和所述存储器相互连接,其中,所述存储器用于存储计算机程序,所述计算机程序包括程序指令,所述处理器被配置用于调用所述程序指令,执行如权利要求1-7任一项所述的方法。A terminal, comprising: a processor, an input device, an output device, and a memory, wherein the processor, the input device, the output device, and the memory are connected to each other, wherein the memory is used to store a computer A program, the computer program comprising program instructions, the processor being configured to invoke the program instructions to perform the method of any of claims 1-7.
  10. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存 储有计算机程序,所述计算机程序包括程序指令,所述程序指令当被处理器执行时使所述处理器执行如权利要求1-7任一项所述的方法。 A computer readable storage medium, wherein the computer readable storage medium is stored A computer program is stored, the computer program comprising program instructions that, when executed by a processor, cause the processor to perform the method of any of claims 1-7.
PCT/CN2017/103918 2017-09-28 2017-09-28 Battery test method, terminal, and computer readable storage medium WO2019061136A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/103918 WO2019061136A1 (en) 2017-09-28 2017-09-28 Battery test method, terminal, and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/103918 WO2019061136A1 (en) 2017-09-28 2017-09-28 Battery test method, terminal, and computer readable storage medium

Publications (1)

Publication Number Publication Date
WO2019061136A1 true WO2019061136A1 (en) 2019-04-04

Family

ID=65900418

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/103918 WO2019061136A1 (en) 2017-09-28 2017-09-28 Battery test method, terminal, and computer readable storage medium

Country Status (1)

Country Link
WO (1) WO2019061136A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110308349A (en) * 2019-07-05 2019-10-08 科大讯飞股份有限公司 A kind of charging measurement method, intelligent charge product and charging measurement system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20050046838A (en) * 2003-11-14 2005-05-19 삼성전자주식회사 Apparatus for testing the function of charging
CN101114009A (en) * 2006-07-24 2008-01-30 纬创资通股份有限公司 Battery automatically testing system and method of electronic device
JP2009281916A (en) * 2008-05-23 2009-12-03 Mitsubishi Electric Corp Method for testing battery and electrode
CN101769995A (en) * 2010-01-26 2010-07-07 南京工业大学 Intelligent battery circulating charging and discharging testing device
CN106093800A (en) * 2016-08-24 2016-11-09 北京新能源汽车股份有限公司 battery charging and discharging test device, method and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20050046838A (en) * 2003-11-14 2005-05-19 삼성전자주식회사 Apparatus for testing the function of charging
CN101114009A (en) * 2006-07-24 2008-01-30 纬创资通股份有限公司 Battery automatically testing system and method of electronic device
JP2009281916A (en) * 2008-05-23 2009-12-03 Mitsubishi Electric Corp Method for testing battery and electrode
CN101769995A (en) * 2010-01-26 2010-07-07 南京工业大学 Intelligent battery circulating charging and discharging testing device
CN106093800A (en) * 2016-08-24 2016-11-09 北京新能源汽车股份有限公司 battery charging and discharging test device, method and system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110308349A (en) * 2019-07-05 2019-10-08 科大讯飞股份有限公司 A kind of charging measurement method, intelligent charge product and charging measurement system
CN110308349B (en) * 2019-07-05 2021-12-03 科大讯飞股份有限公司 Charging test method, intelligent charging product and charging test system

Similar Documents

Publication Publication Date Title
US10394655B2 (en) Method for detecting abnormal application and mobile terminal
CN105159530B (en) A kind of the display object switching method and device of application
WO2017113660A1 (en) Application program management method and device
CN104951335B (en) The processing method and processing device of application program installation kit
WO2015172518A1 (en) Method and device for processing application program
WO2011153786A1 (en) Control method and control apparatus for releasing memory
CN104317373B (en) A kind of method and apparatus of mobile terminal cooling
CN104503740A (en) Memory management method and device
WO2021022721A1 (en) Cpld-based restart test method
US20140189338A1 (en) Electronic device and method for detecting booting time period for electronic device
CN107995099A (en) Friend recommendation method and device
WO2017045533A1 (en) Method and device for displaying state of user equipment on pre-set interface of application program
WO2018000831A1 (en) Terminal initialization method and device, terminal, and storage medium
CN105528171A (en) Method and system for quickly starting application of intelligent terminal, and intelligent terminal
CN102722669B (en) Completeness verification method of operating system
CN103885568B (en) A kind of method and device reducing electric current when taking pictures
CN106326065B (en) Terminal use duration management method and device
WO2019061136A1 (en) Battery test method, terminal, and computer readable storage medium
WO2021082619A1 (en) Electronic apparatus control method, electronic apparatus, and computer readable storage medium
KR102340251B1 (en) Method for managing data and an electronic device thereof
WO2016095452A1 (en) Firmware refreshing method and apparatus
WO2017096834A1 (en) Method, mobile terminal and terminal for realizing wireless charging
WO2013189273A1 (en) Method and device for monitoring preconfigured operation in mobile terminal
CN115168921B (en) Lossless deletion management device suitable for multi-solid-state hard disk system
CN108536512B (en) Interface switching method and device and terminal equipment

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17926607

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17926607

Country of ref document: EP

Kind code of ref document: A1