Vehicle-mounted MP5 energy center automatic test method, system, device and medium

Through the automated test script simulation battery controller's behavior developed through Python, the battery status signal is generated, which solves the problem of not comprehensive testing of the vehicle MP5 energy center in the existing technology, realized efficient and accurate testing, improved the performance and safety of the vehicle sex.

CN119336004APending Publication Date: 2025-01-21ANHUI JIANGHUAI AUTOMOBILE GRP CORP LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202411513429.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-28
Publication Date
2025-01-21

AI Technical Summary

Technical Problem

The existing technology cannot conduct comprehensive testing and verification of the vehicle-mounted MP5 energy center, and the manual operation efficiency is low and the accuracy is difficult to guarantee, which affects the performance and safety of the vehicle in actual use.

Method used

Use Python to develop automated test scripts to simulate the behavior of the battery controller, generate battery status signals, and conduct multiple rounds of repeated verification through the automated test system to ensure the accuracy of the energy center display.

Benefits of technology

The comprehensive, fast and accurate testing of the vehicle MP5 energy center has improved the accuracy of the energy center display, reducing the abnormal display of vehicle power display, and improving the safety and comfort of driving.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119336004A_ABST
    Figure CN119336004A_ABST
Patent Text Reader

Abstract

The invention discloses a vehicle-mounted MP5 energy center automatic test method, system and device and a medium, and the method comprises the following steps: utilizing Python software to develop an automatic test script, simulating the behavior of a battery controller through the automatic test script, and generating a battery state signal; configuring parameters and test conditions of a battery state signal in the automated test script; the test computer is connected with the vehicle-mounted system through an interface; running the Python test script, simulating the battery controller to send out a signal, and directly sending an output signal to target equipment; and recording the response of the target equipment, and evaluating whether the vehicle-mounted system meets the display requirement of the energy center or not. According to the invention, the precision of parts at the rear end of the battery pack is ensured, the display accuracy of the energy center is improved, and the driving safety and comfort are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of vehicle dynamic testing technology, and more specifically, to an automated testing method, system, equipment and medium for a vehicle-mounted MP5 energy center. Background Art

[0002] With the continuous development of my country's economy and the continuous improvement of people's living standards, cars have become an indispensable means of transportation in people's daily lives. In recent years, with the continuous growth of car ownership and the widespread popularization of the concept of smart cars, new energy vehicles, especially pure electric vehicles (BEV) and hybrid electric vehicles (HEV), are gradually becoming the mainstream of the market and gradually replacing traditional fuel vehicles. Against this background, the demand for battery power control and display technology has become more and more prominent. As the core component of new energy vehicles, the accurate control and display of battery power is crucial to the driving safety and driving experience of drivers. If the battery power display is inaccurate, it may cause the driver to misjudge the remaining mileage, thereby causing a series of safety problems.

[0003] In order to meet this demand, the in-car MP5 (an in-car entertainment system that integrates multimedia playback, navigation, communication and other functions) began to use the energy center function to display the battery power. This energy center not only has the traditional display function, which can accurately display the remaining battery power and charging status in real time, but also has control and interaction functions, allowing drivers to manage the vehicle's energy use more conveniently. The accuracy of the in-car MP5 energy center display will directly affect the driver's experience and the accuracy of function and performance testing. If the display is inaccurate, it may cause the driver to misunderstand the vehicle's energy usage status, thereby affecting driving safety and driving experience.

[0004] In the prior art, the connection method of the vehicle MP5 signal is often only generally described, lacking specific details and in-depth discussion. For example, the signal connection between the vehicle MP5 and other vehicle systems (such as the engine control system, body control system, etc.) is simply mentioned, but the specific test content is not described in detail. This test method cannot fully reflect the performance and stability of the vehicle MP5. At the same time, there is a lack of corresponding test systems and devices to support the implementation of these test methods. This results in the inability of developers and testers to conduct comprehensive testing and verification of the vehicle MP5 energy center in actual applications, which may affect its performance and safety in actual use.

[0005] On the other hand, existing solutions mainly test the battery system through manual operation. Specifically, it is necessary to manually connect components such as the battery controller, gateway, gateway repeater, instrumentation, and speakers, and then manually input commands to simulate the battery controller to send signals, and then manually monitor the output signals of the instruments and speakers to verify whether the on-board controller, gateway repeater, and on-board MP5 meet the requirements of the energy center display. However, the existing solutions have the following problems: First, the manual operation process is cumbersome and error-prone, requiring a lot of manpower and time; second, the manual operation is inefficient and cannot meet the needs of large-scale production; third, the accuracy of manual operation is difficult to guarantee and is easily affected by human factors. Summary of the invention

