Vehicle-mounted gateway routing test method, device, equipment and storage medium
By providing a vehicle-mounted gateway routing testing method in the vehicle, using software simulation and targeted test items, the problems of gateway routing testing complexity and hardware dependence are solved, and efficient and general test results are achieved.
Patent Information
- Application Number
- CN202510154857.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-12
- Publication Date
- 2025-05-23
AI Technical Summary
The gateway routing test work in a vehicle is complicated and requires a large amount of real ECU hardware simulation, resulting in poor test versatility, low execution efficiency and time-consuming and labor-consuming.
A method of routing testing on-vehicle gateway is provided. By receiving the test instructions sent by the host computer, the target on-vehicle gateway routing test items corresponding to the target vehicle control function is determined, and the target on-vehicle gateway is routed based on these test items to reduce hardware dependence and improve the targetedness and execution efficiency of the test.
Automatic testing of on-board gateway routing test items based on software simulation and targeted, reducing dependence on real ECU hardware, and improving the universality and execution efficiency of tests.
Smart Images

Figure CN120034465A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle technology, and in particular to a vehicle-mounted gateway routing test method, device, equipment and storage medium. Background Art
[0002] With the development of vehicle technology, a large number of electronic control units (ECUs) are currently configured in vehicles to realize various vehicle functions. High-speed and efficient signal communication is required between these ECUs to ensure the normal execution of vehicle control functions.
[0003] As the core component of the vehicle's internal communication LAN, the gateway bears important responsibilities such as information sharing, network management, and fault diagnosis. However, the testing of the gateway is extremely complex, requiring the preparation of a large number of interactive ECU real hardware to simulate the communication scenarios between various ECUs in the vehicle. There are many test items, a large number of real ECU hardware involved, and a huge testing workload, which leads to problems such as poor versatility of gateway routing testing, low execution efficiency, and time-consuming and labor-intensive testing. Summary of the invention
[0004] In response to the above technical problems, the embodiments of the present application provide a vehicle gateway routing test method, device, equipment and storage medium, which can reduce hardware dependence and the workload of vehicle gateway routing test, improve the pertinence and execution efficiency of vehicle gateway routing test, and enhance the versatility of vehicle gateway routing test.
[0005] The technical solution of this application is implemented as follows:
[0006] In a first aspect, an embodiment of the present application provides a vehicle gateway routing test method, which is applied to a vehicle gateway routing test device, wherein the vehicle gateway routing test device is connected to a host computer and multiple vehicle gateways; the method includes:
[0007] In the case of receiving the vehicle gateway routing test instruction sent by the host computer, determining the target vehicle gateway routing test item corresponding to the target vehicle control function indicated by the vehicle gateway routing test instruction; the target vehicle gateway routing test item includes a test instance of performing a vehicle gateway routing test on the target vehicle gateway related to the target vehicle control function;
[0008] Based on the target vehicle gateway routing test item, a vehicle gateway routing test is performed on the target vehicle gateway to obtain a vehicle gateway routing test result.
[0009] In some embodiments, the vehicle gateway routing test method further includes:
[0010] Obtaining vehicle gateway routing test setting parameters from the host computer;
[0011] Based on the vehicle gateway routing test setting parameters, generating at least one vehicle gateway routing test item;
[0012] The step of determining, upon receiving the vehicle gateway routing test instruction sent by the host computer, a target vehicle gateway routing test item corresponding to the target vehicle control function indicated by the vehicle gateway routing test instruction comprises:
[0013] When the vehicle gateway routing test instruction sent by the host computer is received, the target vehicle gateway routing test item corresponding to the target vehicle control function indicated by the vehicle gateway routing test instruction is determined from the at least one vehicle gateway routing test item.
[0014] In some embodiments, the target vehicle gateway routing test item further includes a request generation condition; the request generation condition is used to characterize a generation condition of the vehicle gateway routing test request;
[0015] The performing a vehicle gateway routing test on the target vehicle gateway based on the target vehicle gateway routing test item to obtain a vehicle gateway routing test result includes:
[0016] Generate a vehicle gateway routing test request based on the request generation condition in the target vehicle gateway routing test item;
[0017] Sending the vehicle gateway routing test request to the target vehicle gateway, and obtaining the vehicle gateway routing test response data fed back by the target vehicle gateway after processing the vehicle gateway routing test request;
[0018] Based on the in-vehicle gateway routing test response data, the in-vehicle gateway routing test result is obtained.
[0019] In some embodiments, the target vehicle gateway routing test item further includes a vehicle gateway routing test parsing condition;
[0020] The obtaining the vehicle gateway routing test result based on the vehicle gateway routing test response data includes:
[0021] Based on the vehicle gateway routing test parsing condition in the target vehicle gateway routing test item, the vehicle gateway routing test response data is filtered to obtain filtered vehicle gateway routing test response data;
[0022] Based on the filtered in-vehicle gateway routing test response data, the in-vehicle gateway routing test result is obtained.
[0023] In some embodiments, the target vehicle gateway routing test item further includes a vehicle gateway routing test verification condition;
[0024] The obtaining the vehicle gateway routing test result based on the filtered vehicle gateway routing test response data includes:
[0025] Based on the vehicle gateway routing test verification condition in the target vehicle gateway routing test item, the filtered vehicle gateway routing test response data is verified to obtain the vehicle gateway routing test result.
[0026] In some embodiments, the vehicle gateway routing test method further includes:
[0027] Based on the vehicle gateway routing test result, a vehicle gateway routing test report is generated.
[0028] In some embodiments, the vehicle gateway routing test method further includes:
[0029] The vehicle gateway routing test result is sent to the host computer so that the host computer can display the vehicle gateway routing test result through a display interface.
[0030] In a second aspect, an embodiment of the present application provides a vehicle gateway routing test device, which is applied to a vehicle gateway routing test device, wherein the vehicle gateway routing test device is connected to a host computer and multiple vehicle gateways; the device includes:
[0031] A determination module, configured to determine, upon receiving the vehicle gateway routing test instruction sent by the host computer, a target vehicle gateway routing test item corresponding to the target vehicle control function indicated by the vehicle gateway routing test instruction; the target vehicle gateway routing test item includes a test instance of performing a vehicle gateway routing test on a target vehicle gateway related to the target vehicle control function;
[0032] The testing module is used to perform a vehicle gateway routing test on the target vehicle gateway based on the target vehicle gateway routing test item to obtain a vehicle gateway routing test result.
[0033] In a third aspect, an embodiment of the present application provides a vehicle gateway routing test device, comprising a memory and a processor, wherein the memory is used to store executable data instructions; when the processor is used to execute the executable data instructions stored in the memory, the steps in the vehicle gateway routing test method described in the first aspect are implemented.
[0034] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the steps in the vehicle gateway routing test method described in the first aspect are implemented.
[0035] The vehicle gateway routing test method, device, equipment and storage medium provided by the embodiments of the present application determine the target vehicle gateway routing test item corresponding to the target vehicle control function indicated by the vehicle gateway routing test instruction when receiving the vehicle gateway routing test instruction sent by the host computer, wherein the target vehicle gateway routing test item includes a test instance of performing a vehicle gateway routing test on the target vehicle gateway related to the target vehicle control function, and then based on the target vehicle gateway routing test item, the vehicle gateway routing test is performed on the target vehicle gateway to obtain the vehicle gateway routing test result. In this way, an automated gateway routing test based on software simulation and targeted vehicle gateway routing test items is implemented, which greatly reduces the dependence on real ECU hardware and the testing workload, improves the pertinence and execution efficiency of the vehicle gateway routing test, and realizes the dynamic selection of the vehicle gateway routing test item through the vehicle gateway routing test instruction sent by the host computer, thereby enhancing the versatility of the vehicle gateway routing test. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0037] Figure 1 A schematic diagram of the structure of a vehicle-mounted gateway routing test system provided in an embodiment of the present application;
[0038] Figure 2 One of the flow charts of a vehicle gateway routing test method provided in an embodiment of the present application;
[0039] Figure 3 A schematic diagram of gateway routing test channel classification provided in an embodiment of the present application;
[0040] Figure 4 A schematic diagram of a proximal CAN diagnostic access channel signal type provided in an embodiment of the present application;
[0041] Figure 5 A schematic diagram of a proximal Ethernet diagnostic access channel signal type provided in an embodiment of the present application;
[0042] Figure 6A schematic diagram of a remote diagnostic channel signal type provided in an embodiment of the present application;
[0043] Figure 7 A schematic diagram of an over-the-air download channel signal type provided in an embodiment of the present application;
[0044] Figure 8 A second flowchart of a vehicle gateway routing test method provided in an embodiment of the present application;
[0045] Fig. 9 A schematic diagram of a power supply structure of a vehicle-mounted gateway routing test system provided in an embodiment of the present application;
[0046] Fig.10 One of the structural schematic diagrams of a vehicle-mounted gateway routing test device provided in an embodiment of the present application;
[0047] Fig.11 A second structural diagram of a vehicle-mounted gateway routing test device provided in an embodiment of the present application;
[0048] Fig.12 A schematic diagram of the physical structure of an in-vehicle gateway routing test device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0049] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution 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 part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0050] The following is an illustrative introduction to the vehicle gateway routing test method, device, equipment and storage medium provided in the embodiments of the present application in conjunction with the drawings in the embodiments of the present application.
[0051] First, an in-vehicle gateway routing test system provided in an embodiment of the present application is introduced. Figure 1 A schematic diagram of the structure of a vehicle gateway routing test system provided in an embodiment of the present application is shown in FIG. Figure 1 As shown, the system includes: a host computer, a vehicle gateway routing test device and a vehicle gateway. The vehicle gateway routing test device is connected to the host computer and the vehicle gateway, and the vehicle gateway routing test device and the vehicle gateway can communicate through channel 1 and channel 2. The vehicle gateway routing test device can obtain data from the host computer and receive instructions sent by the host computer.
[0052] It should be noted that the host computer refers to a computer device that can directly issue control commands, usually a personal computer (PC) or a host computer (Master Computer). The display interface of the host computer is an important window for users to interact with the system. Through the graphical interface, users can easily monitor the operating status of the system, obtain key data, and even remotely control the system. In addition, the host computer software also has functions such as data processing, storage, alarm and report generation, providing users with a comprehensive system management and monitoring experience.
[0053] It should be noted that the vehicle gateway is a device used for communication and data transmission between the vehicle and the external network. It acts as a bridge between the vehicle's internal system and the external network, allowing the vehicle to interact with the cloud platform, mobile devices and other vehicles.
[0054] It should be noted that the vehicle gateway routing test device can be connected to multiple vehicle gateways to implement vehicle gateway routing tests on multiple different vehicle gateways.
[0055] Figure 2 One of the flow charts of a vehicle gateway routing test method provided in an embodiment of the present application is applied to Figure 1 The vehicle gateway routing test device in the vehicle gateway routing test system shown in FIG. Figure 2 As shown, the method includes:
[0056] S201. Upon receiving a vehicle gateway routing test instruction sent by the host computer, determine a target vehicle gateway routing test item corresponding to a target vehicle control function indicated by the vehicle gateway routing test instruction; the target vehicle gateway routing test item includes a test instance of performing a vehicle gateway routing test on a target vehicle gateway related to the target vehicle control function.
[0057] It should be noted that a test instance, which can also be understood as a test case, is a test scenario designed for a specific purpose. It can include input data, expected output, and execution conditions. In the vehicle gateway routing test, the test instance is used to verify whether the routing function of the gateway meets the design requirements, including signal routing and message routing.
[0058] In some embodiments, the vehicle gateway routing test items corresponding to the vehicle gateways respectively related to different vehicle control functions can be first obtained, and then when the vehicle gateway routing test instructions sent by the host computer are received, the target vehicle gateway routing test items corresponding to the target vehicle control function indicated by the vehicle gateway routing test instructions sent by the host computer can be determined from the vehicle gateway routing test items corresponding to the vehicle gateways respectively related to different vehicle control functions.
[0059] It can be understood that, since the target vehicle gateway routing test item includes a test instance of performing a vehicle gateway routing test on a target vehicle gateway related to a target vehicle control function, the target vehicle gateway routing test item can be used to perform a vehicle gateway routing test on the target vehicle gateway.
[0060] In some embodiments, the vehicle gateway routing test instruction sent by the host computer may instruct to test at least one vehicle control function of the vehicle controller group to be tested.
[0061] In some embodiments, the vehicle gateway routing test instruction may be triggered by a user through a vehicle gateway routing test button preset on a display screen of a host computer, and may be an instruction sent by the host computer to a vehicle gateway routing test device.
[0062] It should be noted that if the vehicle controller group to be tested has a vehicle control function, then in the vehicle gateway routing test scenario, the vehicle gateway routing test device receives only one type of vehicle gateway routing test instruction, namely, an instruction to test the vehicle control function.
[0063] It should be noted that the vehicle-mounted gateway routing test method provided in the embodiment of the present application involves all gateway routing test channels. Figure 3 A schematic diagram of gateway routing test channel classification provided in an embodiment of the present application, such as Figure 3 As shown, it includes: proximal CAN diagnostic access (OBD DCAN), proximal Ethernet diagnostic access (OBD Diag Ethernet), remote diagnosis (TBOX) and OTA diagnosis (TBOX). Among them, proximal CAN diagnostic access refers to the vehicle diagnosis performed by accessing the vehicle's data communication area network (DCAN) through the vehicle's on-board diagnostics (OBD) interface; proximal Ethernet diagnostic access is a vehicle diagnosis performed through the vehicle's OBD interface using Ethernet technology; remote diagnosis is vehicle diagnosis based on the on-board information service terminal (Telematics BOX, TBOX); Over-the-Air (OTA) diagnosis is the remote software update and diagnosis of the vehicle based on TBOX.
[0064] It should be noted that each channel in the gateway routing test channel classification has routing data of multiple signal types, such as Figures 4 to 7As shown. Among them, the diagnostic instrument DoCAN directly diagnoses BDC2.0, which means using the diagnostic instrument to diagnose BDC2.0 (a specific automotive control system or module) directly through the Diagnostic over Controller Area Network (DoCAN) protocol; Diagnostic over Internet Protocol (DoIP) is a diagnostic method based on the IP protocol, and DoCAN is a diagnosis based on the CAN protocol. DoCAN-DoIP means that the diagnostic process involves both CAN and IP protocols, usually through a gateway or bridge device to achieve communication between the CAN network and the IP network; DoCAN-DoCANFD means that the DoCAN protocol is used for communication, but the data link layer uses the CAN technology CANFD (CAN with Flexible Data-Rate) with a variable data rate, and DLC64 refers to the maximum length code (Data Length Code) of the data frame. Code, DLC) is 64, which means that more data can be transmitted; DoCAN-DoCAN refers to a diagnostic method that uses the DoCAN protocol to communicate directly between different CAN nodes; DoIP-DoIP (Layer 2 forwarding) refers to a diagnostic communication method that forwards DoIP packets at the data link layer (the second layer of the OSI model); Car-Cloud DoIP Direct Diagnosis BDC2.0 refers to the use of DoIP diagnostic technology to achieve direct and real-time diagnosis of BDC2.0 by diagnostic equipment through communication between the vehicle and the cloud server; DoIP-DoIP (application layer forwarding) refers to a diagnostic communication method that forwards DoIP packets at the application layer; DoIP-DoCANFD (DLC=64) means using the DoIP protocol for diagnostic communication, combined with the high data rate and large data load capacity of CANFD technology.
[0065] S202: Based on the target vehicle gateway routing test item, perform a vehicle gateway routing test on the target vehicle gateway to obtain a vehicle gateway routing test result.
[0066] In an embodiment of the present application, after receiving the vehicle gateway routing test instruction sent by the host computer, the vehicle gateway routing test instruction can be responded to, and based on the target vehicle gateway routing test item corresponding to the target vehicle control function indicated by the vehicle gateway routing test instruction, a vehicle gateway routing test can be performed on the target vehicle gateway related to the target vehicle control function, thereby realizing targeted gateway routing automation testing.
[0067] It should be noted that the vehicle gateway routing test is an evaluation of the performance of the vehicle gateway device in terms of network communication, data forwarding, and protocol conversion. After the vehicle gateway routing test is performed, the vehicle gateway routing test results obtained include but are not limited to network connectivity test results, data transmission integrity test results, data transmission delay test results, and data transmission bandwidth test results.
[0068] It can be understood that the vehicle gateway routing test method provided in the embodiment of the present application determines the target vehicle gateway routing test item corresponding to the target vehicle control function indicated by the vehicle gateway routing test instruction when receiving the vehicle gateway routing test instruction sent by the host computer, wherein the target vehicle gateway routing test item includes a test instance of performing a vehicle gateway routing test on the target vehicle gateway related to the target vehicle control function, and then based on the target vehicle gateway routing test item, the target vehicle gateway is subjected to a vehicle gateway routing test to obtain a vehicle gateway routing test result. In this way, an automated gateway routing test based on software simulation and targeted vehicle gateway routing test items is realized, which greatly reduces the dependence on real ECU hardware and the testing workload, improves the pertinence and execution efficiency of the vehicle gateway routing test, and realizes the dynamic selection of the vehicle gateway routing test item through the vehicle gateway routing test instruction sent by the host computer, thereby enhancing the versatility of the vehicle gateway routing test.
[0069] In some embodiments, the vehicle gateway routing test method further includes:
[0070] Obtaining vehicle gateway routing test setting parameters from the host computer;
[0071] Based on the vehicle gateway routing test setting parameters, generating at least one vehicle gateway routing test item;
[0072] The step of determining, upon receiving the vehicle gateway routing test instruction sent by the host computer, a target vehicle gateway routing test item corresponding to the target vehicle control function indicated by the vehicle gateway routing test instruction comprises:
[0073] When the vehicle gateway routing test instruction sent by the host computer is received, the target vehicle gateway routing test item corresponding to the target vehicle control function indicated by the vehicle gateway routing test instruction is determined from the at least one vehicle gateway routing test item.
[0074] It should be noted that the vehicle gateway routing test setting parameters may include: construction parameters of the vehicle gateway routing test environment and setting parameters of the vehicle gateway routing test items.
[0075] In some embodiments, the construction parameters of the vehicle gateway routing test environment include: configuration parameters, variable definition parameters and timing setting parameters. Among them, the configuration parameters represent the environment configuration file of the vehicle gateway routing test environment.
[0076] In some embodiments, a configuration file represented by configuration parameters can be loaded according to the configuration parameters. The configuration file includes: channel port setting rules and address information of each vehicle controller in the gateway to be tested, such as: physically addressed send identifier (Transaction ID, TxID) information, physically addressed receive identifier (Receive ID, RxID) information, physically addressed TxID information related to OBD data, physically addressed RxID information related to OBD data, logical address information, Tester address information (network address of the device used for simulation or testing in vehicle network testing), Tester vehicle cloud address information (network address of the device used for simulation or testing when the vehicle-mounted device communicates with the cloud server), Tester OTA address information (network address of the device used for simulation or testing during OTA update process).
[0077] In some embodiments, global variables can be defined according to variable definition parameters. The defined global variables include: response time variables, address type variables, status flag variables, data type variables, data length variables, and data name variables. The response time variable refers to the response time of the gateway after receiving the vehicle gateway routing test request, for example: less than 1 second; the address type variable refers to the address type of the gateway receiving the vehicle gateway routing test request, for example: physical address and functional address, different types of vehicle controller addresses, corresponding to the gateway control forwarding routing signal function range is different; the status flag variable is a variable that characterizes the state of the vehicle controller, for example: before receiving the next vehicle gateway routing test request, it is necessary to determine that the state of the vehicle controller is the original state, that is, the state flag is the state flag corresponding to the original state; the data type variable refers to the type of data transmitted, for example: the data corresponding to the vehicle gateway routing test request and the vehicle gateway routing test request response data; the data length variable refers to the variable corresponding to the length requirement of the data of each data type; the data name variable refers to the variable corresponding to the name of each data.
[0078] In some embodiments, the test timing of each vehicle gateway routing test item of the vehicle gateway routing test scenario can be set according to the timing setting parameters to complete the construction of the vehicle gateway routing test environment corresponding to the vehicle gateway routing test scenario according to the vehicle gateway routing test environment construction parameters. Among them, the test timing data represents the test timing of each vehicle gateway routing test item. If the vehicle gateway routing test scenario includes multiple vehicle gateway routing test items, and the vehicle control function of the vehicle controller group to be tested corresponding to each vehicle gateway routing test item has a timing requirement, then the vehicle gateway routing test item corresponding to the vehicle control function also needs to have certain timing requirements, and the test timing of the vehicle gateway routing test item corresponds to the test timing of the vehicle control function corresponding to the vehicle gateway routing test item.
[0079] It should be noted that in a vehicle gateway routing test scenario, the vehicle controller group to be tested corresponds to at least one vehicle control function, and one vehicle control function corresponds to one vehicle gateway routing test item.
[0080] In some embodiments, after generating at least one vehicle gateway routing test item of the vehicle gateway routing test scenario based on the vehicle gateway routing test setting parameters obtained from the host computer, a vehicle gateway routing test can be performed on the target vehicle gateway related to the vehicle control function indicated by the vehicle gateway routing test instruction in response to the vehicle gateway routing test instruction, based on the target vehicle gateway routing test item corresponding to the target vehicle control function indicated by the vehicle gateway routing test instruction.
[0081] It is understandable that the vehicle gateway routing test may involve multiple communication protocols, different message types (such as direct messages, periodic messages, etc.) and complex network topologies. The embodiment of the present application automatically generates vehicle gateway routing test items by obtaining preset vehicle gateway routing test setting parameters from the host computer, which can flexibly support complex vehicle gateway routing test scenarios.
[0082] In some embodiments, the target vehicle gateway routing test item further includes a request generation condition; the request generation condition is used to characterize a generation condition of the vehicle gateway routing test request;
[0083] The performing a vehicle gateway routing test on the target vehicle gateway based on the target vehicle gateway routing test item to obtain a vehicle gateway routing test result includes:
[0084] Generate a vehicle gateway routing test request based on the request generation condition in the target vehicle gateway routing test item;
[0085] Sending the vehicle gateway routing test request to the target vehicle gateway, and obtaining the vehicle gateway routing test response data fed back by the target vehicle gateway after processing the vehicle gateway routing test request;
[0086] Based on the in-vehicle gateway routing test response data, the in-vehicle gateway routing test result is obtained.
[0087] It should be noted that the vehicle gateway routing test items include: request generation conditions, the request generation conditions represent the generation conditions of the vehicle gateway routing test request, and the vehicle gateway routing test request is used to indicate the acquisition of data.
[0088] In some embodiments, the vehicle gateway routing test instruction indicates to test at least one vehicle control function of the vehicle controller group to be tested. Therefore, the vehicle gateway routing test item corresponding to the vehicle control function indicated by the vehicle gateway routing test instruction, that is, at least one vehicle gateway routing test item, can be determined according to the at least one vehicle control function indicated by the vehicle gateway routing test instruction, and then according to the request generation condition in each determined vehicle gateway routing test item, a vehicle gateway routing test request corresponding to each determined vehicle gateway routing test item is generated, and the generated vehicle gateway routing test request is sent to the corresponding vehicle gateway, and the vehicle gateway routing test response data fed back by the corresponding vehicle gateway is obtained. Among them, the data obtained by the vehicle gateway routing self-test request corresponds to the corresponding vehicle gateway routing test item, and also corresponds to the vehicle control function of the vehicle controller corresponding to the vehicle gateway routing test item.
[0089] In some embodiments, after receiving the vehicle gateway routing test response data, the vehicle gateway routing test response data can be analyzed according to the target vehicle gateway routing test item corresponding to the vehicle control function indicated by the vehicle gateway routing test instruction to obtain the vehicle gateway routing test result.
[0090] In some embodiments, the vehicle gateway routing test response data may include multiple data types such as CAN data, CANFD data, and Ethernet data.
[0091] It can be understood that the embodiment of the present application generates a vehicle gateway routing test request based on the request generation conditions in the specific vehicle gateway routing test item, so as to ensure that the vehicle gateway routing test is targeted at a specific routing function or scenario, which helps to accurately verify whether the routing performance of a specific vehicle gateway meets expectations.
[0092] In some embodiments, the target vehicle gateway routing test item further includes a vehicle gateway routing test parsing condition;
[0093] The obtaining the vehicle gateway routing test result based on the vehicle gateway routing test response data includes:
[0094] Based on the vehicle gateway routing test parsing condition in the target vehicle gateway routing test item, the vehicle gateway routing test response data is filtered to obtain filtered vehicle gateway routing test response data;
[0095] Based on the filtered in-vehicle gateway routing test response data, the in-vehicle gateway routing test result is obtained.
[0096] It should be noted that the vehicle gateway routing test item also includes a vehicle gateway routing test parsing condition, which is used to filter the vehicle gateway routing test response data to filter out the vehicle gateway routing test response data that is directly related to the test purpose and valid.
[0097] In an embodiment of the present application, after receiving the vehicle gateway routing test response data fed back by the target vehicle gateway, the vehicle gateway routing test response data fed back by the target vehicle gateway can be screened based on the vehicle gateway routing test parsing condition in the target vehicle gateway routing test item to obtain the screened vehicle gateway routing test response data, and then based on the screened vehicle gateway routing test response data, the vehicle gateway routing test result is obtained. In this way, by screening the vehicle gateway routing test response data, data that is not directly related to the test purpose or is invalid can be removed, ensuring that the analyzed data is accurate and useful, which helps to improve the accuracy of the vehicle gateway routing test results, so that the vehicle gateway routing test can more truly reflect the routing performance of the vehicle gateway.
[0098] In some embodiments, the target vehicle gateway routing test item further includes a vehicle gateway routing test verification condition;
[0099] The obtaining the vehicle gateway routing test result based on the filtered vehicle gateway routing test response data includes:
[0100] Based on the vehicle gateway routing test verification condition in the target vehicle gateway routing test item, the filtered vehicle gateway routing test response data is verified to obtain the vehicle gateway routing test result.
[0101] It should be noted that the vehicle gateway routing test item also includes a vehicle gateway routing test verification condition, which is used to verify the vehicle gateway routing test response data to obtain the verification result of the vehicle gateway routing test response data as the vehicle gateway routing test result.
[0102] In an embodiment of the present application, after receiving the vehicle gateway routing test response data fed back by the target vehicle gateway, the vehicle gateway routing test response data fed back by the target vehicle gateway can be screened based on the vehicle gateway routing test parsing condition in the target vehicle gateway routing test item to obtain the screened vehicle gateway routing test response data, and then based on the vehicle gateway routing test verification condition in the target vehicle gateway routing test item, the screened vehicle gateway routing test response data is verified, and the verification result of the vehicle gateway routing test response data is obtained as the vehicle gateway routing test result. In this way, by verifying the filtered vehicle gateway routing test response data, the accuracy of the filtered vehicle gateway routing test response data can be verified, including the format, range and logical consistency of the data, thereby further improving the accuracy of the vehicle gateway routing test result.
[0103] In some embodiments, the vehicle gateway routing test method further includes:
[0104] Based on the vehicle gateway routing test result, a vehicle gateway routing test report is generated.
[0105] In an embodiment of the present application, after obtaining the vehicle gateway routing test result, a vehicle gateway routing test report can be generated based on the vehicle gateway routing test result. The vehicle gateway routing test report can clearly and intuitively display the vehicle gateway routing test result in the form of text and charts, including the performance of various test indicators, whether the expected standards are met, etc., so that users can quickly understand the vehicle gateway routing test result and grasp the overall performance of the vehicle gateway routing function.
[0106] In some embodiments, the vehicle gateway routing test method further includes:
[0107] The vehicle gateway routing test result is sent to the host computer so that the host computer can display the vehicle gateway routing test result through a display interface.
[0108] In an embodiment of the present application, after obtaining the vehicle gateway routing test result, the vehicle gateway routing test result can be sent to a host computer so that the host computer can display the vehicle gateway routing test result through a display interface, so that the user can intuitively read the vehicle gateway routing test result.
[0109] It should be noted that the host computer can display the vehicle gateway routing test result in the form of text or charts through the display interface. The embodiment of the present application does not specifically limit the display method of the vehicle gateway routing test result.
[0110] In some embodiments, after obtaining the vehicle gateway routing test response data, a matching check can be performed on the function items and display items of the vehicle controller group to be tested, and the matching check result can be used as the vehicle gateway routing test result, and then the vehicle gateway routing test report is automatically generated and sent to the tester's mailbox for verification; at the same time, after obtaining the vehicle gateway routing test result, the vehicle gateway routing test result can be sent to the host computer to be presented to the user through the display interface of the host computer, so that the user can intuitively read the vehicle gateway routing test result.
[0111] For example, Figure 8 A second flow chart of a vehicle gateway routing test method provided in an embodiment of the present application is as follows: Figure 8 As shown, the method includes:
[0112] S801. Obtain vehicle gateway routing test setting parameters from the host computer.
[0113] S802: Generate at least one vehicle gateway routing test item corresponding to the vehicle gateway routing test scenario based on the vehicle gateway routing test setting parameters.
[0114] S803: In response to the vehicle gateway routing test instruction sent by the host computer, determine the target vehicle gateway routing test item corresponding to the target vehicle control function indicated by the vehicle gateway routing test instruction.
[0115] S804: Generate a vehicle gateway routing test request based on the request generation condition in the target vehicle gateway routing test item.
[0116] S805: Send the vehicle gateway routing test request to a target vehicle gateway related to the target vehicle control function.
[0117] S806: Receive vehicle gateway routing test response data fed back by the target vehicle gateway after processing the vehicle gateway routing test request.
[0118] S807: Filter the vehicle gateway routing test response data based on the vehicle gateway routing test parsing condition in the target vehicle gateway routing test item to obtain filtered vehicle gateway routing test response data.
[0119] S808. Based on the vehicle gateway routing test verification condition in the target vehicle gateway routing test item, verify the filtered vehicle gateway routing test response data to obtain a vehicle gateway routing test result.
[0120] It should be noted that, for the description of the same steps and the same contents in this embodiment as those in other embodiments, reference can be made to the description in other embodiments and will not be repeated here.
[0121] Fig. 9 A schematic diagram of a power supply structure of a vehicle-mounted gateway routing test system provided in an embodiment of the present application is shown in FIG. Fig. 9 As shown, the host computer is powered by a 220V AC power supply, and the vehicle gateway routing test equipment and the device under test (vehicle gateway) are powered by a 12V or 24V regulated power supply.
[0122] In some embodiments, the vehicle gateway routing test device can be a CANoe (CAN Open Environment) device. CANoe is a powerful bus analysis tool that integrates simulation, calibration and diagnostic functions and can provide a full range of vehicle network solutions. CANoe supports a variety of vehicle network protocols, can monitor and record bus data in real time, and analyze network communication status. In addition, CANoe's simulation function allows users to create virtual nodes and simulate the behavior of electronic control units ECU, which is extremely important for testing the correctness of network topology and inter-node communication.
[0123] It should be noted that if the CANoe device is used as the vehicle-mounted gateway routing test device, then in the process of building the vehicle-mounted gateway routing test environment corresponding to the vehicle-mounted gateway routing test scenario based on the vehicle-mounted gateway routing test environment construction parameters, the channel port setting rules in the loaded configuration file are the hardware channel configuration rules of the CANoe device. Among them, in the process of building the vehicle-mounted gateway routing test environment corresponding to the vehicle-mounted gateway routing test scenario, network configuration is required, such as: Transmission Control Protocol (TCP) / Internet Protocol (IP) related configuration information, including but not limited to: physical addressing TxID information, physical addressing RxID information, physical addressing TxID information related to OBD data, physical addressing RxID information related to OBD data, logical address information, Tester address information, Tester vehicle cloud address information and Tester OTA address information, etc.
[0124] The vehicle-mounted gateway routing test device provided in an embodiment of the present application is described below. The vehicle-mounted gateway routing test device described below and the vehicle-mounted gateway routing test method described above can refer to each other.
[0125] Fig.10 This is one of the structural diagrams of a vehicle gateway routing test device provided in an embodiment of the present application. The device is applied to a vehicle gateway routing test device, and the vehicle gateway routing test device is connected to a host computer and multiple vehicle gateways. Fig.10 As shown, the device includes: a determination module 1010 and a testing module 1020; wherein:
[0126] The determination module 1010 is used to determine the target vehicle gateway routing test item corresponding to the target vehicle control function indicated by the vehicle gateway routing test instruction when receiving the vehicle gateway routing test instruction sent by the host computer; the target vehicle gateway routing test item includes a test instance of performing a vehicle gateway routing test on the target vehicle gateway related to the target vehicle control function;
[0127] The testing module 1020 is used to perform a vehicle gateway routing test on the target vehicle gateway based on the target vehicle gateway routing test item to obtain a vehicle gateway routing test result.
[0128] The vehicle gateway routing test device provided by the embodiment of the present application determines the target vehicle gateway routing test item corresponding to the target vehicle control function indicated by the vehicle gateway routing test instruction when receiving the vehicle gateway routing test instruction sent by the host computer, wherein the target vehicle gateway routing test item includes a test instance of performing a vehicle gateway routing test on the target vehicle gateway related to the target vehicle control function, and then based on the target vehicle gateway routing test item, performs a vehicle gateway routing test on the target vehicle gateway to obtain a vehicle gateway routing test result, thereby realizing an automated gateway routing test based on software simulation and targeted vehicle gateway routing test items, greatly reducing the dependence on real ECU hardware and the testing workload, improving the pertinence and execution efficiency of the vehicle gateway routing test, and realizing dynamic selection of the vehicle gateway routing test item through the vehicle gateway routing test instruction sent by the host computer, thereby enhancing the versatility of the vehicle gateway routing test.
[0129] In some embodiments, the apparatus further comprises:
[0130] An acquisition module, used to acquire vehicle gateway routing test setting parameters from the host computer;
[0131] A first generating module, configured to generate at least one vehicle gateway routing test item based on the vehicle gateway routing test setting parameters;
[0132] The determination module 1010 is also used to: upon receiving the vehicle gateway routing test instruction sent by the host computer, determine the target vehicle gateway routing test item corresponding to the target vehicle control function indicated by the vehicle gateway routing test instruction from the at least one vehicle gateway routing test item.
[0133] In some embodiments, the target vehicle gateway routing test item further includes a request generation condition; the request generation condition is used to characterize a generation condition of the vehicle gateway routing test request;
[0134] The test module 1020 includes:
[0135] A generating unit, configured to generate a vehicle gateway routing test request based on the request generation condition in the target vehicle gateway routing test item;
[0136] A sending unit, configured to send the vehicle gateway routing test request to the target vehicle gateway, and obtain vehicle gateway routing test response data fed back by the target vehicle gateway after processing the vehicle gateway routing test request;
[0137] The obtaining unit is used to obtain the vehicle gateway routing test result based on the vehicle gateway routing test response data.
[0138] In some embodiments, the target vehicle gateway routing test item further includes a vehicle gateway routing test parsing condition;
[0139] The obtaining unit comprises:
[0140] A screening subunit, configured to screen the vehicle gateway routing test response data based on the vehicle gateway routing test parsing condition in the target vehicle gateway routing test item to obtain screened vehicle gateway routing test response data;
[0141] The obtaining subunit is used to obtain the vehicle gateway routing test result based on the filtered vehicle gateway routing test response data.
[0142] In some embodiments, the target vehicle gateway routing test item further includes a vehicle gateway routing test verification condition;
[0143] The obtaining subunit is further used to verify the filtered vehicle gateway routing test response data based on the vehicle gateway routing test verification condition in the target vehicle gateway routing test item to obtain the vehicle gateway routing test result.
[0144] In some embodiments, the apparatus further comprises:
[0145] The second generating module is used to generate a vehicle gateway routing test report based on the vehicle gateway routing test result.
[0146] In some embodiments, the apparatus further comprises:
[0147] The sending module is used to send the vehicle gateway routing test result to the host computer, so that the host computer can display the vehicle gateway routing test result through a display interface.
[0148] It should be noted here that the above-mentioned vehicle gateway routing test device provided in the embodiment of the present application can implement all the method steps implemented in the above-mentioned vehicle gateway routing test method embodiment, and can achieve the same technical effect. The parts and beneficial effects of this embodiment that are the same as those in the method embodiment will not be described in detail here.
[0149] Fig.11 The second structural diagram of a vehicle-mounted gateway routing test device provided in an embodiment of the present application is as follows Fig.11 As shown, the device includes: an acquisition module 1110, a generation module 1120, a test module 1130 and a verification module 1140; wherein:
[0150] The acquisition module 1110 is used to obtain the vehicle gateway routing test setting parameters of the vehicle gateway routing test scenario from the host computer; wherein the vehicle gateway routing test scenario represents the scenario of testing the vehicle controller group to be tested; the vehicle gateway routing test setting parameters represent the parameters of testing the vehicle controller group to be tested in the vehicle gateway routing test scenario;
[0151] A generating module 1120 is used to generate at least one vehicle gateway routing test item corresponding to the vehicle gateway routing test scenario based on the vehicle gateway routing test setting parameters; wherein the vehicle gateway routing test item is a test instance for testing the vehicle control function of the vehicle controller group to be tested;
[0152] The test module 1130 is used to respond to the vehicle gateway routing test instruction sent by the host computer, based on the vehicle gateway routing test items corresponding to the vehicle control functions indicated by the vehicle gateway routing test instruction, perform a vehicle gateway routing test on the vehicle gateway related to the vehicle control function indicated by the vehicle gateway routing test instruction, and obtain vehicle gateway routing test response data; wherein the vehicle gateway routing test instruction indicates that at least one vehicle control function of the vehicle controller group to be tested is tested;
[0153] The verification module 1140 is used to perform a matching check on the function items and display items of the vehicle controller group to be tested after obtaining the vehicle gateway routing test response data, and use the matching check result as the vehicle gateway routing test result, and then automatically generate a vehicle gateway routing test report and send it to the tester's mailbox for verification; at the same time, after obtaining the vehicle gateway routing test result, the vehicle gateway routing test result is sent to the host computer to be presented to the user through the display interface of the host computer, so that the user can intuitively read the vehicle gateway routing test result.
[0154] It can be understood that the embodiment of the present application performs automated testing on the vehicle gateway routing function. The automated testing simulates the interactive ECU hardware to detect whether the gateway processing function meets the requirements, improves the existing vehicle gateway routing testing methods, such as poor versatility, low execution efficiency, and time-consuming and labor-intensive defects, and achieves mutual recognition and commonality between bench testing and actual vehicle testing in terms of testing methods, testing standards, and test results, thereby reducing testing costs and improving testing efficiency.
[0155] Fig.12 A schematic diagram of the physical structure of a vehicle-mounted gateway routing test device provided in an embodiment of the present application, such as Fig.12 As shown, the device may include: a processor 1210, a communication interface 1220, a memory 1230 and a communication bus 1240, wherein the processor 1210, the communication interface 1220 and the memory 1230 communicate with each other through the communication bus 1240. The processor 1210 may execute executable data instructions stored in the memory 1230 to implement some or all steps in the vehicle gateway routing test method provided in the above embodiments.
[0156] In addition, the executable data instructions stored in the above-mentioned memory 1230 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on this understanding, the technical solution of the embodiment of the present application can be essentially or partly reflected in the form of a software product that contributes to the relevant technology. The software product is stored in a storage medium, including several instructions to enable 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: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc. Various media that can store program codes.
[0157] An embodiment of the present application also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, some or all of the steps in the vehicle gateway routing test method provided in the above embodiments are implemented.
[0158] An embodiment of the present application also provides a computer program product, which includes a computer program or instructions. When the computer program or instructions are executed by a processor, some or all of the steps in the vehicle gateway routing test method provided in the above embodiments are implemented.
[0159] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Those of ordinary skill in the art may understand and implement it without creative work.
[0160] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the embodiments of the present application may adopt the form of hardware embodiments, software embodiments, or embodiments in combination with software and hardware. Moreover, the embodiments of the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) that contain computer-usable program code.
[0161] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0162] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0163] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1The steps for the functions specified in one or more boxes.
[0164] The above description is merely an optional embodiment of the present application and is not intended to limit the protection scope of the present application.
Claims
1. A vehicle gateway routing test method, characterized in that: Applied to a vehicle-mounted gateway routing test device, the vehicle-mounted gateway routing test device is connected to a host computer and multiple vehicle-mounted gateways; the method includes: In the case of receiving the vehicle gateway routing test instruction sent by the host computer, determining the target vehicle gateway routing test item corresponding to the target vehicle control function indicated by the vehicle gateway routing test instruction; the target vehicle gateway routing test item includes a test instance of performing a vehicle gateway routing test on the target vehicle gateway related to the target vehicle control function; Based on the target vehicle gateway routing test item, a vehicle gateway routing test is performed on the target vehicle gateway to obtain a vehicle gateway routing test result.
2. The vehicle gateway routing test method according to claim 1, characterized in that: The method further comprises: Obtaining vehicle gateway routing test setting parameters from the host computer; Based on the vehicle gateway routing test setting parameters, generating at least one vehicle gateway routing test item; The step of determining, upon receiving the vehicle gateway routing test instruction sent by the host computer, a target vehicle gateway routing test item corresponding to the target vehicle control function indicated by the vehicle gateway routing test instruction comprises: When the vehicle gateway routing test instruction sent by the host computer is received, the target vehicle gateway routing test item corresponding to the target vehicle control function indicated by the vehicle gateway routing test instruction is determined from the at least one vehicle gateway routing test item.
3. The vehicle gateway routing test method according to claim 1 or 2, characterized in that: The target vehicle gateway routing test item also includes a request generation condition; the request generation condition is used to characterize the generation condition of the vehicle gateway routing test request; The performing a vehicle gateway routing test on the target vehicle gateway based on the target vehicle gateway routing test item to obtain a vehicle gateway routing test result includes: Generate a vehicle gateway routing test request based on the request generation condition in the target vehicle gateway routing test item; Sending the vehicle gateway routing test request to the target vehicle gateway, and obtaining the vehicle gateway routing test response data fed back by the target vehicle gateway after processing the vehicle gateway routing test request; Based on the in-vehicle gateway routing test response data, the in-vehicle gateway routing test result is obtained.
4. The vehicle-mounted gateway routing test method according to claim 3, characterized in that: The target vehicle gateway routing test item also includes a vehicle gateway routing test parsing condition; The obtaining the vehicle gateway routing test result based on the vehicle gateway routing test response data includes: Based on the vehicle gateway routing test parsing condition in the target vehicle gateway routing test item, the vehicle gateway routing test response data is filtered to obtain filtered vehicle gateway routing test response data; Based on the filtered in-vehicle gateway routing test response data, the in-vehicle gateway routing test result is obtained.
5. The vehicle-mounted gateway routing test method according to claim 4, characterized in that: The target vehicle gateway routing test item also includes a vehicle gateway routing test verification condition; The obtaining the vehicle gateway routing test result based on the filtered vehicle gateway routing test response data includes: Based on the vehicle gateway routing test verification condition in the target vehicle gateway routing test item, the filtered vehicle gateway routing test response data is verified to obtain the vehicle gateway routing test result.
6. The vehicle gateway routing test method according to any one of claims 1 to 5, characterized in that: The method further comprises: Based on the vehicle gateway routing test result, a vehicle gateway routing test report is generated.
7. The vehicle gateway routing test method according to any one of claims 1 to 5, characterized in that: The method further comprises: The vehicle gateway routing test result is sent to the host computer so that the host computer can display the vehicle gateway routing test result through a display interface.
8. A vehicle-mounted gateway routing test device, characterized in that: Applied to a vehicle-mounted gateway routing test device, the vehicle-mounted gateway routing test device is connected to a host computer and multiple vehicle-mounted gateways; the device includes: A determination module, configured to determine, upon receiving the vehicle gateway routing test instruction sent by the host computer, a target vehicle gateway routing test item corresponding to the target vehicle control function indicated by the vehicle gateway routing test instruction; the target vehicle gateway routing test item includes a test instance of performing a vehicle gateway routing test on a target vehicle gateway related to the target vehicle control function; The testing module is used to perform a vehicle gateway routing test on the target vehicle gateway based on the target vehicle gateway routing test item to obtain a vehicle gateway routing test result.
9. A vehicle-mounted gateway routing test device, characterized in that: include: A memory for storing executable data instructions; The processor is used to implement the steps in the vehicle gateway routing test method described in any one of claims 1 to 7 when executing the executable data instructions stored in the memory.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by the processor, the steps in the vehicle gateway routing test method according to any one of claims 1 to 7 are implemented.