Pre-recording operation panel and recording system based on battery protection board test operation instructions

By designing an automated battery protection board test operation command pre-recording operation panel and recording system, using modules such as software positioning, visual judgment, mouse and keyboard control modules, automated recording of battery protection board tests is achieved, solving the needs of existing systems The problem of human operation improves the efficiency and convenience of testing.

CN114721953BActive Publication Date: 2025-01-17GUANG DONG GREENWAY TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210373056.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-11
Publication Date
2025-01-17
Estimated Expiration
2042-04-11

AI Technical Summary

Technical Problem

The existing battery protection board test operation instructions pre-recording operation panel and recording system are not perfect enough, and it requires manual operation of the mobile terminal, which is inconvenient to use.

Method used

A pre-recording operation panel and recording system based on battery protection board test operation instructions is designed, including software positioning module, visual judgment module, mouse control module, keyboard control module, peripheral instrument control module and information integration module, and obtain and Record the screen image and operation information of the mobile terminal, automatically simulate manual operations, and form a test script.

Benefits of technology

It realizes automatic recording of battery protection board tests, improves testing efficiency and convenience, and reduces the need for human operation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114721953B_ABST
    Figure CN114721953B_ABST
Patent Text Reader

Abstract

The present invention relates to the technical field of battery protection boards, and discloses a pre-recording operation panel and a recording system based on a battery protection board test operation instruction, including a battery tester, wherein the battery tester includes a software positioning module, a visual judgment module, a mouse control module, a keyboard control module, a peripheral instrument control module, an information integration module and a recording module. The pre-recording operation panel and the recording system based on the battery protection board test operation instruction first connect the mobile terminal to be tested through an acquisition unit to acquire the current screen image of the mobile terminal to be tested, then connect the acquisition unit through a display unit, then respectively connect the acquisition unit and the display unit through a processing unit, then connect the display unit through an input unit, then respectively connect the input unit, the display unit and the processing unit through a control unit, and finally connect the control unit through a recording unit to record the coordinate information of the cursor operation signal on the display template to form a test script for recording.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of battery protection boards, and in particular to a pre-recording operation panel and a recording system based on a battery protection board test operation instruction. Background Art

[0002] Battery protection board, as the name implies, lithium battery protection board is mainly an integrated circuit board that protects rechargeable (generally refers to lithium batteries). The reason why lithium batteries (rechargeable) need protection is determined by their own characteristics. Because the material of the lithium battery itself determines that it cannot be overcharged, over-discharged, over-current, short-circuited and charged and discharged at ultra-high temperatures, the lithium battery lithium battery component will always be accompanied by a protection board with a sampling resistor and a current fuse.

[0003] At present, the battery protection board is widely used in the market. The battery protection board tester is mainly used to test battery parameters and battery protection time, voltage protection: overcharge, over discharge, and varies according to the material of the battery. However, most of the pre-recorded operation panels and recording systems based on the battery protection board test operation instructions are not perfect enough. The battery protection board test script can only be recorded for the mobile terminal itself, and manual operation of the mobile terminal is required, which is inconvenient to use. Summary of the invention

[0004] 1. Technical issues to be resolved

[0005] In view of the shortcomings of the prior art, the present invention provides an operation panel and a recording system based on the pre-recording of battery protection board test operation instructions, which have the advantage of automatic recording and solve the problem that most pre-recording operation panels and recording systems based on the battery protection board test operation instructions are not perfect enough, and the battery protection board test script can only be recorded for the mobile terminal itself, requiring manual operation of the mobile terminal, which is inconvenient to use.

[0006] (II) Technical solution

[0007] In order to achieve the purpose of the above-mentioned automatic recording, the present invention provides the following technical solutions: based on the pre-recording operation panel and recording system of the battery protection board test operation instruction, the battery tester includes a software positioning module, a visual judgment module, a mouse control module, a keyboard control module, a peripheral instrument control module, an information integration module and a recording module, and the recording module includes an acquisition unit, a display unit, an input unit, a control unit, a processing unit and a recording unit;

[0008] The acquisition unit is used to connect to the mobile terminal to be tested to acquire the current screen image of the mobile terminal to be tested;

[0009] The display unit is used to connect to the acquisition unit, and the display unit provides a display template, and the display template is used to display the current screen image;

[0010] The processing unit is used to connect the acquisition unit and the display unit respectively, and calculate the size relationship between the image displayed by the display template and the current screen image of the mobile terminal to be tested;

[0011] The input unit is used to connect to the display unit and input a cursor operation signal on the image displayed by the display template;

[0012] The control unit is used to connect the input unit, the display unit and the processing unit respectively, and convert the cursor operation signal into coordinate information relative to the mobile terminal to be tested according to the size relationship and output it;

