Signal routing test method, system, and electronic device

By identifying the signal type and injecting faults, the problem of incomplete coverage in vehicle signal routing testing was solved, achieving comprehensive coverage and accurate testing under extreme conditions.

CN119996274BActive Publication Date: 2025-12-12GREAT WALL MOTOR CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

In existing technologies, vehicle signal routing testing is limited by the overall vehicle environment and cannot cover all signal states, resulting in incomplete test coverage.

Method used

By determining the signal type, fault injection is performed to obtain the target signal value, which is then compared with the test signal value to determine whether the signal routing is normal or abnormal.

Benefits of technology

It achieves comprehensive coverage of different operating conditions, ensuring more comprehensive signal testing coverage and more accurate test results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119996274B_ABST
    Figure CN119996274B_ABST
Patent Text Reader

Abstract

The present disclosure relates to the field of testing, and provides a signal routing test method, system and electronic device. In response to receiving a test instruction, the signal type of a test signal corresponding to the test instruction is determined. The test signal value corresponding to the test signal is determined according to the signal type, and the test signal is subjected to fault injection 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, it is determined 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, it is determined that the test result is that the signal routing is abnormal. The present disclosure solves the problem that, when testing the signal routing of a vehicle, the testing is limited by the vehicle environment, and only some signal states can be tested, so that the testing cannot cover all signal states, and the problem of incomplete test coverage exists.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present disclosure relates to the field of testing, in particular to a signal routing test method, system and electronic device. BACKGROUND

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

[0003] Currently, when testing the signal routing of a vehicle, it is limited by the whole vehicle environment, and only some signal states can be tested, and all signal states cannot be covered, that is, some extreme working conditions cannot be tested, and there is a problem of incomplete test coverage. SUMMARY

[0004] Therefore, the purpose of the present disclosure is to provide a signal routing test method, system and electronic device to solve the problem that when testing the signal routing of a vehicle, it is limited by the whole vehicle environment, and only some signal states can be tested, and all signal states cannot be covered.

[0005] To achieve the above purpose, the first aspect of the present disclosure provides a signal routing test method, which comprises:

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

[0007] According to the signal type, determining the test signal value corresponding to the test signal, and performing 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 normal signal routing; or,

[0009] In response to the target signal value being different from the test signal value, determining that the test result is abnormal signal routing.

[0010] Based on the same inventive concept, the second aspect of the present disclosure provides a signal routing test system, which comprises a signal generation module, an on-off box module, a routing module and a monitoring device connected in sequence,

[0011] The signal generation module is configured to, in response to receiving a test instruction, determine the signal type of a test signal corresponding to the test instruction, determine the 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 the 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 determine that a test result is signal routing normal in response to the target signal value being the same as the test signal value, or determine that the test result is signal routing abnormal in response to the target signal value being different from the test signal value.

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

[0016] An instruction receiving module is configured to determine a signal type of a test signal corresponding to a test instruction in response to receiving the test instruction.

[0017] A fault injection module is configured to 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.

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

[0019] Based on the same inventive concept, a fourth aspect of the present disclosure provides an electronic device, comprising a memory, a processor, and a computer program stored on 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, a fifth aspect of the present disclosure provides a non-transitory computer readable storage medium storing computer instructions for causing a computer to execute the signal routing test method as described above.

[0021] It can be seen from the above that the present disclosure provides a signal routing test method, system and electronic device. In response to receiving a test instruction, the signal type of a test signal corresponding to the test instruction is determined, so as to subsequently determine the test signal value corresponding to the signal type. The determination of the test signal value is more accurate. According to the signal type, the test signal value corresponding to the test signal is determined, and the test signal is fault injected according to the signal type, to obtain a target signal value. In one aspect, by fault injecting the test signal, signal simulation for different working conditions is realized, various extreme working conditions can be comprehensively covered, and subsequent testing of extreme working conditions can be realized, and signal testing coverage is more comprehensive. On the other hand, the test signal is fault injected according to the signal type, so that the faults injected by different signal types are different, and the target signal value obtained is more consistent with the actual working condition. In response to the target signal value being the same as the test signal value, it is determined 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, it is determined that the test result is that the signal routing is abnormal. 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. BRIEF DESCRIPTION OF DRAWINGS

