Sensor signal application input device, system, method, and vehicle

CN123008328APending Publication Date: 2026-10-30DEEPAL AUTOMOBILE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611157873.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-07-31
Publication Date
2026-10-30

AI Technical Summary

Technical Problem

[0004]本申请提供了一种传感器信号施加输入装置、系统、方法及车辆,以至少解决现有实车测试中无法灵活、低成本地模拟多种传感器故障的技术问题

Benefits of technology

[0036]需要说明的是,第二方面至第六方面中的任一种实现方式所带来的技术效果可参见第一方面中对应实现方式所带来的技术效果,此处不再赘述。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123008328A_ABST
    Figure CN123008328A_ABST
Patent Text Reader

Abstract

The application relates to the technical field of vehicles, in particular to a sensor signal application input device, system, method and vehicle, which comprises a virtual controller and at least one sensor signal application input module corresponding to at least one sensor of a target controller in the vehicle; the virtual controller and the at least one sensor signal application input module are in communication connection; the virtual controller is used for sending a signal application input instruction to a target sensor signal application input module in the case that the target sensor signal application input module is connected between a target sensor and the target controller; the target sensor signal application input module is one of the at least one sensor signal application input module; the target sensor signal application input module is used for applying a collection signal of the target sensor to the target controller in response to the signal application input instruction, so as to perform a real vehicle operation test on the target sensor, and a plurality of sensor faults can be simulated flexibly and at low cost.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of vehicle technology, and more particularly to the field of vehicle testing technology, specifically to a sensor signal input device, system, method, and vehicle. Background Technology

[0002] As automotive electronic and electrical architectures evolve towards centralized and domain-controlled models, the complexity of vehicle electronic control unit (ECU) software has increased dramatically. Real-vehicle testing has become a crucial step in verifying the functionality of vehicle software, fault diagnosis logic, and functional safety strategies. Traditional real-vehicle sensor signal testing solutions primarily focus on routine functional checks and cannot systematically verify abnormal sensor signal conditions.

[0003] For testing abnormal sensor signal conditions, the industry currently typically uses the method of removing the target controller fuse or relay to simulate sensor failure. After removing the fuse, the entire vehicle enters a fault-locked state, which can only perform static open-loop testing. It cannot verify the vehicle's real response to abnormal sensor signals during actual driving. Frequent plugging and unplugging of fuses and connectors can also cause physical damage to the original vehicle wiring harness. Existing technologies cannot flexibly and cost-effectively simulate various sensor failures. Summary of the Invention

[0004] This application provides a sensor signal input device, system, method, and vehicle to at least solve the technical problem that existing real-vehicle testing cannot flexibly and cost-effectively simulate various sensor faults.

[0005] To achieve the above objectives, the technical solution adopted in this application is as follows: In a first aspect, this application provides a sensor signal application input device, comprising: a virtual controller, and at least one sensor signal application input module corresponding one-to-one with at least one sensor of a target controller in a vehicle; the virtual controller and the at least one sensor signal application input module are communicatively connected; the virtual controller is configured to send a signal application input command to the target sensor signal application input module when the target sensor signal application input module is connected between the target sensor and the target controller; wherein the target sensor signal application input module is one of the at least one sensor signal application input module; the target sensor is the sensor corresponding to the target sensor signal application input module; the target sensor signal application input module is configured to apply the acquisition signal sent from the target sensor to the target controller in response to the signal application input command, so as to perform a real-vehicle operation test on the target sensor.

[0006] Based on the above technical means, by cooperating with the virtual controller and the sensor signal input module, when the target sensor signal input module is connected in series between the sensor and the controller, the collected signal is input and then sent to the target controller. This enables online editing and injection of sensor signals without removing the fuse or triggering the vehicle lockout, thus maintaining the vehicle's drivable state and solving the defect of the traditional fuse removal scheme, which can only perform static open-loop testing.

[0007] In one possible implementation, the target sensor signal application input module includes: a first interface for connecting to the target sensor, a second interface for connecting to the target controller, and a target sensor signal application input unit; wherein, the first interface is used to send the acquired signal from the target sensor to the target sensor signal application input unit; the target sensor signal application input unit is used to apply the acquired signal in response to a signal application input command to obtain an applied input signal; and the second interface is used to send the applied input signal to the target controller.

[0008] Based on the above technical means, the three-stage structure of acquiring the original signal through the first interface, performing input processing through the input application unit, and outputting the input signal through the second interface completes the signal acquisition, input processing, and signal output in a closed loop within a single module. The signal link is short and the delay is low, which meets the real-time requirements under high dynamic driving conditions.

[0009] In one possible implementation, the target sensor signal application input unit includes: a selection subunit and at least one application input branch; the selection subunit and at least one application input branch are communicatively connected; each of the at least one application input branch corresponds to an application input direction; wherein, the selection subunit is used to select the target application input branch from the at least one application input branch to apply the input acquisition signal in response to the application input direction indicated by the signal application input command, thereby obtaining the application input signal.

[0010] Based on the above technical means, by selecting the sub-unit to flexibly switch between multiple application input branches according to the application input command, unified scheduling and on-demand selection of multiple application input directions are realized, avoiding the need to configure hardware separately for each application input mode, simplifying the device structure, and improving the flexibility and efficiency of test configuration.

[0011] In one possible implementation, at least one input branch includes: a first input branch for increasing the acquired signal and a second input branch for decreasing the acquired signal; wherein both the first and second input branches are adjusted according to a fixed adjustment coefficient or a fixed change amount.

[0012] Based on the above technical means, by increasing or decreasing the acquired signal by fixing the adjustment coefficient or the change amount, the amplitude drift fault of the sensor signal can be accurately simulated, and the response threshold and fault tolerance boundary of the target controller under different signal offset degrees can be quantitatively tested.

[0013] In one possible implementation, at least one applied input branch includes a third applied input branch for changing the positive or negative polarity of the acquired signal.

[0014] Based on the above technical means, by reversing the positive and negative polarities of the acquired signals, the extreme fault scenario of reversed sensor signals can be simulated, verifying whether the target controller can correctly identify the abnormality and enter the safety protection state when the signal polarity is incorrect, covering fault modes that traditional test schemes cannot achieve.

[0015] In one possible implementation, at least one applied input branch includes a fourth applied input branch for changing the acquired signal to the desired value of the acquired signal.

[0016] Based on the above technical means, by changing the acquired signal to any expected value, it is possible to simulate the fault scenario where the sensor signal is replaced with a specific value, support the forced injection of any sensor signal into the target value, and verify the control strategy and fault handling logic of the target controller under extreme conditions.

[0017] In one possible implementation, one less input branch is included, comprising: a fifth input branch for pausing the transmission of the acquired signal to the target controller for a period of time.

[0018] Based on the above technical means, by pausing the transmission of the acquired signal for a period of time, the fault scenario of intermittent interruption or stagnation of sensor signal can be simulated, verifying whether the target controller can detect and enter the fault-safe mode in time when the signal is lost, covering the test requirements of signal timing faults.

[0019] In one possible implementation, at least one applied input branch includes a sixth applied input branch for maintaining the original value of the acquired signal.

[0020] Based on the above technical means, by transmitting the acquired signal directly with its original value, the signal link connectivity and the basic functions of the target controller can be verified under a reference state without applying an input signal. This provides a normal operating condition reference for input testing, ensuring the comparability and traceability of test results.

[0021] In one possible implementation, the interface types of the first interface and the second interface are consistent with the signal type of the signal acquired by the target sensor; wherein the signal type includes one of the following: analog voltage signal, digital level signal, pulse width modulation signal, frequency signal and resistance signal.

