Vehicle energy management HIL test method and device, vehicle and storage medium
By introducing a cloud traffic information reception system and a driving condition generation system in the HIL test system, combined with preset driver and vehicle models, the multi-subject interactive testing problem of new energy vehicles under changing road conditions has been solved, and more accurate and efficient testing coverage.
Patent Information
- Application Number
- CN202510033990.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-09
- Publication Date
- 2025-02-18
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In the existing HIL testing framework, it is difficult to accurately simulate the multi-subject interaction of new energy vehicles under changing road conditions, and ensure the security and real-time nature of cloud data exchange.
By building a preset cloud traffic information receiving system and driving condition generation system in the industrial control machine, real-time traffic information is obtained and multiple driving conditions are generated. Based on the preset driver model and vehicle model, HIL test is carried out, test data under various operating conditions is obtained, and the VCU's energy management control strategy is analyzed.
It achieves more accurate and comprehensive testing coverage, improves safety and efficiency during the testing process, can truly predict vehicle energy consumption status under a variety of different working conditions, optimize battery charging and discharging strategies, and extend battery service life.
Smart Images

Figure CN119472615A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of new energy vehicle testing, and in particular to a vehicle energy management HIL (Hardware In the Loop) testing method, device, vehicle and storage medium. Background Art
[0002] With the development of intelligent transportation systems and the rapid growth of the electric vehicle market, it is essential to ensure the safety and reliability of electric vehicles and their related systems. In recent years, hardware-in-the-loop testing has been widely used as an advanced testing technology. HIL testing allows the establishment of an interface between actual hardware components and a simulation environment, so that the system can be tested under conditions close to the actual operating conditions. This testing method can not only improve testing efficiency, but also reduce development costs and reduce potential risks caused by physical testing.
[0003] However, in the existing HIL test framework, the comprehensive test solution for the human-vehicle-road-cloud collaborative system is still imperfect. Especially in the field of new energy vehicles, how to accurately simulate multi-agent interactions under various road conditions through HIL testing and ensure the security and real-time performance of cloud data exchange is still a challenge that needs to be solved urgently. Summary of the invention
[0004] The present invention provides a vehicle energy management HIL test method, device, vehicle and storage medium to solve the problem in the prior art that it is difficult to accurately simulate variable road conditions and multi-agent interactions, achieve more accurate and comprehensive test coverage, and improve the safety and efficiency of the test process.
[0005] A first aspect of the present invention provides a vehicle energy management HIL test method, the method adopts a vehicle energy management HIL test system, the vehicle energy management HIL test system includes an industrial computer, a cabinet, a VCU and a host computer, the industrial computer includes a preset cloud traffic information receiving system and a preset driving condition generation system, the cabinet includes a preset driver model and a preset vehicle model, wherein the method includes the following steps: Determine whether there is a vehicle energy management HIL test request; If the vehicle energy management HIL test request exists, the preset cloud traffic information receiving system is used to obtain current traffic information, and the preset driving condition generating system is used to generate multiple driving conditions according to the current traffic information; Based on the preset driver model and the preset vehicle model, HIL tests are performed according to the multiple driving conditions to obtain test data under the multiple driving conditions, and test results of the energy management control strategy of the VCU (Vehicle Control Unit) are obtained according to the test data under the multiple driving conditions. According to one embodiment of the present invention, According to one embodiment of the present invention, the test data includes at least one of traffic scenarios under different working conditions, VCU response time, environmental parameters, driving modes, vehicle dynamic parameters and energy management parameters.
[0006] According to an embodiment of the present invention, obtaining the test results of the energy management control strategy of the VCU according to the test data under the multiple driving conditions includes: Obtaining a computing power result of the VCU according to a VCU response time of the preset vehicle model under the multiple driving conditions; The difference between the predicted value of the control strategy energy consumption and the actual energy consumption value of the preset vehicle model under different preset conditions is calculated, and the effectiveness result of the energy management control strategy of the VCU is obtained according to the difference, wherein the actual energy consumption value is obtained by the DCDC (direct current-direct current) output power, battery output power, compressor and PTC output power of the preset vehicle model.
[0007] According to an embodiment of the present invention, the step of obtaining current traffic information by using the preset cloud traffic information receiving system includes: Obtaining the starting point, destination end point and recommended route selected by the user of the preset vehicle model; The starting point of the preset vehicle model, the destination end point and the recommended route are input into the preset cloud traffic information receiving system to obtain initial cloud traffic information, and the initial cloud traffic information is parsed to obtain the current traffic information, wherein the current traffic information includes at least one of route planning information, real-time traffic conditions and weather information.
[0008] According to an embodiment of the present invention, the use of the preset driving condition generation system to generate multiple driving conditions according to the current traffic information includes: Analyzing the current traffic information and extracting preset key information; Preprocessing the preset key information to obtain preprocessed key information; The multiple driving conditions are generated according to the preprocessed key information.
[0009] According to the vehicle energy management HIL test method provided by the embodiment of the present invention, when there is a vehicle energy management HIL test request, the current traffic information is obtained, and multiple driving conditions are generated according to the current traffic information; based on the preset driver model and the preset vehicle model, the HIL test is performed according to multiple driving conditions to obtain test data under multiple driving conditions, and the test results of the VCU energy management control strategy are obtained according to the test data under multiple driving conditions. Thus, the problem of the difficulty in accurately simulating variable road conditions and multi-agent interactions in the prior art is solved, more accurate and comprehensive test coverage is achieved, and the safety and efficiency of the test process are improved.
[0010] A second aspect of the present invention provides a vehicle energy management HIL test device, wherein the device adopts a vehicle energy management HIL test system, wherein the vehicle energy management HIL test system includes an industrial computer, a cabinet, a VCU and a host computer, wherein the industrial computer includes a preset cloud traffic information receiving system and a preset driving condition generating system, and the cabinet includes a preset driver model and a preset vehicle model, wherein the device includes: A judgment module, used to judge whether there is a vehicle energy management HIL test request; a processing module, configured to, if there is a vehicle energy management HIL test request, obtain current traffic information using the preset cloud traffic information receiving system, and generate a plurality of driving conditions according to the current traffic information using the preset driving condition generating system; A test module is used to perform HIL testing according to the multiple driving conditions based on the preset driver model and the preset vehicle model, obtain test data under the multiple driving conditions, and obtain test results of the energy management control strategy of the VCU based on the test data under the multiple driving conditions.
[0011] According to one embodiment of the present invention, the test data includes at least one of traffic scenarios under different working conditions, VCU response time, environmental parameters, driving modes, vehicle dynamic parameters and energy management parameters.
[0012] According to one embodiment of the present invention, the test module is used to: Obtaining a computing power result of the VCU according to a VCU response time of the preset vehicle model under the multiple driving conditions; Calculate the difference between the control strategy energy consumption prediction value and the actual energy consumption value of the preset vehicle model under different preset conditions, and obtain the effectiveness result of the energy management control strategy of the VCU according to the difference, wherein the actual energy consumption value is obtained by the DCDC output power, battery output power, compressor and PTC output power of the preset vehicle model.
[0013] According to one embodiment of the present invention, the processing module is used to: Obtaining the starting point, destination end point and recommended route selected by the user of the preset vehicle model; The starting point of the preset vehicle model, the destination end point and the recommended route are input into the preset cloud traffic information receiving system to obtain initial cloud traffic information, and the initial cloud traffic information is parsed to obtain the current traffic information, wherein the current traffic information includes at least one of route planning information, real-time traffic conditions and weather information.
[0014] According to one embodiment of the present invention, the processing module is used to: Analyzing the current traffic information and extracting preset key information; Preprocessing the preset key information to obtain preprocessed key information; The multiple driving conditions are generated according to the preprocessed key information.
[0015] According to the vehicle energy management HIL test device provided by the embodiment of the present invention, when there is a vehicle energy management HIL test request, the current traffic information is obtained, and multiple driving conditions are generated according to the current traffic information; based on the preset driver model and the preset vehicle model, the HIL test is performed according to multiple driving conditions to obtain test data under multiple driving conditions, and the test results of the energy management control strategy of the VCU are obtained according to the test data under multiple driving conditions. Thus, the problem of the difficulty in accurately simulating variable road conditions and multi-agent interactions in the prior art is solved, more accurate and comprehensive test coverage is achieved, and the safety and efficiency of the test process are improved.
[0016] A third aspect of the present invention provides a vehicle, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the vehicle energy management HIL test method as described in the above embodiment.
[0017] A fourth aspect of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the vehicle energy management HIL test method as described in the above embodiment.
[0018] Beneficial effects of the present invention: (1) Different from the traditional method of testing based on standard cycle conditions, the present invention introduces driving conditions generated based on real-time traffic information obtained from online maps, which can generate a variety of traffic scenarios, including urban roads, highways, rural roads, etc., making the generated driving conditions more representative; and cloud traffic information can provide large-scale traffic data, supporting long-term and large-scale driving condition generation, which is very useful for long-term traffic testing and research; in addition, cloud data also includes historical traffic data, which can be used to analyze traffic trends and predict future traffic conditions, and generate driving conditions that are more in line with actual conditions; (2) The HIL test results are accurate and the generated operating conditions cover a wide range. The control strategy in the VCU can be tested under a variety of different operating conditions, and the vehicle energy consumption status can be predicted more realistically, which greatly improves the accuracy of vehicle range prediction. It can help optimize the battery charging and discharging strategy and extend the battery life, so as to better verify the effectiveness of the energy management control strategy. It has high practical value and broad application prospects. (3) HIL testing based on actual road conditions is closer to reality and is not restricted by external road, traffic, or environmental conditions. Through data reinjection, a large number of repetitive test tasks can be completed efficiently in a laboratory environment, avoiding the time and resource consumption required in traditional road testing. At the same time, it reduces the risk of test interruptions due to bad weather or unforeseen events, and also saves development cycles and costs.
[0019] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] The above and / or additional aspects and advantages of the present invention will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which: Figure 1 A schematic diagram of the structure of a vehicle energy management HIL test system according to an embodiment of the present invention; Figure 2 A schematic diagram generated for a driving condition according to an embodiment of the present invention; Figure 3 A schematic diagram of a HIL test according to an embodiment of the present invention; Figure 4 A flow chart of a vehicle energy management HIL testing method provided according to an embodiment of the present invention; Figure 5 A schematic diagram of a vehicle energy management HIL testing method according to an embodiment of the present invention; Figure 6A block diagram of a vehicle energy management HIL test device according to an embodiment of the present invention; Figure 7 A schematic structural diagram of a vehicle provided in an embodiment of the present invention.
[0021] Figure numerals: 10 - vehicle energy management HIL test device, 100 - judgment module, 200 - processing module, 300 - test module; 701 - memory, 702 - processor, 703 - communication interface. DETAILED DESCRIPTION
[0022] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present invention, and should not be construed as limiting the present invention.
[0023] The following describes a vehicle energy management HIL test method, device, vehicle, and storage medium according to embodiments of the present invention with reference to the accompanying drawings.
[0024] Before introducing the vehicle energy management HIL testing method according to the embodiment of the present invention, a vehicle energy management HIL testing system involved in the vehicle energy management HIL testing method according to the present invention is briefly introduced.
[0025] Specifically, if Figure 1 As shown in the figure, the vehicle energy management HIL test system includes an industrial computer, a cabinet, a VCU and a host computer. Among them, the industrial computer includes a preset cloud traffic information receiving system and a preset driving condition generation system, the cabinet includes a preset driver model and a preset vehicle model, and the VCU, as the core control unit, adjusts the vehicle's actions in real time according to the received working condition information and its own control strategy to be tested, so that it conforms to the actual situation as much as possible. The host computer is used to collect and record all test data, including the vehicle's driving trajectory, speed changes, energy consumption level and other data.
[0026] Furthermore, if Figure 2As shown, the preset cloud traffic information receiving system includes an API (Application Programming Interface) acquisition module, a user interface module, a callback function module and a traffic information acquisition and parsing module, wherein the API acquisition module is to create a new application through the online map open platform, enable the required route planning API and traffic status API, and obtain the corresponding key. The user interface module is used to display traffic information by designing an interactive interface so that the user can enter the starting point and end point and select a recommended route, wherein the design of the interactive interface includes a text input box, a text selection box, a button, a text area, and a map display area. The text input box is used to enter the address of the starting point and the end point; the text selection box is used to select the recommended method; the button is used to trigger the operation of obtaining traffic information; the text area is used to display the traffic information returned by the API; and the map display area is used to visualize traffic information, such as the path and traffic conditions. The callback function module is used to define the operation logic after the button is clicked, process the input and call the API to obtain data. According to the read start and end point values and the recommended method, the API request URL (Uniform Resource Location) is constructed, and then the HTTP (Hypertext Transfer Protocol) request is sent by using the webread function to call the API to obtain traffic information, and finally the data returned by the API is parsed and the relevant information is displayed on the interface. The traffic information acquisition and parsing module uses the callback function to call the API to obtain traffic information, and parses the traffic information returned by the API into a readable format and displays it on the interface. By parsing the JSON (JavaScript Object Notation) data returned by the API into a processable structure, the path information is displayed in the text area, and the path is drawn in the map display area to achieve the effect of visualizing traffic information. In addition, by changing the starting point position at a certain time through the program, the real-time position of the vehicle can be simulated.
[0027] Furthermore, if Figure 2 As shown, through the preset cloud traffic information receiving system, route planning information can be generated, including starting point, end point, recommended route, distance, and time; real-time traffic conditions can be generated, including road condition level, traffic events, and speed information; weather information can be generated, including temperature, humidity, wind speed, and wind direction.
[0028] Furthermore, if Figure 2As shown, the preset driving condition generation system includes a traffic information receiving module, a data preprocessing module and a driving condition generation module. The traffic information receiving module is used to receive the parsed traffic information. In the data preprocessing module, key information such as route, distance, time, road condition level, speed, etc. are extracted from the parsed JSON data. Then, after data cleaning, invalid or abnormal data is removed to ensure data consistency and accuracy. Finally, the driving condition is generated based on the extracted key information.
[0029] Furthermore, if Figure 3 As shown, the preset driver model is used to simulate the behavior habits and reaction ability of real human drivers, including reaction time, acceleration and deceleration pedal opening, etc., that is, the preset driver model is used to simulate the driver's adjustment of the vehicle's control input according to the vehicle's state. It receives the actual state output from the preset vehicle model, compares it with the preset target state, and calculates the error signal. The error signal is converted into a new control instruction after being processed by the PID controller and fed back to the preset vehicle model, thereby forming a closed-loop control loop. The preset vehicle model includes a powertrain system model, a chassis system model, a tire model, and an aerodynamic model, etc. The data signals interact according to the energy transmission relationship between the models, that is, the various subsystem models interact with each other through physical connection and signal transmission. The preset vehicle model is used to simulate the various dynamic characteristics of the real vehicle, including acceleration, deceleration, steering and other aspects.
[0030] Among them, the powertrain model is used to provide driving force, the chassis system model and tire model affect the vehicle's handling and stability, and the aerodynamic model affects the vehicle's drag and lift. The combined effect of these subsystem models determines the overall performance of the preset vehicle model.
[0031] Furthermore, if Figure 3 As shown, the VCU provides control strategies to the vehicle, and the control strategies are tested in combination with the input of external working conditions.
[0032] The following introduces a vehicle energy management HIL test method using the above-mentioned vehicle energy management HIL test system.
[0033] Specifically, Figure 4 A schematic flow chart of a vehicle energy management HIL testing method provided by an embodiment of the present invention.
[0034] like Figure 4 As shown, the vehicle energy management HIL test method includes the following steps: In step S401 , it is determined whether there is a vehicle energy management HIL test request.
[0035] Specifically, an embodiment of the present invention can determine whether there is a vehicle energy management HIL test request by checking the test task queue or schedule. If there is a new task waiting to be executed in the test task queue, or a new test time point is specified in the schedule, it is determined that there is a vehicle energy management HIL test request.
[0036] In step S402, if there is a vehicle energy management HIL test request, the current traffic information is obtained using a preset cloud traffic information receiving system, and a preset driving condition generation system is used to generate a variety of driving conditions according to the current traffic information.
[0037] Furthermore, in some embodiments, current traffic information is obtained using a preset cloud traffic information receiving system, including: obtaining a starting point, a destination end point, and a recommended route selected by a user of a preset vehicle model; inputting the starting point, the destination end point, and the recommended route of the preset vehicle model into the preset cloud traffic information receiving system to obtain initial cloud traffic information, and parsing the initial cloud traffic information to obtain current traffic information, wherein the current traffic information includes at least one of route planning information, real-time traffic conditions, and weather information.
[0038] Specifically, based on the interactive interface, the starting point, destination and recommended route input by the user are obtained, and the API acquisition module interacts with the online map open platform to obtain the initial cloud traffic information, and further parses and processes the initial cloud traffic information, such as decoding JSON data and converting it into a readable format, so as to obtain the current traffic information, including route planning information (such as starting point, destination, recommended route, distance, time), real-time traffic conditions (such as road condition level, traffic events, speed information) and weather information (temperature, humidity, wind speed, wind direction).
[0039] Furthermore, in some embodiments, a preset driving condition generation system is used to generate multiple driving conditions based on current traffic information, including: parsing the current traffic information to extract preset key information; preprocessing the preset key information to obtain preprocessed key information; and generating multiple driving conditions based on the preprocessed key information.
[0040] Specifically, first, the parsed current traffic information is received, and key information such as route, distance, time, road condition level, speed, etc. is extracted from the parsed JSON data in the data preprocessing module. Then, preprocessing operations such as data cleaning are performed on the key information to remove invalid or abnormal data, ensure the consistency and accuracy of the data, and obtain the preprocessed key information. Finally, based on the extracted preprocessed key information, a variety of driving conditions are generated. These conditions cover a variety of possible road conditions and weather conditions. After these conditions are processed by the preset driver model and the preset vehicle model in the cabinet, a complete virtual driving environment is formed.
[0041] Furthermore, during the development of hardware-in-the-loop testing, the control strategy to be tested in the VCU is tested and verified by combining the generated driving conditions.
[0042] In step S403, based on a preset driver model and a preset vehicle model, HIL testing is performed according to various driving conditions to obtain test data under various driving conditions, and test results of the energy management control strategy of the VCU are obtained based on the test data under various driving conditions.
[0043] In some embodiments, the test data includes at least one of traffic scenarios under different working conditions, VCU response time, environmental parameters, driving modes, vehicle dynamic parameters and energy management parameters, and these data can be used to verify the VCU computing power and control strategy.
[0044] Specifically, the generated multiple driving conditions are introduced into the preset driver model and the preset vehicle model and the VCU is tested. Through the driver model, the vehicle model and the generated driving conditions, the VCU is tested under a variety of different conditions to obtain a large amount of test data under a variety of driving conditions.
[0045] Further, in some embodiments, the test results of the energy management control strategy of the VCU are obtained according to the test data under various driving conditions, including: obtaining the computing power result of the VCU according to the VCU response time under various driving conditions of the preset vehicle model; calculating the difference between the control strategy energy consumption prediction value and the actual energy consumption value of the preset vehicle model under different preset conditions, and obtaining the effectiveness result of the energy management control strategy of the VCU according to the difference, wherein the actual energy consumption value is related to the preset vehicle model, and the actual energy consumption value is obtained by the DCDC output power, battery output power, compressor and PTC output power of the preset vehicle model. The response time of the VCU is related to the preset driver model and the quality of the VCU's own performance, and the control strategy energy consumption prediction value is related to the control strategy, and the control strategy energy consumption prediction value refers to the value predicted by the control strategy according to the preset vehicle model.
[0046] Specifically, a large amount of test data under various driving conditions will be obtained, classified, summarized and analyzed. The traffic scenarios, environmental conditions, driving modes, vehicle dynamic parameters, energy management parameters and other data under n conditions will be summarized through the program. First, under different conditions, an acceleration or braking request is sent to the VCU through the cabinet, and the time interval from sending the request to the start of the action by the VCU is accurately recorded through the timer. By collecting the response time of the VCU under different conditions, the computing power of the VCU is verified. That is, the faster the response time of the VCU, the better the computing power of the VCU; the slower the response time of the VCU, the worse the computing power of the VCU.
[0047] In addition, under the same working conditions, the actual energy consumption obtained from the DCDC output power, battery output power, compressor and PTC output power in the cabinet is calculated. By comparing the difference between the vehicle's control strategy energy consumption prediction value and the actual energy consumption value under different air-conditioning set temperatures, air-conditioning wind speeds and other conditions, the effectiveness of the control strategy is verified. That is, the smaller the difference between the vehicle's control strategy energy consumption prediction value and the actual energy consumption value, the stronger the effectiveness of the control strategy; the larger the difference between the vehicle's control strategy energy consumption prediction value and the actual energy consumption value, the worse the effectiveness of the control strategy.
[0048] In order to facilitate those skilled in the art to more clearly and intuitively understand the vehicle energy management HIL test method proposed in the present invention, the following is combined with Figure 5 Provide detailed explanation.
[0049] Specifically, if Figure 5 As shown in the figure, firstly, cloud traffic information is introduced and parsed to generate route planning information, real-time traffic conditions and weather information. By receiving the parsed cloud traffic information, a variety of different working conditions are generated, including urban roads, highways, rural roads, etc. Then, the preset driver model and the preset vehicle model will test the energy management control strategy of VCU based on these driving conditions. First, under different working conditions, the cabinet sends acceleration or braking requests to VCU, and accurately records the time interval from sending the request to VCU starting to execute the action. By collecting the response time of VCU under different working conditions, the computing power of VCU is verified; in addition, under the same working conditions, the actual energy consumption obtained by the DCDC output power, battery output power, compressor and PTC output power in the cabinet is calculated. By comparing the difference between the predicted value of the vehicle's control strategy energy consumption and the actual energy consumption value under different air-conditioning set temperatures, air-conditioning wind speeds and other conditions, the effectiveness of the control strategy is verified.
[0050] Therefore, the present invention builds a preset cloud traffic information receiving system and a preset driving condition generating system in an industrial computer, uses cloud traffic information to generate a variety of different working conditions, and builds a preset driver model and a preset vehicle model in a cabinet to simulate and predict various parameters of the driver and the vehicle under actual working conditions, test the control effect of the VCU under different working conditions, and analyze the results to complete the computing power verification of the VCU in terms of processing power, response time, stability, etc. and the effectiveness of the control strategy under a variety of different working conditions. In this way, the entire system effectively reduces the risk and cost of actual road testing and improves the efficiency and quality of control strategy testing.
[0051] According to the vehicle energy management HIL test method proposed in the embodiment of the present invention, when there is a vehicle energy management HIL test request, the current traffic information is obtained, and multiple driving conditions are generated according to the current traffic information; based on the preset driver model and the preset vehicle model, the HIL test is performed according to multiple driving conditions to obtain test data under multiple driving conditions, and the test results of the VCU energy management control strategy are obtained according to the test data under multiple driving conditions. In this way, the problem of the difficulty in accurately simulating variable road conditions and multi-agent interactions in the prior art is solved, more accurate and comprehensive test coverage is achieved, and the safety and efficiency of the test process are improved.
[0052] Next, the vehicle energy management HIL testing device proposed according to an embodiment of the present invention will be described with reference to the accompanying drawings.
[0053] Figure 6 4 is a block diagram of a vehicle energy management HIL test device according to an embodiment of the present invention.
[0054] In this embodiment, the vehicle energy management HIL test device adopts a vehicle energy management HIL test system, which includes an industrial computer, a cabinet, a VCU and a host computer. The industrial computer includes a preset cloud traffic information receiving system and a preset driving condition generating system, and the cabinet includes a preset driver model and a preset vehicle model.
[0055] like Figure 6 As shown, the vehicle energy management HIL testing device 10 includes: a judgment module 100 , a processing module 200 and a testing module 300 .
[0056] Among them, the judgment module 100 is used to determine whether there is a vehicle energy management HIL test request; the processing module 200 is used to use a preset cloud traffic information receiving system to obtain current traffic information if there is a vehicle energy management HIL test request, and use a preset driving condition generation system to generate multiple driving conditions according to the current traffic information; the testing module 300 is used to perform HIL testing according to multiple driving conditions based on a preset driver model and a preset vehicle model, obtain test data under multiple driving conditions, and obtain the test results of the VCU energy management control strategy based on the test data under multiple driving conditions.
[0057] Furthermore, in some embodiments, the test data includes at least one of traffic scenarios under different working conditions, VCU response time, environmental parameters, driving modes, vehicle dynamic parameters and energy management parameters.
[0058] Furthermore, in some embodiments, the test module 300 is used to: obtain the computing power result of the VCU according to the VCU response time of a preset vehicle model under various driving conditions; calculate the difference between the control strategy energy consumption prediction value and the actual energy consumption value of the preset vehicle model under different preset conditions, and obtain the effectiveness result of the energy management control strategy of the VCU according to the difference, wherein the actual energy consumption value is obtained by the DCDC output power, battery output power, compressor and PTC output power of the preset vehicle model.
[0059] Furthermore, in some embodiments, the processing module 200 is used to: obtain the starting point, destination end point and recommended route selected by the user of the preset vehicle model; input the starting point, destination end point and recommended route of the preset vehicle model into the preset cloud traffic information receiving system to obtain initial cloud traffic information, and parse the initial cloud traffic information to obtain current traffic information, wherein the current traffic information includes at least one of route planning information, real-time traffic conditions and weather information.
[0060] Furthermore, in some embodiments, the processing module 200 is used to: parse the current traffic information to extract preset key information; preprocess the preset key information to obtain preprocessed key information; and generate a variety of driving conditions based on the preprocessed key information.
[0061] It should be noted that the aforementioned explanation of the vehicle energy management HIL test method embodiment is also applicable to the vehicle energy management HIL test device of this embodiment, and will not be repeated here.
[0062] According to the vehicle energy management HIL test device proposed in the embodiment of the present invention, when there is a vehicle energy management HIL test request, the current traffic information is obtained, and multiple driving conditions are generated according to the current traffic information; based on the preset driver model and the preset vehicle model, the HIL test is performed according to multiple driving conditions to obtain test data under multiple driving conditions, and the test results of the energy management control strategy of the VCU are obtained according to the test data under multiple driving conditions. Thus, the problem of the difficulty in accurately simulating variable road conditions and multi-agent interactions in the prior art is solved, more accurate and comprehensive test coverage is achieved, and the safety and efficiency of the test process are improved.
[0063] Figure 7 A schematic diagram of the structure of a vehicle provided in an embodiment of the present invention. The vehicle may include: A memory 701 , a processor 702 , and a computer program stored in the memory 701 and executable on the processor 702 .
[0064] When the processor 702 executes the program, the vehicle energy management HIL test method provided in the above embodiment is implemented.
[0065] Furthermore, the vehicle also includes: The communication interface 703 is used for communication between the memory 701 and the processor 702 .
[0066] The memory 701 is used to store computer programs that can be executed on the processor 702 .
[0067] The memory 701 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
[0068] If the memory 701, the processor 702 and the communication interface 703 are implemented independently, the communication interface 703, the memory 701 and the processor 702 can be connected to each other through a bus and communicate with each other. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 7 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0069] Optionally, in a specific implementation, if the memory 701, the processor 702 and the communication interface 703 are integrated on a chip, the memory 701, the processor 702 and the communication interface 703 can communicate with each other through an internal interface.
[0070] The processor 702 may be a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present invention.
[0071] An embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, which implements the above vehicle energy management HIL test method when executed by a processor.
[0072] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or N embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
[0073] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of the present invention, the meaning of "N" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0074] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, fragment or portion of code comprising one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present invention includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present invention belong.
[0075] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples (non-exhaustive list) of computer-readable media include the following: an electrical connection with one or N wirings (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.
[0076] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above embodiment, the N steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0077] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.
[0078] In addition, each functional unit in each embodiment of the present invention may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.
[0079] The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, etc. Although the embodiments of the present invention have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limiting the present invention. A person of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present invention.
Claims
1. A vehicle energy management HIL test method, characterized in that: The method adopts a vehicle energy management HIL test system, which includes an industrial computer, a cabinet, a VCU and a host computer. The industrial computer includes a preset cloud traffic information receiving system and a preset driving condition generating system, and the cabinet includes a preset driver model and a preset vehicle model. The method includes the following steps: Determine whether there is a vehicle energy management HIL test request; If the vehicle energy management HIL test request exists, the preset cloud traffic information receiving system is used to obtain current traffic information, and the preset driving condition generating system is used to generate multiple driving conditions according to the current traffic information; Based on the preset driver model and the preset vehicle model, HIL testing is performed according to the multiple driving conditions to obtain test data under the multiple driving conditions, and test results of the energy management control strategy of the VCU are obtained based on the test data under the multiple driving conditions.
2. The vehicle energy management HIL testing method according to claim 1, characterized in that: The test data includes at least one of traffic scenarios under different working conditions, VCU response time, environmental parameters, driving modes, vehicle dynamic parameters and energy management parameters.
3. The vehicle energy management HIL testing method according to claim 2, characterized in that: The test results of the energy management control strategy of the VCU are obtained according to the test data under the multiple driving conditions, including: Obtaining a computing power result of the VCU according to a VCU response time of the preset vehicle model under the multiple driving conditions; Calculate the difference between the control strategy energy consumption prediction value and the actual energy consumption value of the preset vehicle model under different preset conditions, and obtain the effectiveness result of the energy management control strategy of the VCU according to the difference, wherein the actual energy consumption value is obtained by the DCDC output power, battery output power, compressor and PTC output power of the preset vehicle model.
4. The vehicle energy management HIL testing method according to claim 1, characterized in that: The method of obtaining current traffic information by using the preset cloud traffic information receiving system includes: Obtaining the starting point, destination end point and recommended route selected by the user of the preset vehicle model; The starting point of the preset vehicle model, the destination end point and the recommended route are input into the preset cloud traffic information receiving system to obtain initial cloud traffic information, and the initial cloud traffic information is parsed to obtain the current traffic information, wherein the current traffic information includes at least one of route planning information, real-time traffic conditions and weather information.
5. The vehicle energy management HIL testing method according to claim 1, characterized in that: The method of using the preset driving condition generation system to generate a plurality of driving conditions according to the current traffic information includes: Analyzing the current traffic information and extracting preset key information; Preprocessing the preset key information to obtain preprocessed key information; The multiple driving conditions are generated according to the preprocessed key information.
6. A vehicle energy management HIL test device, characterized in that: The device adopts a vehicle energy management HIL test system, which includes an industrial computer, a cabinet, a VCU and a host computer. The industrial computer includes a preset cloud traffic information receiving system and a preset driving condition generating system. The cabinet includes a preset driver model and a preset vehicle model. The device includes: A judgment module, used to judge whether there is a vehicle energy management HIL test request; a processing module, configured to, if there is a vehicle energy management HIL test request, obtain current traffic information using the preset cloud traffic information receiving system, and generate a plurality of driving conditions according to the current traffic information using the preset driving condition generating system; A test module is used to perform HIL testing according to the multiple driving conditions based on the preset driver model and the preset vehicle model, obtain test data under the multiple driving conditions, and obtain test results of the energy management control strategy of the VCU based on the test data under the multiple driving conditions.
7. The vehicle energy management HIL test device according to claim 6, characterized in that: The test data includes at least one of traffic scenarios under different working conditions, VCU response time, environmental parameters, driving modes, vehicle dynamic parameters and energy management parameters.
8. The vehicle energy management HIL test device according to claim 7, characterized in that: The test module is used to: Obtaining a computing power result of the VCU according to a VCU response time of the preset vehicle model under the multiple driving conditions; Calculate the difference between the control strategy energy consumption prediction value and the actual energy consumption value of the preset vehicle model under different preset conditions, and obtain the effectiveness result of the energy management control strategy of the VCU according to the difference, wherein the actual energy consumption value is obtained by the DCDC output power, battery output power, compressor and PTC output power of the preset vehicle model.
9. A vehicle, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the vehicle energy management HIL test method according to any one of claims 1 to 5.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: The computer program is executed by a processor to implement the vehicle energy management HIL testing method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Driving condition intelligent forecast and estimation method based on driving habits and traffic road condition
CN107862864A
Range-extended electric vehicle energy management strategy test system and method
CN113126593A
Vehicle energy consumption simulation method, device and equipment and computer storage medium
CN114254521A
Hybrid vehicle power battery charge sampling system and sampling method under emission conditions
CN114935724A
Vehicle-road-cloud fused road environment scene simulation method, electronic device, and medium
WO2024131679A1