Signal routing test method and system and electronic equipment

By determining signal type and injecting faults in vehicle signal routing test, the problem of incomplete coverage of vehicle signal routing test is solved, and comprehensive testing of extreme operating conditions and accurate evaluation of signal routing is achieved.

CN119996274AActive Publication Date: 2025-05-13GREAT WALL MOTOR CO LTD

Patent Information

Application Number
CN202411333525.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-24
Publication Date
2025-05-13
Estimated Expiration
2044-09-24

AI Technical Summary

Technical Problem

The current vehicle signal routing test is limited by the vehicle environment and cannot cover all signal states, resulting in the problem of incomplete test coverage.

Method used

A signal routing testing method is proposed. By responding to test instructions, the signal type is determined and fault injection is performed, the target signal value is obtained, and the normal or abnormal state of the signal routing is determined. The method includes a combination of signal generation module, on-break box module, routing module and monitoring equipment to realize comprehensive testing of signal routing.

Benefits of technology

By injecting the test signal for faults, signal simulation for different working conditions is achieved, which can fully cover various extreme working conditions and improve the coverage and accuracy of signal testing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119996274A_ABST
    Figure CN119996274A_ABST
Patent Text Reader

Abstract

The invention relates to the field of testing, and provides a signal routing testing method and system and electronic equipment, and the method comprises the steps: responding to a received testing instruction, and determining the signal type of a testing signal corresponding to the testing instruction; determining a test signal value corresponding to a test signal according to the signal type, and performing fault injection on the test signal according to the signal type to obtain a target signal value; in response to the fact that the target signal value is the same as the test signal value, determining that the test result is that the signal routing is normal; or, in response to the fact that the target signal value is different from the test signal value, determining that the test result is signal routing abnormity. According to the method and the device, the problem that the test coverage is not comprehensive due to the fact that the test on the signal routing of the vehicle is limited by the whole vehicle environment, only some signal states can be tested generally, and all signal states cannot be tested is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of testing, and in particular to a signal routing testing method, system and electronic equipment. Background Art

[0002] With the rapid development of vehicle technology, vehicles have become an important means of transportation in people's daily lives. In order to ensure the safety of users driving vehicles, the signal routing in the vehicle environment will be tested to ensure that the corresponding functions can be used normally.

[0003] Currently, when testing the signal routing of a vehicle, due to limitations in the vehicle environment, usually only certain signal states can be tested, and not all signal states. That is, some extreme working conditions cannot be tested, resulting in incomplete test coverage. Summary of the invention

[0004] In view of this, the purpose of the present disclosure is to propose a signal routing test method, system and electronic device to solve the problem that when testing the signal routing of a vehicle, due to the limitations of the vehicle environment, usually only certain signal states can be tested and all signal states cannot be tested, resulting in incomplete test coverage.

[0005] Based on the above purpose, a first aspect of the present disclosure provides a signal routing test method, the method comprising:

[0006] In response to receiving a test instruction, determining a signal type of a test signal corresponding to the test instruction;

[0007] Determine a test signal value corresponding to the test signal according to the signal type, and perform fault injection on the test signal according to the signal type to obtain a target signal value;

[0008] In response to the target signal value being the same as the test signal value, determining that the test result is that the signal routing is normal; or,

[0009] In response to the target signal value being different from the test signal value, a test result is determined to be a signal routing abnormality.

[0010] Based on the same inventive concept, the second aspect of the present disclosure proposes a signal routing test system, the system comprising a signal generation module, a switch box module, a routing module and a monitoring device connected in sequence,

[0011] The signal generating module is configured to, in response to receiving a test instruction, determine a signal type of a test signal corresponding to the test instruction, determine a test signal value corresponding to the test signal according to the signal type, and send the test signal to the on-off box module;

[0012] The on-off box module is configured to receive a test signal sent by the signal generation module, perform fault injection on the test signal according to the signal type, obtain a target signal, and send the target signal to the routing module;

[0013] The routing module is configured to receive a target signal sent by the on-off box module;

[0014] The monitoring device is configured to monitor the target signal of the routing module to obtain a target signal value, and in response to the target signal value being the same as the test signal value, determine that the test result is normal signal routing; or, in response to the target signal value being different from the test signal value, determine that the test result is abnormal signal routing.

[0015] Based on the same inventive concept, the third aspect of the present disclosure provides a signal routing test device, the device comprising:

[0016] an instruction receiving module, configured to, in response to receiving a test instruction, determine a signal type of a test signal corresponding to the test instruction;

[0017] a fault injection module, configured to determine a test signal value corresponding to a test signal according to the signal type, and to perform fault injection on the test signal according to the signal type to obtain a target signal value;

[0018] The test result determination module is configured to determine that the test result is normal signal routing in response to the target signal value being the same as the test signal value; or, in response to the target signal value being different from the test signal value, determine that the test result is abnormal signal routing.

[0019] Based on the same inventive concept, the fourth aspect of the present disclosure proposes an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable by the processor, wherein the processor implements the signal routing test method as described above when executing the computer program.

[0020] Based on the same inventive concept, the fifth aspect of the present disclosure proposes a non-transitory computer-readable storage medium, which stores computer instructions, and the computer instructions are used to enable a computer to execute the signal routing test method as described above.