[0022] Based on the above technical means, by making the interface types of the first and second interfaces consistent with the sensor signal types, it is ensured that the electrical characteristics of signal acquisition and output are fully matched with the original vehicle sensors. The target controller cannot perceive the existence of the applied input module, thus achieving true non-destructive transparent access.

[0023] Secondly, this application provides a sensor signal application input system, which includes a sensor signal application input device as described in the first aspect, a host computer, and a signal transfer box (BOB). The signal transfer box (BOB) is connected in series between a target controller and at least one sensor. The target sensor signal application input module in the sensor signal application input device is indirectly connected between the target sensor and the target controller by connecting to the target sensor path. The target sensor path is a sensor forwarding path from the target sensor to the target controller in the signal transfer box (BOB). The host computer is communicatively connected to a virtual controller in the sensor signal application input device. The host computer is used to send an application input instruction for the acquisition signal to the virtual controller, so that the virtual controller controls the target sensor signal application input module to apply the input acquisition signal based on the application input instruction.

[0024] Based on the above technical means, through the coordinated cooperation of the host computer, the signal transfer box (BOB), and the sensor signal application input device, the host computer issues an application input instruction, the BOB provides a non-destructive serial connection channel, and the application input device executes the signal application input, thus realizing a closed-loop connection of the entire link from test configuration, signal injection to response observation, and the test process does not require disassembling the original vehicle wiring harness.

[0025] In one possible implementation, the input indication includes the initial input application time, the initial input application value, and the timing curve of the input value change.

[0026] Based on the above technical means, by defining the change law of the applied input value over time by applying a time-series curve of the input value change, dynamic fault scenarios such as gradual drift or periodic oscillation of sensor signals can be simulated. Compared with applying a fixed value input, it is closer to the real fault characteristics and improves the realism and effectiveness of the test.

[0027] In one possible implementation, the host computer is further configured to: observe whether the abnormal response of the target controller to the applied input signal of the acquired signal conforms to the expected abnormal response; wherein the expected abnormal response includes: issuing an abnormal fault code, and performing abnormal processing according to the abnormal processing scheme corresponding to the abnormal fault code.

[0028] Based on the above technical means, the host computer automatically observes whether the target controller issues the expected abnormal fault code and executes the corresponding abnormal handling plan, thereby realizing the automated verification of the fault diagnosis function, avoiding the subjectivity and omissions of manual observation, and improving the testing efficiency and accuracy.

[0029] In one possible implementation, the host computer is further configured to: restore the applied input signal to the acquisition signal, and observe whether the abnormality resolution response of the target controller meets the expected abnormality resolution response; wherein the expected abnormality resolution response includes: clearing the abnormal fault code, and performing abnormal exit processing according to the abnormality return scheme corresponding to the abnormal fault code; and generate the actual vehicle test results of the target controller based on the first result of whether the abnormal response meets the expected abnormal response and the second result of whether the abnormality resolution response meets the expected abnormality resolution response.

[0030] Based on the above technical means, by observing the abnormality resolution response after the applied input signal is restored, and generating a test report by combining the results of the abnormality response and abnormality resolution, a fully automated test closed loop of fault injection, abnormality verification, fault recovery and result judgment is realized, ensuring the completeness and objectivity of the test conclusions.

[0031] Thirdly, this application provides a sensor signal application input method, comprising: sending a signal application input command to the target sensor signal application input module when the target sensor signal application input module is connected in series between the target sensor and the target controller; applying the original signal collected by the target sensor according to the signal application input command to obtain the applied input signal; and sending the applied input signal to the target controller to perform a real vehicle operation test on the target sensor.

[0032] Fourthly, this application provides a vehicle including a sensor signal application input device, which applies sensor signals using the sensor signal application input method described in the first aspect.

[0033] Fifthly, this application provides an electronic device, including: a processor and a memory, wherein the memory stores at least one computer program, and the at least one computer program is loaded and executed by the processor to implement the method described in the first aspect and any possible implementation thereof.

[0034] In a sixth aspect, this application provides a computer-readable storage medium that, when the instructions in the computer-readable storage medium are executed by a processor of an electronic device, enables the electronic device to perform the methods described in the first aspect and any possible implementation thereof.

[0035] In a seventh aspect, this application provides a computer program product including computer instructions that, when executed on an electronic device, cause the electronic device to perform the method described in the first aspect and any possible implementation thereof.

[0036] It should be noted that the technical effects of any of the implementation methods in aspects two through six can be found in the technical effects of the corresponding implementation methods in aspect one, and will not be repeated here.

[0037] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and do not limit this application. Attached Figure Description

[0038] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application, and do not constitute an undue limitation of this application.

[0039] Figure 1 This is a schematic diagram of the structure of a vehicle shown in an embodiment of this application; Figure 2 This is a schematic diagram of the architecture of a sensor signal application input device provided in an embodiment of this application; Figure 3 This is a schematic diagram of another sensor signal application input device provided in this embodiment; Figure 4 This is a schematic diagram of the structure of another sensor signal application input device shown in the embodiments of this application; Figure 5 This is a schematic diagram of the architecture of a sensor signal application input system shown in an embodiment of this application; Figure 6 This is a schematic diagram of the architecture of another sensor signal application input system shown in the embodiments of this application; Figure 7 A flowchart illustrating a sensor signal input method provided in an embodiment of this application; Figure 8 This is a schematic diagram showing a comparison of the connection before and after applying an input operation principle, as illustrated in an embodiment of this application. Figure 9 This is a block diagram illustrating an electronic device according to an embodiment of this application. Detailed Implementation

[0040] To enable those skilled in the art to better understand the technical solutions of this application, the technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings.

[0041] It should be noted that the terms "first," "second," etc., used in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.

[0042] In the embodiments of this application, the words "exemplary," "for example," or "for instance" are used to indicate that something is an example, illustration, or description. Any embodiment or design described as "exemplary," "for example," or "for instance" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or designs. Specifically, the use of the words "exemplary," "for example," or "for instance" is intended to present the relevant concepts in a specific manner.

[0043] The technical solutions of the embodiments of this application will be described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments.

[0044] By combining the virtual controller with the sensor signal input module, the target sensor signal input module is connected in series between the target sensor and the target controller, and the collected signal is applied in a non-destructive manner without disassembling the original vehicle wiring harness or removing the fuse. This can cover various fault modes such as signal over-inflation, under-inflation, reverse, jamming, intermittent, and arbitrary expected value injection, and realize sensor fault simulation and testing verification under the dynamic driving state of the vehicle.

[0045] The aforementioned vehicles can also be referred to as vehicles, mobile carriers, electric vehicles (EVs), hybrid electric vehicles (HEVs), plug-in hybrid electric vehicles (PHEVs), fuel cell vehicles (FCVs), autonomous vehicles, intelligent and connected vehicles (ICVs), driverless vehicles, etc.

[0046] In this application embodiment, the vehicle can be a sedan, bus, sport utility vehicle (SUV), truck, special vehicle, driverless taxi, intelligent connected bus, autonomous logistics vehicle, electric truck, etc. In addition, the method is also applicable to other mobile vehicles equipped with vehicle communication terminals, such as tricycles, two-wheeled vehicles, trains and other transportation devices that carry people or goods, or other types of vehicles powered by power batteries, etc. This application does not impose specific limitations on these.

[0047] Figure 1 This is a schematic diagram of the structure of a vehicle as shown in an embodiment of this application. Figure 1 As shown, the vehicle 100 includes a sensor signal application input device 200.

[0048] Vehicle 100 can be any vehicle platform equipped with sensors and controllers.

[0049] The vehicle 100 is equipped with at least one sensor and at least one target controller. The sensor and the target controller are connected through the original vehicle wiring harness. The sensor is used to collect vehicle operating status signals and send them to the target controller. The target controller is used to execute corresponding vehicle control logic based on the sensor signals.

