Disclosure of Invention
The invention provides a battery detection method, a battery detection system and a function test device, which are used for improving the test efficiency of a battery and further accelerating the generation rhythm of a battery assembly.
In order to achieve the purpose, the technical scheme of the invention is as follows:
a battery detection method, comprising:
acquiring a function test state of the function test device;
receiving state information of the charging and discharging equipment;
when the function test state is that the function detection is finished, judging whether to operate the charging and discharging equipment according to the current state information of the charging and discharging equipment;
when the judgment result is yes, controlling the charging and discharging equipment to perform charging and discharging tests on the battery;
receiving the working state and working state parameters of the charging and discharging equipment and the charging and discharging information of the battery, which are generated in the charging and discharging test process;
and generating a test report according to the working state, the working state parameters and the charging and discharging information. Preferably, the state information of the charge and discharge device includes ready and charge and discharge device fault code state information;
wherein, according to the current state information of the charging and discharging equipment, judging whether to operate the charging and discharging equipment comprises:
when the current state information of the charging and discharging equipment is ready, operating the charging and discharging equipment;
and generating an alarm signal when the current state information of the charging and discharging equipment is the fault code state information of the charging and discharging equipment.
Preferably, the operating state parameters of the charge and discharge device include:
one or any combination of a charge-discharge current value, charge-discharge time, a work step jumping condition, a charge-discharge protection condition, a detection voltage value and a running work step number;
the working state of the charge and discharge device includes: readiness, normal operation, exception, charge and discharge completion, and fault numbering.
Preferably, generating a test report according to the working state, the working state parameters, and the charging and discharging information includes:
when the working state is charging and discharging completion, abnormity or fault numbering, sending an equipment stop signal to the charging and discharging equipment;
receiving current charging and discharging information of a battery;
and generating a test report according to the working state, the working state parameters and the current charging and discharging information of the battery.
Preferably, the controlling the charge and discharge device to perform the charge and discharge test on the battery includes:
and controlling the charging and discharging equipment to perform charging and discharging tests on the battery according to the preset charging and discharging process steps.
Preferably, the charging and discharging process includes: one or any combination of a charge-discharge current value, charge-discharge time, work step skip conditions, charge-discharge protection conditions, a detection voltage value and an operation work step number.
Preferably, the generating a test report according to the operating state, the operating state parameter, and the charge and discharge information of the battery includes:
and comparing the charging and discharging information of the battery with the preset charging and discharging working steps, and generating a test report.
The invention also discloses a function testing device, comprising:
the acquisition module is used for acquiring the function test state of the function test device;
the first receiving module is used for receiving the state information of the charging and discharging equipment;
the judging module is used for judging whether to operate the charging and discharging equipment according to the current state information of the charging and discharging equipment when the function testing state is that the function detection is finished;
the control module is used for controlling the charging and discharging equipment to perform charging and discharging tests on the battery when the judgment result of the judgment module is yes;
the second receiving module is used for receiving the working state and the working state parameters of the charging and discharging equipment and the charging and discharging information of the battery, which are generated in the charging and discharging test process;
and the test report generating module is used for generating a test report according to the working state, the working state parameters and the charging and discharging information.
Preferably, the system further comprises an alarm module;
the state information of the charging and discharging equipment comprises ready and charging and discharging equipment fault code state information;
the judging module judges whether to operate the charging and discharging equipment according to the current state information of the charging and discharging equipment, and comprises the following steps:
when the current state information of the charging and discharging equipment is ready, triggering the control module to control the charging and discharging equipment to perform charging and discharging tests on the battery;
and when the current state information of the charging and discharging equipment is the fault code state information of the charging and discharging equipment, triggering the alarm module to generate an alarm signal.
Preferably, the operating state parameters of the charge and discharge device include:
one or any combination of a charge-discharge current value, charge-discharge time, a work step jumping condition, a charge-discharge protection condition, a detection voltage value and a running work step number;
the working state of the charge and discharge device includes: readiness, normal operation, exception, charge and discharge completion, and fault numbering.
Preferably, the generating of the test report by the test report generating module according to the working state information and the charging and discharging information includes:
when the working state is charging and discharging completion, abnormity or fault numbering, the control module sends an equipment stop signal to the charging and discharging equipment;
the second receiving module receives the current charging and discharging information of the battery;
and the test report generating module generates a test report according to the working state, the working state parameters and the current charging and discharging information of the battery.
Preferably, the controlling module controls the charging and discharging device to perform the charging and discharging test on the battery includes:
and controlling the charging and discharging equipment to perform charging and discharging tests on the battery according to the preset charging and discharging process steps.
Preferably, the method further comprises the following steps:
and the comparison module is used for comparing the charging and discharging information of the battery with the preset charging and discharging working steps so that the test report generation module can generate a test report.
The invention also discloses a battery detection system, comprising: the device comprises a function testing device, charging and discharging equipment and a battery, wherein the function testing device is the function testing device, and the function testing device, the charging and discharging equipment and the battery are connected through a CAN bus.
According to the technical scheme, compared with the prior art, the method comprises the steps of receiving initial state information of the charging and discharging equipment by obtaining a function test state of the function test device, judging whether the charging and discharging equipment can be operated or not according to current state information of the charging and discharging equipment when the function test state is the function test completion, controlling the charging and discharging equipment to perform charging and discharging tests on the battery when the judgment result is yes, receiving working state information of the charging and discharging equipment and charging and discharging information of the battery generated in the charging and discharging test process, and generating a test report according to the working state information.
Promptly in this application when function test equipment accomplishes the function test to the battery after, automatic control charge and discharge equipment carries out the charge and discharge test to the battery, compares in prior art needs manual operation function test equipment and charge and discharge equipment's mode, has not only saved manual operation's time, can in time control charge and discharge equipment to test after function test equipment accomplishes the test moreover, has improved the promptness, has further improved efficiency of software testing. Meanwhile, a test report can be generated directly according to the received working state information of the charging and discharging equipment and the charging and discharging information of the battery, and compared with a manual input mode, the time is saved.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a flowchart of a battery detection method according to an embodiment of the present invention. The embodiment of the invention discloses a battery detection method, which is applied to a function test device and comprises the following specific steps:
step 101: acquiring a function test state of the function test device;
the function testing device detects the functions of the battery and obtains a function testing state in real time, wherein the function testing state is used for identifying whether the function testing of the battery is finished or not.
Step 102: receiving state information of the charging and discharging equipment;
wherein the state information of the charge and discharge device includes: readiness and charge and discharge equipment fault code status information.
Specifically, when the charging and discharging equipment is started for the first time, a testing step corresponding to a battery to be tested is firstly set on the charging and discharging equipment, after the setting is completed, the charging and discharging equipment is in a standby state, a ready signal is sent to the function testing device through the USB-CAN conversion tool, and at the moment, the initial state information of the charging and discharging equipment received by the function testing device is ready for preparation;
after the charging and discharging equipment completes the charging and discharging test on the tested battery according to the set testing process step corresponding to the tested battery, the charging and discharging equipment is in a standby state and sends a ready signal to the function testing device through the USB-CAN switching tool, and at the moment, the initial state information of the charging and discharging equipment received by the function testing device is ready;
and when the charging and discharging equipment has an equipment fault when being started for the first time or has a test fault in the process of carrying out charging and discharging tests on the tested battery according to the set testing steps corresponding to the tested battery, the charging and discharging equipment sends charging and discharging equipment fault code state information to the function testing device through the USB-CAN tool, and at the moment, the initial state information of the charging and discharging equipment received by the function testing device is the charging and discharging equipment fault code state information.
Step 103: when the function test state is that the function detection is finished, judging whether to operate the charging and discharging equipment according to the current state information of the charging and discharging equipment;
if yes, go to step 104;
and when the current state information of the charging and discharging equipment is ready, judging that the current state information of the charging and discharging equipment is ready. In practical application, only after the function testing device completes the function detection of the tested battery, the charging and discharging test is carried out on the tested battery, and the charging and discharging test is carried out on the battery by controlling the charging and discharging equipment through the function testing device in the application. However, in the present application, the function testing device receives the initial state information of the charging and discharging device fed back by the charging and discharging device in real time, but only after the function testing device completes the function detection of the battery to be tested, it will determine whether to operate the charging and discharging device according to the currently received initial state information of the charging and discharging device.
Step 104: controlling the charging and discharging equipment to perform charging and discharging tests on the battery;
and the function testing device controls the charging and discharging equipment to perform charging and discharging tests on the battery according to the preset charging and discharging working steps corresponding to the battery to be tested.
Wherein, the charging and discharging process comprises the following steps: one or any combination of a charge-discharge current value, charge-discharge time, work step skip conditions, charge-discharge protection conditions, a detection voltage value and an operation work step number.
For example, in the preset charging and discharging process steps, the charging current value is 75A, the charging time is 1 minute, the discharging current value is 150A, the discharging current value is 30 seconds, the process step jump condition is that when the static state is kept for 10 seconds, the discharging process step is jumped, after the discharging process step is completed, the static state is kept for 10 seconds, the charging process step is jumped, and after the charging process step is completed, the charging and discharging test process is completed. The step of controlling the charging and discharging equipment by the function testing device to perform charging and discharging tests on the battery according to the preset charging and discharging process steps corresponding to the tested battery specifically comprises the following steps:
the first step is as follows: standing the charging and discharging equipment for 10 seconds;
the second step is that: the charging and discharging equipment controls the discharging speed of the tested battery according to the discharging current value of 150A, and the discharging time is 30 seconds;
the third step: standing the charging and discharging equipment for 10 seconds;
the fourth step: the charging and discharging equipment controls the charging speed of the tested battery according to the charging current value 75A, and the charging is carried out for 1 minute;
the fifth step: and stopping the charging and discharging test of the tested battery by the charging and discharging equipment, and finishing the charging and discharging test.
Step 105: receiving the working state and working state parameters of the charging and discharging equipment and the charging and discharging information of the battery, which are generated in the charging and discharging test process;
wherein, the working state parameters of the charging and discharging equipment comprise:
one or any combination of a charge-discharge current value, charge-discharge time, a work step jumping condition, a charge-discharge protection condition, a detection voltage value and a running work step number;
wherein, the operating condition of charge and discharge equipment includes: readiness, normal operation, exception, charge and discharge completion, and fault numbering.
Step 106: and generating a test report according to the working state, the working state parameters and the charging and discharging information.
In the technical scheme provided by the embodiment of the invention, the function test state of the function test device is obtained, the initial state information of the charge and discharge equipment is received, when the function test state is the function test completion, whether the charge and discharge equipment can be operated is judged according to the current state information of the charge and discharge equipment, when the judgment result is yes, the charge and discharge equipment is controlled to carry out charge and discharge test on the battery, the working state information of the charge and discharge equipment and the charge and discharge information of the battery generated in the charge and discharge test process are received, and a test report is generated according to the working state information.
Promptly in this application when function test equipment accomplishes the function test to the battery after, automatic control charge and discharge equipment carries out the charge and discharge test to the battery, compares in prior art needs manual operation function test equipment and charge and discharge equipment's mode, has not only saved manual operation's time, can in time control charge and discharge equipment to test after function test equipment accomplishes the test moreover, has improved the promptness, has further improved efficiency of software testing. Meanwhile, a test report can be generated directly according to the received working state information of the charging and discharging equipment and the charging and discharging information of the battery, and compared with a manual input mode, the time is saved.
Optionally, in another embodiment, step 103 further includes, when the determination result is no, executing step 107;
step 107: generating an alarm signal;
and judging whether the current state information of the charging and discharging equipment is the charging and discharging equipment fault code state information or not.
The alarm signal is used for reminding a user that the current charging and discharging equipment has faults and cannot complete the charging and discharging test, so that the user can process the faults of the charging and discharging equipment.
As shown in fig. 2, which is a flowchart of another battery detection method disclosed in the embodiment of the present invention, the embodiment of the present invention discloses a battery detection method, where step 106 in the method specifically includes:
step 1061: when the working state is charging and discharging completion, abnormity or fault numbering, sending an equipment stop signal to the charging and discharging equipment;
specifically, taking the preset charging and discharging steps as an example, when the preset charging and discharging steps are performed in sequence from the first step to the fifth step, the working state is that charging and discharging are completed.
And when the tested battery is not subjected to a charge and discharge test according to a preset discharge current value (150A), a preset discharge time (30 seconds), a preset charge current value (75A) or a preset charge time (1 minute) in the process of executing the first step to the fifth step, the working state is abnormal. For example, when the discharging step is performed, the discharging step jumps to the third step after 20 seconds of discharging according to the discharging current value of 150A, and the operating state is abnormal.
And when the charging and discharging equipment has faults in the charging and discharging test process, the working state is a fault number. For example, if the CAN communication of the charging and discharging device is abnormal, a fault number 261 is generated, where the fault number is used to identify a location where the charging and discharging device fails.
Step 1062: receiving current charging and discharging information of a battery;
step 1063: and generating a test report according to the working state, the working state parameters and the current charging and discharging information of the battery.
In practical application, the charging and discharging equipment stops two conditions for the charging and discharging equipment of the tested battery in the application, the first condition is that the charging and discharging equipment finishes the measurement of the tested battery according to the preset test steps, the working state information corresponding to the charging and discharging equipment is the charging and discharging completion at the moment, when the function test device receives the working state information fed back by the charging and discharging equipment, a stop signal is sent to the charging and discharging equipment, and the charging and discharging test of the tested battery is finished by the charging and discharging equipment at the moment.
The second situation is that in the process of charging and discharging test, the charging and discharging equipment fails or the tested battery is not measured according to the preset test steps, at this time, the working state information corresponding to the charging and discharging equipment is an abnormal or fault number, when the function test device receives the working state information fed back by the charging and discharging equipment, a stop signal is sent to the charging and discharging equipment, and at this time, although the charging and discharging equipment does not complete the charging and discharging test on the tested battery, the test on the tested battery is also stopped.
In the first case, namely when the test on the tested battery is normally completed, the function testing device generates the test report according to the received current charging and discharging information of the tested battery. Of course, the test report may also include the operating state and the operating state parameters of the charging and discharging device.
The generating of the test report by the function test device according to the received current charging and discharging information of the tested battery specifically includes:
and comparing the current charging and discharging information of the tested battery with the preset charging and discharging working steps, and generating a test report.
After the test report is generated, the charging and discharging equipment is in a standby state, namely the state information of the charging and discharging equipment is ready for standby.
And in the second situation, namely when the charging and discharging equipment does not finish the test on the tested battery, the function testing device generates a test report according to the working state and the working state parameters fed back by the charging and discharging equipment.
Because the charging and discharging detection of the tested battery is not completed, the generated test report may not include the charging and discharging information of the battery, but only include the working state and the working state parameters of the charging and discharging equipment. The test report generated under the condition enables a user to visually see the problems generated in the charging and discharging test process of the charging and discharging equipment. For example, whether the device itself has failed or the battery is not charged or discharged according to a preset test process step, it is further possible to determine which process step is not tested according to a predetermined test process step.
After the test report is generated, the user may take corresponding processing measures according to the content of the test report, for example, when the test report indicates that the charging and discharging device has a fault, the user performs corresponding processing for different faults. After the processing is finished, the charging and discharging equipment is in a standby state, namely the state information of the charging and discharging equipment is ready for preparation.
Corresponding to the above embodiment of the battery detection method disclosed by the present invention, an embodiment of a function testing apparatus is disclosed, and fig. 3 is a schematic structural diagram of a function testing apparatus disclosed by the embodiment of the present invention.
The embodiment of the invention discloses a function testing device, which comprises the following specific structures:
an obtaining module 201, configured to obtain a function test state of the function test apparatus;
a first receiving module 202, configured to receive state information of the charging and discharging device; wherein the state information of the charge and discharge device includes: readiness and charge and discharge equipment fault code status information.
The judging module 203 is configured to judge whether to operate the charge and discharge device according to the current state information of the charge and discharge device when the function test state is that the function detection is completed;
the control module 204 is configured to control the charging and discharging device to perform a charging and discharging test on the battery when the determination result of the determination module is yes; when the state information of the charging and discharging equipment is ready, the judgment result is yes;
a second receiving module 205, configured to receive a working state of the charging and discharging device, a working state parameter, and charging and discharging information of the battery, which are generated in a charging and discharging test process; wherein, the working state parameters of the charging and discharging equipment comprise: one or any combination of a charge-discharge current value, charge-discharge time, a work step jumping condition, a charge-discharge protection condition, a detection voltage value and a running work step number; the working state comprises: ready, normal operation, abnormal, charging and discharging completion and fault numbering;
a test report generating module 206, configured to generate a test report according to the working state, the working state parameter, and the charging and discharging information.
The function testing device further comprises an alarm module 207, and when the state information of the charging and discharging equipment is the state information of the fault code of the charging and discharging equipment, the alarm module is triggered to generate an alarm signal.
As shown in fig. 4, which is a schematic structural diagram of another function testing apparatus disclosed in the embodiment of the present invention, the embodiment of the present invention discloses a function testing apparatus, which further includes: a comparing module 208, configured to compare the charging and discharging information of the battery with the preset charging and discharging process step, so that the test report generating module generates a test report.
In the technical scheme provided by the embodiment of the invention, the function testing device can control the charging and discharging equipment to complete the charging and discharging test of the tested battery after completing the function test of the battery, compared with the mode that the function testing device and the charging and discharging equipment need to be operated manually in the prior art, the time of manual operation is saved, the charging and discharging equipment can be controlled to be tested in time after the function testing device completes the test, the timeliness is improved, and the testing efficiency is further improved. Meanwhile, a test report can be generated directly according to the received working state information of the charging and discharging equipment and the charging and discharging information of the battery, and compared with a manual input mode, the time is saved.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. For the device provided by the embodiment, the description is relatively simple because the device corresponds to the method provided by the embodiment, and the relevant points can be referred to the method part for description.
On the basis of the above embodiment of the function testing device disclosed in the present invention, please refer to fig. 5, which is a schematic structural diagram of a battery testing system disclosed in the embodiment of the present invention.
The embodiment of the invention discloses a battery detection system, which comprises the following specific structures: a function testing device 1, a charging and discharging device 2 and a battery 3. The function testing device 1, the charging and discharging equipment 2 and the battery 3 are connected through a CAN bus.
The function testing device herein is the function testing device disclosed in any of the above embodiments.
Specifically, the connection between the function testing device and the charging and discharging equipment and the battery is realized by converting USB to CAN, so that the hardware of the original function testing device, the charging and discharging equipment and the battery is not required to be improved, and the hardware is realized only by improving software, thereby saving the cost.
It is further noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.