[0021] As can be seen from the above, the present disclosure proposes a signal routing test method, system and electronic device. In response to receiving a test instruction, the signal type of the test signal corresponding to the test instruction is determined, so as to determine the test signal value corresponding to the signal type later, and the determination of the test signal value is more accurate. The test signal value corresponding to the test signal is determined according to the signal type, and the test signal is injected with a fault according to the signal type to obtain the target signal value. On the one hand, by injecting a fault into the test signal, the signal simulation for different working conditions is realized, and various extreme working conditions can be fully covered. The test of extreme working conditions can be realized later, and the signal test coverage is more comprehensive. On the other hand, the fault is injected into the test signal according to the signal type, so that the faults injected into different signal types are different, so that the obtained target signal value is more in line with the actual working conditions. In response to the target signal value being the same as the test signal value, the test result is determined to be normal signal routing; or, in response to the target signal value being different from the test signal value, the test result is determined to be abnormal signal routing. By comparing the target signal value with the test signal value, it is determined whether the signal routing is normal, which is more accurate for the signal routing test. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] In order to more clearly illustrate the technical solutions in the present disclosure or related technologies, the drawings required for use in the embodiments or related technical descriptions are briefly introduced below. Obviously, the drawings described below are only embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0023] Figure 1 is a flow chart of a signal routing test method according to an embodiment of the present disclosure;

[0024] Figure 2 is a schematic block diagram of a signal routing system according to an embodiment of the present disclosure;

[0025] Figure 3 It is a schematic diagram of the signal routing block diagram principle of an embodiment of the present disclosure;

[0026] Figure 4 is a structural block diagram of a signal routing test device according to an embodiment of the present disclosure;

[0027] Figure 5 It is a schematic diagram of the structure of an electronic device according to an embodiment of the present disclosure. DETAILED DESCRIPTION

[0028] In order to make the objectives, technical solutions and advantages of the present disclosure more clearly understood, the present disclosure is further described in detail below in combination with specific embodiments and with reference to the accompanying drawings.

[0029] It should be noted that, unless otherwise defined, the technical terms or scientific terms used in the embodiments of the present disclosure should be understood by people with ordinary skills in the field to which the present disclosure belongs. The "first", "second" and similar words used in the embodiments of the present disclosure do not indicate any order, quantity or importance, but are only used to distinguish different components. "Including" or "comprising" and similar words mean that the elements or objects appearing before the word cover the elements or objects listed after the word and their equivalents, without excluding other elements or objects. "Connect" or "connected" and similar words are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.

[0030] The terms used in this disclosure are explained as follows:

[0031] VIU: Domain controller (Vehicle Information Unit, VIU), collects and processes various vehicle data, including engine status, temperature, humidity, oil pressure and other information, and controls various vehicle functions such as the engine, seats and doors.

[0032] ECU: Electronic Control Unit (ECU), controls the driving state of the car and realizes its various functions. It mainly uses various sensors and bus data collection and exchange to determine the vehicle status and the driver's intention and control the car through actuators.

[0033] Coding value: encoding value.

[0034] CAN-H: CAN (Controller Area Network) high, controller area network bus high level.

[0035] CAN-L: CAN (Controller Area Network) low, controller area network bus low level.

[0036] With the rapid development of vehicle technology, vehicles have become an important means of transportation in people's daily lives. In order to ensure the safety of users driving vehicles, the signal routing in the vehicle environment will be tested to ensure that the corresponding functions can be used normally.

[0037] Currently, when testing the signal routing of a vehicle, due to limitations in the vehicle environment, usually only certain signal states can be tested, and not all signal states. That is, some extreme working conditions cannot be tested, resulting in incomplete test coverage.

[0038] In the vehicle integration environment, when testing the signal routing of the gateway and domain controller (VIU), it is necessary to clarify the signal receiving and sending relationship between each ECU based on the vehicle signal matrix, and test the signal routing function based on this. However, due to the constraints of the vehicle environment, only a certain signal state can be routed, and all signal state values ​​cannot be covered. There is a risk of routing function failure and test failure to cover 100%;

[0039] If the engine torque signal is an interval value, that is, from 0 Nm to 285 Nm, it is impossible to test all torque state values ​​in the actual vehicle environment. Only partial torque state value routing tests can be carried out, which cannot cover all signal state traversal verifications.

[0040] Based on the above description, this embodiment proposes a signal routing test method, such as Figure 1 As shown, the method includes:

[0041] Step 101: In response to receiving a test instruction, determine a signal type of a test signal corresponding to the test instruction.

[0042] In specific implementation, when a test instruction is received, it means that the user needs to test certain signals. At this time, the signal type of the test signal corresponding to the test instruction is determined, wherein the signal type is a type pre-classified according to the degree of influence on the vehicle's driving safety level, including a first signal type, a second signal type and a third signal type.

[0043] It is understandable that when the user inputs a test instruction, the test instruction includes a test signal to be tested. The input method of the test instruction includes at least one of the following: key input, voice input, remote input, etc. The key input can be a virtual key input on the terminal display interface corresponding to the test method, or a physical key input on the terminal corresponding to the test method.

[0044] For example, the user may say “test the collision signal” by voice, and in this case “test the collision signal” is a test instruction, wherein the “collision signal” included in the test instruction is the test signal.

[0045] In another example, the user chooses to test the seat adjustment signal by clicking a virtual button on the display screen of the test terminal corresponding to the test method. At this time, the user's selection to test the seat adjustment signal through the virtual button is a test instruction, and the "seat adjustment signal" contained in the test instruction is the test signal.

[0046] Step 102: determine a test signal value corresponding to a test signal according to the signal type, and perform fault injection on the test signal according to the signal type to obtain a target signal value.

[0047] In specific implementation, the calculation method of the test signal value corresponding to different signal types is different, and the test signal value corresponding to the test signal is determined according to the signal type. In order to test the signal under extreme working conditions, the test signal is injected with faults according to the signal type, and the signal value is detected after the fault injection is completed to obtain the target signal value.

[0048] Step 103, in response to the target signal value being the same as the test signal value, determining that the test result is that the signal routing is normal; or,

[0049] In response to the target signal value being different from the test signal value, a test result is determined to be a signal routing abnormality.