[0022] In order to more clearly illustrate the technical solutions in the present disclosure or the related art, the drawings needed to be used in the embodiments or the related art description will be briefly introduced. Obviously, the drawings in the following description are only embodiments of the present disclosure, and other drawings can be obtained by those skilled in the art without creative labor.

[0023] Figure 1 Flowchart of the signal routing test method of the embodiments of the present disclosure;

[0024] Figure 2 Schematic block diagram of the signal routing system of the embodiments of the present disclosure;

[0025] Figure 3 Signal routing block diagram principle schematic diagram of the embodiments of the present disclosure;

[0026] Figure 4 Structure block diagram of the signal routing test device of the embodiments of the present disclosure;

[0027] Figure 5 Structure schematic diagram of the electronic device of the embodiments of the present disclosure. DETAILED DESCRIPTION

[0028] In order to make the purposes, technical solutions and advantages of the present disclosure more clear, the present disclosure will be further described in detail below with reference to specific embodiments and drawings.

[0029] It should be noted that, unless otherwise defined, technical terms or scientific terms used in the embodiments of the present disclosure shall have the common meaning understood by one of ordinary skill in the art to which the present disclosure belongs. The terms "first", "second" and similar terms used in the embodiments of the present disclosure do not denote any order, quantity or importance, but are used to distinguish different components. The terms "include" or "contain" and similar terms mean that the elements or objects before the terms encompass the elements or objects listed after the terms and their equivalents, and do not exclude other elements or objects. The terms "connect" or "connected" and similar terms are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect. The terms "upper", "lower", "left", "right" and the like are only used to represent relative positional relationships, and when the absolute positions of the described objects change, the relative positional relationships may also change accordingly.

[0030] The terms involved in the present disclosure are explained as follows:

[0031] VIU: Vehicle Information Unit (VIU), collects and processes various data of the vehicle, including engine state, temperature, humidity, oil pressure and other information, and controls various functions of the vehicle, such as engine, seat and door, etc.

[0032] ECU: Electronic Control Unit (ECU), controls the driving state of the vehicle and realizes various functions thereof. It mainly uses data acquisition and exchange of various sensors and buses to determine the state of the vehicle and the intention of the driver and controls the vehicle through actuators.

[0033] Coding value: coding value.

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

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

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

[0037] When testing the signal routing of the vehicle at present, it is limited by the whole vehicle environment, and only some signal states can be tested, and all signal states cannot be covered, that is, some extreme working conditions cannot be tested, and there is a problem of incomplete test coverage.

[0038] In the whole vehicle integration environment, when testing the signal routing of the gateway and the domain controller (VIU), the signal routing function needs to be tested based on the whole vehicle signal matrix and the signal transmission relationship between ECUs, but due to the whole vehicle environment, only a certain signal state can be tested, and all signal state values cannot be covered, which may cause routing function failure and test coverage risk.

[0039] For example, the engine torque signal is an interval value, i.e. from 0 Nm to 285 Nm, and all torque state values cannot be tested in the real vehicle environment, only partial torque state value routing test can be carried out, and all signal state traversal verification cannot be covered.

[0040] Based on the above description, the embodiment provides a signal routing test method, as shown in Figure 1 The method comprises the following steps.

[0041] In step 101, the signal type of the test signal corresponding to the test instruction is determined in response to receiving the test instruction.

[0042] In the implementation, when the test instruction is received, it means that the user needs to test some signals, and the signal type of the test signal corresponding to the test instruction is determined, wherein the signal type is a type obtained by pre-classifying the influence degree of the vehicle driving safety level, including a first signal type, a second signal type and a third signal type.

[0043] It can be understood that the test signal to be tested is included in the test instruction when the user inputs the test instruction. 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 virtual key input on the display interface of the terminal corresponding to the test method, or physical key input on the terminal corresponding to the test method.

