Vehicle function test system and method, electronic equipment and storage medium
Through the vehicle function test system, the bus interface equipment and the upper computer are connected to the vehicle ECU, the verification of control strategies and dynamic testing of actual vehicle functions before software development is achieved, and the incomplete verification of actual vehicle functions and high costs in the existing technology are solved. The problem of development efficiency has been improved.
Patent Information
- Application Number
- CN202410987675.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-23
- Publication Date
- 2024-11-12
AI Technical Summary
The existing vehicle functional testing methods have limitations. The real vehicle functional verification is not comprehensive and expensive. It is difficult for traditional methods to implement dynamic functional testing of real vehicles. Moreover, the software needs to be repeatedly modified when the control strategy changes, which consumes a lot of time and energy.
Provide a vehicle functional testing system, including bus interface equipment, upper computer, target vehicle ECU and real vehicle communication network, and connects with target vehicle ECU and real vehicle communication network through bus interface equipment to realize the verification of control policies before software development. It also has dynamic testing of real-life functions, and supports protocols such as CAN bus and USB bus.
Eliminate the limitations of the test environment, shorten the verification time, save development costs, support control strategy verification and dynamic vehicle function testing before software development, greatly reduce software development time and improve development efficiency.
Smart Images

Figure CN118938855A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of vehicle function testing, and in particular to a vehicle function testing system, method, electronic equipment and storage medium. Background Art
[0002] In the process of automobile development and testing, vehicle function testing and verification are important links to ensure automobile performance and safety. Some functional tests need to be carried out in specific environments, such as the torque control response time of the power system needs to be tested on high and low adhesion coefficient roads; the power limit test under high and low temperature environments needs to be carried out in the high temperature or low temperature rotating hub test chamber of the whole vehicle and the corresponding test field. The traditional testing process follows the steps of "strategy development-software development-virtual verification-real vehicle verification", which are as follows: First, engineers formulate corresponding control strategies according to the performance goals and safety requirements of the vehicle; secondly, according to the control strategies formulated in the strategy development stage, engineers write corresponding control software, and based on the control strategies formulated in the strategy development stage, engineers write control software, which will be installed in various electronic control units of the vehicle to realize the control of various systems of the vehicle; then after the software development is completed, the functions and performance of the control software are tested in a computer simulation environment; finally, the virtually verified software is installed on the actual vehicle for real vehicle function testing and verification. Among them, in the virtual verification stage, the test methods mainly include static tests such as yellow board test and HIL test, and the test content can cover all functional logic tests and abnormal responses.
[0003] However, the current real vehicle functional testing and verification methods have certain limitations. Affected by the test environment, the functional verification of the real vehicle is inconvenient, resulting in incomplete functional verification and high verification costs. When the control strategy changes, the traditional process requires that the control software of each electronic control unit ECU be modified first, and then the strategy is verified through virtual verification and real vehicle verification. If there are imperfections in the strategy, this process needs to be repeated, which consumes a lot of time and energy. In addition, traditional static testing methods such as yellow board testing and HIL testing are difficult to achieve real vehicle dynamic functional testing and subjective evaluation. Summary of the invention
[0004] In view of this, the purpose of this application is to provide a vehicle function testing system, method, electronic device and storage medium. By adopting the technical solution provided by this application, not only can the control strategy be verified before software development, but also the actual vehicle function dynamic test can be carried out, which greatly reduces the software development time and improves the development efficiency.
[0005] This application mainly includes the following aspects:
[0006] In a first aspect, an embodiment of the present application provides a vehicle function test system, the test system comprising: a bus interface device, a host computer, a target vehicle-mounted ECU, multiple vehicle-mounted ECUs, and a real vehicle communication network; wherein the bus interface device is connected to the target vehicle-mounted ECU via a first channel, the bus interface device is connected to the real vehicle communication network via a second channel, the real vehicle communication network is respectively connected to at least one vehicle-mounted ECU, and the bus interface device is connected to the host computer via a first bus;
[0007] The host computer obtains a first message about a predetermined function of the vehicle received through the first channel through the first bus, and adjusts the first message based on a predetermined rule to obtain a second message; the real vehicle communication network obtains the second message through the second channel, the at least one on-board ECU controls the corresponding on-board device to perform an action corresponding to the second message, and the host computer verifies whether the predetermined function of the vehicle meets expectations based on monitoring data corresponding to the action;
[0008] or,
[0009] The host computer obtains a third message about a predetermined function of the vehicle received through the second channel through the first bus, and adjusts the third message based on a predetermined rule to obtain a fourth message; the target vehicle-mounted ECU obtains the fourth message through the first channel, the target vehicle-mounted ECU controls the corresponding vehicle-mounted device to perform an action corresponding to the fourth message, and the host computer verifies whether the predetermined function of the vehicle meets expectations based on the monitoring data corresponding to the action.
[0010] Furthermore, the bus interface device is connected to the target vehicle-mounted ECU via a CAN bus; the bus interface device is connected to the real vehicle communication network via a CAN bus;
[0011] The bus interface device is connected to the host computer via a USB bus;
[0012] The at least one vehicle-mounted ECU is connected to the real vehicle communication network via a CAN bus;
[0013] Further, the host computer obtains the first message about the predetermined function of the vehicle received by the first channel through the first bus, and adjusts the first message based on a predetermined rule to obtain a second message, including:
[0014] The host computer obtains a first message about a predetermined function of the vehicle received by the first channel through the first bus;
[0015] Parsing the first message according to the DBC file imported by the host computer to obtain a parsing signal about a predetermined function of the vehicle;
[0016] Based on the analysis signal and the predetermined function of the vehicle, marking and adjusting the analysis signal related to the predetermined function of the vehicle to obtain an adjustment signal of the vehicle related to the predetermined function;
[0017] The adjustment signal is processed by DBC file to obtain a second message.
[0018] Further, the host computer obtains the third message about the vehicle predetermined function received by the second channel through the first bus, and adjusts the third message based on a predetermined rule to obtain a fourth message, including:
[0019] The host computer obtains a third message about a predetermined function of the vehicle received by the first channel through the first bus;
[0020] Parsing the third message according to the DBC file imported by the host computer to obtain a parsing signal related to a predetermined function;
[0021] Based on the analyzed signal and the predetermined function, marking and adjusting the analyzed signal related to the predetermined function to obtain an adjustment signal related to the predetermined function;
[0022] The adjustment signal is processed by DBC file to obtain a fourth message.
[0023] In a second aspect, an embodiment of the present application provides a vehicle function testing method, the testing method is applied to a real vehicle function testing system, the system comprising: a bus interface device, a host computer, a target vehicle-mounted ECU, multiple vehicle-mounted ECUs and a real vehicle communication network; wherein the bus interface device is connected to the target vehicle-mounted ECU through a first channel, the bus interface device is connected to the real vehicle communication network through a second channel, the real vehicle communication network is respectively connected to at least one vehicle-mounted ECU, and the bus interface device is connected to the host computer through a first bus;
[0024] The test method includes:
[0025] The host computer obtains a first message about a predetermined function of the vehicle received through the first channel through the first bus, and adjusts the first message based on a predetermined rule to obtain a second message; the real vehicle communication network obtains the second message through the second channel, the at least one on-board ECU controls the corresponding on-board device to perform an action corresponding to the second message, and the host computer verifies whether the predetermined function of the vehicle meets expectations based on monitoring data corresponding to the action;
[0026] or,
[0027] The host computer obtains a third message about a predetermined function of the vehicle received through the second channel through the first bus, and adjusts the third message based on a predetermined rule to obtain a fourth message; the target vehicle-mounted ECU obtains the fourth message through the first channel, the target vehicle-mounted ECU controls the corresponding vehicle-mounted device to perform an action corresponding to the fourth message, and the host computer verifies whether the predetermined function of the vehicle meets expectations based on the monitoring data corresponding to the action.
[0028] Furthermore, the bus interface device is connected to the target vehicle-mounted ECU via a CAN bus; the bus interface device is connected to the real vehicle communication network via a CAN bus;
[0029] The bus interface device is connected to the host computer via a USB bus;
[0030] The at least one vehicle-mounted ECU is connected to the real vehicle communication network via a CAN bus;
[0031] Further, the host computer obtains the first message about the predetermined function of the vehicle received by the first channel through the first bus, and adjusts the first message based on a predetermined rule to obtain a second message. The specific steps include:
[0032] The host computer obtains a first message about a predetermined function of the vehicle received by the first channel through the first bus;
[0033] Parsing the first message according to the DBC file imported by the host computer to obtain a parsing signal about a predetermined function of the vehicle;
[0034] Based on the analysis signal and the predetermined function of the vehicle, marking and adjusting the analysis signal related to the predetermined function of the vehicle to obtain an adjustment signal of the vehicle related to the predetermined function;
[0035] The adjustment signal is processed by DBC file to obtain a second message.
[0036] Further, the host computer obtains the third message about the vehicle predetermined function received by the second channel through the first bus, and adjusts the third message based on a predetermined rule to obtain a fourth message. The specific steps include:
[0037] The host computer obtains a third message about a predetermined function of the vehicle received by the first channel through the first bus;
[0038] Parsing the third message according to the DBC file imported by the host computer to obtain a parsing signal related to a predetermined function;
[0039] Based on the analyzed signal and the predetermined function, marking and adjusting the analyzed signal related to the predetermined function to obtain an adjustment signal related to the predetermined function;
[0040] The adjustment signal is processed by DBC file to obtain a fourth message.
[0041] In a third aspect, an embodiment of the present application further provides an electronic device, comprising: a processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate through the bus, and the machine-readable instructions are executed by the processor to perform the steps of the above-mentioned test method when running.
[0042] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above-mentioned test method are executed.
[0043] A vehicle function testing system, method, electronic device and storage medium provided in an embodiment of the present application include: a bus interface device, a host computer, a target vehicle-mounted ECU, multiple vehicle-mounted ECUs and a real vehicle communication network; the host computer obtains a first message about a vehicle's predetermined function received on a first channel through a first bus, and adjusts the first message based on a predetermined rule to obtain a second message; the real vehicle communication network obtains the second message through a second channel, the at least one vehicle-mounted ECU controls the corresponding vehicle-mounted device to perform an action corresponding to the second message, and the host computer verifies whether the vehicle's predetermined function meets expectations based on monitoring data corresponding to the action.
[0044] In this way, by adopting the technical solution provided in this application, it is possible to eliminate the limitations of the test environment, shorten the verification time and save development costs, support control strategy verification and dynamic testing of actual vehicle functions before software development, significantly reduce software development time and improve development efficiency.
[0045] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0047] Figure 1 A schematic diagram showing the structure of a vehicle function testing system provided in an embodiment of the present application is shown;
[0048] Figure 2 One of the flow charts of a vehicle function testing method provided in an embodiment of the present application is shown;
[0049] Figure 3 A second flowchart of a vehicle function testing method provided in an embodiment of the present application is shown;
[0050] Figure 4 A schematic structural diagram of an electronic device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0051] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments. The components of the embodiments of the present application usually described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, each other embodiment obtained by those skilled in the art without making creative work belongs to the scope of protection of the present application.
[0052] In the process of automobile development and testing, vehicle function testing and verification are important links to ensure automobile performance and safety. Some functional tests need to be carried out in specific environments, such as the torque control response time of the power system needs to be tested on high and low adhesion coefficient roads; the power limit test under high and low temperature environments needs to be carried out in the high temperature or low temperature rotating hub test chamber of the whole vehicle and the corresponding test field. The traditional testing process follows the steps of "strategy development-software development-virtual verification-real vehicle verification", which are as follows: First, engineers formulate corresponding control strategies according to the performance goals and safety requirements of the vehicle; secondly, according to the control strategies formulated in the strategy development stage, engineers write corresponding control software, and based on the control strategies formulated in the strategy development stage, engineers write control software, which will be installed in various electronic control units of the vehicle to realize the control of various systems of the vehicle; then after the software development is completed, the functions and performance of the control software are tested in a computer simulation environment; finally, the virtually verified software is installed on the actual vehicle for real vehicle function testing and verification. Among them, in the virtual verification stage, the test methods mainly include static tests such as yellow board test and HIL test, and the test content can cover all functional logic tests and abnormal responses. However, the current real vehicle functional testing and verification methods have certain limitations. Affected by the test environment, the functional verification of the real vehicle is inconvenient, resulting in incomplete functional verification and high verification costs. When the control strategy changes, the traditional process requires that the control software of each electronic control unit ECU be modified first, and then the strategy is verified through virtual verification and real vehicle verification. If there are imperfections in the strategy, this process needs to be repeated, which consumes a lot of time and energy. In addition, traditional static testing methods such as yellow board testing and HIL testing are difficult to achieve real vehicle dynamic functional testing and subjective evaluation.
[0053] Based on this, the embodiments of the present application provide a vehicle function testing system, method, electronic device and storage medium. By adopting the technical solution provided by the present application, it is possible to eliminate the limitations of the test environment, shorten the verification time and save development costs, support control strategy verification and vehicle function dynamic testing before software development, greatly reduce software development time and improve development efficiency.
[0054] See also Figure 1 , Figure 1 This is a schematic diagram of the structure of a vehicle function testing system provided in an embodiment of the present application. Figure 1As shown in, the control system provided in the embodiment of the present application includes: a bus interface device 101, a host computer 102, a target vehicle-mounted ECU 103, multiple vehicle-mounted ECUs 104 and a real vehicle communication network 105; wherein, the bus interface device 101 is connected to the target vehicle-mounted ECU 103 through a first channel, the bus interface device 101 is connected to the real vehicle communication network 105 through a second channel, the real vehicle communication network 105 is respectively connected to at least one vehicle-mounted ECU 104, and the bus interface device 101 is connected to the host computer 102 through a first bus.
[0055] In an embodiment of the present application, the test of vehicle functions may include, but is not limited to: testing the stability control capability of the electronic stability control system in an emergency situation, testing the suspension stability control capability of the suspension system, and testing the communication capability of the vehicle with the external environment supported by the vehicle networking technology of the vehicle communication system.
[0056] The bus interface device 101 is an interface device specially designed for vehicle communication networks. The bus interface device 101 has multiple independent vehicle bus channels, each channel supports a specific bus protocol, such as CAN, LIN and FlexRay.
[0057] The ECU in the vehicle is a microcomputer. The ECU is used to control the driving state of the vehicle and realize various functions of the vehicle. The ECU is connected to sensors, actuators and other ECUs with different functions in the vehicle. In the embodiment of the present application, the target vehicle-mounted ECU 103 is an electronic control unit directly related to the vehicle function being tested. The multiple vehicle-mounted ECUs 104 are multiple electronic control units existing in the vehicle, each of which is responsible for a different vehicle function, and at least one vehicle-mounted ECU 104 is an electronic control unit indirectly related to the vehicle function being tested.
[0058] When the bus interface device 101 is connected to the real vehicle communication network 105, the connection between the target vehicle ECU 103 and the real vehicle communication network 105 is disconnected, and the real vehicle communication network 105 and the target vehicle ECU 103 can be connected through a field bus. Here, the field bus may include but is not limited to: CAN bus, USB bus and LIN bus.
[0059] As an example, the bus interface device 101 and the target vehicle-mounted ECU 103 can be connected via a CAN bus; the bus interface device 101 and the real vehicle communication network 105 can be connected via a CAN bus; the bus interface device 101 can be connected to the host computer 102 via a USB bus; and the at least one vehicle-mounted ECU 104 is connected to the real vehicle communication network 105 via a CAN bus.
[0060] In one case, if it is necessary to associate a single bus of the target vehicle-mounted ECU 103 during the vehicle function test, the bus interface device 101 is connected to the single bus interface of the target vehicle-mounted ECU 103 and the real vehicle communication network 105 is connected to the bus corresponding to the target vehicle-mounted ECU 103.
[0061] In another case, if it is necessary to simultaneously associate multiple buses of the target vehicle ECU 103 during the vehicle function test, the bus interface device 101 is connected to each bus interface of the target vehicle ECU 103 and the real vehicle communication network 105 is connected to the corresponding bus of the target vehicle ECU 103.
[0062] When testing different vehicle functions, the vehicle function test provided by the embodiment of the present application includes the following two situations:
[0063] In the first case, the tested vehicle function requires analyzing and evaluating the monitoring data of the at least one vehicle ECU 104 indirectly related to the tested vehicle function to verify whether the tested vehicle function is realized by the target vehicle ECU 103 .
[0064] In the second case, the tested vehicle function needs to analyze and evaluate the monitoring data of the target vehicle ECU 103 directly related to the tested vehicle function to verify whether the tested vehicle function is realized by the target vehicle ECU 103 .
[0065] For the first case, the host computer 102 obtains the first message about the vehicle's scheduled function received by the first channel through the first bus, and adjusts the first message based on a predetermined rule to obtain a second message; the real vehicle communication network 105 obtains the second message through the second channel, and the at least one vehicle-mounted ECU 104 controls the corresponding vehicle-mounted device to perform an action corresponding to the second message. The host computer 102 verifies whether the vehicle's scheduled function meets expectations based on the monitoring data corresponding to the action.
[0066] In an embodiment of the present application, the first message is monitoring data collected by the target vehicle-mounted ECU103 from at least one vehicle-mounted device connected to it and sent to the host computer 102 through a bus. The first message may include but is not limited to: status information of the vehicle-mounted device monitored by the target vehicle-mounted ECU103, sensor signals of the real vehicle communication network 105, control commands of the target vehicle-mounted ECU103 or the real vehicle communication network 105, and feedback information of the at least one vehicle-mounted ECU104.
[0067] The predetermined rule is to set and implement a data trigger mechanism under normal conditions according to the vehicle function under test in the absence of specific test conditions to simulate changes in specific environmental parameters, thereby performing function verification.
[0068] The host computer 102 acquires the first message about the vehicle predetermined function received by the first channel through the first bus, and adjusts the first message based on a predetermined rule to obtain a second message. In specific implementation, the following steps may be included:
[0069] First, the host computer 102 obtains a first message about a predetermined function of the vehicle received by the first channel through the first bus.
[0070] Secondly, the first message is parsed according to the DBC file imported by the host computer 102 to obtain a parsed signal about the predetermined function of the vehicle. The parsed signal can be displayed on the host computer 102 in different ways, including but not limited to: list, data log, real-time curve chart and 3D visualization.
[0071] Then, based on the analysis signal and the predetermined function of the vehicle, the analysis signal related to the predetermined function of the vehicle is marked and adjusted to obtain an adjustment signal of the vehicle with respect to the predetermined function.
[0072] Finally, the adjustment signal is processed by the DBC file to obtain the second message. As an example, the adjustment signal is converted into a bus value according to the conversion relationship described in the DBC file, and is put into the position of the original signal in the message to obtain the second message.
[0073] Below, we will use a specific example to illustrate the first case of vehicle function testing:
[0074] Assuming that the target vehicle-mounted ECU 103 is a vehicle body stability control unit ESC, when the vehicle body stability control unit ESC performs vehicle body posture adjustment, it is necessary to dynamically adjust the driving force of the power system in real time, and the effect of the vehicle body posture adjustment has strict requirements on the driving force response speed of the power system. However, during the test of vehicle functions, due to the limitations of the test environment or for safety considerations, it is impossible to generate an excitation that meets the test requirements in an ordinary environment. In order to generate an excitation that meets the test requirements, using the vehicle function test system proposed in this application, the host computer 102 adjusts the monitoring data related to the vehicle function in the vehicle body stability control unit ESC during normal driving to the increase and decrease torque instructions generated under special conditions, and transmits the adjusted data to the multiple vehicle-mounted ECUs 104 in the power system. The host computer 102 receives the torque status information fed back by the multiple vehicle-mounted ECUs 104 in the power system in real time during the test, analyzes and judges the response speed of the multiple vehicle-mounted ECUs 104 to the increase and decrease torque instructions through the status information in the host computer 102, and verifies whether the vehicle body posture adjustment is achieved.
[0075] For the second situation, the host computer 102 obtains the third message about the vehicle's scheduled function received by the second channel through the first bus, and adjusts the third message based on a predetermined rule to obtain a fourth message; the target vehicle-mounted ECU 103 obtains the fourth message through the first channel, and the target vehicle-mounted ECU 103 controls the corresponding vehicle-mounted equipment to perform an action corresponding to the fourth message, and the host computer 102 verifies whether the vehicle's scheduled function meets expectations based on the monitoring data corresponding to the action.
[0076] In an embodiment of the present application, the third message is monitoring data collected by at least one vehicle-mounted ECU 104 and connected to at least one vehicle-mounted device and sent to the host computer 102 through a bus. The third message may include but is not limited to: status information of the vehicle-mounted device monitored by the at least one vehicle-mounted ECU 104, sensor signals of the real vehicle communication network 105, control commands of the target vehicle-mounted ECU 103 or the real vehicle communication network 105, and feedback information of the target vehicle-mounted ECU 103.
[0077] The host computer 102 acquires the third message about the vehicle predetermined function received by the second channel through the first bus, and adjusts the third message based on a predetermined rule to obtain a fourth message. In specific implementation, the following steps may be included:
[0078] First, the host computer 102 obtains a first message about a predetermined function of the vehicle received by the first channel through the first bus.
[0079] Secondly, according to the DBC file imported by the host computer 102, the third message is parsed to obtain a parsed signal about the predetermined function of the vehicle.
[0080] Then, based on the analysis signal and the predetermined function of the vehicle, the analysis signal related to the predetermined function of the vehicle is marked and adjusted to obtain an adjustment signal of the vehicle with respect to the predetermined function.
[0081] Finally, the adjustment signal is processed into a DBC file to obtain a fourth message.
[0082] The following is a specific example to illustrate the second case of vehicle function testing:
[0083] Assuming that the target vehicle-mounted ECU 103 is a battery management system, the battery management system needs to cut off the high-voltage electrical connection between the power battery and the drive system within a specified time when a collision event occurs in the vehicle to prevent secondary damage to the occupants. However, during the test of the vehicle function, the vehicle cannot be directly subjected to a collision test. In order to reduce the verification cost and the test risk, the vehicle function test system proposed in this application is used, and the host computer 102 adjusts the monitoring data related to the vehicle function in the regional control unit during normal driving to the collision signal generated when the vehicle collides, and transmits it to the battery management system. The host computer 102 receives the high-voltage electrical connection state fed back by the battery management system in real time during the test, and analyzes and judges the response capability of the battery management system when a collision event occurs through the high-voltage electrical connection state in the host computer 102, and verifies whether the high-voltage electrical connection between the power battery and the drive system is cut off within the specified time.
[0084] A vehicle function testing system provided in an embodiment of the present application includes: a bus interface device 101, a host computer 102, a target vehicle-mounted ECU 103, multiple vehicle-mounted ECUs 104 and a real vehicle communication network 105; the host computer 102 obtains a first message about a predetermined function of the vehicle received through a first channel through a first bus, and adjusts the first message based on a predetermined rule to obtain a second message; the real vehicle communication network 105 obtains the second message through a second channel, and the at least one vehicle-mounted ECU 104 controls the corresponding vehicle-mounted device to perform an action corresponding to the second message, and the host computer 102 verifies whether the predetermined function of the vehicle meets expectations based on monitoring data corresponding to the action.
[0085] In this way, by adopting the technical solution provided in this application, it is possible to eliminate the limitations of the test environment, shorten the verification time and save development costs, support control strategy verification and vehicle function dynamic testing before software development, significantly reduce software development time and improve development efficiency.
[0086] Based on the same application concept, the embodiment of the present application also provides a vehicle function testing method corresponding to a vehicle function testing system provided in the above embodiment. Since the principle of solving the problem by the method in the embodiment of the present application is similar to that of a vehicle function testing system in the above embodiment of the present application, the implementation of the method can refer to the implementation of the system, and the repeated parts will not be repeated.
[0087] See also Figure 1 , Figure 1 This is a schematic diagram of the structure of a vehicle function testing system provided in an embodiment of the present application. Figure 1 As shown in, the test method is applied to a vehicle function test system, the system comprising: a bus interface device 101, a host computer 102, a target vehicle-mounted ECU 103, multiple vehicle-mounted ECUs 104 and a real vehicle communication network 105; wherein the bus interface device 101 is connected to the target vehicle-mounted ECU 103 through a first channel, the bus interface device 101 is connected to the real vehicle communication network 105 through a second channel, the real vehicle communication network 105 is respectively connected to at least one vehicle-mounted ECU 104, and the bus interface device 101 is connected to the host computer 102 through a first bus.
[0088] Optionally, as an example, the bus interface device 101 and the target vehicle-mounted ECU 103 can be connected via a CAN bus; the bus interface device 101 and the real vehicle communication network 105 can be connected via a CAN bus; the bus interface device 101 can be connected to the host computer 102 via a USB bus; the at least one vehicle-mounted ECU 104 and the real vehicle communication network 105 can be connected via a CAN bus.
[0089] See also Figure 2 , Figure 3 , Figure 2 This is one of the flow charts of a vehicle function testing method provided in an embodiment of the present application. Figure 3 This is a second flow chart of a vehicle function testing method provided in an embodiment of the present application, such as Figure 2 As shown in , one of the test methods provided in the embodiments of the present application includes:
[0090] In step S210, the host computer 102 obtains a first message about a predetermined function of the vehicle received by the first channel through the first bus, and adjusts the first message based on a predetermined rule to obtain a second message.
[0091] Optionally, in the embodiment of the present application, regarding step S210, when it is specifically implemented, the following steps may be included:
[0092] First, the host computer 102 obtains a first message about a predetermined function of the vehicle received by the first channel through the first bus.
[0093] Secondly, according to the DBC file imported by the host computer 102, the first message is parsed to obtain a parsing signal about the predetermined function of the vehicle.
[0094] Then, based on the analysis signal and the predetermined function of the vehicle, the analysis signal related to the predetermined function of the vehicle is marked and adjusted to obtain an adjustment signal of the vehicle with respect to the predetermined function.
[0095] Finally, the adjustment signal is processed into a DBC file to obtain a second message.
[0096] Step S220: the real vehicle communication network 105 obtains the second message through the second channel, and the at least one vehicle-mounted ECU 104 controls the corresponding vehicle-mounted device to perform an action corresponding to the second message.
[0097] Step S230: the host computer 102 verifies whether the predetermined function of the vehicle meets expectations based on the monitoring data corresponding to the action.
[0098] like Figure 3 As shown in, the second test method provided in the embodiment of the present application includes:
[0099] In step S310, the host computer 102 obtains the third message about the vehicle predetermined function received by the second channel through the first bus, and adjusts the third message based on a predetermined rule to obtain a fourth message.
[0100] Optionally, in the embodiment of the present application, regarding step S310, during specific implementation, the following steps may be included:
[0101] First, the host computer 102 obtains the third message about the vehicle predetermined function received by the first channel through the first bus.
[0102] Secondly, according to the DBC file imported by the host computer 102, the third message is parsed to obtain a parsing signal related to a predetermined function.
[0103] Then, based on the analyzed signal and the predetermined function, the analyzed signal related to the predetermined function is marked and adjusted to obtain an adjusted signal related to the predetermined function.
[0104] Finally, the adjustment signal is processed into a DBC file to obtain a fourth message.
[0105] Step S320: the target vehicle-mounted ECU 103 obtains the fourth message through the first channel, and the target vehicle-mounted ECU 103 controls the corresponding vehicle-mounted device to execute an action corresponding to the fourth message.
[0106] Step S330: the host computer 102 verifies whether the predetermined function of the vehicle meets expectations based on the monitoring data corresponding to the action.
[0107] A vehicle function testing method provided in an embodiment of the present application is applied to a vehicle function testing system, the system comprising: a bus interface device 101, a host computer 102, a target vehicle-mounted ECU 103, multiple vehicle-mounted ECUs 104, and a real vehicle communication network 105; one of the testing methods comprises: the host computer 102 obtains a first message about a predetermined vehicle function received through a first channel via a first bus, and adjusts the first message based on a predetermined rule to obtain a second message; the real vehicle communication network 105 obtains the second message through a second channel, and the at least one vehicle-mounted ECU 104 controls the corresponding vehicle-mounted device Execute the action corresponding to the second message, and the host computer 102 verifies whether the vehicle's scheduled function meets expectations based on the monitoring data corresponding to the action; the second test method includes: the host computer 102 obtains the third message about the vehicle's scheduled function received by the second channel through the first bus, and adjusts the third message based on a predetermined rule to obtain a fourth message; the target vehicle-mounted ECU103 obtains the fourth message through the first channel, and the target vehicle-mounted ECU103 controls the corresponding vehicle-mounted device to execute the action corresponding to the fourth message, and the host computer 102 verifies whether the vehicle's scheduled function meets expectations based on the monitoring data corresponding to the action.
[0108] In this way, by adopting the technical solution provided in this application, it is possible to eliminate the limitations of the test environment, shorten the verification time and save development costs, support control strategy verification and vehicle function dynamic testing before software development, significantly reduce software development time and improve development efficiency.
[0109] See also Figure 4 , Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 4 As shown in , the electronic device 400 includes a processor 410 , a memory 420 and a bus 430 .
[0110] The memory 420 stores machine-readable instructions executable by the processor 410. When the electronic device 400 is running, the processor 410 communicates with the memory 420 via the bus 430. When the machine-readable instructions are executed by the processor 410, the above-mentioned Figure 2 as well as Figure 3 The specific implementation of the steps of the vehicle function testing method in the method embodiment shown can be found in the method embodiment, and will not be repeated here.
[0111] The present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the computer program can execute the above-mentioned Figure 2 as well as Figure 3 The specific implementation of the steps of the vehicle function testing method in the method embodiment shown can be found in the method embodiment, and will not be repeated here.
[0112] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0113] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.
[0114] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0115] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0116] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium that is executable by a processor. Based on this understanding, the technical solution of the present application can essentially be embodied in the form of a software product, or in other words, the part that contributes to the prior art or the part of the technical solution. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0117] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present application, which are used to illustrate the technical solutions of the present application, rather than to limit them. The protection scope of the present application is not limited thereto. Although the present application is described in detail with reference to the above-mentioned embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-mentioned embodiments within the technical scope disclosed in the present application, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.
Claims
1. A vehicle function testing system, It is characterized in that The test system comprises: a bus interface device, a host computer, a target vehicle-mounted ECU, a plurality of vehicle-mounted ECUs and a real vehicle communication network; wherein the bus interface device is connected to the target vehicle-mounted ECU via a first channel, the bus interface device is connected to the real vehicle communication network via a second channel, the real vehicle communication network is respectively connected to at least one vehicle-mounted ECU, and the bus interface device is connected to the host computer via a first bus; The host computer obtains a first message about a predetermined function of the vehicle received through the first channel through the first bus, and adjusts the first message based on a predetermined rule to obtain a second message; the real vehicle communication network obtains the second message through the second channel, the at least one on-board ECU controls the corresponding on-board device to perform an action corresponding to the second message, and the host computer verifies whether the predetermined function of the vehicle meets expectations based on monitoring data corresponding to the action; or, The host computer obtains a third message about a predetermined function of the vehicle received through the second channel through the first bus, and adjusts the third message based on a predetermined rule to obtain a fourth message; the target vehicle-mounted ECU obtains the fourth message through the first channel, the target vehicle-mounted ECU controls the corresponding vehicle-mounted device to perform an action corresponding to the fourth message, and the host computer verifies whether the predetermined function of the vehicle meets expectations based on the monitoring data corresponding to the action.
2. The test system according to claim 1, Features: The bus interface device is connected to the target vehicle-mounted ECU via a CAN bus; the bus interface device is connected to the real vehicle communication network via a CAN bus; The bus interface device is connected to the host computer via a USB bus; The at least one vehicle-mounted ECU is connected to the real vehicle communication network via a CAN bus.
3. The test system according to claim 1, It is characterized in that The host computer obtains a first message about a predetermined function of the vehicle received by the first channel through the first bus, and adjusts the first message based on a predetermined rule to obtain a second message, including: The host computer obtains a first message about a predetermined function of the vehicle received by the first channel through the first bus; Parsing the first message according to the DBC file imported by the host computer to obtain a parsing signal about a predetermined function of the vehicle; Based on the analysis signal and the predetermined function of the vehicle, marking and adjusting the analysis signal related to the predetermined function of the vehicle to obtain an adjustment signal of the vehicle related to the predetermined function; The adjustment signal is processed by DBC file to obtain a second message.
4. The test system according to claim 1, It is characterized in that The host computer obtains the third message about the vehicle predetermined function received by the second channel through the first bus, and adjusts the third message based on a predetermined rule to obtain a fourth message, including: The host computer obtains a third message about a predetermined function of the vehicle received by the first channel through the first bus; Parsing the third message according to the DBC file imported by the host computer to obtain a parsing signal related to a predetermined function; Based on the analyzed signal and the predetermined function, marking and adjusting the analyzed signal related to the predetermined function to obtain an adjusted signal related to the predetermined function; The adjustment signal is processed by DBC file to obtain a fourth message.
5. A method for testing vehicle functions, It is characterized in that The test method is applied to a vehicle function test system, the system comprising: a bus interface device, a host computer, a target vehicle-mounted ECU, multiple vehicle-mounted ECUs and a real vehicle communication network; wherein the bus interface device is connected to the target vehicle-mounted ECU via a first channel, the bus interface device is connected to the real vehicle communication network via a second channel, the real vehicle communication network is respectively connected to at least one vehicle-mounted ECU, and the bus interface device is connected to the host computer via a first bus; The test method includes: The host computer obtains a first message about a predetermined function of the vehicle received through the first channel through the first bus, and adjusts the first message based on a predetermined rule to obtain a second message; the real vehicle communication network obtains the second message through the second channel, the at least one on-board ECU controls the corresponding on-board device to perform an action corresponding to the second message, and the host computer verifies whether the predetermined function of the vehicle meets expectations based on monitoring data corresponding to the action; or, The host computer obtains a third message about a predetermined function of the vehicle received through the second channel through the first bus, and adjusts the third message based on a predetermined rule to obtain a fourth message; the target vehicle-mounted ECU obtains the fourth message through the first channel, the target vehicle-mounted ECU controls the corresponding vehicle-mounted device to perform an action corresponding to the fourth message, and the host computer verifies whether the predetermined function of the vehicle meets expectations based on the monitoring data corresponding to the action.
6. The test method according to claim 5, Features: The bus interface device is connected to the target vehicle-mounted ECU via a CAN bus; the bus interface device is connected to the real vehicle communication network via a CAN bus; The bus interface device is connected to the host computer via a USB bus; The at least one vehicle-mounted ECU is connected to the real vehicle communication network via a CAN bus.
7. The testing method according to claim 5, It is characterized in that The host computer obtains the first message about the vehicle predetermined function received by the first channel through the first bus, and adjusts the first message based on a predetermined rule to obtain a second message. The specific steps include: The host computer obtains a first message about a predetermined function of the vehicle received by the first channel through the first bus; Parsing the first message according to the DBC file imported by the host computer to obtain a parsing signal about a predetermined function of the vehicle; Based on the analysis signal and the predetermined function of the vehicle, marking and adjusting the analysis signal related to the predetermined function of the vehicle to obtain an adjustment signal of the vehicle related to the predetermined function; The adjustment signal is processed by DBC file to obtain a second message.
8. The testing method according to claim 5, It is characterized in that The host computer obtains the third message about the vehicle predetermined function received by the second channel through the first bus, and adjusts the third message based on a predetermined rule to obtain a fourth message. The specific steps include: The host computer obtains a third message about a predetermined function of the vehicle received by the first channel through the first bus; Parsing the third message according to the DBC file imported by the host computer to obtain a parsing signal related to a predetermined function; Based on the analyzed signal and the predetermined function, marking and adjusting the analyzed signal related to the predetermined function to obtain an adjusted signal related to the predetermined function; The adjustment signal is processed by DBC file to obtain a fourth message.
9. An electronic device, It is characterized in that include: A processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate through the bus, and the machine-readable instructions are executed by the processor to perform the steps of any method described in claims 5 to 8.
10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method according to any one of claims 5 to 8 are executed.
Citation Information
Cited By
Message test method and system based on automobile bus, storage medium and automobile
CN121098768A