[0050] When it is necessary to perform sensor signal input test on vehicle 100, the sensor signal input device 200 is connected in series with the original vehicle wiring harness connection between the target sensor and the target controller in a non-destructive manner. This allows for online input of sensor signals without removing any controller fuses or triggering the vehicle fault lock-up mechanism, thereby simulating and verifying sensor faults under the dynamic driving conditions of the real vehicle.

[0051] Figure 2 This is a schematic diagram illustrating the structure of a sensor signal application input device according to an embodiment of this application. Figure 2 As shown, the sensor signal application input device includes a virtual controller 210 and at least one target sensor signal application input module 220. This sensor signal application input device can be... Figure 1 The sensor signal is applied to the input device 200.

[0052] The virtual controller 210 is communicatively connected to at least one sensor signal application input module 220.

[0053] At least one sensor signal application input module 220 corresponds one-to-one with at least one sensor of the target controller in the vehicle.

[0054] For example, if the target controller is connected to N sensors, then the sensor signal application input device 200 will have N corresponding sensor signal application input modules 220, with each sensor signal application input module 220 corresponding to one sensor.

[0055] The virtual controller 210 is used to send a signal application input command to the target sensor signal application input module 220 when the target sensor signal application input module 220 is connected between the target sensor and the target controller.

[0056] The target sensor signal application input module 220 is one of at least one sensor signal application input module 220, and the target sensor is the sensor corresponding to the target sensor signal application input module 220.

[0057] The target sensor signal application input module 220 is used to apply the acquisition signal sent by the target sensor to the target controller in response to the signal application input command, so as to perform real vehicle operation test on the target sensor.

[0058] Based on the aforementioned technical means, this application non-destructively connects a sensor signal application input module 220 between the target controller and the sensor, and uses its high-fidelity I / O interface channel to simulate the electrical characteristics of the original sensor. Without removing any controller fuses or triggering the vehicle fault lockout mechanism, the application maintains the complete drivable dynamic state of the vehicle. The acquisition interface of the RCP is paired with the simulation interface, and the built-in controlled object simulation model of the RCP is discarded. Instead, the sensor signal is passed through directly, or the input value is applied in real time during the pass and then forwarded. This realizes online non-destructive real-time editing and injection of real sensor signals under the dynamic closed-loop working condition of the real vehicle.

[0059] The aforementioned non-destructive method refers to using a plug-and-play wire disconnector kit to seamlessly connect between the existing sensor and target controller connectors without any cutting, stripping, severing, or permanent modification of the original vehicle's physical wiring harness, connectors, or hardware structure. After testing, the wire disconnector kit is removed, and the original vehicle connectors are directly plugged back in to restore the vehicle to its original state.

[0060] Figure 3 This is a schematic diagram of another sensor signal application input device shown in the embodiments of this application.

[0061] like Figure 3 As shown, the target sensor signal application input module includes: a first interface 221 for connecting to the target sensor, a second interface 222 for connecting to the target controller, and a target sensor signal application input unit 223.

[0062] The first interface 221 is used to send the acquired signal from the target sensor to the target sensor signal application input unit 223.

[0063] Specifically, one end of the first interface 221 is physically connected to the output port of the target sensor through the corresponding channel of the original vehicle wiring harness or plug-and-play BOB; the other end of the first interface 221 is electrically connected to the signal input terminal of the target sensor signal application input unit 223.

[0064] The physical form of the first interface 221 includes, but is not limited to: metal pin connectors, spring pin probes, alligator clips, aviation plug connectors, BNC / SMA coaxial connectors, or crimp terminals of flexible printed circuit boards (FPCs).

[0065] For example, the first interface 221 is used to send the acquired signal from the target sensor to the target sensor signal application input unit 223. During the signal input process, the first interface 221 may also perform at least one of the following preprocessing operations: signal amplitude normalization processing, which maps the acquired signals of different ranges to the internal operating voltage range of the target sensor signal application input unit 223; signal isolation processing, which cuts off ground loop interference between the target sensor and the target controller through optocoupler isolation, transformer isolation or capacitor isolation; and impedance matching processing, which adjusts the input impedance to match the output impedance of the target sensor to avoid waveform distortion introduced by signal reflection.

[0066] Optionally, the first interface 221 also integrates signal conditioning circuitry. The signal conditioning circuitry includes, but is not limited to: a low-pass filter for filtering out high-frequency noise in the acquired signal; a high-pass filter for filtering out low-frequency drift in the acquired signal; a band-pass filter for extracting effective signals in a specific frequency band; and an anti-aliasing filter for preventing spectral aliasing before analog-to-digital conversion.

[0067] The second interface 222 is used to send the applied input signal to the target controller.

[0068] Specifically, one end of the second interface 222 is electrically connected to the signal output terminal of the target sensor signal application input unit 223; the other end of the second interface 222 is physically connected to the input port of the target controller through the corresponding channel of the original vehicle wiring harness or the plug-and-play BOB. The physical form of the second interface 222 matches that of the first interface 221, ensuring that the target sensor signal application input module 220 can be used as a "lossless cable" inserted into the original vehicle wiring harness.

[0069] For example, the second interface 222 is used to send the applied input signal to the target controller. During signal output, the second interface 222 may also perform at least one of the following drive enhancement operations: power amplification processing to increase the drive capability of the applied input signal to an output impedance level equivalent to that of the original vehicle wiring harness; signal shaping processing to shape the rising edge, falling edge, overshoot, and undershoot of the applied input signal so that its waveform is consistent with the electrical characteristics of the output waveform of the original vehicle sensor; and timing calibration processing to adjust the phase delay of the applied input signal to ensure that the phase relationship of the applied input signal relative to the timing of the original vehicle bus remains unchanged.

[0070] The interface types of the first interface 221 and the second interface 222 are consistent with the signal type of the acquisition signal of the target sensor.

[0071] Signal types include one of the following: analog voltage signals, digital level signals, pulse width modulation signals, frequency signals, and resistance signals.

[0072] For example, if the target sensor is an accelerator pedal position sensor and its output signal type is an analog voltage signal (0 to 5V), then both the first interface 221 and the second interface 222 are configured as analog voltage signal interfaces to ensure that the electrical characteristics of signal acquisition and output are completely consistent with the original vehicle sensor. The target controller cannot detect the existence of the sensor signal application input module 220, thus achieving true non-destructive transparent access.

[0073] The target sensor signal application input unit 223 is used to apply an input acquisition signal in response to a signal application input command, and obtain an applied input signal.

[0074] It should be understood that the target sensor signal application input unit 223 can be implemented in any of the following ways: a pure hardware implementation, constructed from discrete components or integrated circuits such as analog switches, resistor networks, capacitor networks, operational amplifiers, comparators, and dedicated signal conditioning chips; a software programmable implementation, implemented with programmable devices such as programmable logic devices (CPLDs), complex programmable logic devices (FPGAs), digital signal processors (DSPs), microcontrollers (MCUs), and system-on-a-chip (SoCs) in conjunction with firmware; or a hybrid implementation, in which hardware acceleration modules and software processing modules work together.

[0075] It should be noted that the target sensor signal application input unit 223 processes the acquired signal in real time during the dynamic operation of the actual vehicle, with processing latency controlled at the microsecond level. This ensures that the target controller can obtain the latest applied input signal within milliseconds or even shorter control cycles. The application input processing does not introduce additional communication delays or data buffering, avoiding any perceptible impact on the vehicle's real-time control closed loop.

[0076] Specifically, the interface types of the first interface 221 and the second interface 222 are consistent with the signal types of the signals acquired by the target sensor. The signal types include one of the following: analog voltage signal, digital level signal, pulse width modulation signal, frequency signal, and resistance signal.