[0044] For example, the user can say "test the collision signal" by voice, and "test the collision signal" is the test instruction, wherein the "collision signal" included in the test instruction is the test signal.

[0045] Another example, the user selects to test the seat adjustment signal by clicking the virtual key on the display screen of the test terminal corresponding to the test method, and the user selects to test the seat adjustment signal by the virtual key as the test instruction, wherein the "seat adjustment signal" included in the test instruction is the test signal.

[0046] In step 102, a test signal value corresponding to the test signal is determined according to the signal type, the test signal is fault-injected according to the signal type, and a target signal value is obtained.

[0047] In specific implementation, the calculation manner 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 realize the test of the signal under the limit working condition, the test signal is fault-injected according to the signal type, and the target signal value is obtained by detecting the signal value after the fault injection is completed.

[0048] In step 103, in response to the target signal value being the same as the test signal value, it is determined 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, it is determined that the test result is that the signal routing is abnormal.

[0050] In 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 indicates that the test signal can still be normally received under the current fault, and it indicates that the signal routing is normal.

[0051] If the target signal value is different from the test signal value, it indicates that the test signal cannot be normally received or the test signal is received incorrectly under the current fault, and therefore 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 a test signal corresponding to the test instruction is determined, so as to subsequently determine a test signal value corresponding to the signal type. 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, the test signal is fault-injected according to the signal type, and a target signal value is obtained. On the one hand, by fault-injecting the test signal, the signal under different working conditions is simulated, various limit working conditions can be comprehensively covered, and the test of the limit working condition can be subsequently realized, and the signal test coverage is more comprehensive. On the other hand, the test signal is fault-injected according to the signal type, so that the faults injected by different signal types are different, and the target signal value obtained is more consistent with the actual working condition. In response to the target signal value being the same as the test signal value, it is determined 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, it is determined that the test result is that the signal routing is abnormal. By comparing the target signal value with the test signal value, it is further 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] The message ID value (i.e. message identification) of the test signal and the preset message ID value (i.e. preset message identification) corresponding to each signal type are obtained, and the message ID value is compared with the preset message ID value corresponding to each signal type. In response to the message identification being the same as the target preset message identification, it is determined that the signal type corresponding to the target preset message identification is the signal type of the test signal corresponding to the test instruction.

[0055] For example, the preset message ID value corresponding to the first signal type is IDcon1, IDcon2 and IDcon3, the preset message ID value corresponding to the second signal type is IDcon4, IDcon5 and IDcon6, and the preset message ID value corresponding to the first signal type is 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, traversing multiple encoding values of the message identification 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 the multiple encoding values.

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

[0060] For example, the message identification is 0x123, which includes encoding values 01, 02 and 03, the encoding value 01 represents the default mode, the encoding value 02 represents the open mode, and the encoding value 03 represents the closed mode.

[0061] Another example, the message identification is 0x295, which includes encoding values 01 and 02, the encoding value 01 represents left turn, and the encoding value 02 represents right turn.

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

[0063] For example, the weight factor of the first signal type is 300%, the weight factor of the second signal type is 200%, and the weight factor of the third signal type is 100%.

[0064] Preferably, in the embodiment, when determining the test signal value corresponding to the test signal, all encoding values of the message identifier corresponding to the test instruction need to be traversed.

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

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

[0067] Step 10221, multiply each of the multiple encoding values with a target weight factor respectively to obtain a first initial test signal value corresponding to each of the multiple encoding values.

[0068] Step 10222, add all the first initial test signal values to obtain a first test signal value.

[0069] Step 10223, multiply the first test signal value with a target traversal number determined according to the signal type to obtain a second test signal value.

[0070] Step 10224, determine an encoding maximum value and an encoding minimum value in the multiple encoding values, multiply the encoding maximum value and the encoding minimum value with a 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 specific implementation, multiply each of the multiple encoding values with a target weight factor respectively to obtain a first initial test signal value corresponding to each of the multiple encoding values. Add all the first initial test signal values to obtain a first test signal value.

[0073] The traversal number corresponding to different signal types is different, so the target traversal number needs to be determined according to the signal type. Multiply the first test signal value with the target traversal number to obtain a second test signal value, which indicates that each of the first initial test signal values is traversed for the target traversal number.

