PSI5 signal simulation module

By designing the PSI5 signal simulation module to simulate the functions of automobile sensors and ECUs, the problem of difficult detection in the existing technology is solved, the quality inspection of automobile sensors and ECUs is realized, and the normal working status of the products is ensured.

CN118605218APending Publication Date: 2024-09-06BEIJING ZHONGKE FANHUA MEASUREMENT & CONTROL TECH CO LTD +1
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410701064.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-31
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

It is difficult to simulate the functions of automobile sensors and ECU at the same time with existing technology, which makes the detection of automobile sensors and ECU more difficult and affects the working status of antifreeze.

Method used

A PSI5 signal simulation module is designed, including a power module, a control module, a sensor module and an ECU module. These modules can simulate sensor signals and ECU functions in asynchronous and synchronous modes to achieve quality detection of automotive sensors and ECUs.

Benefits of technology

It realizes the functional testing of automotive sensors and ECUs, ensures the quality of factory products, and avoids data inaccuracies caused by sensor and ECU failures.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118605218A
    Figure CN118605218A
Patent Text Reader

Abstract

The invention relates to a PSI5 signal simulation module which comprises a power module, a control module, a sensor module, an ECU module and a communication module. The power supply module is used for converting an accessed power supply into various voltages for power supply; the sensor module is connected with the control module, and is used for simulating a sensor function under the control of the control module, simulating and outputting various sensor signals in an asynchronous mode, and identifying and simulating various sensor signals in a synchronous mode according to synchronous pulses and outputting the various sensor signals; the ECU module is connected with the control module, is used for simulating ECU functions under the control of the control module, is used for providing power supply voltage and synchronous pulses with adjustable amplitude and pulse width for the sensor, and is also used for receiving sensor data, converting the sensor data into physical quantity values and outputting the physical quantity values; and the control module communicates with an external main control computer and a simulation computer through the communication module. According to the invention, various automobile sensors and ECUs can be simulated conveniently, so that the quality of the automobile sensors and ECUs which leave the factory can be detected.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of simulation testing technology, and in particular to a PSI5 signal simulation module. Background Art

[0002] The PSI5 (peripheral sensor interface) protocol is an open standard based on an existing sensor interface for peripheral airbag sensors that has been proven in millions of airbag systems. The data from this sensor can be transmitted both synchronously and asynchronously via a two-wire interface. The technical characteristics and low implementation cost of the PSI5 communication protocol make it equally suitable for many other automotive sensor applications.

[0003] Automobile sensors and electronic control units (ECUs) are very important components of automobiles, and the two are closely related. Among them, automobile sensors are used to collect various parameter data, such as engine speed, oxygen content, fuel pressure, etc. ECU controls and makes decisions based on these data. If the automobile sensor fails due to damage, poor contact or signal interruption, the data received by the ECU will be inaccurate or wrong, which will affect the working status of the antifreeze. Therefore, it is very important to ensure the normal operation of automobile sensors and ECUs.

[0004] In order to facilitate automobile manufacturers to test the automobile sensors and ECUs they produce, there is an urgent need for a simulation module that can simulate automobile sensors and ECUs at the same time. Summary of the invention

[0005] In order to facilitate the simulation of automobile sensors and ECUs, the present application provides a PSI5 signal simulation module.

[0006] The present application provides a PSI5 signal simulation module, which adopts the following technical solution: A PSI5 signal simulation module, comprising a power module, a control module, a sensor module, an ECU module and a communication module; The power module is used to convert the connected power supply into multiple voltages to provide power; The sensor module is connected to the control module, and is used to simulate the sensor function under the control of the control module, to simulate and output multiple sensor signals in an asynchronous mode, and to recognize the synchronous pulse in a synchronous mode and simulate and output multiple sensor signals; The ECU module is connected to the control module, and is used to simulate the ECU function under the control of the control module, to provide the sensor with a power supply voltage and a synchronous pulse with adjustable amplitude and pulse width, and to receive sensor data, convert the sensor data into a physical quantity value, and output it; The control module communicates with the external main control computer and the simulation computer through the communication module.