[0050] During specific implementation, the target signal value is compared with the test signal value. If the target signal value is the same as the test signal value, it means that the test signal can still be received normally under the current fault, indicating that the signal routing is normal.

[0051] If the target signal value is different from the test signal value, it means that under the current fault, the test signal cannot be received normally, or the test signal is received incorrectly, so the test result is that the signal routing is abnormal.

[0052] Through the above scheme, in response to receiving a test instruction, the signal type of the test signal corresponding to the test instruction is determined, so as to determine the test signal value corresponding to the signal type in the subsequent determination, and the determination of the test signal value is more accurate. The test signal value corresponding to the test signal is determined according to the signal type, and the test signal is injected with a fault according to the signal type to obtain the target signal value. On the one hand, by injecting a fault into the test signal, the signal simulation for different working conditions is realized, and various extreme working conditions can be fully covered. The test of the extreme working conditions can be realized in the subsequent, and the signal test coverage is more comprehensive. On the other hand, the fault is injected into the test signal according to the signal type, so that the faults injected into different signal types are different, so that the obtained target signal value is more in line with the actual working conditions. In response to the target signal value being the same as the test signal value, it is determined that the test result is normal signal routing; or, in response to the target signal value being different from the test signal value, it is determined that the test result is abnormal signal routing. By comparing the target signal value with the test signal value, it is determined whether the signal routing is normal, and the signal routing test is more accurate.

[0053] In some embodiments, the specific process of determining the signal type of the test signal corresponding to the test instruction in step 101 is as follows:

[0054] Obtain a message ID value (i.e., message identifier) ​​of the test signal and a preset message ID value (i.e., preset message identifier) ​​corresponding to each signal type, and compare the message ID value with the preset message ID value corresponding to each signal type. In response to the message identifier being the same as the target preset message identifier, determine that the signal type corresponding to the target preset message identifier is the signal type of the test signal corresponding to the test instruction.

[0055] Exemplarily, the preset message ID values ​​corresponding to the first signal type are IDcon1, IDcon2, and IDcon3, the preset message ID values ​​corresponding to the second signal type are IDcon4, IDcon5, and IDcon6, and the preset message ID values ​​corresponding to the first signal type are all message IDs except IDcon1, IDcon2, IDcon3, IDcon4, IDcon5, and IDcon6. The message ID value of the test signal obtained is IDcon2, which indicates that the signal type of the test signal is the first signal type.

[0056] In some embodiments, step 102 specifically includes:

[0057] Step 1021, traverse multiple encoding values ​​of the message identifier corresponding to the test instruction.

[0058] Step 1022, obtaining a target weight factor corresponding to the signal type, and determining a test signal value corresponding to the test signal according to the target weight factor and a plurality of encoding values.

[0059] In a specific implementation, multiple code values ​​of the message identifier of the test signal corresponding to the test instruction are obtained, and the multiple code values ​​are traversed. Each message identifier includes at least one code value, and the code value represents different signal states of the test signal.

[0060] Exemplarily, the message identifier is 0x123, which includes code values ​​01, 02, and 03, wherein the code value 01 indicates the default mode, the code value 02 indicates the open mode, and the code value 03 indicates the closed mode.

[0061] In another example, the message identifier is 0x295, which includes code values ​​01 and 02, where the code value 01 indicates a left turn and the code value 02 indicates a right turn.

[0062] Different signal types correspond to different weight factors, a target weight factor corresponding to the signal type is obtained, and a test signal value corresponding to the test signal is determined according to the target weight factor and multiple encoding values.

[0063] Exemplarily, the weighting factor of the first signal type is 300%, the weighting factor of the second signal type is 200%, and the weighting factor of the third signal type is 100%.

[0064] Preferably, in this embodiment, when determining the test signal value corresponding to the test signal, it is necessary to traverse all the coding values ​​of the message identifier corresponding to the test instruction.

[0065] Through the above scheme, when determining the test signal value corresponding to the test signal, multiple coding values ​​of the message identifier corresponding to the test instruction are traversed, so that the determined test signal value is more accurate, solving the problem of incomplete signal traversal and missing bus test scenarios.

[0066] In some embodiments, step 1022 specifically includes:

[0067] Step 10221: multiply each of the multiple coding values ​​by the target weight factor to obtain a first initial test signal value corresponding to each coding value.

[0068] Step 10222: sum up all first initial test signal values ​​to obtain a first test signal value.

[0069] Step 10223, determine the target traversal times according to the signal type, and multiply the first test signal value by the target traversal times to obtain a second test signal value.

[0070] Step 10224, determine the coding maximum value and the coding minimum value among the multiple coding values, and multiply and add the coding maximum value and the coding minimum value with the target weight factor respectively to obtain a third test signal value.

[0071] Step 10225: Add the second test signal value and the third test signal value to obtain a test signal value.

[0072] In a specific implementation, each of the multiple code values ​​is multiplied by the target weight factor to obtain the first initial test signal value corresponding to each code value. All first initial test signal values ​​are summed to obtain the first test signal value.

[0073] Different signal types correspond to different traversal times, so the target traversal times need to be determined according to the signal type. The first test signal value is multiplied by the target traversal times to obtain a second test signal value, which means that each first initial test signal value has traversed the target traversal times.

[0074] The maximum value and the minimum value among the multiple coding values ​​are selected as the coding maximum value and the coding minimum value among the multiple coding values, respectively. The coding maximum value and the coding minimum value are respectively multiplied by the target weight factor to obtain the third initial test signal value corresponding to the coding maximum value and the third initial test signal value corresponding to the coding minimum value. The third initial test signal value corresponding to the coding maximum value and the third initial test signal value corresponding to the coding minimum value are added to obtain the third test signal value.