[0074] The maximum value and the minimum value in the plurality of code values are selected as a code maximum value and a code minimum value in the plurality of code values respectively. The code maximum value and the code minimum value are multiplied by the target weight factor respectively to obtain a third initial test signal value corresponding to the code maximum value and a third initial test signal value corresponding to the code minimum value. The third initial test signal value corresponding to the code maximum value and the third initial test signal value corresponding to the code minimum value are added to obtain a third test signal value.

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

[0076] Through the above scheme, different iteration times are determined for different signal types, and the extreme value enhancement iteration test is integrated. After each group of exhaustive search, the extreme value enhancement iteration is increased once. The test signal value corresponding to the test signal is determined to be more accurate.

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

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

[0079] Alternatively,

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

[0081] Alternatively,

[0082] Step 102233, in response to the signal type being a third signal type, determining that the target iteration number is a third iteration number, wherein the third iteration number is less than or equal to the second iteration 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 iteration number is the first iteration number, wherein the first signal type is a signal related to vehicle driving safety, such as a signal related to high vehicle safety level such as power chassis safety collision.

[0084] Exemplarily, the first iteration number is 3 times, and if the test signal is a collision signal, the signal type is the first signal type, and each code value in the plurality of code values needs to be iterated 3 times, that is, each code value is multiplied by the target weight factor, and then added after 3 times of calculation.

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

[0086] For example, the second iteration number is 2, and if the test signal is a screen volume adjustment signal, the signal type is the second signal type, and each of the plurality of encoding values needs to be iterated 2 times, that is, each encoding value is multiplied by the target weight factor, and the sum is calculated after 2 iterations.

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

[0088] For example, the third iteration number is 1, and if the test signal is a seat adjustment signal, the signal type is the third signal type, and each of the plurality of encoding values needs to be iterated 1 time, that is, each encoding value is multiplied by the target weight factor, and the sum is calculated after 1 iteration.

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

[0090] Step 102A, determining the corresponding target fault type and fault injection number according to the signal type.

[0091] Step 102B, injecting faults into the test signal based on the target fault type and the fault injection number to obtain a target signal.

[0092] Step 102C, monitoring the target signal to obtain a target signal value.

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

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

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

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

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

[0098] Alternatively,

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

[0100] Alternatively,

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

[0102] In particular implementation, when the signal type is the first signal type, the target fault type is a bus short circuit, a bus open circuit, and a bus shutdown, and the fault injection times is the first injection times, wherein the first signal type is a signal related to vehicle driving safety, such as a signal related to high vehicle safety level such as power chassis safety collision.

[0103] Exemplarily, the first injection times is 2 times, and if the test signal is a collision signal, the target fault type is a bus short circuit, a bus open circuit, and a bus shutdown, the signal type is the first signal type, and the corresponding fault injection times is 2 times, i.e., the bus short circuit, the bus open circuit, and the bus shutdown are injected for 2 times respectively.

[0104] When the signal type is the second signal type, the target fault type is a bus short circuit, a bus open circuit, and a bus shutdown, and the fault injection times is the second injection times, wherein the second signal type is a signal related to vehicle entertainment, such as a signal related to ADAS domain and audio domain interaction level.

[0105] Exemplarily, the second injection times is 1, if the test signal is a screen volume adjustment signal, at this time the signal type is the second signal type, the target fault type is bus short circuit, bus open circuit and bus off, the signal type is the second signal type, and correspondingly the fault injection times is 1, that is, the bus short circuit, bus open circuit and bus off faults are injected for 1 time respectively.

[0106] When the signal type is the second signal type, at this time the target fault type is bus off, and the fault injection times is the third injection times, the third injection times is less than or equal to the second injection times, and the third signal type is a signal related to vehicle comfort, such as a signal of body comfort interaction.

[0107] Exemplarily, the third injection times is 1, if the test signal is a seat adjustment signal, at this time the signal type is the third signal type, the target fault type is bus off, and correspondingly the fault injection times is 1, that is, the bus off fault is injected for 1 time.