[0007] By adopting the above technical solution, the sensor module can simulate the function of the automobile sensor, thereby realizing the detection of the function of the ECU. The ECU module can simulate the function of the ECU, thereby realizing the detection of the function of the automobile sensor and performing quality inspection on the automobile sensors and ECUs leaving the factory.

[0008] Optionally, the sensor module includes a synchronous pulse identification submodule and a current signal setting submodule; The synchronization pulse identification submodule is used to receive the synchronization pulse signal sent by the ECU, identify the synchronization pulse signal, and output a trigger signal when the synchronization pulse signal is identified; The control module is connected to the synchronization pulse identification submodule and is used to output a control signal when receiving the trigger signal; The current signal setting submodule is connected to the control module and is used to output current modulation signals of different amplitudes to simulate sensor signals when receiving different control signals.

[0009] Optionally, the current signal setting submodule includes six constant current tubes with different amplitudes and six switch tubes; The cathode of each constant current tube is connected to the output end of a switch tube, the control end of each switch tube is connected to the control module, the anodes of all constant current tubes are connected together as the output positive electrode, and the input ends of all switch tubes are connected together as the output negative electrode.

[0010] Optionally, the switching tube is a triode of model MMBT3904.

[0011] Optionally, the synchronization pulse identification submodule includes a sampling unit, a synchronization threshold setting unit and a comparator; The sampling unit is used to sample the PSI5 interface voltage and output a voltage sampling signal; The synchronization threshold setting unit is connected to the sampling unit, and is used to calculate the sum of the sampling value of the PSI5 interface voltage and the preset voltage threshold when receiving the voltage sampling signal, and output a synchronization threshold voltage, wherein the voltage threshold is a voltage threshold obtained by matching according to the PSI5 interface model; The comparator is connected to the synchronization threshold setting unit, and is used for comparing the synchronization threshold voltage with the PSI5 interface voltage, and outputting a trigger signal when the PSI5 interface voltage is greater than the synchronization threshold voltage.

[0012] Optionally, the synchronization threshold setting unit includes a controller and a D / A converter; The controller is connected to the sampling unit, and is used to match the voltage threshold according to the PSI5 interface model, and is used to calculate and output the sum of the sampling value of the PSI5 interface voltage and the voltage threshold when receiving the voltage sampling signal; The D / A converter is connected to the controller, and is used to convert the sum of the sampling value of the PSI5 interface voltage and the voltage threshold into an analog quantity, and output a synchronization threshold voltage.

[0013] Optionally, the controller is the control module.

[0014] Optionally, the ECU module includes a PSI5 transceiver chip; The PSI5 transceiver chip is used to support 2 PSI channels, to decode received sensor signals, to generate synchronization pulse signals for use in the PSI5 sensor synchronization mode, and to automatically parse sensor data frames.

[0015] Optionally, a filtering circuit is provided on the PSI channel of the PSI5 transceiver chip; The filtering circuit includes a first capacitor, a second capacitor and a filtering resistor, one end of the filtering resistor is connected to the PSI pin of the PSI5 transceiver chip, and the other end is used to connect to an external PSI5 sensor, the first capacitor is connected to one end of the filtering resistor, the free end of the first capacitor is grounded, the second capacitor is connected to the other end of the filtering resistor, and the free end of the second capacitor is grounded.

[0016] Optionally, a filtering circuit is provided on the PSI channel of the PSI5 transceiver chip; The filtering circuit includes a first capacitor, a second capacitor and a filtering resistor, one end of the filtering resistor is connected to the PSI pin of the PSI5 transceiver chip, and the other end is used to connect to an external PSI5 sensor, the first capacitor is connected to one end of the filtering resistor, the free end of the first capacitor is grounded, the second capacitor is connected to the other end of the filtering resistor, and the free end of the second capacitor is grounded.