[0013] The recording unit is used to connect to the control unit and record the coordinate information of the cursor operation signal on the display template to form a test script.

[0014] Preferably, the software positioning module is used to obtain the Windows handle of the Battery Management Studio software, determine the current state of the software, and whether it can enter the next step of testing, the steps are as follows:

[0015] 1) If the handle is 0, it means that the software has not been opened. At this time, the product to be tested is activated through the PLC control module, and the start cmd command opens the Battery Management Studio software;

[0016] 2) If the handle is 0, the opening fails. After 3 retries, if the handle is still 0, this step determines that the communication has failed and the test ends;

[0017] 3) If the acquired handle is a non-zero integer, the software is judged to be opened successfully, and a signal for initializing the test interface is given. The test interface is initialized through the mouse control module and the keyboard control module, and the next step of the test is entered;

[0018] 4) If the acquired handle is a non-zero integer, it is determined that the software has been opened and the initialization operation has been performed, and the next step of testing is entered.

[0019] Preferably, the visual judgment module is used to take a screenshot of the current windows active window, and the steps are as follows:

[0020] 1) Compare the size of the active window with the window size returned by the normal test;

[0021] 2) If they are consistent, it is determined that the step is completed normally and the next step can be entered;

[0022] 3) If they are not consistent, it is determined that the step is not completed normally and the test of this step fails;

[0023] 4) Determine the color of a specific coordinate of the active window image and the image returned by the normal test;

[0024] 5) If they are consistent, it is determined that the step is completed normally and the next step can be entered;

[0025] 6) If not, it is determined that the step was not completed normally and the test of this step failed.

[0026] Preferably, the mouse control module and the keyboard control module are both used to simulate the actions of the mouse and keyboard, replacing manual operations of the mouse and keyboard in the Battery Management Studio software.

[0027] Preferably, the peripheral instrument control module controls the peripheral instrument through a communication protocol, sets corresponding parameters in accordance with the test steps, and automatically retrieves test data.

[0028] Preferably, the information integration module displays the results of each test step, outputs the final test display results and saves the test records of the current test.

[0029] Preferably, the visual control module takes a screenshot of the current window and uses a visual algorithm to determine the current state, and the information integration module is used to integrate the test results of each single step and output the final test result.

[0030] Preferably, the display of the battery tester is Intel(R) Core(TM) i3-9100@3.6GHz1600*900, the Intel(R) Core(TM) i3-9100@3.6GHz 1600*900 resolution display is the operating body, and the Battery Management Studio communication device is EV2300.

[0031] (III) Beneficial effects

[0032] Compared with the prior art, the present invention provides a pre-recording operation panel and recording system based on the battery protection board test operation instruction, which has the following beneficial effects:

[0033] 1. The pre-recording operation panel and recording system based on the battery protection board test operation instruction, through the recording module, first connects the mobile terminal to be tested through the acquisition unit to obtain the current screen image of the mobile terminal to be tested, and then connects the acquisition unit through the display unit. The display unit provides a display template to display the current screen image, and then connects the acquisition unit and the display unit respectively through the processing unit, and then calculates the size relationship between the image displayed by the display template and the current screen image of the mobile terminal to be tested, and then connects the display unit through the input unit, inputs the cursor operation signal on the image displayed on the display template of the display unit, and then connects the input unit, the display unit and the processing unit respectively through the control unit, converts the cursor operation signal into coordinate information relative to the mobile terminal to be tested according to the size relationship and outputs it, and finally connects the control unit through the recording unit to record the coordinate information of the cursor operation signal on the display template to form a test script for recording.

[0034] 2. The pre-recording operation panel and recording system based on the battery protection board test operation command, by setting the information integration module, first trigger the start test signal through the software positioning module to start the test button, automatically start the software positioning module, and obtain the Windows handle of the Battery Management Studio software to determine the current status of the software and whether it can enter the next test. If the handle is 0, it means that the software has not been opened. At this time, the PLC control module is used to activate the product to be tested, and the start cmd command is used to open the Battery Management Studio software, and then the Battery Management Studio software is opened. Studio handle is obtained. If the obtained handle is a non-zero integer, it is determined that the software has been opened and the initialization operation has been performed, then the next test is entered. Then the visual judgment module takes a screenshot of the current windows active window, and compares the size of the active window with the window size returned by the normal test. The color of a specific coordinate of the active window image and the image returned by the normal test is judged. The mouse control module is set to call the windows system mouse related API to implement the mouse left button, right button, single click, double click and other operation methods, and cooperate with the operation method required by each test step to simulate manual operation of the mouse. Then the keyboard control module calls the windows system keyboard related API to control the pressing and popping of each key on the keyboard, and cooperate with the actions required by each test step to simulate manual operation of the keyboard. Then the peripheral instrument control module controls the peripheral instrument through the communication protocol, sets the corresponding parameters in conjunction with the test steps, and automatically retrieves the test data. Finally, the information integration module displays the results of each test step, summarizes and outputs the final test display results, and then saves the test record of the current test. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] Figure 1 It is a schematic diagram of the structure of the present invention;