[0006] One object of the present invention is to provide an automated testing method, system, device and medium for a vehicle-mounted MP5 energy center, so as to solve the aforementioned problems that developers and testers are unable to conduct comprehensive testing and verification of the vehicle-mounted MP5 energy center, and manual operation is inefficient and difficult to ensure accuracy.

[0007] According to a first aspect of the present invention, there is provided a method for automatically testing the energy center of a vehicle-mounted MP5, comprising the following steps:

[0008] Developing a Python test script step: using Python software to develop an automated test script, simulating the behavior of the battery controller through the automated test script to generate a battery status signal;

[0009] Configuring test parameters step: configuring parameters of the battery status signal and test conditions in the automated test script;

[0010] Steps for connecting the test environment: connect the test computer to the vehicle system through an interface;

[0011] Execute the test step: run the Python test script, simulate the battery controller to send a signal, and send the output signal directly to the target device, the target device includes but is not limited to at least one of the battery controller, the vehicle gateway, the vehicle MP5, and the energy center display device;

[0012] Verify Response Step: Record the target device’s response, evaluate whether the onboard system meets the requirements displayed by the Energy Center, and record any behavior that does not meet expectations.

[0013] Optionally, in the step of configuring test parameters, the parameters of the battery status signal include but are not limited to at least one of a voltage signal, a current signal, and a temperature signal; the test conditions include but are not limited to setting simulated power, simulated temperature, test duration, and number of tests.

[0014] Optionally, run a Python test script to simulate the battery controller sending a signal, use a loop trigger mechanism, set the number of single cycles, and trigger the preset battery output signal in turn in each cycle, and perform multiple rounds of repeated verification.

[0015] Optionally, the number of single cycles includes but is not limited to being set to any one of 100 times, 200 times, and 300 times.

[0016] Optionally, in the step of simulating the behavior of the battery controller through the automated test script to generate a battery status signal, a specific time interval is set by a timer to automatically trigger the sending of the battery status signal.

[0017] Optionally, in the verification response step, image comparison verification is also performed, specifically including:

[0018] Load the original design into the automated test script;

[0019] Use Python's image processing library to access and capture real-time image data from the camera;

[0020] Compare and analyze the image captured by the camera with the original image;

[0021] Based on the results of the comparative analysis, verify whether the display of the energy center in the image meets the preset usage requirements, including but not limited to checking the shape, size, position, and color attributes of the energy center.

[0022] Optionally, the automated testing method for the vehicle-mounted MP5 energy center also includes: setting a simulation critical value to test whether a horn alarm is triggered when the battery status reaches the simulation critical value, wherein the simulation critical value includes but is not limited to a battery low voltage threshold, a battery low temperature threshold, and a battery high temperature threshold.

[0023] According to a second aspect of the present invention, there is provided a vehicle-mounted MP5 energy center automatic testing system, comprising:

[0024] Python test script module: used to develop automated test scripts that can simulate the behavior of the battery controller and generate battery status signals according to preset conditions.

[0025] Test parameter configuration module: used to configure the parameters and test conditions of the battery status signal in the automated test script;

[0026] Test environment connection module: used to connect the test computer with the vehicle system through an interface;

[0027] Test execution module: used to run Python test scripts, simulate the battery controller to send signals, and directly send the output signals to the target device, which includes but is not limited to at least one of the battery controller, vehicle gateway, vehicle MP5, and energy center display device;

[0028] Response Verification Module: Used to record the response of the target device, evaluate whether the vehicle system meets the requirements displayed by the energy center, and record any behavior that does not meet expectations.

[0029] According to a third aspect of the present invention, there is provided a terminal device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the method for automatically testing the vehicle-mounted MP5 energy center as described in any one of claims 1 to 7 is implemented.

[0030] According to a fourth aspect of the present invention, a computer-readable storage medium is provided, the computer-readable storage medium including a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute the automated testing method for the vehicle-mounted MP5 energy center as described in any one of claims 1 to 7.

[0031] The vehicle-mounted MP5 energy center automatic testing method, system, device and medium disclosed in the present invention have the following technical effects:

[0032] Automated test scripts were developed using Python and multiple rounds of repeated verification were performed to ensure the accuracy of subsequent component power signal transmission, effectively improving the accuracy of the final power display, reducing abnormal vehicle power display situations, and improving driving safety and comfort.

[0033] The accuracy of the battery controller, vehicle gateway, vehicle MP5 and energy center can be verified before the battery pack is assembled.