[0017] In summary, the present application includes at least one of the following beneficial technical effects: The sensor module can simulate the functions of the automobile sensor, so as to detect the functions of the ECU. The ECU module can simulate the functions of the ECU, so as to detect the functions of the automobile sensor and perform quality inspection on the automobile sensors and ECUs leaving the factory. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 It is a system schematic diagram of the PSI5 signal simulation module of an embodiment of the present application.

[0019] Figure 2 It is a system schematic diagram of the synchronization pulse identification submodule of an embodiment of the present application.

[0020] Figure 3 is a circuit diagram of a synchronization threshold setting unit according to an embodiment of the present application.

[0021] Figure 4 It is a system schematic diagram of the use status of the PSI5 signal simulation module in an embodiment of the present application.

[0022] Figure 5 It is a circuit diagram of the PSI5 transceiver chip of an embodiment of the present application.

[0023] Explanation of the accompanying drawings: 1. Power supply module; 2. Control module; 3. Sensor module; 31. Synchronous pulse identification submodule; 311. Sampling unit; 3111. A / D converter; 312. Synchronous threshold setting unit; 3121. D / A converter; 313. Comparator; 32. Current signal setting submodule; 4. ECU module; 41. Filtering unit; 5. Communication module. DETAILED DESCRIPTION

[0024] In order to make the purpose, technical solutions and advantages of this application more clear, the following Figure 1-5 It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0025] The embodiment of the present application discloses a PSI5 signal simulation module.

[0026] Reference Figure 1 The PSI5 signal simulation module includes a power module 1, a control module 2, a sensor module 3, an ECU module 4 and a communication module 5, which can easily simulate various automotive sensors and ECUs to perform quality inspection on factory-produced automotive sensors and ECUs.

[0027] The power module 1 is used to convert the connected power into multiple voltages to power each module. In some specific embodiments, the power module 1 may include a 12V power adapter and a 9V-32V vehicle power supply.

[0028] The sensor module 3 is connected to the control module 2, and is used to simulate the sensor function under the control of the control module 2 to detect the function of the ECU, to simulate and output multiple sensor signals in asynchronous mode, and to recognize synchronous pulses in synchronous mode to simulate and output multiple sensor signals.

[0029] The sensor module 3 includes a synchronization pulse identification submodule 31 and a current signal setting submodule 32 .

[0030] The synchronization pulse identification submodule 31 is used to receive the synchronization pulse signal sent by the ECU, identify the synchronization pulse signal, and output a trigger signal when the synchronization pulse signal is identified.

[0031] Reference Figure 1 and Figure 2 The synchronization pulse identification submodule 31 includes a sampling unit 311 , a synchronization threshold setting unit 312 and a comparator 313 .

[0032] The sampling unit 311 is used to sample the PSI5 interface voltage and output a voltage sampling signal.

[0033] In some specific embodiments, the sampling unit 311 includes a first sampling resistor R1, a second sampling resistor R2, and an A / D converter 3111. Specifically, the first sampling resistor R1 is connected in series with the second sampling resistor R2, the free end of the first sampling resistor R1 is connected to the PSI5 interface, and the free end of the second sampling resistor R2 is grounded. The A / D converter 3111 is connected to the common end of the first sampling resistor R1 and the second sampling resistor R2, and is used to sample the PSI5 interface voltage and output a voltage sampling signal. The resistance values ​​of the first sampling resistor R1 and the second sampling resistor R2 can be selected according to actual needs.

[0034] The synchronization threshold setting unit 312 is connected to the sampling unit 311, and is used to receive the voltage sampling signal, and when receiving the voltage sampling signal, calculate the sum of the sampling value of the PSI5 interface voltage and the preset voltage threshold, and output the synchronization threshold voltage. The voltage threshold is a voltage threshold obtained by matching according to the PSI5 interface model.

[0035] In some specific embodiments, the synchronization threshold setting unit 312 includes a controller and a D / A converter 3121 .

[0036] The controller is connected to the sampling unit 311, which is used to match the voltage threshold according to the PSI5 interface model, to receive the voltage sampling signal, and to calculate and output the sum of the sampling value of the PSI5 interface voltage and the voltage threshold when receiving the voltage sampling signal.