[0036] Figure 2 This is a structural diagram of the recording module of the present invention;

[0037] Figure 3 It is a schematic diagram of the information integration module structure of the present invention. DETAILED DESCRIPTION

[0038] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0039] See also Figure 1-3, based on the battery protection board test operation instruction pre-recording operation panel and recording system, including a battery tester, the battery tester includes a software positioning module, the software positioning module starts the test button to trigger the start test signal, automatically starts the software positioning module, and obtains the Windows handle of the Battery Management Studio software to determine whether the software can enter the next test. If the handle is 0, it means that the software has not been opened. At this time, the product to be tested is activated through the PLC control module, and the start cmd instruction opens the Battery Management Studio software, and then the Battery Management Studio handle is obtained. If the obtained handle is a non-0 integer number, it is determined that the software has been opened and the initialization operation has been performed, then the next test is entered. The visual judgment module takes a screenshot of the current windows active window, compares the size of the active window with the window size returned by the normal test, and judges the color of a certain coordinate of the active window image and the image returned by the normal test. The mouse control module calls the windows system mouse related API to implement mouse left button, right button, single click, double click and other operation methods, and cooperates with the operation method required for each test step to simulate manual mouse operation. The keyboard control module calls the win The dows system keyboard-related API controls the pressing and releasing of each key on the keyboard, cooperates with the actions required by each test step, and simulates manual keyboard operation. The peripheral instrument control module controls the peripheral instruments through the communication protocol, sets the corresponding parameters in accordance with the test steps, and automatically retrieves the test data. The information integration module displays the results of each test step, summarizes and outputs the final test display results, and then saves the test records of the current test. The recording module records the coordinate information of the cursor operation signal on the display template to form a test script for recording. The recording module includes an acquisition unit, a display unit, an input unit, a control unit, a processing unit, and a recording unit.

[0040] The acquisition unit is used to connect to the mobile terminal to be tested, and acquire the current screen image of the mobile terminal to be tested after connecting to the mobile terminal to be tested;

[0041] The display unit is used to connect to the acquisition unit, and the display unit provides a display template, and the display template is used to display the current screen image;

[0042] The processing unit is used to connect the acquisition unit and the display unit respectively, and then calculate the size relationship between the image displayed by the display template and the current screen image of the mobile terminal to be tested;

[0043] The input unit is used to connect to the display unit, and after the display unit is connected, a cursor operation signal is input on the image displayed on the display template;

[0044] The control unit is used to connect the input unit, the display unit and the processing unit respectively, and convert the cursor operation signal into coordinate information relative to the mobile terminal to be tested according to the size relationship obtained by the obtaining unit and output it;

[0045] The recording unit is used to connect to the control unit to record the coordinate information of the cursor operation signal on the display template to form a test script for recording.

[0046] To summarize, the pre-recording operation panel and recording system based on the battery protection board test operation instruction, through the recording module, first connects to the mobile terminal to be tested through the acquisition unit to obtain the current screen image of the mobile terminal to be tested, and then connects to the acquisition unit through the display unit, the display unit provides a display template to display the current screen image, and then connects the acquisition unit and the display unit respectively through the processing unit, and then calculates the size relationship between the image displayed by the display template and the current screen image of the mobile terminal to be tested, and then connects the display unit through the input unit, inputs the cursor operation signal on the image displayed on the display template of the display unit, and then connects the input unit, the display unit and the processing unit respectively through the control unit, converts the cursor operation signal into coordinate information relative to the mobile terminal to be tested according to the size relationship and outputs it, and finally connects to the control unit through the recording unit to record the coordinate information of the cursor operation signal on the display template to form a test script for recording.