[0077] For example, if the target sensor is an accelerator pedal position sensor and its output signal type is an analog voltage signal (0 to 5V), then both the first interface 221 and the second interface 222 are configured as analog voltage signal interfaces to ensure that the electrical characteristics of signal acquisition and output are completely consistent with the original vehicle sensor. The target controller cannot detect the existence of the sensor signal application input module 220, thus achieving true non-destructive transparent access.

[0078] For example, if the target sensor is a wheel speed sensor and its output signal type is a frequency signal, then both the first interface 221 and the second interface 222 are configured as frequency signal interfaces to keep the amplitude, duty cycle, rise time and fall time of the frequency signal consistent with the original vehicle sensor.

[0079] For example, if the target sensor is a coolant temperature sensor and its output signal type is a resistance signal (PT1000 thermistor), then both the first interface 221 and the second interface 222 are configured as resistance signal interfaces to maintain the accuracy of the resistance value and the temperature coefficient consistent with the original vehicle sensor.

[0080] It should be noted that this solution supports more than 10 signal types and can connect to more than 100 hard-wired interfaces, achieving full spectrum coverage of sensor signals throughout the vehicle. Specific supported signal types include, but are not limited to: 0 to 5V analog voltage signals, 0 to 12V analog voltage signals, 0 to 24V analog voltage signals, digital level signals (high / low level), pulse width modulation signals (PWM), frequency signals, resistance signals, current signals (4 to 20mA), SENT protocol signals, PSI5 protocol signals, etc.

[0081] In one possible implementation, for digitally encoded protocol signals such as SENT or PSI5 protocols, the first interface 221 can also integrate a protocol decoding module to decode the serial digital signal into the corresponding physical quantity value before sending it to the target sensor signal application input unit 223; the second interface 222 integrates a protocol encoding module to re-encode the applied physical quantity value into a serial digital signal according to the SENT or PSI5 protocol before sending it to the target controller. This allows for real-time application of protocol layer signals without compromising protocol integrity.

[0082] In one possible implementation, for current signals (4 to 20mA), the first interface 221 integrates a current-to-voltage conversion module to convert the 4 to 20mA current signal into a voltage signal; the second interface 222 integrates a voltage-to-current conversion module to convert the voltage signal back into a 4 to 20mA current signal. This fully compatible access to current loop signals allows this solution to cover industrial-grade sensor signal types, further expanding application scenarios.

[0083] It should be understood that the interface types of the first interface 221 and the second interface 222 can be the same or different. For example, the first interface 221 receives an analog voltage signal, which is then converted from analog to digital and processed by the target sensor signal input unit 223 before being converted back to an analog voltage signal by the second interface 222. This heterogeneous interface configuration is suitable for special scenarios where there is a protocol conversion requirement between the target sensor and the target controller.

[0084] Through the consistent design of the interface type and signal type described above, this solution can achieve a non-destructive access effect of "seamless access, electrical compatibility, and protocol transparency", ensuring that the target controller always works in an environment with electrical characteristics consistent with the original sensor throughout the entire test process, thereby guaranteeing the validity and repeatability of the test results.

[0085] Figure 4 This is a schematic diagram of another sensor signal application input device shown in the embodiments of this application.

[0086] like Figure 4 As shown, the target sensor signal application input unit 223 includes: a selection subunit 2231 and at least one application input branch 2232.

[0087] The selection subunit 2231 and at least one applied input branch 2232 are all communicatively connected.

[0088] At least one input branch 2232 corresponds to an input direction.

[0089] Selection subunit 2231 is used to select a target application input branch from at least one application input branch 2232 to apply an input acquisition signal in response to the application input direction indicated by the signal application input command, so as to obtain the application input signal.

[0090] In this embodiment, at least one application input branch 2232 includes the following six application input branches: The first input branch is used to amplify the acquired signal. The first input branch is adjusted according to a fixed adjustment coefficient or a fixed change amount.

[0091] For example, a fixed adjustment factor of 1.2 means multiplying the acquired signal value by 1.2 to obtain an applied input signal that is increased by 20%; a fixed change of 0.5V means adding 0.5V to the acquired signal value to obtain an applied input signal that is increased by 0.5V. This applied input branch corresponds to the signal-to-weight ratio operation, used to simulate fault scenarios where the sensor signal is abnormally large.

[0092] The second input branch is used to reduce the acquired signal. The second input branch is adjusted according to a fixed adjustment coefficient or a fixed change amount.

[0093] For example, a fixed adjustment factor of 0.8 means multiplying the acquired signal value by 0.8 to obtain an applied input signal reduced by 20%; a fixed change of -0.5V means subtracting 0.5V from the acquired signal value to obtain an applied input signal reduced by 0.5V. This applied input branch corresponds to the signal-to-low operation, used to simulate fault scenarios where the sensor signal is abnormally low.

[0094] The third input branch is used to change the polarity of the acquired signal.

[0095] For example, the value of the acquired signal can be inverted, changing positive polarity to negative polarity and vice versa. This polarity reversal operation applied to the input branch is used to simulate a fault scenario where the sensor signal is reversed.

[0096] The fourth input branch is used to change the acquired signal into the expected value of the acquired signal.

[0097] Optionally, the aforementioned expected value can be any preset value, specified by a signal application input command. This application input branch corresponds to an arbitrary expected value injection operation, used to simulate a fault scenario where the sensor signal is replaced with a specific value.

[0098] The fifth input branch is used to pause the transmission of the acquired signal to the target controller for a period of time. During this period, the target controller does not receive any valid signal, which is equivalent to the sensor signal being lost. This input branch corresponds to signal interruption or stagnation operations and is used to simulate fault scenarios such as intermittent interruption or prolonged stagnation of the sensor signal.

[0099] The sixth input branch is used to maintain the original value of the acquired signal. This input branch corresponds to a signal pass-through operation, meaning the sensor signal passes through as is without any applied input, and is used to test the baseline state or verify the signal link connectivity.

[0100] The above six input branches cover more than 10 abnormal or fault modes. Combined with the multi-channel selection mechanism of the selection subunit 2231, a single input operation can simultaneously drive the coordinated response and closed-loop feedback verification at the component level, system level and vehicle level.

[0101] Figure 5 This is a schematic diagram illustrating the architecture of a sensor signal application input system according to an embodiment of this application. Figure 5 As shown, the sensor signal input system includes a sensor signal input device 200, a host computer 300, and an adapter box BOB400.

[0102] The signal transfer box BOB 400 is connected in series between the target controller and at least one sensor. The target sensor signal application input module 220 in the sensor signal application input device 200 is indirectly connected between the target sensor and the target controller by being connected to the target sensor path. The target sensor path is the sensor forwarding path from the target sensor to the target controller in the signal transfer box BOB 400.

[0103] The host computer 300 is communicatively connected to the virtual controller 210 in the sensor signal input device 200.

[0104] The host computer 300 is used to send an input instruction for the acquisition signal to the virtual controller 210, so that the virtual controller 210 controls the target sensor signal application input module 220 to apply the input acquisition signal based on the input instruction.

[0105] In one possible implementation, the input indication includes an initial input application time, an initial input application value, and a timing curve of the input application value variation. The initial input application time specifies when the input to the acquired signal begins, the initial input application value specifies the initial value at the start of the input application, and the timing curve of the input application value variation specifies the pattern of the input application value changing over time. For example, the timing curve of the input application value variation could be a ramp curve that gradually rises from the initial input application value to the target input application value, used to simulate a fault scenario where the sensor signal gradually drifts; or it could be a sine curve that periodically fluctuates between the initial input application value and the target input application value, used to simulate a fault scenario where the sensor signal oscillates periodically.

