Search

CN-122027536-A - Automobile gateway testing method and device and related equipment

CN122027536ACN 122027536 ACN122027536 ACN 122027536ACN-122027536-A

Abstract

The application provides an automobile gateway testing method, an automobile gateway testing device and related equipment, belonging to the technical field of communication, wherein the method comprises the steps of obtaining a testing routing table; the method comprises the steps of generating a test configuration file based on a test routing table by using a preset script, loading the test configuration file, determining first routing delay between a second test message and a first test message, first message data consistency of the second test message relative to the first test message and first frame loss rate of the second test message relative to the first test message, and determining a performance test result of the automobile gateway based on the first routing delay, the first message data consistency and the first frame loss rate. The method can improve the test efficiency of the automobile gateway test.

Inventors

  • ZHANG XINYUE
  • LI SISI
  • XIE YUELIN

Assignees

  • 北京汽车集团越野车有限公司

Dates

Publication Date
20260512
Application Date
20260320

Claims (10)

  1. 1. A method for testing an automotive gateway, the method comprising: acquiring a test routing table; Generating a test configuration file based on the test routing table by using a preset script, wherein the test configuration file comprises identification information of a first test message, a message transmission path and identification information of a second test message, and the second test message is a message received by an automobile gateway after the first test message is transmitted according to the message transmission path; Loading the test configuration file, and determining a first routing delay between the second test message and the first test message, a first message data consistency of the second test message relative to the first test message and a first frame loss rate of the second test message relative to the first test message; And determining a performance test result of the automobile gateway based on the first routing delay, the first message data consistency and the first frame loss rate.
  2. 2. The method of claim 1, wherein the first test message includes a cull flag, the cull flag being used to indicate a first cull range of a data frame, the determining the performance test result of the automotive gateway based on the first routing delay, the first message data consistency, and the first frame loss rate includes: Determining a second routing delay between a fourth test message and a third test message, a second message data consistency of the fourth test message relative to the third test message and a second frame loss rate of the fourth test message relative to the third test message based on the first routing delay, the first message data consistency and the first frame loss rate, wherein the third test message and the fourth test message are obtained by rejecting data frames in the first rejection range from the first test message and the second test message respectively; and determining a performance test result of the automobile gateway according to the second routing delay, the second message data consistency and the second frame loss rate.
  3. 3. The method of claim 1, wherein the determining the performance test result of the automotive gateway based on the first routing delay, the first message data consistency, and the first frame loss rate comprises: Under the condition of cold start of an automobile gateway, if the voltage fluctuation of the automobile gateway exceeds a first fluctuation range in a first time window, determining third routing delay between a sixth test message and a fifth test message, third message data consistency of the sixth test message relative to the fifth test message and third frame loss rate of the sixth test message relative to the fifth test message based on the first routing delay, the first message data consistency and the first frame loss rate; Determining a performance test result of the automobile gateway according to the third routing delay, the third message data consistency and the third frame loss rate; The fifth test message and the sixth test message are obtained by removing data frames in a second removing range of the first test message and the second test message, respectively, wherein the second removing range is a data frame range covered by the first time window.
  4. 4. A method according to any one of claims 1 to 3, wherein said determining a test result based on said first routing delay, said first message data consistency, and said first frame loss rate, further comprises: determining priority information of the first test message; and determining a performance test result of the automobile gateway according to the priority information of the first test message, the first routing delay, the first message data consistency and the first frame loss rate.
  5. 5. The method of claim 1, wherein determining a first routing delay, a first message data consistency, and a first frame loss rate between the second test message and the first test message comprises: Acquiring a time stamp sent by the first test message and a time stamp received by the second test message, and determining a first routing delay according to the difference between the time stamp sent by the first test message and the time stamp received by the second test message; byte-by-byte comparison is carried out on the first test message and the second test message, so that first message data consistency is obtained; and determining a difference value between the number of the data frames of the first test message and the number of the data frames of the second test message, and determining a first frame loss rate according to a ratio of the difference value to the number of the data frames of the first test message.
  6. 6. The method of claim 1, wherein prior to determining a first routing delay, a first message data consistency, and a first frame loss rate between the second test message and the first test message, the method further comprises: determining a data transmission protocol supported by the message transmission path; and converting the first test message and/or the second test message according to the data transmission protocol.
  7. 7. An automotive gateway testing apparatus, the apparatus comprising: The acquisition module is used for acquiring the test routing table; The first processing module is used for generating a test configuration file based on the test routing table by using a preset script, wherein the test configuration file comprises identification information of a first test message, a message transmission path and identification information of a second test message, and the second test message is a message received by an automobile gateway after the first test message is transmitted according to the message transmission path; the second processing module is used for loading the test configuration file and determining a first routing delay between the second test message and the first test message, a first message data consistency of the second test message relative to the first test message and a first frame loss rate of the second test message relative to the first test message; And the third processing module is used for determining a performance test result of the automobile gateway based on the first routing delay, the first message data consistency and the first frame loss rate.
  8. 8. An electronic device comprising a processor, a memory and a program stored on the memory and executable on the processor, the program when executed by the processor implementing the steps of the method according to any one of claims 1 to 6.
  9. 9. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, implements the steps of the method according to any one of claims 1 to 6.
  10. 10. A computer program product comprising computer instructions which, when executed by a processor, implement the steps of the method of any of claims 1 to 6.