[0075] The second test signal value and the third test signal value are added together to obtain a test signal value.

[0076] Through the above scheme, different traversal times are determined for different signal types, and extreme value enhanced traversal test is integrated at the same time. After each group undergoes the exhaustive method, an extreme value enhanced traversal is added, and the test signal value corresponding to the test signal is determined more accurately.

[0077] In some embodiments, step 10223 specifically includes:

[0078] Step 102231, in response to the signal type being a first signal type, determining a target traversal number to be a first traversal number, wherein the first signal type is a signal related to vehicle driving safety.

[0079] or,

[0080] Step 102232, in response to the signal type being the second signal type, determining the target traversal number to be the second traversal number, wherein the second traversal number is less than the first traversal number, and the second signal type is a signal related to in-vehicle entertainment.

[0081] or,

[0082] Step 102233, in response to the signal type being the third signal type, determining the target traversal number to be the third traversal number, wherein the third traversal number is less than or equal to the second traversal number, and the third signal type is a signal related to vehicle comfort.

[0083] In specific implementation, when the signal type is the first signal type, the target traversal number is the first traversal number, wherein the first signal type is a signal related to vehicle driving safety, such as a signal involving a high vehicle safety level such as a power chassis safety collision.

[0084] Exemplarily, the first traversal number is 3 times. If the test signal is a collision signal, the signal type is the first signal type, and each of the multiple coding values ​​needs to be traversed 3 times respectively, that is, each coding value is multiplied by the target weight factor, calculated 3 times and then added.

[0085] When the signal type is the second signal type, the target traversal number is the second traversal number, wherein the second traversal number is less than the first traversal number, and the second signal type is a signal related to in-vehicle entertainment, such as a signal involving the interaction level of the ADAS domain and the audio and video domain.

[0086] Exemplarily, the second traversal number is 2 times. If the test signal is a screen volume adjustment signal, the signal type is the second signal type. Accordingly, each of the multiple coding values ​​needs to be traversed 2 times respectively, that is, each coding value is multiplied by the target weight factor, calculated 2 times and then added.

[0087] When the signal type is the third signal type, the target traversal number is the third traversal number, wherein the third traversal number is less than the second traversal number, and the third signal type is a signal related to vehicle comfort, such as a vehicle body comfort interaction signal.

[0088] Exemplarily, the third traversal number is 1. If the test signal is a seat adjustment signal, the signal type is the third signal type, and each of the multiple coding values ​​needs to be traversed once respectively, that is, each coding value is multiplied by the target weight factor, calculated once and then added.

[0089] In some embodiments, step 102 specifically includes:

[0090] Step 102A: determine the corresponding target fault type and fault injection times according to the signal type.

[0091] Step 102B: perform fault injection on the test signal based on the target fault type and the fault injection times to obtain a target signal.

[0092] Step 102C: monitor the target signal to obtain a target signal value.

[0093] In specific implementation, the fault type and injection times of the faults injected corresponding to different signal types are different, so the corresponding target fault type and fault injection times need to be determined according to the signal type. Based on the target fault type and the fault injection times, the test signal is fault injected to obtain the target signal under the corresponding extreme working condition.

[0094] The target signal is monitored to obtain a target signal value, where the target signal value is the actual signal value of the test signal monitored when a fault corresponding to the fault type exists.

[0095] Through the above scheme, corresponding fault injection is performed according to the signal type, so that the extreme conditions of different signal types can be covered, and the corresponding injected faults are more consistent with the actual situation, so that the subsequent signal routing test is more accurate.

[0096] In some embodiments, the target fault type includes at least one of the following: bus short circuit, bus open circuit or bus off, and step 102A specifically includes:

[0097] Step 102A1, in response to the signal type being the first signal type, determining that the target fault type is bus short circuit, bus open circuit and bus off, and the number of fault injections is the first number of injections, wherein the first signal type is a signal related to vehicle driving safety.

[0098] or,

[0099] Step 102A2, in response to the signal type being the second signal type, determining that the target fault type is bus short circuit, bus open circuit and bus shutdown, the fault injection number is the second injection number, wherein the second injection number is less than the first injection number, and the second signal type is a signal related to in-vehicle entertainment.

[0100] or,

[0101] Step 102A3, in response to the signal type being the third signal type, determining that the target fault type is bus shutdown, the fault injection number is the third injection number, wherein the third injection number is less than or equal to the second injection number, and the third signal type is a signal related to vehicle comfort.

[0102] In specific implementation, when the signal type is the first signal type, the target fault type is bus short circuit, bus open circuit and bus shutdown, and the number of fault injections is the first injection number, wherein the first signal type is a signal related to vehicle driving safety, such as a signal involving a power chassis safety collision and other high vehicle safety levels.

[0103] Exemplarily, the first injection number is 2 times. If the test signal is a collision signal, the target fault type is bus short circuit, bus break and bus shutdown, the signal type is the first signal type, and the corresponding fault injection number is 2 times, that is, the three faults of bus short circuit, bus break and bus shutdown are injected 2 times respectively.

[0104] When the signal type is the second signal type, the target fault type is bus short circuit, bus open circuit and bus shutdown, and the number of fault injections is the second number of injections, where the second signal type is a signal related to in-vehicle entertainment, such as a signal involving the interaction level of the ADAS domain and the audio and video domain.

[0105] Exemplarily, the second injection number is 1 time. If the test signal is a screen volume adjustment signal, the signal type is the second signal type, the target fault type is bus short circuit, bus break and bus shutdown, the signal type is the second signal type, and the corresponding fault injection number is 1 time, that is, the three faults of bus short circuit, bus break and bus shutdown are injected once respectively.