[0106] The host computer 300 is also used to observe whether the abnormal response of the target controller to the applied input signal of the acquired signal matches the expected abnormal response. The expected abnormal response includes: issuing an abnormal fault code, and executing the abnormal handling according to the abnormal handling scheme corresponding to the abnormal fault code.

[0107] For example, when an excessively large input is applied to the accelerator pedal position sensor signal, the target controller should detect the abnormal accelerator pedal signal, issue the corresponding fault code, and execute a power limiting or speed limiting protection strategy according to the abnormality handling plan.

[0108] The host computer 300 reads the fault codes and vehicle status signals sent by the target controller through the CAN bus or other vehicle communication buses to determine whether the actual abnormal response is consistent with the expectation.

[0109] The host computer 300 is also used to restore the applied input signal to the acquisition signal and observe whether the abnormal release response of the target controller meets the expected abnormal release response.

[0110] The expected response to resolve the anomaly includes: clearing the anomaly fault code and performing the anomaly exit process according to the anomaly rollback plan corresponding to the anomaly fault code.

[0111] Based on the first result of whether the abnormal response matches the expected abnormal response and the second result of whether the abnormal resolution response matches the expected abnormal resolution response, the actual vehicle test results of the target controller are generated. If both the abnormal response and the abnormal resolution response meet the expectations, it indicates that the target controller has passed the test for fault diagnosis and fault recovery functions of the sensor signal; otherwise, it indicates that there is a defect in the fault diagnosis logic or a lack of fault recovery mechanism, which requires further location and repair.

[0112] The complete closed loop described above, from input injection, abnormal response observation, abnormal resolution verification to test result generation, enables automated testing of the target controller's fault diagnosis and fault recovery functions, significantly improving testing efficiency and accuracy.

[0113] Figure 6 This is a schematic diagram of the architecture of another sensor signal application input system shown in the embodiments of this application, corresponding to the overall technical solution of the second aspect of this application.

[0114] like Figure 6 As shown, the system includes a vehicle 100, a BOB 400, a target controller 600, a rapid control prototype device 603, and a host computer 300, wherein: Vehicle 100: Equipped with an automotive-grade 12V battery, providing a stable onboard 12V power supply for the entire testing system.

[0115] The BOB 400 is a non-destructive physical adapter tooling whose core function is: Provides physical transfer channels and electrical connection paths; the sensor forwarding path (i.e., target sensor 601) from the target sensor 601 to the target controller 600 in the original vehicle wiring harness is led out to the external interface through connectors / terminals, so that the target sensor signal application input module 220 can be connected through the external interface of BOB 400, thereby indirectly connecting between the target sensor and the target controller.

[0116] After the test is completed, unplug the BOB 400 and plug the original connectors at both ends of the vehicle directly to restore the original state.

[0117] Rapid control prototype device 200: namely, the sensor signal application input device described in this application, with a built-in "online application input" function module, including a virtual controller 210 and at least one sensor signal application input module 220.

[0118] The host computer 300 is equipped with online monitoring software, Simulink simulation software, and serial communication monitoring software. It is used to send input instructions to the rapid control prototype device 200 and observe the response of the sensor signals to the input.

[0119] The specific connection relationships are as follows: The vehicle 100's automotive-grade 12V battery is connected to the power input interface of the rapid control prototype device 200 via a power cable, providing a 12V power supply to the rapid control prototype device 200 and avoiding reliance on external power supply equipment.

[0120] The input indication includes the initial input application time, the initial input application value, and the timing curve of the input application value change.

[0121] Signal Link: The output signal of the target sensor is connected in series via the original vehicle wiring harness through the plug-and-play BOB 400. The target sensor signal application input module 220 in the rapid control prototype device 200 is connected through the target sensor path in the BOB 400, thus indirectly connecting between the target sensor and the sensor signal application input. The signal flow is: Target sensor – BOB 400 – Rapid control prototype device 200 – BOB 400 – Sensor signal application input.

[0122] Upper computer communication: The upper computer 300 communicates with the virtual controller 210 of the rapid control prototype device 200 via an Ethernet cable. The upper computer 300 sends an input instruction for the acquisition signal to the virtual controller 210. The virtual controller 210 controls the target sensor signal application input module 220 to apply the input acquisition signal based on the input instruction.

[0123] Bus Network 603: Enables rapid control of prototype device 200 and its connection to various vehicle buses within the original vehicle network. CAN / CANFD bus, connected to serial link type loads; LIN bus, connected to non-destructive serial channel type loads; The AUTOSAR serial link connects to the remaining bus network and gateway software.

[0124] The aforementioned bus is connected to various sensors (sensor 1, sensor 2, ..., sensor N), various actuators (actuator 1, actuator 2, ..., actuator n), and other remaining on-board nodes.

[0125] Software functional division of labor: Simulink simulation software: used to build signal processing models in a graphical environment, automatically generate target programs and monitoring and tracking files through one-click compilation, and download them to the rapid control prototype device 200; Online monitoring software: used to observe the abnormal response of sensor signals to the applied input signal in real time, and determine whether it meets the expected abnormal response; Serial communication monitoring software: used to observe the abnormal release response of sensor signals after the applied input signal recovers to the acquired signal, and generate real vehicle test results of sensor signal input based on the two-dimensional results of abnormal response and abnormal release response.

[0126] Figure 7 This is a schematic flowchart illustrating a sensor signal input method according to an embodiment of this application. Figure 7 As shown, the method includes the following steps: S701. When the target sensor signal application input module is connected in series between the target sensor and the target controller, a signal application input command is sent to the target sensor signal application input module.

[0127] Specifically, input commands are applied by sending signals through a virtual controller.

[0128] The virtual controller is communicatively connected to at least one sensor signal application input module. When the target sensor signal application input module is connected in series between the target sensor and the target controller, the virtual controller sends a signal application input command to the target sensor signal application input module.

[0129] For example, before sending a signal application input command to the target sensor signal application input module, the virtual controller first obtains the online status information of the target sensor signal application input module. The online status information includes at least one of the following: whether the target sensor signal application input module is powered on, whether it has completed self-test, whether it is in a communicable state, and whether it has been physically connected to the target sensor path.

[0130] When the target sensor signal application input module is in a communicable state and has been physically connected to the target sensor path, the virtual controller executes the step of sending a signal application input command to the target sensor signal application input module; when the target sensor signal application input module is not in a communicable state or is not connected to the target sensor path, the virtual controller feeds back a ready message to the host computer, which then notifies the test personnel through an alarm or alert.

[0131] It should be understood that the signal application input command is generated by the virtual controller in response to the application input indication issued by the host computer. The application input indication includes the initial application input time, the initial application input value, and the timing curve of the application input value change. The virtual controller generates the corresponding signal application input command according to the initial application input time, the initial application input value, and the timing curve of the application input value change, and sends it to the target sensor signal application input module. The encapsulation format of the signal application input command includes at least one of the following: target sensor identification field, application input direction field, application input parameter field, application input effective time field, and application input duration field.

[0132] For example, in a batch testing scenario where multiple sensor signals are simultaneously applied to the vehicle, the virtual controller communicates with multiple sensor signal application input modules. The application input instructions issued by the host computer include parallel test parameters for multiple target sensors. The virtual controller generates corresponding signal application input instructions for each target sensor and sends them to the corresponding target sensor signal application input modules according to the target sensor identification field. Multiple target sensor signal application input modules work in parallel without interfering with each other, achieving multi-channel synchronous input application.

[0133] S702. Apply the input signal according to the signal input command, and apply the raw signal collected by the input target sensor to obtain the applied input signal.

[0134] Specifically, the target sensor signal application input module receives a signal application input command, and performs application input processing on the raw signal collected by the target sensor according to the application input direction and application input parameters indicated in the signal application input command, to obtain the application input signal.