[0037] It can be understood that since there may be multiple models of ECUs that need to be tested, and the PSI5 interface voltage of each model of ECU is different, in order to be able to identify the synchronization pulse signal emitted by each model of ECU, it is necessary to match the corresponding voltage threshold according to the PSI5 interface model.

[0038] In some specific embodiments, the controller may be integrated into the control module 2 .

[0039] The D / A converter 3121 is connected to the controller, and is used to convert the sum of the sampling value of the PSI5 interface and the voltage threshold into an analog quantity, and output a synchronization threshold voltage.

[0040] The comparator 313 is connected to the D / A converter 3121 and the PSI5 interface respectively, and is used to compare the synchronization threshold voltage and the PSI5 interface voltage, and output a trigger signal when the PSI5 interface voltage is greater than the synchronization threshold voltage. When the PSI5 interface voltage is greater than the synchronization threshold voltage, it means that the ECU connected to the PSI5 signal simulation module has output a synchronization pulse signal. At this time, the comparator 313 recognizes the synchronization pulse signal and outputs a trigger signal. On the contrary, when the PSI5 interface voltage is less than the synchronization threshold voltage, it means that the ECU connected to the PSI5 signal simulation module has not output a synchronization pulse signal. At this time, the comparator 313 recognizes the synchronization pulse signal and does not output a trigger signal. According to the control logic set, the trigger signal can be a low-level signal or a high-level signal.

[0041] The control module 2 is connected to the synchronization pulse identification submodule 31 and is used to output a control signal when a trigger signal is received.

[0042] It is understandable that when it is recognized that the ECU connected to the PSI5 signal simulation module outputs a synchronous pulse signal, the sensor module 3 can simulate various sensors to output a modulation signal with sensor data based on the synchronous pulse signal. Among them, the control signal is used to control the current signal setting submodule 32 to output a current modulation signal.

[0043] Reference Figure 1 and Figure 3 The current signal setting submodule 32 is connected to the control module 2, and is used to receive the control signal, and is used to output current modulation signals of different amplitudes to simulate the sensor signal when receiving different control signals.

[0044] Since the PSI5 specification states the requirements for low current and sink current, namely: Low Current: Standard mode: 7mA or 14mA; Enhanced mode: 21mA or 28mA.

[0045] Sink current: Standard mode: 26mA; Low power mode: 13mA.

[0046] Among them, the high current is the sum of the low current and the sink current.

[0047] Therefore, in order to meet the requirements of low current and current sinking in the PSI5 specification, the current signal setting submodule 32 includes six constant current tubes with different amplitudes and six switch tubes. Among the six switch tubes, four switch tubes are used to set the low current, and the corresponding constant current tube output current amplitudes are 2mA, 4.5mA, 9mA and 18mA respectively. The other two switch tubes are used to set the current sinking, and the corresponding constant current tube output current amplitudes are 13mA and 26mA respectively.

[0048] Specifically, the cathode of each constant current tube is connected to the output end of a switch tube, and the control end of each switch tube is connected to the control module 2. The anodes of all constant current tubes are connected together as the output positive electrode, and the input ends of all switch tubes are connected together as the output negative electrode.

[0049] When setting a low current, one or more of the switch tubes used to set the low current are set to a high level. When setting a high current, the level state of the switch tube used to set the low current is maintained, and one of the switch tubes used to set the injection current is set to a high level.

[0050] In a specific example, if the low current needs to be set to 6.5 mA, the control end of the switch tube connected to the 2 mA constant current tube and the control end of the switch tube connected to the 4.5 mA constant current tube need to be set to a high level.

[0051] In order to meet the requirement of switch on time, the transistor MMBT3904 is selected as the switch.

[0052] In the asynchronous mode, the sensor module 3 can simulate the sensor signal by setting a current modulation signal and outputting the current modulation signal.