[0108] Through the above scheme, the signal traversal robustness test is increased, the traversal algorithm is optimized, and the risk that the vehicle cannot be verified under extreme conditions (such as extreme torque value, collision signal, etc.) and the risk that the occasional problem is difficult to reproduce are reduced. Through the bus fault fault mode (100% bus load, bus off, bus short circuit / open circuit, etc.), the stability and compatibility of the routing function are verified, and it is ensured that the routing function is normally implemented under external interference environment.

[0109] In some embodiments, after determining that the test result is a signal routing exception in step 103, the method further comprises:

[0110] generating abnormal prompt information corresponding to the signal type according to the signal type, and outputting the abnormal prompt information.

[0111] In specific implementation, if it is determined that the test result is a signal routing exception, at this time, the abnormal prompt information can be outputted, and the prompt mode of the abnormal prompt information includes at least one of the following: voice broadcast, screen display and signal light prompt, etc. The content form of the prompt content includes at least one of the following: text, picture, rich text, etc.

[0112] Exemplarily, the content form of the prompt content is text, the prompt mode of the prompt information is voice broadcast, and when it is determined that the test result is a signal routing exception, the abnormal prompt information of “test signal exists exception” is outputted.

[0113] Specifically, in this embodiment, when the test signal of different signal types exists exception, different abnormal prompt information can be outputted.

[0114] Exemplarily, the abnormal prompt information is prompted in the form of a signal light flashing, and different signal lights can be set for different signal types. For example, the signal light corresponding to the first signal type is red, the signal light corresponding to the second signal type is orange, and the signal light corresponding to the third signal type is yellow.

[0115] Through the above scheme, when the test result is a signal routing exception, the abnormal prompt information is output at this time to prompt the user that there is a signal exception for the user to handle in time.

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

[0117] It should be noted that some embodiments of the present disclosure have been described above. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims can be performed in a different order than the order described above and still achieve desirable results. Additionally, the processes depicted in the figures do not necessarily require the particular order shown, or sequential order, to achieve the desired results. In certain implementations, multitasking and parallel processing can be advantageous.

[0118] Based on the same inventive concept, the present disclosure also provides a signal routing test system corresponding to any of the above-mentioned method embodiments, a schematic block diagram of the signal routing system is shown in Figure 2 The system comprises a signal generation module, an on-off box module, a routing module and a monitoring device connected in sequence. Meanwhile, the principle of the signal routing block diagram in the present embodiment is shown in Figure 3 .

[0119] The signal generation 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.

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

[0121] The routing module is configured to receive the target signal sent by the on-off box module.

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

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

[0124] After receiving the upper-layer control program, the application layer interactive signal sets the signal state according to the upper-layer instruction, and sends the signal state to the bus through the bus transceiver. After receiving the application layer interactive signal, the bus transceiver converts the logical signal into a level signal for transmission.

[0125] The BOB on-off box mainly tests the robustness of the signal. Through CAN-H and CAN-L short circuit, open circuit, bus shutdown, and other fault injection methods, it verifies whether the signal state is correct under different fault environments.

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

[0127] The monitoring device (such as Vector: CANoe, CANalyzer, Zhou Ligong, etc.) collects and records the routing data of the measured ECU to verify the consistency and robustness of the routing function of the measured ECU. The routing signal is verified by the upper-layer program control strategy / demand.

[0128] The signal traversal test idea can be defined according to the following formula for robustness test messages:

[0129] For example:

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

[0131] Message ID1, ID2…IDn, the limited message ID is IDcon1, IDcon2, IDcon3, IDcon4, IDcon5, and IDcon6, the limited message ID can be customized, which is the limited message ID, that is, not all messages need to be tested for traversal, only the 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 + IDn * factor(100%) * Smax - 2 +... + IDn * factor(100%) * Smin

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