[0106] When the signal type is the second signal type, the target fault type is bus shutdown, the fault injection number is the third injection number, the third injection number is less than or equal to the second injection number, and the third signal type is a signal related to vehicle comfort, such as a vehicle body comfort interaction signal.

[0107] Exemplarily, the third injection number is 1. If the test signal is a seat adjustment signal, the signal type is the third signal type, and the target fault type is bus shutdown. The corresponding fault injection number is 1, that is, the bus shutdown fault is injected once.

[0108] Through the above scheme, the signal traversal robustness test is added, the traversal algorithm is optimized, and the risk of failure to verify and difficulty in reproducing occasional problems under the actual vehicle extreme conditions (such as extreme torque value, collision signal, etc.) is reduced. Through the bus fault failure method (100% bus load, bus off, bus short circuit / open circuit, etc.), the stability and compatibility of the routing function are verified to ensure that the routing function is normally implemented under external interference environment.

[0109] In some embodiments, after determining that the test result is that the signal routing is abnormal in step 103, the following further includes:

[0110] Generate abnormal prompt information corresponding to the signal type according to the signal type, and output the abnormal prompt information.

[0111] In specific implementation, if the test result is determined to be a signal routing anomaly, an abnormal prompt message may be output at this time, and the abnormal prompt message may include at least one of the following: voice broadcast, screen display, and signal light prompt, etc. The prompt content may include at least one of the following: text, picture, rich text, etc.

[0112] Exemplarily, the content of the prompt content is in the form of text, and the prompt information is in the form of voice broadcast. When it is determined that the test result is a signal routing abnormality, an abnormal prompt information of "test signal abnormality" is output.

[0113] Specifically, in this embodiment, when there is an abnormality in the test signals of different signal types, different abnormality prompt information may be output.

[0114] For example, if the abnormal prompt information is prompted by a flashing signal light, different signal light colors can be set for different signal types, such as a red signal light color corresponding to the first signal type, an orange signal light color corresponding to the second signal type, and a yellow signal light color corresponding to the third signal type.

[0115] Through the above solution, when the test result is that the signal routing is abnormal, an abnormal prompt message will be output to prompt the user that there is a signal abnormality so that the user can handle it in time.

[0116] It should be noted that the method of the embodiment of the present disclosure can be performed by a single device, such as a computer or a server. The method of the present embodiment can also be applied in a distributed scenario and completed by multiple devices cooperating with each other. In the case of such a distributed scenario, one of the multiple devices can only perform one or more steps in the method of the embodiment of the present disclosure, and the multiple devices will interact with each other to complete the described method.

[0117] It should be noted that the above describes some embodiments of the present disclosure. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the above embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0118] Based on the same inventive concept, corresponding to any of the above-mentioned embodiments and methods, the present disclosure further provides a signal routing test system, the schematic block diagram of which is as follows: Figure 2 As shown, the system includes a signal generation module, a switch box module, a routing module and a monitoring device connected in sequence. At the same time, the signal routing block diagram principle of this embodiment is as follows Figure 3 shown.

[0119] The signal generating module is configured to, in response to receiving a test instruction, determine a signal type of a test signal corresponding to the test instruction, determine a test signal value corresponding to the test signal according to the signal type, and send the test signal to the switch box module.

[0120] The on-off box module is configured to receive a test signal sent by the signal generation module, perform fault injection on the test signal according to the signal type, obtain a target signal, and send the target signal to the routing module.

[0121] The routing module is configured to receive a target signal sent by the switch box module.

[0122] The monitoring device is configured to monitor the target signal of the routing module to obtain a target signal value, and in response to the target signal value being the same as the test signal value, determine that the test result is normal signal routing; or, in response to the target signal value being different from the test signal value, determine that the test result is abnormal signal routing.

[0123] Specifically, the control program is mainly an upper-layer application program of the test system. Its main function is to process signal function logic and changes in signal state values. For example, the control program issues instructions to set the engine torque signal Coding value to change in the state range of 0 Nm-285 Nm, traverse all signal states in the signal matrix, and ensure that each signal value is verified. During the traversal and coverage process, logic control optimization is performed to solve the problem of low coverage efficiency and poor effectiveness. This control program module performs traversal logic control and issues control signal instructions.

[0124] After the application layer interactive signal receives the upper layer control program, it will set the signal state according to the upper layer instruction and send the signal state to the bus through the bus transceiver. After the bus transceiver receives the application layer interactive signal, it converts the logic signal into a level signal for transmission.

[0125] The BOB on-off box mainly performs robustness tests on signals. It verifies whether the signal status is correct under different fault environments by injecting faults such as CAN-H and CAN-L short circuit, open circuit, and bus shutdown.

[0126] The ECU under test (gateway / domain controller, etc.) receives bus signals from different network segments, and routes the signals and status values ​​received by different gateways according to the signal routing strategy / mechanism implemented by itself.

[0127] Collect and record the routing data of the ECU under test through monitoring equipment (such as Vector: CANoe, CANalyzer, Zhou Ligong, etc.) to verify the consistency and robustness of the routing function of the ECU under test. Verify the traversal of the routing signal through the upper-level program control strategy / requirement.

[0128] The signal ergodicity test idea can be based on the following formula, and the robustness test message can be customized:

[0129] Here is an example:

[0130] If the routing module receives three bus messages, the message IDs are 0x123, 0x295, and 0x365 respectively. The coding value in ID 0x123 has three states (state 01 = default mode, state 02 = open mode, state 03 = closed mode), the signal state of ID0x295 is 0% ≤ battery power percentage ≤ 100% (the display state is displayed in 10% steps), and the coding value of ID 0x365 has two states (state 01 = turn left, state 02 = turn right). The message ID can be represented by ID1, ID2...ID n, and the signal value can be represented by S1max, S1max-1...Smin. The logical traversal is as follows:

[0131] Message ID1, ID2…IDn, limited message ID is IDcon1, IDcon2, IDcon3, IDcon4, IDcon5, IDcon6, limited message ID can be customized, this is a limited message ID, that is, not all messages need to be tested for traversability, only messages with traversal value are covered. The specific formula is as follows

[0132] IF IDn=IDcon1, IDcon2, IDcon3

[0133] A=IDn*factor(300%)*Smax+IDn*factor(300%)*Smax-1+

[0134] IDn*factor(300%)*Smax-2+…+IDn*factor(300%)*Smin+

[0135] IDn*factor(300%)*Smax+IDn*factor(300%)*Smin

[0136] Else IDn=IDcon4, IDcon5, IDcon6

[0137] B=IDn*factor(200%)*Smax+IDn*factor(200%)*Smax-1+

[0138] IDn*factor(200%)*Smax-2+…+IDn*factor(200%)*Smin

[0139] +IDn*factor(200%)*Smax+IDn*factor(200%)*Smin

[0140] Else IDn! =IDcon1, IDcon2, IDcon3, IDcon4, IDcon5, IDcon6

[0141] C=IDn*factor(100%)*Smax+IDn*factor(100%)*Smax-1+

[0142] IDn*factor(100%)*Smax-2+…+IDn*factor(100%)*

[0143] Smin+IDn*factor(100%)*Smax+IDn*factor(100%)*Smin

[0144] IF Group=A

[0145] S(groupA)=A*L+A*H+A*OF+A*L*A*H+A*OF

[0146] IF Group=B

[0147] S(groupB)=A*L+A*H+A*OF

[0148] IF Group=C

[0149] S(groupC)=A*OF

[0150] In the above program, A, B, and C are three different algorithm logics, and extreme value enhancement traversal tests are integrated at the same time. After each group has undergone the exhaustive method, extreme value enhancement traversal is added once. Factor is a weight factor. As the weight factor increases, the signal transmission strength increases. The weight factor is defined as follows: messages involving high vehicle safety levels such as power chassis safety collisions are defined as the highest level, with a weight factor of 300%, and the strongest transmission strength, and enhanced transmission increases the number of transmissions; the ADAS domain and audio-visual domain interaction levels are second, with a weight factor of 200%, and the body comfort interaction has the lowest priority, with a weight factor of 100% and the lowest transmission strength.

[0151] Group represents the grouping area, which defines different priorities. If the message has the highest priority, it is group A. Similarly, group B has the second highest priority, and group C has the lowest priority. S(groupA) represents the fault injection logic that GroupA needs to perform, and so on. S1max and S1min are the maximum and minimum values ​​assigned to the message ID, and S represents signal. IDcon represents the defined message ID, and con is the abbreviation of condition. L means CANH and CANL are short-circuited, H means CANH or CANL is open, and OF means the bus is closed.

[0152] Based on the same inventive concept, corresponding to any of the above-mentioned embodiments and methods, the present disclosure further provides a signal routing test device.

[0153] refer to Figure 4 , Figure 4 A signal routing test device according to an embodiment of the present invention comprises:

[0154] The instruction receiving module 201 is configured to determine the signal type of the test signal corresponding to the test instruction in response to receiving the test instruction;

[0155] A fault injection module 202 is configured to determine a test signal value corresponding to a test signal according to the signal type, and perform fault injection on the test signal according to the signal type to obtain a target signal value;

[0156] The test result determination module 203 is configured to determine that the test result is normal signal routing in response to the target signal value being the same as the test signal value; or, in response to the target signal value being different from the test signal value, determine that the test result is abnormal signal routing.

[0157] In some embodiments, the fault injection module 202 specifically includes:

[0158] A traversal unit, configured to traverse multiple encoding values ​​of the message identifier corresponding to the test instruction;

[0159] The test signal value determination unit is configured to obtain a target weight factor corresponding to the signal type, and determine a test signal value corresponding to the test signal according to the target weight factor and multiple encoding values.

[0160] In some embodiments, the test signal value determination unit specifically includes:

[0161] A first initial test signal value determination subunit is configured to perform a product process on each of the multiple code values ​​and the target weight factor to obtain a first initial test signal value corresponding to each code value;

[0162] A first test signal value determining unit is configured to add all first initial test signal values ​​to obtain a first test signal value;

[0163] A second test signal value determination unit is configured to determine a target traversal number according to the signal type, and multiply the first test signal value by the target traversal number to obtain a second test signal value;

[0164] A third test signal value determination unit is configured to determine a coding maximum value and a coding minimum value from a plurality of coding values, and perform product addition processing on the coding maximum value and the coding minimum value and a target weight factor respectively to obtain a third test signal value;

[0165] The test signal value determination unit is configured to add the second test signal value and the third test signal value to obtain a test signal value.

[0166] In some embodiments, the second test signal value determination unit is specifically configured to:

[0167] In response to the signal type being a first signal type, determining the target traversal number to be a first traversal number, wherein the first signal type is a signal related to vehicle driving safety; or,

[0168] In response to the signal type being a second signal type, determining the target traversal number to be a second traversal number, wherein the second traversal number is less than the first traversal number, and the second signal type is a signal related to in-vehicle entertainment; or,

[0169] In response to the signal type being a third signal type, determining the target traversal number to be a third traversal number, wherein the third traversal number is less than or equal to the second traversal number, and the third signal type is a signal related to vehicle comfort.

[0170] In some embodiments, the fault injection module 202 specifically includes:

[0171] A data determination unit, configured to determine a corresponding target fault type and a number of fault injections according to the signal type;