[0053] Reference Figure 1 and Figure 4 The ECU module 4 is connected to the control module 2 and is used to simulate the ECU function under the control of the control module 2, to provide the sensor with a power supply voltage and a synchronous pulse signal with adjustable amplitude and pulse, and to receive sensor data, convert the sensor data into physical quantity values ​​and output them.

[0054] It can be understood that when using the ECU module 4 for simulation, the PSI5 signal simulation module needs to be connected to the vehicle sensor through the port, connected to the main control computer through the PS network port, and connected to the simulation computer through the PL network port.

[0055] The working process of ECU module 4 is as follows: 1. The main control computer software configures the simulation module, combines the PSI5 bus configuration into the required data frame according to the register definition in the PSI5 transceiver chip manual, and sends it to the control module 2 through the PS LAN network port according to the communication protocol; 2. Control module 2 receives the PSI5 bus configuration information sent by the main control computer and writes the configuration information into the register of the PSI5 transceiver chip; 3. The main control computer software sends the simulation module configuration information to the control module 2; 4. Control module 2 receives the configuration information and performs configuration; 5. The main control computer software sends a start acquisition instruction to the control module 2; 6. The control module 2 receives the start acquisition instruction, opens the corresponding channel of the PSI5 transceiver chip, and supplies power to the sensor. In asynchronous mode, the output voltage is a fixed value, and in synchronous mode, the output voltage is a synchronous pulse voltage. The PSI5 transceiver chip collects sensor data and stores the data in the sensor data buffer; 7. The control module 2 reads the sensor data stored in the PSI5 transceiver chip and converts the zero-degree parameters into actual physical quantities according to the data sent by the main control computer; 8. The control module 2 sends the data to the simulation computer through the PL LAN port according to the communication protocol; 9. The main control computer software sends a stop acquisition instruction to the control module 2; 10. The control module 2 receives the stop acquisition instruction, closes the corresponding channel of the PSI5 transceiver chip, and stops sending data to the simulation computer.

[0056] Reference Figure 1 and Figure 5 Specifically, the ECU module 4 includes a PSI5 transceiver chip.

[0057] The PSI5 transceiver chip is used to support 2 PSI channels, to decode received sensor signals, to generate synchronization pulse signals for use in the PSI5 sensor synchronization mode, and to automatically parse sensor data frames.

[0058] It is understood that interference on the power supply voltage may have a negative impact on the PSI5 interface, thereby causing bit errors, so a filtering circuit is set in each PSI channel on the PSI5 transceiver chip.

[0059] The filter circuit includes a first capacitor C1, a second capacitor C2 and a filter resistor R3. One end of the filter resistor R3 is connected to the PSI pin of the PSI5 transceiver chip, and the other end is used to connect to the external PSI5 car sensor. The first capacitor C1 is connected to one end of the filter resistor R3, and the free end of the first capacitor C1 is grounded. The second capacitor C2 is connected to the other end of the filter resistor R3, and the free end of the second capacitor C2 is grounded.

[0060] The control module 2 communicates with the external host computer and the simulation computer through the communication module 5. In some specific embodiments, the control module 2 is a ZYNQ7000 FPGA chip.

[0061] The above are all preferred embodiments of the present application, and are not intended to limit the protection scope of the present application. Any feature disclosed in this specification (including the abstract and drawings), unless otherwise stated, can be replaced by other equivalent or alternative features with similar purposes. That is, unless otherwise stated, each feature is only an example of a series of equivalent or similar features.

Claims

1. A PSI5 signal simulation module, characterized in that: It comprises a power module (1), a control module (2), a sensor module (3), an ECU module (4) and a communication module (5); The power supply module (1) is used to convert the connected power supply into a plurality of voltages to supply power; The sensor module (3) is connected to the control module (2) and is used to simulate sensor functions under the control of the control module (2), to simulate and output multiple sensor signals in an asynchronous mode, and to recognize synchronous pulses in a synchronous mode to simulate and output multiple sensor signals; The ECU module (4) is connected to the control module (2) and is used to simulate the ECU function under the control of the control module (2), to provide the sensor with a power supply voltage and a synchronous pulse with adjustable amplitude and pulse width, and to receive sensor data, convert the sensor data into a physical quantity value, and output it; The control module (2) communicates with an external main control computer and a simulation computer via the communication module (5).