[0047] In addition, by setting up the information integration module, the test start button of the software positioning module is used to trigger the start test signal, and the software positioning module is automatically started. By obtaining the Windows handle of the Battery Management Studio software, the current status of the software is determined to determine whether it can enter the next test. If the handle is 0, it means that the software has not been opened. At this time, the product to be tested is activated through the PLC control module, and the start cmd command is used to open the Battery Management Studio software, and then the Battery Management Studio handle is obtained. If the obtained handle is a non-zero integer, it is determined that the software has been opened and the initialization operation has been performed, then the next test is entered. Then the visual judgment module takes a screenshot of the current windows active window, and compares the size of the active window with the window size returned by the normal test. The color of a specific coordinate of the active window image and the image returned by the normal test is judged. The mouse control module is set to call the windows system mouse related API to implement the mouse left button, right button, single click, double click and other operation methods, and cooperate with the operation method required by each test step to simulate manual operation of the mouse. Then the keyboard control module calls the windows system keyboard related API to control the pressing and popping of each key on the keyboard, and cooperate with the actions required by each test step to simulate manual operation of the keyboard. Then the peripheral instrument control module controls the peripheral instrument through the communication protocol, sets the corresponding parameters in conjunction with the test steps, and automatically retrieves the test data. Finally, the information integration module displays the results of each test step, summarizes and outputs the final test display results, and then saves the test record of the current test.

[0048] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0049] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.

Claims

1. A battery protection board test operation instruction pre-recording system, including a battery tester, characterized in that: The battery tester includes a software positioning module, a visual judgment module, a mouse control module, a keyboard control module, a peripheral instrument control module, an information integration module and a recording module, and the recording module includes an acquisition unit, a display unit, an input unit, a control unit, a processing unit and a recording unit; The acquisition unit is used to connect to the mobile terminal to be tested to acquire the current screen image of the mobile terminal to be tested; The display unit is used to connect to the acquisition unit, and the display unit provides a display template, and the display template is used to display the current screen image; The processing unit is used to connect the acquisition unit and the display unit respectively, and calculate the size relationship between the image displayed by the display unit and the current screen image of the mobile terminal to be tested; The input unit is used to connect to the display unit and input a cursor operation signal on the image displayed by the display unit; The control unit is used to connect the input unit, the display unit and the processing unit respectively, and convert the cursor operation signal into coordinate information relative to the mobile terminal to be tested according to the size relationship and output it; The recording unit is used to connect to the control unit and record the coordinate information of the cursor operation signal on the display unit to form a test script; The software positioning module is used to obtain the Windows handle of the Battery Management Studio software, determine the current state of the software, and whether it can enter the next step of testing. The steps are as follows: 1) If the handle is 0, it means that the software has not been opened. At this time, the product to be tested is activated through the PLC control module, and the start cmd command opens the Battery Management Studio software; 2) If the handle is 0, the opening fails. After 3 retries, if the handle is still 0, this step determines that the communication has failed and the test ends; 3) If the acquired handle is a non-zero integer, the software is judged to be opened successfully, and a signal for initializing the test interface is given. The test interface is initialized through the mouse control module and the keyboard control module, and the next step of the test is entered; 4) If the acquired handle is a non-zero integer, it is determined that the software has been opened and the initialization operation has been performed, and the next step of testing is entered; The visual judgment module is used to take a screenshot of the current windows active window, and the steps are as follows: 1) Compare the size of the active window with the window size returned by the normal test; 2) If they are consistent, the step is considered to be completed normally and the next step can be entered; 3) If they are inconsistent, it is determined that the step was not completed normally and the test of this step failed; 4) Determine the color of a specific coordinate of the active window image and the image returned by the normal test; 5) If they are consistent, the step is considered to be completed normally and the next step can be entered; 6) If they are inconsistent, it is determined that the step was not completed normally and the test of this step failed.

2. The battery protection board test operation instruction pre-recording system according to claim 1 is characterized in that: The mouse control module and the keyboard control module are both used to simulate the actions of the mouse and the keyboard.

3. The battery protection board test operation instruction pre-recording system according to claim 1 is characterized in that: The peripheral instrument control module controls the peripheral instrument through the communication protocol, sets corresponding parameters in accordance with the test steps, and automatically retrieves test data.

4. The battery protection board test operation instruction pre-recording system according to claim 1, characterized in that: The information integration module displays the results of each test step, outputs the final test display results and saves the test records of the current test.

5. The battery protection board test operation instruction pre-recording system according to claim 1 is characterized in that: The visual judgment module takes a screenshot of the current window and uses a visual algorithm to judge the current state. The information integration module is used to integrate the test results of each single step and output the final test result.

6. The battery protection board test operation instruction pre-recording system according to claim 1, characterized in that: The display of the battery tester is Intel(R) Core(TM) i3-9100@3.6GHz 1600*900, the Intel(R) Core(TM) i3-9100@3.6GHz 1600*900 resolution display is the operating body, and the Battery Management Studio communication device is EV2300.

Citation Information

Patent Citations

  • Android App operating recording device and method

    CN104461894A

  • Laser visual touch method and system

    CN104932757A