[0135] Input processing can include signal value modification and signal polarity reversal operations. In signal value modification, the original sensor signal value is multiplied by a target coefficient or added to a target offset to obtain a modified sensor signal, which is then used as the input signal. Signal value modification operations include signal enlargement (target coefficient greater than 1 or target offset greater than 0) and signal decrement (target coefficient less than 1 or target offset less than 0). In signal polarity reversal, the original sensor signal value is inverted to obtain a polarity-reversed sensor signal, which is then used as the input signal.

[0136] The input processing may also include signal timing control operations. In the signal timing control operations, signal forwarding to the target controller is stopped during the target time period, so that the applied input signal is an empty signal during the target time period.

[0137] The input processing may also include a signal source replacement operation. In the signal source replacement operation, the connection between the acquisition interface and the output interface is disconnected, and a preset expected value is sent to the output interface to use the preset expected value as the applied input signal.

[0138] The aforementioned preset expected values ​​are fixed values ​​or waveforms pre-stored in the internal memory of the target sensor signal application input module, used to replace the original sensor signal output during signal source replacement operations. These preset expected values ​​are configured in advance by the tester via a virtual controller or host computer and sent to the internal memory of the target sensor signal application input module, based on the target controller's target control strategy, the type of target sensor, the nominal output range of the target sensor, and the fault injection requirements of the current test scenario.

[0139] Specifically, the preset expected value can be a fixed constant value, a sequence of discrete data points arranged in a time series, or a fixed waveform that is cyclically output according to a predetermined period. In the signal source replacement operation, the target sensor signal application input module continuously sends the preset expected value to the output interface within the target time period, so that the target controller always receives a stable, independent test signal that is unrelated to the original signal within the target time period.

[0140] For example, for analog voltage signal type sensors, the preset expected value can be a fixed voltage value (e.g., 2.5V, corresponding to the middle range of the signal acquired by the target controller), or a series of voltages that rise or fall in a stepwise manner; for digital level signal type sensors, the preset expected value can be a fixed high level value or a fixed low level value; for frequency signal type sensors, the preset expected value can be a fixed frequency value; for pulse width modulation signal type sensors, the preset expected value can be a fixed duty cycle value; for SENT protocol signal or PSI5 protocol signal type sensors, the preset expected value can be a fixed data frame encapsulated according to the protocol frame format.

[0141] It should be understood that the setting of preset expected values ​​is closely related to the diagnostic strategy of the target controller. For example, the target controller often has preset reasonable value ranges, abnormal thresholds, and fault judgment logic for various sensor signal types. When the target controller continuously receives preset expected values ​​within a target time period, it triggers corresponding fault diagnosis logic (such as illuminating the fault indicator light, entering limp mode, reducing power, or limiting the maximum vehicle speed) based on the deviation between the preset expected value and the original signal, the degree to which it exceeds the preset threshold, and the duration of the error. This achieves automated testing of the target controller's fault diagnosis function.

[0142] Furthermore, the preset expected value can also be a set of test waveforms with a time-series variation pattern, such as at least one of step signals, ramp signals, square wave signals, sine wave signals, and triangular wave signals. By setting the preset expected value to different test waveforms, various signal anomaly scenarios of the target sensor during actual vehicle operation can be simulated (such as step jumps in sensor output signals, signal drift, signal distortion, signal jamming, etc.), thereby more comprehensively covering the fault diagnosis and fault recovery test cases of the target controller.

[0143] Furthermore, the preset expected value setting can also include a set of feature point values ​​that match the target control strategy of the target controller. For example, for a target controller corresponding to the accelerator pedal position sensor (such as an engine control unit EMS), the preset expected value can include the voltage value corresponding to idle condition (typically 0.5V), the voltage value corresponding to partial load condition (typically 1.5V), and the voltage value corresponding to full load condition (typically 4.5V), which are used to test the response characteristics of the target controller in different load ranges.

[0144] For example, the selection subunit inside the target sensor signal application input module, in response to the application input direction indicated by the signal application input command, selects the target application input branch from at least one application input branch, and the target application input branch performs the corresponding application input processing. A signal too large operation corresponds to the first application input branch, a signal too small operation corresponds to the second application input branch, a signal polarity reversal operation corresponds to the third application input branch, a signal source replacement operation corresponds to the fourth application input branch, a signal timing control operation corresponds to the fifth application input branch, and a signal pass-through operation corresponds to the sixth application input branch.

[0145] For example, for analog voltage signals, the input direction can include: voltage boost (adding a fixed change upward to the original voltage value), voltage depress (adding a fixed change downward to the original voltage value), voltage scaling (multiplying the original voltage value by a fixed adjustment factor), voltage reversal (inverting the original voltage value), voltage clamping (clamping the original voltage value to a preset expected value), voltage freezing (keeping the voltage value at the value at the freezing moment for a target time period), and voltage interruption (setting the voltage value to zero or to a high impedance state for a target time period).

[0146] For example, for a frequency signal, the input direction can include: frequency boost (multiplying the original frequency by a coefficient greater than 1), frequency down (multiplying the original frequency by a coefficient less than 1), frequency inversion (inverting the phase of the original frequency by 180 degrees), frequency clamping (replacing the frequency value with a preset expected value), frequency freezing (keeping the frequency unchanged for a target time period), and frequency interruption (stopping the output of frequency pulses for a target time period).

[0147] It should be understood that the input processing of the target sensor signal application module is performed in real time under the dynamic operating conditions of the actual vehicle. The processing delay is controlled at the microsecond level to ensure that the time delay of the applied input signal relative to the original signal will not have a perceptible impact on the real-time control closed loop of the vehicle. The input processing process does not interrupt the electrical connection between the target sensor signal application module and the target controller, and the target controller can always receive a continuous signal stream.

[0148] S703: The input signal is sent to the target controller to perform a real-vehicle operation test on the target sensor.

[0149] Specifically, the target sensor signal application input module sends the applied input signal to the target controller. The target controller executes the corresponding control logic based on the applied input signal, thereby realizing the operation test of the target sensor under the dynamic driving state of the actual vehicle.

[0150] For example, the applied input signal enters the original vehicle wiring harness through the second interface of the target sensor signal application input module and is transmitted along the original vehicle wiring harness to the corresponding input port of the target controller. The target controller performs a conventional signal processing procedure (denoising / filtering / amplification / analog-to-digital conversion / control algorithm calculation) on the applied input signal, and generates corresponding control commands based on the feature values ​​of the applied input signal, which are then sent to the corresponding actuators (accelerator / brake / steering / display / alarm, etc.), thereby completing the injection test of the target sensor fault scenario under the dynamic driving state of the actual vehicle.

[0151] It should be understood that when this method is applied to batch testing scenarios involving simultaneous input of multiple sensor signals to a vehicle, the virtual controller communicates with multiple sensor signal input modules. The host computer sends input instructions containing multiple target sensors to the virtual controller, which then sends corresponding signal input instructions to each target sensor signal input module. The selection subunit in each target sensor signal input module selects the corresponding target input branch from at least one input branch to apply its corresponding acquired signal, based on the input direction indicated by its received signal input instruction. Multiple sensor signal input modules operate in parallel without interference, enabling batch testing with simultaneous input of multiple sensor signals.

[0152] Furthermore, the method may also include: observing whether the abnormal response of the target controller to the applied input signal conforms to the expected abnormal response through a host computer; restoring the applied input signal to the original signal through a host computer and observing whether the abnormal release response of the target controller conforms to the expected abnormal release response; and generating the actual vehicle test results of the target controller based on the first result of whether the abnormal response conforms to the expected abnormal response and the second result of whether the abnormal release response conforms to the expected abnormal release response.