[0172] a target signal determination unit, configured to perform fault injection on the test signal based on the target fault type and the fault injection number to obtain a target signal;

[0173] The target signal value determination unit is configured to monitor the target signal to obtain a target signal value.

[0174] In some embodiments, the target fault type includes at least one of the following: bus short circuit, bus open circuit or bus off, and the data determination unit is specifically configured to:

[0175] In response to the signal type being a first signal type, determining the target fault type to be a bus short circuit, a bus open circuit, and a bus off, and the number of fault injections being a first number of injections, wherein the first signal type is a signal related to vehicle driving safety; or,

[0176] In response to the signal type being the second signal type, determining that the target fault type is a bus short circuit, a bus open circuit, and a bus off, the fault injection number is a second injection number, wherein the second injection number is less than the first injection number, and the second signal type is a signal related to in-vehicle entertainment; or,

[0177] In response to the signal type being the third signal type, determining that the target fault type is bus off, the fault injection number is the third injection number, wherein the third injection number is less than or equal to the second injection number, and the third signal type is a signal related to vehicle comfort.

[0178] In some embodiments, the method further includes a prompt module, wherein the prompt module is specifically configured to:

[0179] Generate abnormal prompt information corresponding to the signal type according to the signal type, and output the abnormal prompt information.

[0180] For the convenience of description, the above device is described by dividing it into various modules according to its functions. Of course, when implementing the present disclosure, the functions of each module can be implemented in the same or multiple software and / or hardware.

[0181] The device of the above embodiment is used to implement the corresponding signal routing test method in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be described in detail here.

[0182] Based on the same inventive concept, corresponding to any of the above-mentioned embodiments and methods, the present disclosure also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the signal routing test method described in any of the above embodiments is implemented.

[0183] Figure 5 A more specific schematic diagram of the hardware structure of an electronic device provided in this embodiment is shown, and the device may include: a processor 1010, a memory 1020, an input / output interface 1030, a communication interface 1040, and a bus 1050. The processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040 are connected to each other through the bus 1050 in the device.

[0184] The processor 1010 can be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this specification.

[0185] The memory 1020 may be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 1020 may store an operating system and other application programs. When the technical solutions provided in the embodiments of this specification are implemented by software or firmware, the relevant program codes are stored in the memory 1020 and are called and executed by the processor 1010.

[0186] The input / output interface 1030 is used to connect the input / output module to realize information input and output. The input / output module can be configured in the device as a component (not shown in the figure), or it can be externally connected to the device to provide corresponding functions. The input device may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output device may include a display, a speaker, a vibrator, an indicator light, etc.

[0187] The communication interface 1040 is used to connect a communication module (not shown) to realize communication interaction between the device and other devices. The communication module can realize communication through a wired mode (such as USB, network cable, etc.) or a wireless mode (such as mobile network, WIFI, Bluetooth, etc.).

[0188] The bus 1050 includes a path that transmits information between the various components of the device (eg, the processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040).

[0189] It should be noted that, although the above device only shows the processor 1010, the memory 1020, the input / output interface 1030, the communication interface 1040 and the bus 1050, in the specific implementation process, the device may also include other components necessary for normal operation. In addition, it can be understood by those skilled in the art that the above device may also only include the components necessary for implementing the embodiments of the present specification, and does not necessarily include all the components shown in the figure.

[0190] The electronic device of the above embodiment is used to implement the corresponding signal routing test method in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be described in detail here.

[0191] Based on the same inventive concept, corresponding to any of the above-mentioned embodiment methods, the present disclosure also provides a non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the signal routing test method described in any of the above embodiments.

[0192] The computer-readable medium of this embodiment includes permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device.

[0193] The computer instructions stored in the storage medium of the above embodiment are used to enable the computer to execute the signal routing test method described in any of the above embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.

[0194] It is understandable that before using the technical solutions of each embodiment of the present disclosure, the type, scope of use, usage scenarios, etc. of the personal information involved will be informed to the user in an appropriate manner, and the user's authorization will be obtained.

[0195] For example, in response to receiving an active request from a user, a prompt message is sent to the user to clearly remind the user that the operation requested to be performed will require obtaining and using the user's personal information. Thus, the user can independently choose whether to provide personal information to software or hardware such as an electronic device, application, server, or storage medium that performs the operation of the technical solution of the present disclosure according to the prompt message.

[0196] As an optional but non-limiting implementation, in response to receiving the user's active request, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. In addition, the pop-up window may also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.

[0197] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that meet relevant laws and regulations may also be applied to the implementation of the present disclosure.

[0198] Those skilled in the art should understand that the discussion of any of the above embodiments is merely illustrative and is not intended to imply that the scope of the present disclosure is limited to these examples. Based on the concept of the present disclosure, the technical features in the above embodiments or different embodiments may be combined, the steps may be implemented in any order, and there are many other variations of the different aspects of the embodiments of the present disclosure as described above, which are not provided in detail for the sake of simplicity.

[0199] In addition, to simplify the description and discussion, and in order not to make the embodiments of the present disclosure difficult to understand, the known power / ground connections to the integrated circuit (IC) chips and other components may or may not be shown in the provided figures. In addition, the device can be shown in the form of a block diagram to avoid making the embodiments of the present disclosure difficult to understand, and this also takes into account the fact that the details of the implementation of these block diagram devices are highly dependent on the platform on which the embodiments of the present disclosure will be implemented (that is, these details should be fully within the scope of understanding of those skilled in the art). Where specific details (e.g., circuits) are set forth to describe exemplary embodiments of the present disclosure, it is apparent to those skilled in the art that the embodiments of the present disclosure can be implemented without these specific details or with changes in these specific details. Therefore, these descriptions should be considered illustrative rather than restrictive.