[0034] Further features and advantages of the present invention will become apparent from the following detailed description of exemplary embodiments of the present invention with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the invention and, together with the description, serve to explain the principles of the invention.

[0036] Figure 1 A schematic diagram of the flow chart of the automatic testing method for the energy center of a vehicle-mounted MP5 provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0037] Various exemplary embodiments of the present invention will now be described in detail with reference to the accompanying drawings. It should be noted that the relative arrangement of components and steps, numerical expressions and numerical values ​​set forth in these embodiments do not limit the scope of the present invention unless otherwise specifically stated.

[0038] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the invention, its application, or uses.

[0039] Technologies, methods, and equipment known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, the technologies, methods, and equipment should be considered part of the specification.

[0040] In all examples shown and discussed herein, any specific values ​​should be interpreted as merely exemplary and not limiting. Therefore, other examples of the exemplary embodiments may have different values.

[0041] In the prior art, the connection method of the vehicle-mounted MP5 signal is often only generally described, lacking specific details and in-depth discussion. Developers and testers are unable to fully test and verify the vehicle-mounted MP5 energy center, which may affect its performance and safety in actual use. On the other hand, the existing solutions mainly test the battery system through manual operation. The manual operation process is cumbersome and error-prone, requiring a lot of manpower and time; secondly, manual operation is inefficient and cannot meet the needs of large-scale production. The present application can verify the accuracy of the battery controller, gateway repeater, vehicle-mounted MP5 and energy center before the battery pack is assembled, improve the accuracy of the energy center display, reduce abnormal conditions in the vehicle power display, and improve driving safety and comfort.

[0042] The present invention proposes an embodiment of an automatic testing method for the energy center of a vehicle-mounted MP5. Specifically, Figure 1 As shown, the following steps are included:

[0043] Steps for developing Python test scripts: Use Python software to develop an automated test script, which simulates the behavior of the battery controller and generates battery status signals. The Python test script can accurately simulate the behavior of the battery controller, avoiding the errors and inconveniences caused by manual operation and improving the accuracy and efficiency of the test.

[0044] Configure test parameter steps: configure the parameters of the battery status signal and the test conditions in the automated test script;

[0045] Steps for connecting the test environment: connect the test computer to the vehicle system through an interface (such as CAN bus, Ethernet, etc.);

[0046] Execute the test steps: run the Python test script, simulate the battery controller to send a signal, and send the output signal directly to the target device, which includes but is not limited to at least one of the battery controller, vehicle gateway, vehicle MP5, and energy center display device;

[0047] Verify Response Step: Record the target device’s response, evaluate whether the onboard system meets the requirements displayed by the Energy Center, and record any behavior that does not meet expectations.

[0048] By automating the test scripts and configuring the test parameters, comprehensive, fast and accurate testing of the vehicle system can be achieved, avoiding the errors and inconvenience caused by manual operation. By configuring different test parameters and conditions, different test scenarios and conditions can be simulated, thus achieving comprehensive testing of the vehicle system and improving test coverage.

[0049] In an embodiment of the present invention, in the step of configuring test parameters, the parameters of the battery status signal include but are not limited to at least one of the battery percentage, charging status, voltage signal, current signal, and temperature signal; the test conditions include but are not limited to setting simulated power, simulated temperature, test duration, and number of tests.

[0050] In an embodiment of the present invention, a Python test script is run to simulate a signal sent by a battery controller, a loop trigger mechanism is used, the number of single cycles is set, and the preset battery output signal is triggered in turn in each cycle, and multiple rounds of repeated verification are performed. It should be noted that a loop trigger mechanism is used in the test script to simulate the continuous output of the battery controller signal. In each cycle, the script will trigger the preset battery output signal in turn. By triggering these signals in turn, we can comprehensively test the battery management system's ability to respond to different battery states and ensure that it can correctly process and respond to various signals.

[0051] In the embodiment of the present invention, the number of single cycles includes but is not limited to being set to any one of 100 times, 200 times, and 300 times. In addition to 100 times, 200 times, and 300 times, the number of single cycles can also be set according to specific needs. For example, it can be 50 times, 75 times, 500 times, or even more.

[0052] In an embodiment of the present invention, in the step of simulating the behavior of the battery controller and generating the battery status signal through the automated test script, a specific time interval is set by a timer to automatically trigger the sending of the battery status signal. The timer can be set to a fixed interval (such as every 5 seconds, every 10 seconds, etc.), or it can be set to a more complex mode (such as a gradually increasing or decreasing interval) as needed. By setting the timer, the actual situation of the battery status changing over time can be simulated, which is crucial for testing the response speed and accuracy of the battery management system.