[0153] Furthermore, the method may further include: performing signal conditioning operations on the acquired signal in the target sensor signal input module before applying the input, wherein the signal conditioning operations include at least one of noise reduction, filtering, amplification, and analog-to-digital conversion. The signal conditioning operations may be performed by at least one of the first interface, the second interface, or the target sensor signal input unit.

[0154] Furthermore, the method may also include: after the actual vehicle test is completed, controlling the target sensor signal application input module to restore the output of the second interface to the pass-through mode, so that the original signal is directly transmitted to the target controller without the application input, thereby restoring the normal operation state of the target controller.

[0155] Figure 8 This is a schematic diagram showing the connection before and after an example of applying an input operation principle, as illustrated in an embodiment of this application.

[0156] like Figure 8 As shown, Figure 8 The upper part is the raw signal link without an input application mechanism. Figure 8 The lower half is the modified signal link after the input mechanism is applied.

[0157] In the original signal link, the sensor is connected to the source controller via three wire harnesses: the first solid line from top to bottom corresponds to the 5V power supply line, which provides 5V power to the sensor from the source controller; the second solid line corresponds to the signal ground line, which provides a common reference ground for the sensor and the source controller; the dashed line corresponds to the acquisition signal line, which the sensor converts the acquired physical quantity into an electrical signal and sends it to the source controller along this line.

[0158] The source controller is internally connected to multiple electronic control units ECU1, ECU2, ECU3 and ECU4. Each ECU extracts the corresponding sensor data from the acquired signals and executes the corresponding control logic according to its own functional requirements.

[0159] In the signal chain after input is applied, a target sensor signal application input module is connected in series between the sensor and the source controller. This module contains: a first interface, a virtual switch for the input channel, and a second interface.

[0160] Specifically, the first interface integrates an input channel parameter configuration submodule.

[0161] One end of the first interface is connected to the output port of the target sensor through the original vehicle wiring harness, receiving three lines from the sensor: 5V power, signal ground, and acquisition signal.

[0162] After the acquisition signal line enters the first interface, the input channel parameter configuration submodule performs signal preprocessing operations, including but not limited to: channel gain configuration, setting the corresponding input gain coefficient according to the signal type of the target sensor (analog voltage signal, digital level signal, pulse width modulation signal, frequency signal, or resistance signal) to make the amplitude of the acquired signal match the working voltage range of the virtual switch of the input channel applied subsequently; filter parameter configuration, setting the low-pass filter cutoff frequency according to the signal bandwidth of the target sensor to suppress high-frequency noise interference; and sampling rate configuration, setting the analog-to-digital conversion sampling rate according to the signal change rate of the target sensor to ensure that the acquired signal is not distorted in the time domain.

[0163] The acquired signal, preprocessed by the input channel parameter configuration submodule of the first interface, enters the virtual switch of the applied input channel in the form of a dashed line. The virtual switch of the applied input channel is a single-pole multi-throw virtual switch, with five applied input branches leading out in parallel on its input side, from top to bottom: channel selection, signal overshoot, signal undershoot, signal discontinuity, and expected value. Each applied input branch corresponds to an applied input operation type, wherein: Channel selection branch: Corresponding to the sixth input application branch, the acquired signal is transmitted directly with the original value without any input application. It is used to quickly switch to the baseline state during the test to verify the signal link connectivity. Signal Too Large Branch: Corresponding to the first applied input branch, the value of the acquired signal is increased by a fixed adjustment coefficient or a fixed change amount to simulate a fault scenario where the sensor signal is abnormally large. Signal Too Low Branch: Corresponding to the second applied input branch, the value of the acquired signal is reduced by a fixed adjustment coefficient or a fixed change amount to simulate a fault scenario where the sensor signal is abnormally low. Signal Discontinuity Branch: Corresponding to the fifth input branch, the transmission of the acquired signal is stopped within the target time period, so that the output signal is an empty signal or a frozen signal, which is used to simulate the fault scenario of intermittent interruption or stagnation of sensor signal; Expected value branch: Corresponding to the fourth input branch, the acquired signal is replaced with a preset expected value, so that the output signal is completely decoupled from the actual acquired value of the sensor, which is used to simulate the fault scenario where the sensor signal is replaced by an arbitrary value.

[0164] The contacts of the virtual switch for applying input channels are labeled 1, 2, 3, 4, and 5 from top to bottom, corresponding to the five input application branches mentioned above. The moving terminal of the virtual switch connects to the corresponding contact according to the input direction indicated in the signal input instruction, selecting the appropriate input branch to perform the input processing. Contact 1 corresponds to channel selection, contact 2 to signal overshoot, contact 3 to signal undershoot, contact 4 to signal intermittent, and contact 5 to the expected value. The virtual switch connects only one contact at a time, meaning each input operation executes only one input direction.

[0165] The applied input signal, after being processed by the virtual switch of the applied input channel, enters the second interface in the form of a blue dashed line.

[0166] The second interface integrates an output channel parameter configuration submodule. This submodule performs output drive processing on the applied input signal, including but not limited to: output gain configuration, setting the corresponding output gain coefficient according to the target controller's input signal range to ensure the amplitude of the applied input signal matches the output characteristics of the original vehicle sensor; output impedance configuration, adjusting the output impedance to match the output impedance of the original vehicle sensor to ensure no waveform distortion occurs during transmission of the applied input signal to the target controller; and signal shaping configuration, shaping the rising edge, falling edge, and overshoot of the applied input signal to ensure its waveform electrical characteristics are consistent with the original vehicle sensor.

[0167] The output of the second interface is connected to the input port of the source controller via the original vehicle wiring harness.

[0168] The applied input signal, after being processed by the output channel parameter configuration submodule, is... Figure 8 The simulated signal, marked by a dashed line, forms a complete signal loop together with the original signal ground wire inside the source controller and is sent to the source controller. ECU1, ECU2, ECU3, and ECU4 inside the source controller execute corresponding control logic based on the simulated signal, thereby realizing fault injection testing of the target sensor under the dynamic driving state of the actual vehicle.

[0169] It should be noted that after the input is applied, the 5V power line and the signal ground line in the signal link still maintain their original connection relationship. That is, the sensor is still powered by the source controller, and the signal ground is still shared with the source controller. The input application mechanism only intervenes in the acquisition signal line and does not have any impact on the power supply and grounding loop.

[0170] Based on the above technical means, the design of interfering only with the signal line and not with the power supply and ground ensures that the target sensor is always in normal working condition throughout the test process, and its electrical characteristics are completely consistent with the original vehicle. The target controller cannot detect the existence of the applied input module from the power supply characteristics or grounding characteristics, and truly achieves non-destructive transparent access.

[0171] Figure 9 This is a block diagram illustrating an electronic device according to an embodiment of this application. Figure 8 As shown, the electronic device includes, but is not limited to, a processor 901 and a memory 902.

[0172] The memory 902 described above is used to store the executable instructions of the processor 901. It is understood that the processor 901 is configured to execute instructions to implement the sensor signal input application method in the above embodiments.

[0173] It should be noted that those skilled in the art will understand that Figure 9 The electronic device structure shown does not constitute a limitation on the electronic device; the electronic device may include, but is not limited to, other electronic devices. Figure 9 This may indicate more or fewer components, or a combination of certain components, or a different arrangement of components.

[0174] Processor 901 is the control center of the electronic device. It connects various parts of the electronic device via various interfaces and lines. By running or executing software programs and / or modules stored in memory 902, and by calling data stored in memory 902, it performs various functions and processes data, thereby providing overall monitoring of the electronic device. Processor 901 may include one or more processing units. Processor 901 may integrate an application processor and a modem processor. The application processor mainly handles the operating system, user interface, and applications, while the modem processor mainly handles wireless communication. It is understood that the modem processor may not be integrated into processor 901.