2. The PSI5 signal simulation module according to claim 1, characterized in that: The sensor module (3) comprises a synchronous pulse identification submodule (31) and a current signal setting submodule (32); The synchronization pulse identification submodule (31) is used to receive a synchronization pulse signal sent by the ECU, identify the synchronization pulse signal, and output a trigger signal when the synchronization pulse signal is identified; The control module (2) is connected to the synchronization pulse identification submodule (31) and is used to output a control signal when receiving the trigger signal; The current signal setting submodule (32) is connected to the control module (2) and is used to output current modulation signals of different amplitudes to simulate sensor signals when receiving different control signals.

3. The PSI5 signal simulation module according to claim 2, characterized in that: The current signal setting submodule (32) comprises six constant current tubes with different amplitudes and six switch tubes; The cathode of each constant current tube is connected to the output end of a switch tube, the control end of each switch tube is connected to the control module (2), the anodes of all constant current tubes are connected together as the output positive electrode, and the input ends of all switch tubes are connected together as the output negative electrode.

4. The PSI5 signal simulation module according to claim 3, characterized in that: The switch tube is a triode of model MMBT3904.

5. The PSI5 signal simulation module according to claim 2, characterized in that: The synchronization pulse identification submodule (31) comprises a sampling unit (311), a synchronization threshold setting unit (312) and a comparator (313); The sampling unit (311) is used to sample the PSI5 interface voltage and output a voltage sampling signal; The synchronization threshold setting unit (312) is connected to the sampling unit (311) and is used to calculate the sum of the sampling value of the PSI5 interface voltage and a preset voltage threshold when receiving the voltage sampling signal, and output a synchronization threshold voltage, wherein the voltage threshold is a voltage threshold obtained by matching according to the PSI5 interface model; The comparator (313) is connected to the synchronization threshold setting unit (312), and is used for comparing the synchronization threshold voltage with the PSI5 interface voltage, and outputting a trigger signal when the PSI5 interface voltage is greater than the synchronization threshold voltage.

6. The PSI5 signal simulation module according to claim 5, characterized in that: The synchronization threshold setting unit (312) includes a controller and a D / A converter (3121); The controller is connected to the sampling unit (311), and is used to match the voltage threshold according to the PSI5 interface model, and is used to calculate and output the sum of the sampling value of the PSI5 interface voltage and the voltage threshold when receiving the voltage sampling signal; The D / A converter (3121) is connected to the controller and is used to convert the sum of the sampled value of the PSI5 interface voltage and the voltage threshold into an analog quantity and output a synchronous threshold voltage.

7. The PSI5 signal simulation module according to claim 6, characterized in that: The controller is the control module (2).

8. The PSI5 signal simulation module according to claim 1, characterized in that: The ECU module (4) comprises a PSI5 transceiver chip; The PSI5 transceiver chip is used to support 2 PSI channels, to decode received sensor signals, to generate synchronization pulse signals for use in the PSI5 sensor synchronization mode, and to automatically parse sensor data frames.

9. The PSI5 signal simulation module according to claim 8, characterized in that: A filtering circuit is provided on the PSI channel of the PSI5 transceiver chip; The filtering circuit includes a first capacitor, a second capacitor and a filtering resistor, one end of the filtering resistor is connected to the PSI pin of the PSI5 transceiver chip, and the other end is used to connect to an external PSI5 sensor, the first capacitor is connected to one end of the filtering resistor, the free end of the first capacitor is grounded, the second capacitor is connected to the other end of the filtering resistor, and the free end of the second capacitor is grounded.

10. The PSI5 signal simulation module according to claim 7, characterized in that: The control module (2) is a ZYNQ7000 FPGA chip.

Citation Information

Cited By

  • ECU simulation test method and device based on dual-core microcontroller and storage medium

    CN119596911A