[0053] In the embodiment of the present invention, the verification response step further includes performing image comparison verification, which specifically includes:

[0054] Load the original design into the automated test script;

[0055] The original image is a reference image, which represents how the energy center should appear in an ideal state. The original image contains the precise shape, size, position, and color attributes of the energy center. Use Python's image processing library (such as OpenCV) to access and capture the real-time image data of the camera. Through the OpenCV library, the automated test script can automatically obtain the current frame from the camera and prepare for comparison with the original image.

[0056] Compare and analyze the image captured by the camera with the original image; compare the real-time image with the original image at the pixel level based on algorithms such as feature point matching, histogram comparison, and structural similarity (SSIM) index to detect the difference between the two.

[0057] Based on the results of the comparative analysis, verify whether the display of the energy center in the image meets the preset usage requirements, including but not limited to checking the shape, size, position, and color attributes of the energy center.

[0058] In an embodiment of the present invention, the automated testing method for the vehicle-mounted MP5 energy center also includes: setting a simulation critical value to test whether a horn alarm is triggered when the battery state reaches the simulation critical value, wherein the simulation critical value includes but is not limited to a low voltage threshold, a battery low temperature threshold, and a battery high temperature threshold. By controlling parameters such as battery voltage and temperature, the test system can accurately simulate the performance of the battery under different states. When the battery state reaches the preset simulation critical value, the test system needs to monitor whether the vehicle-mounted MP5 triggers the horn alarm as expected. In addition to monitoring whether the alarm is triggered, the test also needs to verify the accuracy and effectiveness of the alarm.

[0059] The present invention also provides an embodiment of a vehicle-mounted MP5 energy center automatic test system, comprising:

[0060] Python test script module: used to develop automated test scripts that can simulate the behavior of the battery controller and generate battery status signals according to preset conditions, such as triggering a low-battery warning signal when the battery power is less than 20%;

[0061] Test parameter configuration module: used to configure the parameters of the battery status signal and the test conditions in the automated test script. The parameters of the battery status signal include voltage range, temperature threshold, etc., and the test conditions include simulated power, simulated temperature, test duration, number of tests, etc.;

[0062] Test environment connection module: used to connect the test computer to the vehicle system through an interface (such as USB, CAN bus, etc.);

[0063] Test execution module: used to run Python test scripts, simulate the battery controller to send signals, and send output signals directly to the target device, which includes but is not limited to at least one of the battery controller, vehicle gateway, vehicle MP5, and energy center display device;

[0064] Response Verification Module: It is used to record the response of the target device, evaluate whether the vehicle system meets the requirements displayed by the energy center, and record any unexpected behavior and detailed information for subsequent analysis and repair.

[0065] It should be noted that the information interaction, execution process and other contents between the above-mentioned modules are based on the same concept as the method embodiment of the present application, and are devices corresponding to the above-mentioned vehicle-mounted MP5 energy center automatic testing method. All implementation methods in the above-mentioned method embodiment are applicable to the embodiments of the system. Its specific functions and technical effects brought about can be found in the method embodiment part, which will not be repeated here.

[0066] In summary, the automated testing method and system for the vehicle-mounted MP5 energy center provided by the present invention utilizes Python to develop automated testing scripts, simulates the battery controller to send signals, replaces battery components, and directly sends output signals to the battery controller, or the vehicle-mounted gateway, or the instrument, or the speaker, so that the speaker directly sends an alarm sound to verify the battery controller, the vehicle-mounted gateway, and the vehicle-mounted MP5 to verify whether the requirements for the energy center display are met. A timer and a loop trigger are added to achieve the effect of multiple rounds of repeated verification. A comprehensive test of the display function of the energy center of the vehicle-mounted system can be achieved, and the accuracy and efficiency of the test can be improved. At the same time, the modular design makes the test system easy to maintain and expand, and can adapt to the testing requirements of vehicle-mounted systems of different models and configurations. In addition, automated testing can also reduce manual intervention, reduce testing costs, and improve the repeatability and consistency of testing.

[0067] The present invention also provides an embodiment of a terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned automatic testing method for the vehicle-mounted MP5 energy center when executing the computer program.

[0068] The present invention also provides an embodiment of a computer-readable storage medium, the computer-readable storage medium includes a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute the above-mentioned vehicle-mounted MP5 energy center automatic testing method.

[0069] Each functional unit in each embodiment of the present application may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the above-mentioned integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium. The storage medium may be a read-only memory, a disk or an optical disk, etc.