Description

Automobile gateway testing method and device and related equipment Technical Field The present application relates to the field of communications technologies, and in particular, to a method and an apparatus for testing an automotive gateway, and related devices. Background Along with the development trend of high integration, high real-time performance and multi-domain integration of an automobile electronic and electric architecture, an automobile gateway is used as a core hub for whole automobile network communication, and the running reliability and long-term stability of the automobile gateway have decisive effects on the safety of the whole automobile function and the driving experience. However, in the existing test flow of the automotive gateway, the test configuration file usually depends on manual writing and manual configuration, which results in lower test efficiency of the automotive gateway test. Disclosure of Invention The embodiment of the application provides an automobile gateway testing method, an automobile gateway testing device and related equipment, which can solve the technical problem of lower testing efficiency of automobile gateway testing. In a first aspect, an embodiment of the present application provides a method for testing an automotive gateway, where the method includes: acquiring a test routing table; Generating a test configuration file based on the test routing table by using a preset script, wherein the test configuration file comprises identification information of a first test message, a message transmission path and identification information of a second test message, and the second test message is a message received by an automobile gateway after the first test message is transmitted according to the message transmission path; Loading the test configuration file, and determining a first routing delay between the second test message and the first test message, a first message data consistency of the second test message relative to the first test message and a first frame loss rate of the second test message relative to the first test message; And determining a performance test result of the automobile gateway based on the first routing delay, the first message data consistency and the first frame loss rate. Optionally, the first test packet includes a rejection flag, where the rejection flag is used to indicate a first rejection range of a data frame, and the determining, based on the first routing delay, the first packet data consistency, and the first frame loss rate, a performance test result of the automotive gateway includes: Determining a second routing delay between a fourth test message and a third test message, a second message data consistency of the fourth test message relative to the third test message and a second frame loss rate of the fourth test message relative to the third test message based on the first routing delay, the first message data consistency and the first frame loss rate, wherein the third test message and the fourth test message are obtained by rejecting data frames in the first rejection range from the first test message and the second test message respectively; and determining a performance test result of the automobile gateway according to the second routing delay, the second message data consistency and the second frame loss rate. Optionally, the determining the performance test result of the automotive gateway based on the first routing delay, the first packet data consistency and the first frame loss rate includes: Under the condition of cold start of an automobile gateway, if the voltage fluctuation of the automobile gateway exceeds a first fluctuation range in a first time window, determining third routing delay between a sixth test message and a fifth test message, third message data consistency of the sixth test message relative to the fifth test message and third frame loss rate of the sixth test message relative to the fifth test message based on the first routing delay, the first message data consistency and the first frame loss rate; Determining a performance test result of the automobile gateway according to the third routing delay, the third message data consistency and the third frame loss rate; The fifth test message and the sixth test message are obtained by removing data frames in a second removing range of the first test message and the second test message, respectively, wherein the second removing range is a data frame range covered by the first time window. Optionally, the determining a test result based on the first routing delay, the first packet data consistency, and the first frame loss rate further includes: determining priority information of the first test message; and determining a performance test result of the automobile gateway according to the priority information of the first test message, the first routing delay, the first message data consistency and the first frame loss rate. Optionally, the determ