Motor controller test method, device, equipment, medium and program product
By selecting target operating conditions and automating the processing of operating data from the motor controller and drive motor, the problem of low testing efficiency in existing motor controllers has been solved, achieving a more efficient testing process.
Patent Information
- Application Number
- CN202511533157.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-10-24
- Publication Date
- 2026-01-20
AI Technical Summary
Existing motor controller testing methods employ fixed testing procedures and manual data collection and analysis, resulting in low testing efficiency.
The target operating condition is selected from the set of operating conditions based on the operating condition selection data, and the working data and test logs of the motor controller and drive motor are obtained during the cyclic test to generate a test report. An automated data processing flow is adopted.
It improves the efficiency of motor controller testing, reduces manual intervention, and enhances the accuracy and efficiency of testing.
Smart Images

Figure CN121364705A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of vehicles, in particular to a motor controller testing method, device, equipment, medium and program product. BACKGROUND
[0002] With the continuous development of technology, there are more and more types of vehicles using driving motors as power, not only hybrid electric vehicles but also pure electric vehicles. These vehicles have motor controllers for controlling the operation of driving motors. In order to improve the durability and reliability of the motor controller, the motor controller needs to be tested.
[0003] In the prior art, the testing method for the motor controller usually adopts some fixed working condition corresponding test steps to test the vehicle, and then collects and analyzes the data of the motor controller during the test period by manual method to determine the test result.
[0004] In summary, the existing motor controller testing method adopts fixed test steps for testing, and collects and analyzes data by manual method, resulting in low test efficiency. SUMMARY
[0005] One of the purposes of the present application is to provide a motor controller testing method to solve the problem of low test efficiency caused by the existing motor controller testing method using fixed test steps for testing and collecting and analyzing data by manual method. The second purpose is to provide a motor controller testing device. The third purpose is to provide an electronic device. The fourth purpose is to provide a readable storage medium. The fifth purpose is to provide a computer program product.
[0006] In order to achieve the above purpose, the technical solution adopted by the present application is as follows:
[0007] In a first aspect, the present application provides a motor controller testing method, comprising:
[0008] acquiring working condition selection data, the working condition selection data being a power system type and / or a use scenario;
[0009] selecting at least one target working condition from a working condition set according to the working condition selection data;
[0010] outputting a preset total number of cycles and a test step corresponding to each target working condition;
[0011] In the cycle test process, motor controller working data, driving motor working data and test logs corresponding to each target working condition are acquired, and at least one of vehicle load, driving mode and energy recovery level is different in different cycles of the cycle test process.
[0012] According to the motor controller working data corresponding to each target working condition, the driving motor working data, and the test log, a test report is generated.
[0013] Further, the working condition set includes at least one of a static working condition, a slope working condition, a high-speed gear shifting working condition, a medium-speed gear shifting working condition, a low-speed gear shifting working condition, a low road adhesion coefficient working condition, a crawling working condition, and an overspeed working condition.
[0014] Further, if the working condition selection data is a power system type, the selecting at least one target working condition from the working condition set according to the working condition selection data includes:
[0015] If the power system type is a pure electric power type, the at least one target working condition includes a slope working condition, a high-speed gear shifting working condition, a medium-speed gear shifting working condition, a low-speed gear shifting working condition, a low road adhesion coefficient working condition, a crawling working condition, and an overspeed working condition.
[0016] If the power system type is not a pure electric power type, the at least one target working condition includes a static working condition, a slope working condition, a high-speed gear shifting working condition, a medium-speed gear shifting working condition, a low-speed gear shifting working condition, a low road adhesion coefficient working condition, a crawling working condition, and an overspeed working condition.
[0017] Further, if the working condition selection data is a use scenario, the selecting at least one target working condition from the working condition set according to the working condition selection data includes:
[0018] If the use scenario is a high-speed use scenario, the at least one target working condition includes a slope working condition, a high-speed gear shifting working condition, a low road adhesion coefficient working condition, and an overspeed working condition.
[0019] If the use scenario is a medium-speed use scenario, the at least one target working condition includes a slope working condition, a medium-speed gear shifting working condition, and a low road adhesion coefficient working condition.
[0020] If the use scenario is a low-speed use scenario, the at least one target working condition includes a slope working condition, a low-speed gear shifting working condition, a low road adhesion coefficient working condition, and a crawling working condition.
[0021] Further, if the working condition selection data is a power system type and a use scenario, the selecting at least one target working condition from the working condition set according to the working condition selection data includes:
[0022] If the power system type is a pure electric power type and the use scenario is a high-speed use scenario, the at least one target working condition includes a slope working condition, a high-speed gear shifting working condition, a low road adhesion coefficient working condition, and an overspeed working condition.
[0023] If the power system type is pure electric power type, and the use scenario is medium speed use scenario, the at least one target working condition includes ramp working condition, medium speed gear shifting working condition, and low road adhesion coefficient working condition;
[0024] If the power system type is pure electric power type, and the use scenario is low speed use scenario, the at least one target working condition includes ramp working condition, low speed gear shifting working condition, low road adhesion coefficient working condition, and crawling working condition;
[0025] If the power system type is not pure electric power type, and the use scenario is high speed use scenario, the at least one target working condition includes static working condition, ramp working condition, high speed gear shifting working condition, low road adhesion coefficient working condition, and overspeed working condition;
[0026] If the power system type is not pure electric power type, and the use scenario is medium speed use scenario, the at least one target working condition includes static working condition, ramp working condition, medium speed gear shifting working condition, and low road adhesion coefficient working condition;
[0027] If the power system type is not pure electric power type, and the use scenario is low speed use scenario, the at least one target working condition includes static working condition, ramp working condition, low speed gear shifting working condition, low road adhesion coefficient working condition, and crawling working condition.
[0028] Further, the motor controller working data corresponding to each target working condition includes a plurality of first sub-working data and an acquisition time of each first sub-working data, and the driving motor working data corresponding to each target working condition includes a plurality of second sub-working data and an acquisition time of each second sub-working data;
[0029] The generating a test report according to the motor controller working data, the driving motor working data, and the test log corresponding to each target working condition includes:
[0030] For each target working condition, a first test result corresponding to the target working condition is generated according to the motor controller working data and the driving motor working data corresponding to the target working condition, the first test result including a first fault indication result indicating whether the motor controller fails, and if the first test result includes the first fault indication result indicating that the motor controller fails, the first test result further includes a fault time;
[0031] For each target working condition, if the test log corresponding to the target working condition does not include an error code and a code generation time, a second test result corresponding to the target working condition is generated, the second test result including a second fault indication result indicating that no fault occurs in the test;
[0032] For each target working condition, if the test log corresponding to the target working condition includes error codes and the code generation time corresponding to each error code, then according to each error code and the code generation time corresponding to each error code, the second test result corresponding to the target working condition is generated, and the second test result includes a second fault indication result indicating that a test failure occurs and a fault time;
[0033] According to the first test result and the second test result corresponding to each target working condition, the test report is generated.
[0034] Further, the generation of the first test result corresponding to the target working condition according to the motor controller working data and the driving motor working data corresponding to the target working condition includes:
[0035] According to the threshold range corresponding to each first sub-working data, the threshold range corresponding to each second sub-working data, and the motor controller working data and the driving motor working data corresponding to the target working condition, the first test result corresponding to the target working condition is generated; or,
[0036] The motor controller working data and the driving motor working data corresponding to the target working condition are input into a fault detection model to obtain the first test result corresponding to the target working condition, and the fault detection model is a neural network model pre-trained for determining a test result according to motor controller working data and driving motor working data.
[0037] Further, before the start of the cyclic test process, the vehicle is charged to full power with a preset slow charging power;
[0038] During the cyclic test process, the vehicle is charged to full power every interval preset charging duration with a preset fast charging power, and the preset fast charging power is greater than the preset slow charging power;
[0039] At the end of each day test of the cyclic test process, the vehicle is charged with a preset slow charging power.
[0040] In a second aspect, the application provides a motor controller testing device, comprising:
[0041] An acquisition module is configured to acquire working condition selection data, wherein the working condition selection data is a power system type and / or a use scenario.
[0042] A processing module is configured to select at least one target working condition from a working condition set according to the working condition selection data.
[0043] An output module is configured to output a preset total number of cycles and a test step corresponding to each target working condition.
[0044] The acquisition module is further configured to acquire motor controller working data, driving motor working data and test logs corresponding to each target working condition in a loop test process, and at least one of vehicle load, driving mode and energy recovery level is different in different loops of the loop test process.
[0045] The processing module is further configured to generate a test report according to the motor controller working data, the driving motor working data and the test logs corresponding to each target working condition.
[0046] In a third aspect, the present application provides an electronic device, comprising:
[0047] a processor, a memory and a communication interface;
[0048] The memory is configured to store executable instructions of the processor.
[0049] The processor is configured to execute the motor controller test method according to any one of the first aspect by executing the executable instructions.
[0050] In a fourth aspect, the present application provides a readable storage medium having a computer program stored thereon, and the computer program is executed by a processor to implement the motor controller test method according to any one of the first aspect.
[0051] In a fifth aspect, the present application provides a computer program product comprising a computer program, and the computer program is executed by a processor to implement the motor controller test method according to any one of the first aspect.
[0052] The present application has the following advantages:
[0053] (1) According to the working condition selection data, at least one target working condition is selected from the working condition set, and the preset total number of loops and the test steps corresponding to each target working condition are output. In the loop test process, the motor controller working data, the driving motor working data and the test logs corresponding to each target working condition are acquired. Then, the test report is generated according to the motor controller working data, the driving motor working data and the test logs corresponding to each target working condition. According to the present application, the target working condition is selected from the working condition set according to the working condition selection data, and then the test is performed according to the test steps corresponding to the target working condition. Therefore, it is not necessary to perform the test according to the test steps corresponding to all working conditions in the working condition set, and the test efficiency is improved.
[0054] (2) According to the motor controller working data, the driving motor working data and the test logs corresponding to each target working condition, the test report is generated, and it is not necessary to manually collect and analyze the data, and the test efficiency is improved. BRIEF DESCRIPTION OF DRAWINGS
[0055] The accompanying drawings, which are incorporated herein and constitute part of this specification, illustrate embodiments consistent with the application and, together with the description, further serve to explain the principles of the application.
[0056] Figure 1a A flowchart of a motor controller test method embodiment provided by the present application;
[0057] Figure 1b A schematic diagram of test items of a static working condition provided by the present application;
[0058] Figure 1c A schematic diagram of test items of a slope working condition provided by the present application;
[0059] Figure 1d A schematic diagram of test items of a high-speed gear shifting working condition provided by the present application;
[0060] Figure 1e A schematic diagram of test items of a medium-speed gear shifting working condition provided by the present application;
[0061] Figure 1f A schematic diagram of test items of a low-speed gear shifting working condition provided by the present application;
[0062] Figure 1g A schematic diagram of test items of a low road adhesion coefficient working condition provided by the present application;
[0063] Figure 1h A schematic diagram of test items of a creeping working condition provided by the present application;
[0064] Figure 1i A schematic diagram of test items of an overspeed working condition provided by the present application;
[0065] Figure 2 A flowchart of a motor controller test method embodiment provided by the present application;
[0066] Figure 3 A structural schematic diagram of a motor controller test device embodiment provided by the present application;
[0067] Figure 4 A structural schematic diagram of an electronic device provided by the present application.
[0068] The specific embodiments of the present application have been shown through the above-described drawings, and will be described in more detail hereinafter. These drawings and written descriptions are not intended to limit the scope of the concept of the present application by any means, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0069] Other advantages and benefits of the present application will become apparent to those skilled in the art, upon consideration of the following detailed description of embodiments of the application, in connection with the accompanying drawings. Various embodiments of the application can be realized, and carried out, by a variety of different structures, systems, and methods, and in many different ways. The detailed description of the application is presented for the purpose of clarity and understanding only, and is not intended to limit the scope of the application in any way. It should be noted that the preferred embodiments are merely illustrative of the present application, and should not be construed as limiting the scope of the present application in any way.
[0070] It should be noted that the drawings provided in the following embodiments are only schematic and are intended to provide the basic understanding of the application. In the drawings, the size, the shape and the relative positions of the components may not be drawn to scale, and the design of the components in the drawings may be different from the actual implementation, and the layout of the components may be more complex. Therefore, the drawings are only for the purpose of illustrating the basic idea of the application.
[0071] With the continuous development of technology, there are more and more types of vehicles using driving motors as power, not only hybrid electric vehicles, but also pure electric vehicles. These vehicles have motor controllers for controlling the operation of driving motors. In order to improve the durability and reliability of the motor controller, the motor controller needs to be tested.
[0072] In the prior art, the test method of the motor controller is usually to test the vehicle by using some fixed working condition corresponding test steps, and then collect and analyze the data of the motor controller during the test period by manual method to determine the test result, which will cause the problem of low test efficiency.
[0073] In view of the problems in the prior art, the inventors found during the research on the motor controller test method that in order to improve the test efficiency, different target working conditions can be selected according to different vehicle conditions, and then the test is carried out according to the test steps corresponding to the target working conditions. Then, according to the motor controller working data, the driving motor working data and the test log corresponding to each target working condition in the cycle test process, a test report is generated, which can improve the test efficiency. Based on the above invention idea, the motor controller test scheme in the present application is designed.
[0074] The execution subject of the motor controller test method in the present application can be a computer, and can also be a vehicle terminal, a server, etc., which is not limited in the present application. The following will be described taking the computer as an example.
[0075] The application scenario of the motor controller test method provided in the present application will be described below.
[0076] For example, in this application scenario, after a new vehicle is developed, the power source included in the vehicle includes a drive motor, and in order to test the durability and reliability of the motor controller, the motor controller needs to be tested.
[0077] First, the computer obtains the working condition selection data, and then selects at least one target working condition from the working condition set according to the working condition selection data, and outputs the preset total number of cycles and the test steps corresponding to each target working condition, so that the test personnel can check.
[0078] It should be noted that the preset total number of cycles can be 100, 120, 150, etc., and the embodiment of the present application does not limit the preset total number of cycles, which can be determined according to actual conditions.
[0079] The test personnel performs a cycle test according to the preset total number of cycles, and drives the vehicle to test according to the test steps corresponding to each target working condition each time.
[0080] The computer obtains the motor controller working data, drive motor working data, and test log corresponding to each target working condition during the cycle test, and then generates a test report according to the motor controller working data, drive motor working data, and test log corresponding to each target working condition.
[0081] The test personnel can determine the faults occurring in the test process according to the test report to determine the durability and reliability of the motor controller.
[0082] It should be noted that the above scenario is only an example of an application scenario provided by the embodiment of the present application, and the actual form of various devices included in the scenario is not limited, nor is the interaction mode between the devices limited. In the specific application of the scheme, it can be set according to actual needs.
[0083] Next, the technical scheme of the present application will be described in detail through specific embodiments. It should be noted that the following specific embodiments can be combined with each other, and the same or similar concepts or processes can not be described in detail in some embodiments.
[0084] Figure 1a The flowchart of the motor controller test method embodiment provided by the present application, the computer selects the target working condition from the working condition set, and then the motor controller working data, drive motor working data, and test log obtained during the test process according to the test steps corresponding to the target working condition are described. The method in this embodiment can be realized by software, hardware or a combination of software and hardware. As Figure 1a shown, the motor controller test method specifically includes the following steps:
[0085] S101: Obtain working condition selection data.
[0086] In this step, in order to test the motor controller, the computer needs to obtain working condition selection data, which is the power system type and / or the use scenario, in order to determine how to test.
[0087] The power system type is a series hybrid type, a parallel hybrid type, a series-parallel hybrid type, or a pure electric type.
[0088] The vehicle of the series hybrid type is driven by the engine, which drives the generator to generate electricity for the drive motor.
[0089] The vehicle of the parallel hybrid type is driven by the engine and the drive motor independently or jointly.
[0090] The vehicle of the series-parallel hybrid type is driven by the engine and the drive motor independently or jointly.
[0091] The vehicle of the pure electric type does not have an engine, and the battery supplies power to the drive motor.
[0092] The use scenario is a high-speed use scenario, a medium-speed use scenario, or a low-speed use scenario.
[0093] The use scenario of the vehicle is a high-speed use scenario, which means that the vehicle is generally only used at high speed after production.
[0094] The use scenario of the vehicle is a medium-speed use scenario, which means that the vehicle is generally only used at medium speed after production.
[0095] The use scenario of the vehicle is a low-speed use scenario, which means that the vehicle is generally only used at low speed after production.
[0096] S102: Select at least one target working condition from the working condition set according to the working condition selection data.
[0097] In this step, after the computer obtains the working condition selection data, in order to improve the test efficiency and determine how to test, it needs to select at least one target working condition from the working condition set according to the working condition selection data.
[0098] The working condition set comprises at least one of a static working condition, a ramp working condition, a high-speed gear shifting working condition, a medium-speed gear shifting working condition, a low-speed gear shifting working condition, a low road adhesion coefficient working condition, a crawling working condition and an overspeed working condition.
[0099] Specifically, in the case that the working condition selection data is the power system type, if the power system type is the pure electric power type, it is indicated that there is no need to test in the working condition with the engine, and the selected target working condition comprises the ramp working condition, the high-speed gear shifting working condition, the medium-speed gear shifting working condition, the low-speed gear shifting working condition, the low road adhesion coefficient working condition, the crawling working condition and the overspeed working condition.
[0100] If the power system type is not the pure electric power type, it is indicated that there is a need to test in the working condition with the engine, and the selected target working condition comprises the static working condition, the ramp working condition, the high-speed gear shifting working condition, the medium-speed gear shifting working condition, the low-speed gear shifting working condition, the low road adhesion coefficient working condition, the crawling working condition and the overspeed working condition.
[0101] In the case that the working condition selection data is the use scene, if the use scene is the high-speed use scene, it is indicated that there is no need to test in the medium-speed, low-speed and crawling related working conditions, and the selected target working condition comprises the ramp working condition, the high-speed gear shifting working condition, the low road adhesion coefficient working condition and the overspeed working condition.
[0102] If the use scene is the medium-speed use scene, it is indicated that there is no need to test in the high-speed, low-speed and crawling related working conditions, and the selected target working condition comprises the ramp working condition, the medium-speed gear shifting working condition and the low road adhesion coefficient working condition.
[0103] If the use scene is the low-speed use scene, it is indicated that there is no need to test in the high-speed and medium-speed related working conditions, and the selected target working condition comprises the ramp working condition, the low-speed gear shifting working condition, the low road adhesion coefficient working condition and the crawling working condition.
[0104] In the case that the working condition selection data is the power system type and the use scene, if the power system type is the pure electric power type and the use scene is the high-speed use scene, it is indicated that there is no need to test in the working condition with the engine, and there is also no need to test in the medium-speed, low-speed and crawling related working conditions, and the selected target working condition comprises the ramp working condition, the high-speed gear shifting working condition, the low road adhesion coefficient working condition and the overspeed working condition.
[0105] If the power system type is the pure electric power type and the use scene is the medium-speed use scene, it is indicated that there is no need to test in the working condition with the engine, and there is also no need to test in the high-speed, low-speed and crawling related working conditions, and the selected target working condition comprises the ramp working condition, the medium-speed gear shifting working condition and the low road adhesion coefficient working condition.
[0106] If the power system type is pure electric power type and the use scenario is low-speed use scenario, it is indicated that there is no need to test in the working condition with the engine and there is no need to test in the working condition related to high speed, medium speed and crawling, and the selected target working condition includes the ramp working condition, the low-speed variable-speed working condition, the low-road adhesion coefficient working condition and the crawling working condition.
[0107] If the power system type is not pure electric power type and the use scenario is high-speed use scenario, it is indicated that there is a need to test in the working condition with the engine and there is no need to test in the working condition related to medium speed, low speed and crawling, and the selected target working condition includes the static working condition, the ramp working condition, the high-speed variable-speed working condition, the low-road adhesion coefficient working condition and the overspeed working condition.
[0108] If the power system type is not pure electric power type and the use scenario is medium-speed use scenario, it is indicated that there is a need to test in the working condition with the engine and there is no need to test in the working condition related to high speed, low speed and crawling, and the selected target working condition includes the static working condition, the ramp working condition, the medium-speed variable-speed working condition and the low-road adhesion coefficient working condition.
[0109] If the power system type is not pure electric power type and the use scenario is low-speed use scenario, it is indicated that there is a need to test in the working condition with the engine and there is no need to test in the working condition related to high speed and medium speed, and the selected target working condition includes the static working condition, the ramp working condition, the low-speed variable-speed working condition, the low-road adhesion coefficient working condition and the crawling working condition.
[0110] S103: output the preset total number of cycles and the test steps corresponding to each target working condition.
[0111] In this step, after the computer selects the target working condition, in order to enable the tester to drive the vehicle for testing subsequently, the preset total number of cycles and the test steps corresponding to each target working condition need to be output.
[0112] The tester drives the vehicle without failure to perform the cycle test according to the preset total number of cycles, and each cycle adopts the test steps corresponding to each target working condition to perform the test.
[0113] It needs to be noted that in different cycles in the cycle test process, at least one of the vehicle load, the driving mode and the energy recovery level is different, so as to ensure that through the cycle test, the motor controller under different vehicle loads, driving modes and energy recovery levels can be tested, the test accuracy is improved, and the test is more matched with the real driving of the user.
[0114] The vehicle load can be empty load or full load, and can also be empty load, half load or full load. The driving mode can be economy mode, standard mode or sports mode. The energy recovery level can be strong level, medium level or weak level.
[0115] In the case of a parallel hybrid vehicle or a hybrid hybrid power type, at least one of the vehicle load, the driving mode, the energy recovery level, and the power mode is different in different cycles of the cycle test process. The power mode can be a motor drive mode, an engine drive mode, or a hybrid drive mode.
[0116] Specifically, the test steps corresponding to the static working condition include test steps of a plurality of test items, and exemplary, Figure 1b The schematic diagram of the test items of the static working condition provided in the present application is as follows: Figure 1b As shown in the figure, the test items corresponding to the static working condition include static start-stop test, pre-charge and discharge test, sleep-wakeup test, flat ground shift test, small slope shift test, and in-and-out warehouse shift test.
[0117] The test steps of the static start-stop test are:
[0118] 1. Turn off the engine.
[0119] 2. Start the engine after a first preset time.
[0120] 3. Turn off the engine after the engine idles for a second preset time.
[0121] 4. Start the engine.
[0122] It should be noted that the first preset time can be 5 hours, 6 hours, 7 hours, 10 hours, etc., and the first preset time can be 10 minutes, 15 minutes, 20 minutes, etc. The first preset time and the second preset time are not limited by the embodiments of the present application, and can be determined according to actual conditions.
[0123] The test steps of the pre-charge and discharge test are: multiple start-stop operations. The start-stop operation is engine start and power down, and the time interval between the start-stop operations is not fixed.
[0124] It should be noted that the time interval between the start-stop operations can be 0.5 seconds, 1 second, 2 seconds, etc. The number of start-stop operations can be 8, 10, 15, etc. The time interval between the start-stop operations and the number of start-stop operations are not limited by the embodiments of the present application, and can be determined according to actual conditions.
[0125] The test steps of the sleep-wakeup test are:
[0126] 1. Turn off the vehicle.
[0127] 2. Start the vehicle after a preset sleep time.
[0128] It should be noted that the preset dormancy duration can be 5 minutes, 10 minutes, 15 minutes, 20 minutes, 30 minutes, etc., and the present application does not limit the preset dormancy duration, which can be determined according to actual conditions.
[0129] The test steps of the flat ground shifting test are:
[0130] 1. Start the vehicle on a horizontal ground, continuously switch between P, R, N, and D positions, step on the brake pedal each time, and release the brake pedal after each switch.
[0131] 2. Start the vehicle on a horizontal ground, continuously switch between P, R, N, and D positions, and continuously step on the brake pedal during the switching process.
[0132] The test steps of the small slope shifting test are:
[0133] 1. Start the vehicle on a slope with a slope range belonging to the first preset slope range, continuously switch between P, R, N, and D positions, step on the brake pedal each time, and release the brake pedal after each switch.
[0134] 2. Start the vehicle on a slope with a slope range belonging to the first preset slope range, continuously switch between P, R, N, and D positions, and continuously step on the brake pedal during the switching process.
[0135] It should be noted that the first preset slope range can be (0%, 3%), (0%, 5%), (0%, 7%), etc., and the present application does not limit the first preset slope range, which can be determined according to actual conditions.
[0136] The test steps of the warehouse entry and exit shifting test are:
[0137] 1. Turn left to the limit position and advance a first preset distance, then step on the brake, do not return the steering wheel, continuously switch between P, R, N, and D positions, and continuously step on the brake pedal during the switching process.
[0138] 2. The vehicle returns to the original position and the steering wheel is returned to the normal position.
[0139] 3. Turn right to the limit position and advance a first preset distance, then step on the brake, do not return the steering wheel, continuously switch between P, R, N, and D positions, and continuously step on the brake pedal during the switching process.
[0140] It should be noted that the first preset distance can be 2 meters, 3 meters, 4 meters, etc., and the present application does not limit the first preset distance, which can be determined according to actual conditions.
[0141] The test steps corresponding to the slope working condition include the test steps of multiple test items, for example, Figure 1cA schematic diagram of test items of the ramp working condition provided in the present application is shown in FIG. 1, and the test items corresponding to the ramp working condition include a regular downhill test, a downhill coasting test, a regular uphill test, a half-ramp start test, a positive slope coasting test, and a regular downhill test. Figure 1c
[0142] The test steps of the regular downhill test are as follows: the vehicle is driven uphill on a ramp with a slope belonging to a second preset slope range at different initial vehicle speeds and different accelerator pedal opening degrees, and the vehicle speed does not exceed a first vehicle speed threshold.
[0143] It should be noted that the second preset slope range can be (0%, 15%), (0%, 20%), (0%, 25%), etc., the first vehicle speed threshold can be 25 km / h, 30 km / h, 35 km / h, etc., the initial vehicle speed can be 0 km / h, 5 km / h, 10 km / h, and the accelerator pedal opening degree can be 50%, 70%, 80%, etc. The second preset slope range, the first vehicle speed threshold, the initial vehicle speed, and the accelerator pedal opening degree are not limited in the present application, and can be determined according to actual conditions.
[0144] The test steps of the downhill coasting test are as follows:
[0145] 1. The vehicle is driven downhill on a ramp with a slope belonging to the second preset slope range, and the vehicle speed does not exceed the first vehicle speed threshold.
[0146] 2. The brake pedal is depressed until the vehicle stops.
[0147] 3. The brake pedal is released.
[0148] 4. The vehicle is coasted for a second preset distance, and then the accelerator pedal is depressed at 100% opening.
[0149] It should be noted that the second preset distance can be 1 meter, 2 meters, 3 meters, etc., and the second preset distance is not limited in the present application, and can be determined according to actual conditions.
[0150] The test steps of the regular uphill test are as follows: the vehicle is driven uphill on a ramp with a slope belonging to a third preset slope range at different initial vehicle speeds and different accelerator pedal opening degrees, and the vehicle speed does not exceed a second vehicle speed threshold.
[0151] It should be noted that the third preset slope range can be (0%, 40%), (0%, 45%), (0%, 50%), etc., the second vehicle speed threshold can be 55km / h, 60km / h, 65km / h, etc., the initial vehicle speed can be 0km / h, 5km / h, 10km / h, and the accelerator pedal opening degree can be 50%, 70%, 80%, etc. The third preset slope range, the second vehicle speed threshold, the initial vehicle speed, and the accelerator pedal opening degree are not limited in the embodiments of the present application, and can be determined according to actual conditions.
[0152] The test steps of the half-slope starting test are: at different accelerator pedal opening degrees, the brake pedal is repeatedly stepped down to the vehicle stopping on a slope with a slope belonging to the third preset slope range, and then the accelerator pedal is stepped down at the accelerator pedal opening degree.
[0153] It should be noted that the accelerator pedal opening degree can be 50%, 70%, 80%, etc. The accelerator pedal opening degree is not limited in the embodiments of the present application, and can be determined according to actual conditions.
[0154] The test steps of the uphill coasting test are:
[0155] 1. Drive on a slope with a slope belonging to the third preset slope range, and the vehicle speed is not more than the second vehicle speed threshold.
[0156] 2. Step down the brake pedal until the vehicle stops.
[0157] 3. Release the brake pedal.
[0158] 4. After the vehicle coasts for a second preset distance, step down the accelerator pedal at 100% opening degree.
[0159] The test steps of the regular downhill test are: drive on a slope with a slope belonging to the third preset slope range, and the vehicle speed is not more than the second vehicle speed threshold, and determine whether to start the steep slope slow descending function according to the number of current cycles.
[0160] It should be noted that the way of determining whether to start the steep slope slow descending function according to the number of current cycles is: if the number of current cycles belongs to a preset number range, the steep slope slow descending function is started; if the number of current cycles does not belong to the preset number range, the steep slope slow descending function is closed. The preset number range can be 0-20, 0-30, 0-50, etc. The preset number range is not limited in the embodiments of the present application, and can be determined according to actual conditions.
[0161] The test steps corresponding to the high-speed shifting working condition include the test steps of a plurality of test items, for example, Figure 1d The test items of the high-speed shifting working condition provided by the present application are shown in the schematic diagram, Figure 1dAs shown, the test items corresponding to the high-speed gear shifting working condition include continuous high-speed gear shifting test, high-speed braking test, high-speed coasting test, and continuous fast pressing and fast releasing of the accelerator pedal test.
[0162] The test steps of the continuous high-speed gear shifting test are as follows: at different accelerator pedal opening degrees, multiple fast pressing and releasing of the accelerator pedal is performed in the preset high-speed speed range.
[0163] It should be noted that the preset high-speed speed range can be 85-150km / h, 90-145km / h, 95-140km / h, etc., and the accelerator pedal opening degree can be 50%, 70%, 80%, etc. The preset high-speed speed range and the accelerator pedal opening degree are not limited in the embodiments of the present application, and can be determined according to actual conditions.
[0164] The test steps of the high-speed braking test are as follows: at different deceleration, the brake pedal is pressed multiple times, and the initial speed does not exceed the third speed threshold.
[0165] It should be noted that the third speed threshold can be 110km / h, 120km / h, 125km / h, etc., and the deceleration can be 0.3g, 0.45g, 0.5g, etc. The third speed threshold and the deceleration are not limited in the embodiments of the present application, and can be determined according to actual conditions.
[0166] The test steps of the high-speed coasting test are as follows:
[0167] 1. In the D gear, multiple coasting is performed at different energy recovery levels, and the initial speed does not exceed the third speed threshold.
[0168] 2. In the N gear, multiple coasting is performed at different energy recovery levels, and the initial speed does not exceed the third speed threshold.
[0169] It should be noted that the energy recovery level can be a strong level, a medium level, and a weak level. The energy recovery level is not limited in the embodiments of the present application, and can be determined according to actual conditions.
[0170] The test steps of the continuous fast pressing and fast releasing of the accelerator pedal test are as follows: at different accelerator pedal opening degrees and different interval time lengths, multiple fast pressing and fast releasing of the accelerator pedal is performed, and the speed does not exceed the third speed threshold.
[0171] It should be noted that the accelerator pedal opening degree can be 20%, 30%, 50%, etc., and the interval time length can be 1 second, 2 seconds, 3 seconds, etc. The accelerator pedal opening degree and the interval time length are not limited in the embodiments of the present application, and can be determined according to actual conditions.
[0172] The test steps corresponding to the medium-speed gear shifting working condition include the test steps of multiple test items, and exemplary, Figure 1eA schematic diagram of test items provided by the present application for the medium-speed variable speed working condition is shown in FIG. 3. Figure 1e As shown in FIG. 3, the test items corresponding to the medium-speed variable speed working condition include a continuous medium-speed variable speed test, a medium-speed braking test, and a medium-speed coasting test.
[0173] The test steps of the continuous medium-speed variable speed test are as follows: at different accelerator pedal opening degrees, continuously and rapidly stepping on the accelerator pedal and releasing the accelerator pedal is performed multiple times in a preset medium-speed vehicle speed range.
[0174] It should be noted that the preset medium-speed vehicle speed range can be 45-95km / h, 50-90km / h, 55-85km / h, etc., and the accelerator pedal opening degree can be 50%, 70%, 80%, etc. The preset medium-speed vehicle speed range and the accelerator pedal opening degree are not limited in the embodiments of the present application, and can be determined according to actual conditions.
[0175] The test steps of the medium-speed braking test are as follows: the brake pedal is stepped on multiple times at different deceleration rates, and the initial speed does not exceed a fourth vehicle speed threshold.
[0176] It should be noted that the fourth vehicle speed threshold can be 85km / h, 90km / h, 95km / h, etc., and the deceleration rate can be 0.3g, 0.45g, 0.5g, etc. The fourth vehicle speed threshold and the deceleration rate are not limited in the embodiments of the present application, and can be determined according to actual conditions.
[0177] The test steps of the medium-speed coasting test are as follows:
[0178] 1. In the D gear, coasting is performed multiple times at different energy recovery levels, and the initial speed does not exceed the fourth vehicle speed threshold.
[0179] 2. In the N gear, coasting is performed multiple times at different energy recovery levels, and the initial speed does not exceed the fourth vehicle speed threshold.
[0180] It should be noted that the energy recovery level can be a strong level, a medium level, and a weak level. The energy recovery level is not limited in the embodiments of the present application, and can be determined according to actual conditions.
[0181] The test steps corresponding to the low-speed variable speed working condition include the test steps of multiple test items, for example, Figure 1f A schematic diagram of test items provided by the present application for the low-speed variable speed working condition is shown in FIG. 4. Figure 1f As shown in FIG. 4, the test items corresponding to the low-speed variable speed working condition include a continuous low-speed variable speed test, a low-speed braking test, and a low-speed coasting test.
[0182] The test steps of the continuous low-speed variable speed test are as follows: at different accelerator pedal opening degrees, continuously and rapidly stepping on the accelerator pedal and releasing the accelerator pedal is performed multiple times in a preset low-speed vehicle speed range.
[0183] It should be noted that the preset low-speed vehicle speed range can be 0-45km / h, 0-50km / h, 0-55km / h, etc., and the accelerator pedal opening degree can be 50%, 70%, 80%, etc. The preset low-speed vehicle speed range and the accelerator pedal opening degree are not limited in the embodiments of the present application, and can be determined according to actual conditions.
[0184] The test steps of the low-speed braking test are: stepping on the brake pedal multiple times at different deceleration rates, and the initial speed is not more than the fifth vehicle speed threshold.
[0185] It should be noted that the fifth vehicle speed threshold can be 45km / h, 50km / h, 55km / h, etc., and the deceleration rate can be 0.3g, 0.45g, 0.5g, etc. The fifth vehicle speed threshold and the deceleration rate are not limited in the embodiments of the present application, and can be determined according to actual conditions.
[0186] The test steps of the low-speed coasting test are:
[0187] 1. In the D gear, coasting multiple times at different energy recovery levels, and the initial speed is not more than the fifth vehicle speed threshold.
[0188] 2. In the N gear, coasting multiple times at different energy recovery levels, and the initial speed is not more than the fifth vehicle speed threshold.
[0189] The test steps corresponding to the low road adhesion coefficient working condition include the test steps of multiple test items, for example, Figure 1g The schematic diagram of the test items of the low road adhesion coefficient working condition provided by the present application is shown in Figure 1g The test items corresponding to the low road adhesion coefficient working condition include the single-wheel drive anti-slip test and the all-wheel drive anti-slip test.
[0190] The test steps of the single-wheel drive anti-slip test are: stepping on the accelerator pedal at 100% of the accelerator opening degree multiple times at different initial speeds on the low road adhesion coefficient road with the left or right wheels.
[0191] It should be noted that the initial speed can be 0km / h, 5km / h, 10km / h, etc. The initial speed is not limited in the embodiments of the present application, and can be determined according to actual conditions.
[0192] The test steps of the all-wheel drive anti-slip test are: stepping on the accelerator pedal at 100% of the accelerator opening degree multiple times at different initial speeds on the low road adhesion coefficient road with all wheels.
[0193] It should be noted that the initial speed can be 0km / h, 5km / h, 10km / h, etc. The initial speed is not limited in the embodiments of the present application, and can be determined according to actual conditions.
[0194] The test steps corresponding to the crawling working condition include test steps of multiple test items, and examples are as follows. Figure 1h A schematic diagram of test items of the crawling working condition provided in the present application is as shown in the following table. Figure 1h As shown in the table, the test items corresponding to the crawling working condition include D-gear downhill crawling test, R-gear downhill crawling test, start-up crawling test, brake-in crawling test, and coast-in crawling test.
[0195] The test steps of the D-gear downhill crawling test are as follows: on a slope with a slope belonging to a first preset slope range, the D-gear is engaged, the brake pedal and the accelerator pedal are released, and the vehicle is driven downhill by a third preset distance.
[0196] It should be noted that the third preset distance can be 10 meters, 15 meters, 20 meters, etc., and the embodiments of the present application do not limit the third preset distance, which can be determined according to actual conditions.
[0197] The test steps of the R-gear downhill crawling test are as follows: on a slope with a slope belonging to a first preset slope range, the R-gear is engaged, the brake pedal and the accelerator pedal are released, and the vehicle is driven downhill by a third preset distance.
[0198] The test steps of the start-up crawling test are as follows: on a horizontal road surface, the D-gear is engaged, the brake pedal and the accelerator pedal are released, and the vehicle is driven by a third preset distance.
[0199] The test steps of the brake-in crawling test are as follows:
[0200] 1. On a horizontal road surface, the D-gear is engaged, the brake pedal and the accelerator pedal are released, and the vehicle is driven at a first crawling speed, the brake pedal is depressed to control the vehicle speed to a second crawling speed, and the vehicle is driven by a third preset distance.
[0201] 2. On a horizontal road surface, the R-gear is engaged, the brake pedal and the accelerator pedal are released, and the vehicle is driven at a first crawling speed, the brake pedal is depressed to control the vehicle speed to a second crawling speed, and the vehicle is driven by a third preset distance.
[0202] It should be noted that the first crawling speed is greater than the second crawling speed, the first crawling speed can be 8 km / h, 9 km / h, 10 km / h, etc., and the second crawling speed can be 3 km / h, 4 km / h, 5 km / h, etc., and the embodiments of the present application do not limit the first crawling speed and the second crawling speed, which can be determined according to actual conditions.
[0203] The test steps of the coast-in crawling test are as follows:
[0204] 1. On a horizontal road surface, the D-gear is engaged, the accelerator pedal is depressed to accelerate to a sixth vehicle speed threshold, the accelerator pedal is released to maintain the D-gear, the vehicle is coasted to a crawling steady state, and the vehicle is driven by a third preset distance in the crawling steady state.
[0205] 2. On the horizontal road surface, the D gear is engaged to accelerate to the sixth vehicle speed threshold, the accelerator pedal is released, the N gear is engaged, the vehicle is coasted to the creep steady state, and the third preset distance is traveled in the creep steady state.
[0206] 3. On the horizontal road surface, the R gear is engaged to accelerate to the seventh vehicle speed threshold, the accelerator pedal is released, the R gear is maintained, the vehicle is coasted to the creep steady state, and the third preset distance is traveled in the creep steady state.
[0207] 4. On the horizontal road surface, the R gear is engaged to accelerate to the seventh vehicle speed threshold, the accelerator pedal is released, the N gear is engaged, the vehicle is coasted to the creep steady state, and the third preset distance is traveled in the creep steady state.
[0208] It should be noted that the sixth vehicle speed threshold can be 15 km / h, 20 km / h, 30 km / h, etc., and the seventh vehicle speed threshold can be 10 km / h, 13 km / h, 15 km / h, etc. The sixth vehicle speed threshold and the seventh vehicle speed threshold are not limited in the embodiments of the present application, and can be determined according to actual conditions.
[0209] It should be noted that the creep steady state refers to the vehicle speed being maintained in a preset creep vehicle speed range. The preset creep vehicle speed range can be 3-10 km / h, 4-8 km / h, 5-7 km / h, etc. The preset creep vehicle speed range is not limited in the embodiments of the present application, and can be determined according to actual conditions.
[0210] The test steps corresponding to the overspeed working condition include test steps of multiple test items. For example, Figure 1i A schematic diagram of the test items of the overspeed working condition provided in the present application is shown in FIG. 1. Figure 1i As shown in FIG. 1, the test items corresponding to the overspeed working condition include extreme speed testing and cruise testing.
[0211] The test steps of the extreme speed testing are: traveling at the maximum vehicle speed for a fourth preset distance.
[0212] It should be noted that the fourth preset distance can be 40 kilometers, 50 kilometers, 60 kilometers, 70 kilometers, etc. The fourth preset distance is not limited in the embodiments of the present application, and can be determined according to actual conditions.
[0213] The test steps of the cruise testing are: multiple uniform speed travels at different cruise speeds for a fifth preset distance.
[0214] It should be noted that the cruise speed can be 120 km / h, 130 km / h, 140 km / h, etc., and the fifth preset distance can be 10 kilometers, 20 kilometers, 30 kilometers, etc. The cruise speed and the fifth preset distance are not limited in the embodiments of the present application, and can be determined according to actual conditions.
[0215] S104: In the process of the cycle test, the motor controller working data, the driving motor working data and the test log corresponding to each target working condition are acquired.
[0216] In this step, the computer acquires the motor controller working data, the driving motor working data and the test log corresponding to each target working condition in the process of the cycle test, so as to generate the test report.
[0217] In the process of testing according to the test step corresponding to a target working condition, the computer can acquire the motor controller working data and the driving motor working data according to a certain sampling frequency. After the test step is completed, the test log is acquired.
[0218] When the motor controller working data and the driving motor working data are acquired, the vehicle position, the vehicle speed, the slope and other information can be acquired synchronously.
[0219] The sampling frequency can be 50 Hz, 60 Hz, 70 Hz, etc. The application embodiment does not limit the sampling frequency, which can be determined according to the actual situation.
[0220] The motor controller working data corresponding to each target working condition includes a plurality of first sub-working data and the acquisition time of each first sub-working data, and the driving motor working data corresponding to each target working condition includes a plurality of second sub-working data and the acquisition time of each second sub-working data.
[0221] It should be noted that the first sub-working data can be temperature, current, voltage, etc., and the second sub-working data can be speed, torque, current, etc. The application embodiment does not limit the first sub-working data and the second sub-working data, which can be determined according to the actual situation.
[0222] It should be noted that after the motor controller working data, the driving motor working data and the test log corresponding to the target working condition are acquired, these data can be stored and displayed. The user can perform operations such as adding, deleting, modifying and inquiring on these data.
[0223] S105: According to the motor controller working data, the driving motor working data and the test log corresponding to each target working condition, a test report is generated.
[0224] In this step, after the computer acquires the motor controller working data, the driving motor working data and the test log corresponding to each target working condition, whether a fault occurs in the test process is determined according to these data, and then a test report is generated.
[0225] It should be noted that in order to improve the matching of the test and the real situation of the vehicle, the vehicle charging can be controlled for the vehicle that can be charged.
[0226] Before the start of the cycle test process, the vehicle is charged to full power with a preset slow charging power. During the cycle test process, the vehicle is charged to full power with a preset fast charging power every preset charging time interval. At the end of each day of the cycle test process, the vehicle is charged with a preset slow charging power.
[0227] It should be noted that the preset fast charging power is greater than the preset slow charging power, and the preset fast charging power can be 50kW, 100kW, 150kW, 300kW, etc., and the preset slow charging power can be 1.5kW, 5kW, 10kW, 20kW, etc. The preset fast charging power and the preset slow charging power are not limited by the embodiments of the application and can be determined according to actual conditions.
[0228] It should be noted that the preset charging time interval can be 6 hours, 8 hours, 12 hours, etc. The preset charging time interval is not limited by the embodiments of the application and can be determined according to actual conditions.
[0229] It should be noted that if the vehicle is being charged with the preset slow charging power after the preset charging time interval, the preset slow charging power is maintained for charging.
[0230] At the end of each day of the test, the vehicle is charged with a preset slow charging power, and the vehicle is charged to full power with a preset fast charging power every preset charging time interval, simulating the actual use of the vehicle by the user, and improving the test accuracy.
[0231] The motor controller test method provided in the embodiment, after obtaining the working condition selection data, selects at least one target working condition from the working condition set according to the working condition selection data, and then outputs a preset total number of cycles and a test step corresponding to each target working condition. During the cycle test process, the motor controller working data corresponding to each target working condition, the driving motor working data, and the test log are obtained; and then a test report is generated according to the motor controller working data corresponding to each target working condition, the driving motor working data, and the test log. The present scheme selects a target working condition from a working condition set according to working condition selection data, and then tests according to the test step corresponding to the target working condition, without testing according to the test step corresponding to all working conditions in the working condition set, thereby improving the test efficiency. The test report is generated by obtaining the motor controller working data corresponding to each target working condition, the driving motor working data, and the test log, without manually collecting and analyzing data, thereby improving the test efficiency.
[0232] In addition, the present scheme tests according to the test step corresponding to the working condition in the working condition set, and the working condition set includes a large number of working conditions, which can improve the test integrity and accuracy.
[0233] Figure 2The flowchart of the second embodiment of the motor controller test method provided in the application is shown in FIG. 2. Based on the above embodiment, the present embodiment describes how the computer generates a test report according to the motor controller working data, the driving motor working data, and the test log corresponding to each target working condition. As shown in FIG. 2, the motor controller test method specifically includes the following steps: Figure 2
[0234] S201: For each target working condition, generate a first test result corresponding to the target working condition according to the motor controller working data and the driving motor working data corresponding to the target working condition.
[0235] In this step, after the computer obtains the motor controller working data, the driving motor working data, and the test log corresponding to each target working condition, for each target working condition, the computer generates a first test result corresponding to the target working condition according to the motor controller working data and the driving motor working data corresponding to the target working condition.
[0236] The first test result includes a first fault indication result indicating whether the motor controller has a fault. If the first test result includes the first fault indication result indicating that the motor controller has a fault, the first test result further includes a fault time.
[0237] In an implementation manner, the first test result corresponding to the target working condition is generated according to the target working condition, the threshold range corresponding to each first sub-working data, the threshold range corresponding to each second sub-working data, and the motor controller working data and the driving motor working data corresponding to the target working condition.
[0238] That is, for each first sub-working data corresponding to the target working condition, if the first sub-working data does not belong to the target working condition and the threshold range corresponding to the first sub-working data, a first fault indication result indicating that the motor controller has a fault is generated, and the collection time of the first sub-working data is taken as the fault time.
[0239] For each second sub-working data corresponding to the target working condition, if the second sub-working data does not belong to the target working condition and the threshold range corresponding to the second sub-working data, a first fault indication result indicating that the motor controller has a fault is generated, and the collection time of the second sub-working data is taken as the fault time.
[0240] It should be noted that the threshold range can be -40~70 degrees Celsius, -20~60 degrees Celsius, -10~50 degrees Celsius, etc., can also be 40~900V, 100~800V, 200~700V, etc., can also be 0~800A, 10~700A, 50~500A, etc., can also be 8000~12000rpm, 9000~11000rpm, 8000~10000rpm, etc., can also be 0~30Nm, 0~40Nm, 0~50Nm, etc. The threshold range is not limited in the embodiment of the application, and can be determined according to the actual situation.
[0241] In another implementation manner, the motor controller working data and the driving motor working data corresponding to the target working condition are input into a fault detection model to obtain a first test result corresponding to the target working condition. The fault detection model is a neural network model pre-trained to determine a test result according to the motor controller working data and the driving motor working data.
[0242] It should be noted that when it is determined that the first fault indication result of the target working condition is a result indicating that the motor controller has a fault, an alarm process can be performed.
[0243] S202: For each target working condition, it is judged whether the test log corresponding to the target working condition includes error codes and code generation time; if the test log corresponding to the target working condition does not include error codes and code generation time, step S203 is performed; if the test log corresponding to the target working condition includes error codes and code generation time corresponding to each error code, step S204 is performed.
[0244] In this step, after the computer obtains the motor controller working data, the driving motor working data and the test log corresponding to each target working condition, it is further needed to judge, for each target working condition, whether the test log corresponding to the target working condition includes error codes and code generation time.
[0245] S203: A second test result corresponding to the target working condition is generated.
[0246] In this step, if the computer determines that the test log corresponding to the target working condition does not include error codes and code generation time, a second test result corresponding to the target working condition is generated. The second test result includes a second fault indication result indicating that no fault occurs in the test.
[0247] S204: According to each error code and the code generation time corresponding to each error code, a second test result corresponding to the target working condition is generated.
[0248] In this step, the computer determines that the test log corresponding to the target working condition includes error codes and the code generation time corresponding to each error code, and generates the second test result corresponding to the target working condition according to each error code and the code generation time corresponding to each error code. The second test result includes a second fault indication result indicating that the test fails and a fault time, and further includes fault information corresponding to the fault time.
[0249] For each error code, the corresponding fault information of the error code can be found from the preset communication protocol, and then the code generation time of the error code is taken as the fault time, and the corresponding fault information of the error code is taken as the fault information corresponding to the fault time.
[0250] The error data table can be generated according to the error code, the fault information, and the fault time for storage and display, and the user can intuitively determine the fault information and the fault time.
[0251] For example, Table 1 is an error data table provided by the present application.
[0252] Table 1
[0253]
[0254] Table 1 is only an example of the error data table, and the error code and the fault information are not limited by the embodiments of the present application, and can be determined according to actual conditions.
[0255] S205: generating a test report according to the first test result and the second test result corresponding to each target working condition.
[0256] In this step, the computer obtains the first test result and the second test result, and generates a test report according to the first test result and the second test result corresponding to each target working condition.
[0257] The motor controller test method provided by the embodiment generates a test report by obtaining the motor controller working data, the driving motor working data, and the test log corresponding to each target working condition, without manual data collection and analysis, thereby improving the test efficiency.
[0258] The following is an apparatus embodiment of the present application, which can be used to execute the method embodiments of the present application. For details not disclosed in the apparatus embodiments of the present application, please refer to the method embodiments of the present application.
[0259] Figure 3 The structure diagram of the motor controller test device embodiment provided by the present application is shown in FIG. 3. Figure 3 As shown in FIG. 3, the motor controller test device 30 includes:
[0260] The acquisition module 31 is configured to acquire working condition selection data, the working condition selection data being a power system type and / or a use scenario;
[0261] The processing module 32 is configured to select at least one target working condition from the working condition set according to the working condition selection data.
[0262] The output module 33 is configured to output the preset total number of cycles and a test step corresponding to each target working condition.
[0263] The acquisition module 31 is further configured to acquire, in the cyclic test process, motor controller working data corresponding to each target working condition, driving motor working data, and a test log; and at least one of a vehicle load, a driving mode, and an energy recovery level is different in different cycles of the cyclic test process.
[0264] The processing module 32 is further configured to generate a test report according to the motor controller working data corresponding to each target working condition, the driving motor working data, and the test log.
[0265] Further, the working condition set includes at least one of a static working condition, a slope working condition, a high-speed variable-speed working condition, a medium-speed variable-speed working condition, a low-speed variable-speed working condition, a low-road adhesion coefficient working condition, a crawling working condition, and an overspeed working condition.
[0266] Further, if the working condition selection data is the power system type, the processing module 32 is specifically configured to:
[0267] If the power system type is a pure electric power type, the at least one target working condition includes the slope working condition, the high-speed variable-speed working condition, the medium-speed variable-speed working condition, the low-speed variable-speed working condition, the low-road adhesion coefficient working condition, the crawling working condition, and the overspeed working condition.
[0268] If the power system type is not the pure electric power type, the at least one target working condition includes the static working condition, the slope working condition, the high-speed variable-speed working condition, the medium-speed variable-speed working condition, the low-speed variable-speed working condition, the low-road adhesion coefficient working condition, the crawling working condition, and the overspeed working condition.
[0269] Further, if the working condition selection data is the use scenario, the processing module 32 is specifically configured to:
[0270] If the use scenario is a high-speed use scenario, the at least one target working condition includes the slope working condition, the high-speed variable-speed working condition, the low-road adhesion coefficient working condition, and the overspeed working condition.
[0271] If the use scenario is a medium-speed use scenario, the at least one target working condition includes the slope working condition, the medium-speed variable-speed working condition, and the low-road adhesion coefficient working condition.
[0272] If the use scenario is a low-speed use scenario, the at least one target working condition includes the slope working condition, the low-speed variable-speed working condition, the low-road adhesion coefficient working condition, and the crawling working condition.
[0273] Further, if the working condition selection data is the power system type and the use scenario, the processing module 32 is specifically configured to:
[0274] If the power system type is a pure electric power type, and the use scenario is a high-speed use scenario, the at least one target working condition includes a slope working condition, a high-speed variable speed working condition, a low road adhesion coefficient working condition, and an overspeed working condition;
[0275] If the power system type is a pure electric power type, and the use scenario is a medium-speed use scenario, the at least one target working condition includes a slope working condition, a medium-speed variable speed working condition, and a low road adhesion coefficient working condition;
[0276] If the power system type is a pure electric power type, and the use scenario is a low-speed use scenario, the at least one target working condition includes a slope working condition, a low-speed variable speed working condition, a low road adhesion coefficient working condition, and a crawling working condition;
[0277] If the power system type is not a pure electric power type, and the use scenario is a high-speed use scenario, the at least one target working condition includes a static working condition, a slope working condition, a high-speed variable speed working condition, a low road adhesion coefficient working condition, and an overspeed working condition;
[0278] If the power system type is not a pure electric power type, and the use scenario is a medium-speed use scenario, the at least one target working condition includes a static working condition, a slope working condition, a medium-speed variable speed working condition, and a low road adhesion coefficient working condition;
[0279] If the power system type is not a pure electric power type, and the use scenario is a low-speed use scenario, the at least one target working condition includes a static working condition, a slope working condition, a low-speed variable speed working condition, a low road adhesion coefficient working condition, and a crawling working condition.
[0280] Further, the motor controller working data corresponding to each target working condition includes a plurality of first sub-working data and an acquisition time of each first sub-working data, and the drive motor working data corresponding to each target working condition includes a plurality of second sub-working data and an acquisition time of each second sub-working data; the processing module 32 is specifically configured to:
[0281] For each target working condition, a first test result corresponding to the target working condition is generated according to the motor controller working data and the drive motor working data corresponding to the target working condition, the first test result including a first fault indication result indicating whether the motor controller fails, and if the first test result includes the first fault indication result indicating that the motor controller fails, the first test result further includes a fault time;
[0282] For each target working condition, if the test log corresponding to the target working condition does not include an error code and a code generation time, a second test result corresponding to the target working condition is generated, the second test result including a second fault indication result indicating that no fault occurs in the test;
[0283] For each target working condition, if the test log corresponding to the target working condition includes error codes and the code generation time corresponding to each error code, a second test result corresponding to the target working condition is generated according to each error code and the code generation time corresponding to each error code, and the second test result includes a second fault indication result indicating that the test fails and a fault time;
[0284] According to the first test result and the second test result corresponding to each target working condition, a test report is generated.
[0285] Further, the processing module 32 is specifically configured to:
[0286] According to the target working condition and the threshold range corresponding to each first sub-working data, the threshold range corresponding to each second sub-working data, and the motor controller working data and the driving motor working data corresponding to the target working condition, a first test result corresponding to the target working condition is generated; or,
[0287] The motor controller working data and the driving motor working data corresponding to the target working condition are input into a fault detection model to obtain a first test result corresponding to the target working condition, and the fault detection model is a neural network model pre-trained for determining a test result according to motor controller working data and driving motor working data.
[0288] The motor controller test device provided in the embodiment is used to execute the technical solutions in any of the method embodiments, and has similar implementation principles and technical effects, which will not be described here.
[0289] Figure 4 A structural schematic diagram of an electronic device is provided in the present application. As shown in the figure, the electronic device 40 includes: Figure 4
[0290] A processor 41, a memory 42, and a communication interface 43;
[0291] The memory 42 is used to store executable instructions of the processor 41;
[0292] The processor 41 is configured to execute the technical solutions in any of the preceding method embodiments by executing the executable instructions.
[0293] Optionally, the memory 42 can be independent or integrated with the processor 41.
[0294] Optionally, when the memory 42 is a device independent of the processor 41, the electronic device 40 can further include:
[0295] The bus 44, the memory 42 and the communication interface 43 are connected with the processor 41 through the bus 44 and complete communication with each other, and the communication interface 43 is used for communication with other devices.
[0296] Optionally, the communication interface 43 can be implemented by a transceiver. The communication interface is used for realizing communication between the database access device and other devices (for example, a client, a read-write library and a read-only library). The memory can include a random access memory (RAM) and can also include a non-volatile memory, for example, at least one disk memory.
[0297] The bus 44 can be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For the convenience of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or only one type of bus.
[0298] The processor described above can be a general-purpose processor, including a central processing unit CPU, a network processor (NP), etc.; can also be a digital signal processor DSP, an application-specific integrated circuit ASIC, a field programmable gate array FPGA or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component.
[0299] The electronic device is used for executing the technical solutions in any of the preceding method embodiments, and the implementation principles and technical effects are similar, and will not be described here.
[0300] The embodiment of the present application further provides a computer program product, including a computer program, and the computer program is used for realizing the technical solutions provided by any of the preceding method embodiments when executed by a processor.
[0301] The embodiment of the present application further provides a readable storage medium, and the readable storage medium stores a computer program, and the computer program is used for realizing the technical solutions provided by any of the preceding method embodiments when executed by a processor.
[0302] The above-mentioned readable storage medium can be realized by any type of volatile or nonvolatile storage devices or their combinations, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk or optical disk. The readable storage medium can be any available medium that can be accessed by a general or special purpose computer.
[0303] An exemplary readable storage medium is coupled to the processor, so that the processor can read information from the readable storage medium and write information to the readable storage medium. Of course, the readable storage medium can also be an integral part of the processor. The processor and the readable storage medium can be located in an application specific integrated circuit (ASIC). Of course, the processor and the readable storage medium can also exist as discrete components in the device.
[0304] The division of units is only a logical functional division, and in actual implementation, there can be another division manner. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the units shown or discussed can be indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0305] The units described as separate components can or can not be physically separated, and the components shown as units can or can not be physical units, that is, they can be located in one place, or can be distributed on multiple network units. According to actual needs, part or all of the units can be selected to achieve the purpose of the embodiment scheme.
[0306] In addition, the functional units in each embodiment of the present application can be integrated in one processing unit, or each unit can be physically present separately, or two or more units can be integrated in one unit.
[0307] If the functions are implemented in the form of software function units and sold or used as independent products, they can be stored in a computer readable storage medium. Based on this understanding, the technical solutions of the present application or the part of the present application that essentially contributes to the prior art or the part of the technical solutions can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes a plurality of instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the embodiments of the present application. The aforementioned storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk or an optical disk, and various program code storage media.
[0308] Those of ordinary skill in the art can understand that all or part of the steps of the above-mentioned method embodiments can be completed by program instruction-related hardware. The aforementioned program can be stored in a computer readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: a ROM, a RAM, a magnetic disk or an optical disk, and various program code storage media.
[0309] Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit them; although the present application has been described in detail with reference to the above embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions recorded in the above embodiments, or make equivalent replacements for part or all of the technical features; and these modifications or replacements do not make the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present application.
Claims
1. A method of testing a motor controller, the method comprising: The method comprises: acquiring working condition selection data, the working condition selection data being a power system type and / or a use scenario; selecting at least one target working condition from a working condition set according to the working condition selection data; outputting a preset total number of cycles and a test step corresponding to each target working condition; acquiring motor controller working data, drive motor working data and a test log corresponding to each target working condition in a cycle test process, at least one of a vehicle load, a driving mode and an energy recovery level being different in different cycles of the cycle test process; and generating a test report according to the motor controller working data, the drive motor working data and the test log corresponding to each target working condition.
2. The method of claim 1, wherein, The working condition set comprises at least one of a static working condition, a ramp working condition, a high-speed gear shifting working condition, a medium-speed gear shifting working condition, a low-speed gear shifting working condition, a low road adhesion coefficient working condition, a crawling working condition and an overspeed working condition.
3. The method of claim 2, wherein, If the working condition selection data is the power system type, the selecting at least one target working condition from the working condition set according to the working condition selection data comprises: if the power system type is a pure electric power type, the at least one target working condition comprises the ramp working condition, the high-speed gear shifting working condition, the medium-speed gear shifting working condition, the low-speed gear shifting working condition, the low road adhesion coefficient working condition, the crawling working condition and the overspeed working condition; if the power system type is not the pure electric power type, the at least one target working condition comprises the static working condition, the ramp working condition, the high-speed gear shifting working condition, the medium-speed gear shifting working condition, the low-speed gear shifting working condition, the low road adhesion coefficient working condition, the crawling working condition and the overspeed working condition.
4. The method of claim 2, wherein, If the working condition selection data is the use scenario, the selecting at least one target working condition from the working condition set according to the working condition selection data comprises: if the use scenario is a high-speed use scenario, the at least one target working condition comprises the ramp working condition, the high-speed gear shifting working condition, the low road adhesion coefficient working condition and the overspeed working condition; if the use scenario is a medium-speed use scenario, the at least one target working condition comprises the ramp working condition, the medium-speed gear shifting working condition and the low road adhesion coefficient working condition; if the use scenario is a low-speed use scenario, the at least one target working condition comprises the ramp working condition, the low-speed gear shifting working condition, the low road adhesion coefficient working condition and the crawling working condition.
5. The method of claim 2, wherein, If the working condition selection data is the power system type and the use scenario, the selecting at least one target working condition from the working condition set according to the working condition selection data comprises: if the power system type is the pure electric power type and the use scenario is the high-speed use scenario, the at least one target working condition comprises the ramp working condition, the high-speed gear shifting working condition, the low road adhesion coefficient working condition and the overspeed working condition; if the power system type is the pure electric power type and the use scenario is the medium-speed use scenario, the at least one target working condition comprises the ramp working condition, the medium-speed gear shifting working condition and the low road adhesion coefficient working condition; if the power system type is the pure electric power type and the use scenario is the low-speed use scenario, the at least one target working condition comprises the ramp working condition, the low-speed gear shifting working condition, the low road adhesion coefficient working condition and the crawling working condition. If the power system type is not a pure electric power type, and the use scenario is a high-speed use scenario, the at least one target working condition includes a static working condition, a slope working condition, a high-speed variable-speed working condition, a low road adhesion coefficient working condition, and an overspeed working condition; If the power system type is not a pure electric power type, and the use scenario is a medium-speed use scenario, the at least one target working condition includes a static working condition, a slope working condition, a medium-speed variable-speed working condition, and a low road adhesion coefficient working condition; If the power system type is not a pure electric power type, and the use scenario is a low-speed use scenario, the at least one target working condition includes a static working condition, a slope working condition, a low-speed variable-speed working condition, a low road adhesion coefficient working condition, and a crawling working condition.
6. The method of claim 1, wherein, The motor controller working data corresponding to each target working condition includes a plurality of first sub-working data and an acquisition time of each first sub-working data, and the driving motor working data corresponding to each target working condition includes a plurality of second sub-working data and an acquisition time of each second sub-working data; The generating, according to the motor controller working data, the driving motor working data, and the test log corresponding to each target working condition, of a test report includes: For each target working condition, a first test result corresponding to the target working condition is generated according to the motor controller working data and the driving motor working data corresponding to the target working condition, the first test result includes a first fault indication result indicating whether the motor controller fails, and if the first test result includes the first fault indication result indicating that the motor controller fails, the first test result further includes a fault time; For each target working condition, if the test log corresponding to the target working condition does not include an error code and a code generation time, a second test result corresponding to the target working condition is generated, the second test result includes a second fault indication result indicating that no fault occurs in the test; For each target working condition, if the test log corresponding to the target working condition includes an error code and a code generation time corresponding to each error code, a second test result corresponding to the target working condition is generated according to each error code and the code generation time corresponding to each error code, the second test result includes a second fault indication result indicating that a fault occurs in the test and a fault time; The test report is generated according to the first test result and the second test result corresponding to each target working condition.
7. The method of claim 6, wherein, The generating, according to the motor controller working data and the driving motor working data corresponding to the target working condition, of a first test result corresponding to the target working condition includes: The first test result corresponding to the target working condition is generated according to the target working condition, a threshold range corresponding to each first sub-working data, a threshold range corresponding to each second sub-working data, and the motor controller working data and the driving motor working data corresponding to the target working condition; or The first test result corresponding to the target working condition is generated according to the target working condition, a threshold range corresponding to each first sub-working data, a threshold range corresponding to each second sub-working data, and the motor controller working data and the driving motor working data corresponding to the target working condition. The motor controller working data and the driving motor working data corresponding to the target working condition are input into a fault detection model to obtain a first test result corresponding to the target working condition, and the fault detection model is a neural network model pre-trained for determining a test result according to motor controller working data and driving motor working data.
8. The method according to any one of claims 1 to 7, characterized in that, Before the start of the cycle test process, the vehicle is charged to full power at a preset slow charging power; During the cycle test process, the vehicle is charged to full power at a preset fast charging power every preset charging time interval, and the preset fast charging power is greater than the preset slow charging power; At the end of each day of testing in the cycle test process, the vehicle is charged to full power at a preset slow charging power.
9. An electric machine controller test apparatus, characterized by Comprising: An acquisition module for acquiring working condition selection data, the working condition selection data being a power system type and / or a use scenario; A processing module for selecting at least one target working condition from a working condition set according to the working condition selection data; An output module for outputting a preset total cycle number and a test step corresponding to each target working condition; The acquisition module is further configured to acquire motor controller working data, driving motor working data and a test log corresponding to each target working condition during a cycle test process, and at least one of a vehicle load, a driving mode and an energy recovery level is different in different cycles of the cycle test process. The processing module is further configured to generate a test report according to the motor controller working data, the driving motor working data and the test log corresponding to each target working condition.
10. An electronic device, comprising: Comprising: A processor, a memory and a communication interface; The memory is configured to store executable instructions of the processor; The processor is configured to execute the executable instructions to perform the motor controller test method according to any one of claims 1 to 8.
11. A readable storage medium, having stored thereon a computer program, characterized in that, The computer program is executed by the processor to implement the motor controller test method according to any one of claims 1 to 8.
12. A computer program product, characterised in that, The computer program is executed by the processor to implement the motor controller test method according to any one of claims 1 to 8.