[0070] The above describes in detail the structure, features and effects of the present invention based on the embodiments shown in the drawings, but the above is only a preferred embodiment of the present invention. It should be noted that the technical features involved in the above embodiments and their preferred methods can be reasonably combined and matched into a variety of equivalent schemes by those skilled in the art without departing from or changing the design ideas and technical effects of the present invention; therefore, the present invention is not limited to the scope of implementation shown in the drawings, and all changes made in accordance with the concept of the present invention, or modifications to equivalent embodiments with equivalent changes, which still do not exceed the spirit covered by the specification and drawings, should be within the protection scope of the present invention.

Claims

1. An automatic testing method for the energy center of a vehicle-mounted MP5, characterized in that: The following steps are involved: Steps for developing Python test scripts: Use Python software to develop an automated test script, simulate the behavior of the battery controller through the automated test script, and generate battery status signals; Configure test parameter steps: configure the parameters of the battery status signal and the test conditions in the automated test script; Steps for connecting the test environment: connect the test computer to the vehicle system through an interface; Execute the test step: run the Python test script, simulate the battery controller to send a signal, and send the output signal directly to the target device, the target device includes but is not limited to at least one of the battery controller, the vehicle gateway, the vehicle MP5, and the energy center display device; Verify Response Step: Record the target device’s response, evaluate whether the onboard system meets the requirements displayed by the Energy Center, and record any behavior that does not meet expectations.

2. The method for automatically testing the energy center of a vehicle-mounted MP5 according to claim 1, characterized in that: In the step of configuring the test parameters, the parameters of the battery status signal include but are not limited to at least one of a voltage signal, a current signal, and a temperature signal; the test conditions include but are not limited to setting simulated power, simulated temperature, test duration, and number of tests.

3. The method for automatically testing the energy center of a vehicle-mounted MP5 according to claim 1, characterized in that: Run the Python test script to simulate the battery controller sending a signal, use a loop trigger mechanism, set the number of single cycles, and trigger the preset battery output signal in turn in each cycle for multiple rounds of repeated verification.

4. The method for automatically testing the energy center of a vehicle-mounted MP5 according to claim 3, characterized in that: The number of single cycles includes but is not limited to being set to any one of 100 times, 200 times, and 300 times.

5. The method for automatically testing the energy center of a vehicle-mounted MP5 according to any one of claims 1 to 4, characterized in that: In the step of simulating the behavior of the battery controller through the automated test script and generating a battery status signal, a specific time interval is set by a timer to automatically trigger the sending of the battery status signal.

6. The method for automatic testing the energy center of a vehicle-mounted MP5 according to claim 1, characterized in that: The verification response step also includes image comparison verification, including: Load the original design into the automated test script; Use Python's image processing library to access and capture real-time image data from the camera; Compare and analyze the image captured by the camera with the original image; Based on the results of the comparative analysis, verify whether the display of the energy center in the image meets the preset usage requirements, including but not limited to checking the shape, size, position, and color attributes of the energy center.

7. The method for automatic testing the energy center of a vehicle-mounted MP5 according to claim 6, characterized in that: Also includes: A simulation critical value is set to test whether a horn alarm is triggered when the battery status reaches the simulation critical value, wherein the simulation critical value includes but is not limited to a battery low voltage threshold, a battery low temperature threshold, and a battery high temperature threshold.

8. An automatic test system for the energy center of a vehicle-mounted MP5, characterized in that: include: Python test script module: used to develop automated test scripts that can simulate the behavior of the battery controller and generate battery status signals according to preset conditions; Test parameter configuration module: used to configure the parameters and test conditions of the battery status signal in the automated test script; Test environment connection module: used to connect the test computer with the vehicle system through an interface; Test execution module: used to run Python test scripts, simulate the battery controller to send signals, and directly send the output signals to the target device, which includes but is not limited to at least one of the battery controller, vehicle gateway, vehicle MP5, and energy center display device; Response Verification Module: Used to record the response of the target device, evaluate whether the vehicle system meets the requirements displayed by the energy center, and record any behavior that does not meet expectations.

9. A terminal device, characterized in that: It includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the automatic testing method for the vehicle-mounted MP5 energy center as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute the automatic testing method for the vehicle-mounted MP5 energy center as described in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Battery management unit test method and system

    CN108802511A

  • Testing device and method for automatically testing combination meter and MP5

    CN109883723A

  • Automatic driving simulation test method, device and equipment and storage medium

    CN117348448A

  • Test method and device for vehicle-mounted combination instrument

    CN117782157A

  • Radar rear-end component and alarm sound automatic test method

    CN118688736A