[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] A, B, C in the above program are three different algorithm logics, and the extreme value enhancement traversal test is integrated at the same time. Each group increases the extreme value enhancement traversal once after the exhaustive method. Factor is a weight factor, and the signal transmission strength increases with the increase of the weight factor. The weight factor is defined as follows. The message related to the powertrain safety crash and other vehicle safety level is defined as the highest level, the weight factor is 300%, and the transmission strength is the strongest. The enhancement transmission increases the number of transmissions; the ADAS domain and the audio domain interaction level are next, the weight factor is 200%, and the vehicle body comfort interaction priority is the lowest, the weight factor is 100%, and the transmission strength is the lowest.

[0151] Group represents a grouping area, which limits different priorities. If the message is the highest priority, it is group A, and so on. Group B is the next priority, and group C is the lowest priority. S(groupA) represents the fault injection logic required for Group A, and so on. S1max and S1min are the maximum and minimum values of the message ID, and S represents signal. IDcon represents the limited message ID, and con is the abbreviation of condition. L is the short circuit of CANH and CANL, H is the open circuit of CANH or CANL, and OF is the bus shutdown.

[0152] Corresponding to the method of any of the above embodiments, the disclosure also provides a signal routing test device based on the same inventive concept.

[0153] Reference Figure 4 , Figure 4 The signal routing test device of the embodiment comprises:

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

[0155] The fault injection module 202 is configured to 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;

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

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

[0158] The traversal unit is configured to traverse a plurality of encoding values of a packet identifier corresponding to the test instruction;

[0159] The test signal value determining 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 the plurality of encoding values.

[0160] In some embodiments, the test signal value determining unit specifically comprises:

[0161] The first initial test signal value determining subunit is configured to multiply each encoding value in the plurality of encoding values with the target weight factor respectively to obtain a first initial test signal value corresponding to each encoding value;

[0162] The first test signal value determining unit is configured to sum all the first initial test signal values to obtain a first test signal value;

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

[0164] The third test signal value determining unit is configured to determine an encoding maximum value and an encoding minimum value in the plurality of encoding values, multiply the encoding maximum value and the encoding minimum value with the target weight factor respectively, and sum 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, determine that the target traversal number is 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, determine that the target traversal number is 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 vehicle entertainment; or,

[0169] In response to the signal type being a third signal type, determine that the target traversal number is 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] The data determination unit is configured to determine a corresponding target fault type and a fault injection number according to the signal type;

[0172] The target signal determination unit is 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 shutdown, and the data determination unit is specifically configured to:

[0175] In response to the signal type being a first signal type, determine that the target fault type is bus short circuit, bus open circuit, and bus shutdown, and the fault injection number is a first injection number, wherein the first signal type is a signal related to vehicle driving safety; or,

[0176] In response to the signal type being a second signal type, determine that the target fault type is bus short circuit, bus open circuit, and bus shutdown, and 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 vehicle entertainment; or,

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

[0178] In some embodiments, the method further comprises a prompting module specifically configured to:

[0179] generating abnormal prompt information corresponding to the signal type according to the signal type, and outputting the abnormal prompt information.

[0180] For the convenience of description, the above device is described as various modules in function. Of course, the functions of each module can be implemented in one or more software and / or hardware when implementing the present disclosure.

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

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

[0183] Figure 5 A more specific hardware structure of an electronic device is shown in the embodiment, which can 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 for communication within the device.

[0184] The processor 1010 can be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an ASIC (Application Specific Integrated Circuit), or one or more integrated circuits, etc., for executing related programs to implement the technical solutions provided by the embodiments of the present disclosure.

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

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

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

[0188] The bus 1050 includes a channel for transmitting information between various components (such as the processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040) of the device.