[0200] Although the present disclosure has been described in conjunction with specific embodiments of the present disclosure, many replacements, modifications and variations of these embodiments will be apparent to those skilled in the art from the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) may use the embodiments discussed.

[0201] The embodiments of the present disclosure are intended to cover all such substitutions, modifications and variations that fall within the broad scope of the present application. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present disclosure should be included in the protection scope of the present disclosure.

Claims

1. A signal routing test method, characterized in that: include: In response to receiving a test instruction, determining a signal type of a test signal corresponding to the test instruction; Determine a test signal value corresponding to the test signal according to the signal type, and perform fault injection on the test signal according to the signal type to obtain a target signal value; In response to the target signal value being the same as the test signal value, determining that the test result is that the signal routing is normal; or, In response to the target signal value being different from the test signal value, a test result is determined to be a signal routing abnormality.

2. The method according to claim 1, characterized in that The step of determining a test signal value corresponding to the test signal according to the signal type includes: Traversing multiple encoding values ​​of the message identifier corresponding to the test instruction; A target weight factor corresponding to the signal type is obtained, and a test signal value corresponding to the test signal is determined according to the target weight factor and a plurality of encoding values.

3. The method according to claim 2, characterized in that The step of determining the test signal value corresponding to the test signal according to the target weight factor and the multiple encoding values ​​includes: Multiplying each of the multiple code values ​​by the target weight factor to obtain a first initial test signal value corresponding to each code value; Adding up all first initial test signal values ​​to obtain a first test signal value; Determine a target traversal number according to the signal type, and multiply the first test signal value by the target traversal number to obtain a second test signal value; Determine a coding maximum value and a coding minimum value among the multiple coding values, and perform product addition processing on the coding maximum value and the coding minimum value and the target weight factor respectively to obtain a third test signal value; The second test signal value and the third test signal value are added together to obtain a test signal value.

4. The method according to claim 3, characterized in that: The determining the target traversal times according to the signal type comprises: In response to the signal type being a first signal type, determining the target traversal number to be a first traversal number, wherein the first signal type is a signal related to vehicle driving safety; or, In response to the signal type being a second signal type, determining the target traversal number to be a second traversal number, wherein the second traversal number is less than the first traversal number, and the second signal type is a signal related to in-vehicle entertainment; or, In response to the signal type being a third signal type, determining the target traversal number to be a third traversal number, wherein the third traversal number is less than or equal to the second traversal number, and the third signal type is a signal related to vehicle comfort.

5. The method according to claim 1, characterized in that The step of injecting a fault into the test signal according to the signal type to obtain a target signal value includes: Determine the corresponding target fault type and fault injection times according to the signal type; Performing fault injection on the test signal based on the target fault type and the fault injection times to obtain a target signal; The target signal is monitored to obtain a target signal value.

6. The method according to claim 5, characterized in that The target fault type includes at least one of the following: bus short circuit, bus open circuit or bus off; The determining the corresponding target fault type and fault injection times according to the signal type includes: In response to the signal type being a first signal type, determining the target fault type to be a bus short circuit, a bus open circuit, and a bus off, and the number of fault injections being a first number of injections, wherein the first signal type is a signal related to vehicle driving safety; or, In response to the signal type being the second signal type, determining that the target fault type is a bus short circuit, a bus open circuit, and a bus off, the fault injection number is a second injection number, wherein the second injection number is less than the first injection number, and the second signal type is a signal related to in-vehicle entertainment; or, In response to the signal type being the third signal type, determining that the target fault type is bus off, the fault injection number is the third injection number, wherein the third injection number is less than or equal to the second injection number, and the third signal type is a signal related to vehicle comfort.

7. The method according to claim 1, characterized in that After the test result is determined to be a signal routing anomaly, it also includes: Generate abnormal prompt information corresponding to the signal type according to the signal type, and output the abnormal prompt information.

8. The method according to claim 1, characterized in that: The step of determining the signal type of the test signal corresponding to the test instruction in response to receiving the test instruction comprises: Obtaining a message identifier of the test signal and a preset message identifier corresponding to each signal type, and comparing the message identifier with the preset message identifier corresponding to each signal type; In response to the message identifier being the same as the target preset message identifier, it is determined that the signal type corresponding to the target preset message identifier is the signal type of the test signal corresponding to the test instruction.

9. A signal routing test system, characterized in that: The system includes a signal generation module, a switch box module, a routing module and a monitoring device connected in sequence. The signal generating module is configured to, in response to receiving a test instruction, determine a signal type of a test signal corresponding to the test instruction, determine a test signal value corresponding to the test signal according to the signal type, and send the test signal to the on-off box module; The on-off box module is configured to receive a test signal sent by the signal generation module, perform fault injection on the test signal according to the signal type, obtain a target signal, and send the target signal to the routing module; The routing module is configured to receive a target signal sent by the on-off box module; The monitoring device is configured to monitor the target signal of the routing module to obtain a target signal value, and in response to the target signal value being the same as the test signal value, determine that the test result is that the signal routing is normal; Alternatively, in response to the target signal value being different from the test signal value, the test result is determined to be a signal routing abnormality.

10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and running on the processor, wherein the processor implements the method according to any one of claims 1 to 8 when executing the program.

Citation Information

Patent Citations

  • Testing method and device based on fault injection and computer equipment

    CN113127331A

  • Method and device for automatically diagnosing kernel Panic fault of power monitoring system

    CN115905993A

  • Fault injection method, test case issuing method and related device

    CN115981929A

  • Set top box fault analysis method and system

    CN118503003A

  • Equipment function test method and device based on fault injection, electronic equipment and storage medium

    CN118550783A

Cited By

  • Vehicle-mounted network routing test method, device and equipment and storage medium

    CN121357043A