[0175] The memory 902 can be used to store software programs and various data. The memory 902 may primarily include a program storage area and a data storage area. The program storage area may store the operating system, application programs required by at least one functional module (such as deterministic components, integrated components, etc.), etc. Furthermore, the memory 902 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device.

[0176] In an exemplary embodiment, a computer-readable storage medium including instructions is also provided, such as a memory 902 including instructions, which can be executed by a processor 901 of an electronic device to implement the methods in the above embodiments.

[0177] Optionally, the computer-readable storage medium may be a non-transitory computer-readable storage medium, such as a read-only memory (ROM), random access memory (RAM), compact disc read-only memory (CD-ROM), magnetic tape, floppy disk, and optical data storage device. In an exemplary embodiment, this application also provides a computer program product including one or more instructions, which can be executed by a processor 901 of an electronic device to perform the methods in the above embodiments.

[0178] It should be noted that when one or more instructions in the computer-readable storage medium or computer program product are executed by the processor of an electronic device, they implement the various processes of the above method embodiments and achieve the same technical effect as the above method. To avoid repetition, they will not be described again here.

[0179] Through the above description of the embodiments, those skilled in the art can clearly understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0180] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another apparatus, or some features may be ignored or not executed. Furthermore, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.

[0181] The units described as separate components may or may not be physically separate. A component shown as a unit can be one or more physical units; that is, it can be located in one place or distributed in multiple different locations. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0182] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0183] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solutions of the embodiments of this application, essentially, or the parts that contribute to the prior art, or all or part of the technical solutions, can be embodied in the form of a software product. This software product is stored in a storage medium and includes several instructions to cause a device (which may be a microcontroller, chip, etc.) or processor to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, ROM, RAM, magnetic disks, or optical disks.

[0184] This application provides a computer program product containing instructions that, when run on a computer, cause the computer to perform the methods described in the above method embodiments.

[0185] This application also provides a computer-readable storage medium storing instructions that, when executed on a computer, cause the computer to perform the method in the method flow shown in the above method embodiments.

[0186] The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of computer-readable storage media (a non-exhaustive list) include: an electrical connection having one or more wires, a portable computer disk, a hard disk, a random access memory, a read-only memory, an erasable programmable read-only memory, a register, a hard disk, an optical fiber, a portable compact disk read-only memory, an optical storage device, a magnetic storage device, or any suitable combination thereof, or any other form of computer-readable storage medium known in the art. An exemplary storage medium is coupled to a processor, enabling the processor to read information from and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can reside in an application-specific integrated circuit (ASIC). In embodiments of this application, the computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.

[0187] Since the sensor signal application input device, computer-readable storage medium, and computer program product in the embodiments of this application can be applied to the above method, the technical effects that can be obtained can also be referred to the above method embodiments. The embodiments of this application will not be repeated here.

[0188] The above are merely specific embodiments of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A sensor signal input device, characterized in that, The sensor signal application input device includes: a virtual controller, and at least one sensor signal application input module corresponding to at least one sensor of the target controller in the vehicle; the virtual controller and the at least one sensor signal application input module are communicatively connected. The virtual controller is configured to send a signal application input command to the target sensor signal application input module when the target sensor signal application input module is connected between the target sensor and the target controller; wherein the target sensor signal application input module is one of the at least one sensor signal application input module; and the target sensor is the sensor corresponding to the target sensor signal application input module. The target sensor signal input module is used to apply the acquisition signal sent by the target sensor to the target controller in response to the signal input command, so as to perform real vehicle operation test on the target sensor.

2. The sensor signal application input device according to claim 1, characterized in that, The target sensor signal application input module includes: a first interface connected to the target sensor, a second interface connected to the target controller, and a target sensor signal application input unit; The first interface is used to send the acquired signal from the target sensor to the target sensor signal application input unit. The target sensor signal application input unit is used to apply the acquired signal in response to the signal application input command to obtain the applied input signal; The second interface is used to send the applied input signal to the target controller.

3. The sensor signal application input device according to claim 2, characterized in that, The target sensor signal application input unit includes: a selection subunit and at least one application input branch; the selection subunit and the at least one application input branch are communicatively connected; each of the at least one application input branch corresponds to an application input direction; The selection subunit is configured to select a target input branch from the at least one input branch and apply the acquired signal to the input branch in response to the input direction indicated by the signal input instruction, thereby obtaining an input signal.

4. The sensor signal application input device according to claim 3, characterized in that, The at least one applied input branch includes: a first applied input branch for increasing the acquired signal, and a second applied input branch for decreasing the acquired signal; The first input branch and the second input branch are both adjusted according to a fixed adjustment coefficient or a fixed change amount.

5. The sensor signal application input device according to claim 3, characterized in that, The at least one applied input branch includes: a third applied input branch for changing the positive and negative polarities of the acquired signal.

6. The sensor signal application input device according to claim 3, characterized in that, The at least one applied input branch includes: a fourth applied input branch for changing the acquired signal to the expected value of the acquired signal.

7. The sensor signal application input device according to claim 3, characterized in that, The at least one applied input branch includes a fifth applied input branch for pausing the transmission of the acquired signal to the target controller for a period of time.

8. The sensor signal application input device according to claim 3, characterized in that, The at least one applied input branch includes: a sixth applied input branch for maintaining the original value of the acquired signal.

9. The sensor signal application input device according to any one of claims 2-8, characterized in that, The interface types of the first interface and the second interface are consistent with the signal types of the signals acquired by the target sensor; The signal types include one of the following: analog voltage signal, digital level signal, pulse width modulation signal, frequency signal, and resistance signal.

10. A sensor signal application input system, characterized in that, The sensor signal application input system includes a sensor signal application input device as described in any one of claims 1-9, a host computer, and a signal transfer box (BOB); the signal transfer box (BOB) is connected in series between the target controller and the at least one sensor; the target sensor signal application input module in the sensor signal application input device is indirectly connected between the target sensor and the target controller by accessing the target sensor path; wherein, the target sensor path is the sensor forwarding path from the target sensor to the target controller in the signal transfer box (BOB); the host computer is communicatively connected to the virtual controller in the sensor signal application input device. The host computer is used to send an application input instruction for the acquisition signal to the virtual controller, so that the virtual controller controls the target sensor signal application input module to apply the acquisition signal based on the application input instruction.

11. The sensor signal application input system according to claim 10, characterized in that, The input indication includes the initial input application time, the initial input application value, and the timing curve of the input application value change.

12. The sensor signal application input system according to claim 10, characterized in that, The host computer is also used for: Observe whether the abnormal response of the target controller to the applied input signal of the acquired signal conforms to the expected abnormal response; wherein, the expected abnormal response includes: issuing an abnormal fault code, and performing abnormal processing according to the abnormal processing scheme corresponding to the abnormal fault code.

13. The sensor signal application input system according to claim 12, characterized in that, The host computer is also used for: The applied input signal is restored to the acquired signal, and the abnormality resolution response of the target controller is observed to see if it matches the expected abnormality resolution response; wherein, the expected abnormality resolution response includes: clearing the abnormal fault code, and performing abnormal exit processing according to the abnormality rollback scheme corresponding to the abnormal fault code; Based on whether the abnormal response matches the expected abnormal response (first result) and whether the abnormal resolution response matches the expected abnormal resolution response (second result), the real-vehicle test results of the target controller are generated.

14. A method for applying a sensor signal input, characterized in that, The method includes: When the target sensor signal application input module is connected in series between the target sensor and the target controller, a signal application input command is sent to the target sensor signal application input module. According to the signal, an input command is applied to the original signal collected by the target sensor to obtain the applied input signal; The applied input signal is sent to the target controller to perform a real-vehicle operation test on the target sensor.

15. A vehicle, characterized in that, Includes the sensor signal application input device as described in any one of claims 1-9.