[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 can also include other components necessary for normal operation. In addition, those skilled in the art can understand that the above device can also only contain components necessary for implementing the embodiments of the present specification, and does not have to contain all the components shown in the figure.

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

[0191] Based on the same inventive concept, the present disclosure also provides a non-transitory computer-readable storage medium storing computer instructions for causing the computer to execute the signal routing test method according to any of the above embodiments.

[0192] The computer readable medium of the embodiments can include permanent and non-permanent, removable and non-removable media, and can be implemented by any method or technology to store information. The information can be computer readable instructions, data structures, program modules 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 technologies, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassette, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device.

[0193] The storage medium of the above embodiments stores computer instructions for causing the computer to perform the signal routing test method as described in any of the above embodiments, and has the beneficial effects of the corresponding method embodiments, which are not repeated here.

[0194] It can be understood that before using the technical solutions of various embodiments in the present disclosure, the type, use range, use scenario, etc. of the personal information involved will be informed to the user in an appropriate manner, and the authorization of the user will be obtained.

[0195] For example, in response to receiving the user's active request, prompt information is sent to the user to explicitly prompt the user that the operation requested to be performed will require obtaining and using the user's personal information. Thus, the user can voluntarily choose whether to provide personal information to the software or hardware such as electronic devices, application programs, servers or storage media that perform the technical solutions of the present disclosure according to the prompt information.

[0196] As an optional but not limited implementation manner, in response to accepting the user's active request, the manner of sending prompt information to the user may, for example, be a pop-up window manner, and the prompt information can be presented in the form of text in the pop-up window. In addition, the pop-up window can also carry selection controls for the user to select "agree" or "disagree" to provide personal information to the electronic device.

[0197] It can be understood that the above notification and user authorization process is only illustrative, and does not limit the implementation of the present disclosure, and other ways that meet the relevant laws and regulations can also be applied to the implementation of the present disclosure.

[0198] Those skilled in the art should understand that the above discussion of any embodiment is only exemplary, and is not intended to mean that the scope of the present disclosure is limited to these examples; under the idea of the present disclosure, the above embodiments or technical features among different embodiments can also be combined, steps can be implemented in any order, and there are many other changes of different aspects of the embodiments of the present disclosure as described above, which are not provided in details for the sake of brevity.

[0199] In addition, to simplify the description and discussion, and so as not to make the embodiments of the present disclosure difficult to understand, the well-known power / ground connections of integrated circuit (IC) chips and other components can or can not be shown in the provided drawings. In addition, the apparatuses can be shown in the form of block diagrams, so as 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 apparatuses are highly dependent on the platform to be implemented to implement the embodiments of the present disclosure (i.e., these details should be fully within the understanding of those skilled in the art). Where specific details (e.g., circuitry) are set forth in order to describe an illustrative embodiment of the present disclosure, it will be apparent to those skilled in the art that the embodiments of the present disclosure can be practiced without these specific details or with variations on these specific details. Therefore, these descriptions should be considered as illustrative rather than limiting.

[0200] Although the present disclosure has been described in conjunction with the specific embodiments thereof, it is evident that many alternatives, modifications and variations will be apparent to those skilled in the art in light of the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) can use the embodiments discussed.

[0201] The embodiments of the present disclosure are intended to cover all such alternatives, modifications and variations as falling within the broad scope of the application. Accordingly, any omission, modification, equivalent replacement, improvement, etc. made within the spirit and principle 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 by, The method comprises the following steps: in response to receiving a test instruction, determining a signal type of a test signal corresponding to the test instruction; determining a test signal value corresponding to the 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 target signal value being the same as the test signal value, determining that a test result is that a signal routing is normal; or in response to the target signal value being different from the test signal value, determining that the test result is that the signal routing is abnormal; the step of determining the test signal value corresponding to the test signal according to the signal type comprises the following steps: iterating a plurality of encoding values of a message identifier corresponding to the test instruction; obtaining a target weight factor corresponding to the signal type, and determining the test signal value corresponding to the test signal according to the target weight factor and the plurality of encoding values; the step of determining the test signal value corresponding to the test signal according to the target weight factor and the plurality of encoding values comprises the following steps: performing product processing on each encoding value in the plurality of encoding values and the target weight factor respectively to obtain a first initial test signal value corresponding to each encoding value; performing sum processing on all the first initial test signal values to obtain a first test signal value; determining a target iteration number according to the signal type, and performing product processing on the first test signal value and the target iteration number to obtain a second test signal value; determining an encoding maximum value and an encoding minimum value in the plurality of encoding values, and performing product sum processing on the encoding maximum value and the encoding minimum value and the target weight factor respectively to obtain a third test signal value; performing sum processing on the second test signal value and the third test signal value to obtain the test signal value; the step of performing fault injection on the test signal according to the signal type to obtain the target signal value comprises the following steps: determining a target fault type and a fault injection number corresponding to the signal type according to the signal type; performing fault injection on the test signal based on the target fault type and the fault injection number to obtain a target signal; and monitoring the target signal to obtain the target signal value. the step of determining the target iteration number according to the signal type comprises the following steps:

2. The method of claim 1, wherein, in response to the signal type being a first signal type, determining that the target iteration number is a first iteration 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 that the target iteration number is a second iteration number, wherein the second iteration number is less than the first iteration number, and the second signal type is a signal related to vehicle entertainment; or in response to the signal type being a third signal type, determining that the target iteration number is a third iteration number, wherein the third iteration number is less than or equal to the second iteration number, and the third signal type is a signal related to vehicle comfort. the target fault type comprises at least one of the following: bus short circuit, bus open circuit, or bus shutdown; 3. The method of claim 1, wherein, the step of determining the target fault type and the fault injection number corresponding to the signal type according to the signal type comprises the following steps: ​ In response to the signal type being a first signal type, determining that the target fault type is a bus short circuit, a bus open circuit and a bus shutdown, and the fault injection times are first injection times, 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 that the target fault type is a bus short circuit, a bus open circuit and a bus shutdown, and the fault injection times are second injection times, wherein the second injection times are less than the first injection times, and the second signal type is a signal related to vehicle entertainment; or, In response to the signal type being a third signal type, determining that the target fault type is a bus shutdown, and the fault injection times are third injection times, wherein the third injection times are less than or equal to the second injection times, and the third signal type is a signal related to vehicle comfort.

4. The method of claim 1, wherein, After determining that the test result is a signal routing exception, further comprising: generating abnormal prompt information corresponding to the signal type according to the signal type, and outputting the abnormal prompt information.

5. The method of claim 1, wherein, The response to receiving the test instruction includes: obtaining the message identifier of the test signal and the preset message identifier corresponding to each signal type, 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, determining that the signal type corresponding to the target preset message identifier is the signal type of the test signal corresponding to the test instruction.

6. A signal routing test system, characterized by, The system includes a signal generation module, an on-off box module, a routing module and a monitoring device connected in sequence, The signal generation module is configured to determine the signal type of the test signal corresponding to the test instruction in response to receiving the test instruction, determine the 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 the 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 the 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 a normal signal routing; or, in response to the target signal value being different from the test signal value, determining that the test result is a signal routing exception; The determination of the test signal value corresponding to the test signal according to the signal type includes: iterating through a plurality of encoding values of the message identifier corresponding to the test instruction; obtaining a target weight factor corresponding to the signal type, and determining the test signal value corresponding to the test signal according to the target weight factor and the plurality of encoding values; The determination of the test signal value corresponding to the test signal according to the target weight factor and the plurality of encoding values includes: performing product processing on each encoding value in the plurality of encoding values and the target weight factor respectively to obtain a first initial test signal value corresponding to each encoding value; Summing all the first initial test signal values to obtain a first test signal value; According to the signal type, determine a target iteration number, multiply the first test signal value by the target iteration number to obtain a second test signal value; Determine a maximum encoding value and a minimum encoding value in the multiple encoding values, multiply the maximum encoding value and the minimum encoding value by a target weight factor respectively, and sum the products to obtain a third test signal value; Sum the second test signal value and the third test signal value to obtain a test signal value; The method for injecting faults into the test signal according to the signal type to obtain a target signal value, comprising: According to the signal type, determine a corresponding target fault type and a fault injection number; Inject faults into the test signal based on the target fault type and the fault injection number to obtain a target signal; Monitor the target signal to obtain a target signal value. 7.An electronic device comprising a memory, a processor, and a computer program stored on the memory and running on the processor, wherein the processor implements the method of any one of claims 1 to 5 when executing the program.

Citation Information

Patent Citations

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

    CN113127331A

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

    CN118550783A