Intelligent automobile signal diagnosis and generation system
Through the intelligent automobile signal diagnosis and generation system, the 32-bit ARM microcontroller MCU microcontroller and multiple signal circuits are used to realize the diagnosis and analog output of automobile signals, solving the problems of inconvenient signal diagnosis and high testing costs in the existing technology. , improves testing efficiency and accuracy.
Patent Information
- Application Number
- CN202411708612.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-27
- Publication Date
- 2024-12-27
AI Technical Summary
The prior art has problems such as inconvenience, high cost, strong professionalism and numerous equipment when diagnosing and testing automotive signals, especially in multi-environmental listening to bus signals such as LIN, CAN, SENT, DC voltage and PWM signals, There is a lack of efficient solutions in testing and diagnosis.
An intelligent automobile signal diagnosis and generation system was designed, including signal diagnosis module, signal generation module, external power supply module and main control module. It adopts a 32-bit ARM microcontroller MCU microcontroller, integrating DC signal, PWM signal, and NTC resistance value acquisition and output circuits, through EMC immunity and power management, realize comprehensive diagnostic and analog output of automotive system signals.
The system realizes accurate diagnostic and analog output of automotive signals, reduces testing costs, improves testing efficiency and accuracy, simplifies testing steps, reduces manual intervention and errors, and provides historical data storage and playback functions to improve Traceability of the test.
Smart Images

Figure CN119200573A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of signal diagnosis and generation, and in particular to an intelligent automobile signal diagnosis and generation system. Background Art
[0002] With the rapid development of the automotive electronics industry, automotive systems are accelerating their pace towards electronic development, and automotive components are also being upgraded and transformed from traditional mechanical to electronic and intelligent. Faced with the diverse electrical signals of automotive systems and their components, it is often necessary to use various special instruments and equipment such as automotive diagnostic instruments, multimeters, oscilloscopes, etc. for diagnosis and analysis. When rapid diagnosis and analysis of systems or components is required in scenarios such as actual vehicle testing by R&D personnel, temporary sample testing by sales personnel, and maintenance at repair shops, there are obvious inconveniences, and the system has disadvantages such as high cost, strong professionalism, and a large number of equipment.
[0003] In order to solve the inconvenience of automobile signal diagnosis in multiple environments, how to quickly listen to, detect and diagnose automobile bus signals such as LIN, CAN, SENT, as well as DC voltage, PWM signals, NTC resistance, etc., and simulate the output operations of DC voltage, PWM and other signals and LIN and other buses is the problem we need to solve. To this end, an intelligent automobile signal diagnosis and generation system is proposed. Summary of the Invention
[0004] To achieve the above objectives, the present invention is implemented through the following technical solutions: an intelligent automobile signal diagnosis and generation system, comprising a signal diagnosis and generation device, and a signal diagnosis module, a signal generation module, an external power supply module and a main control module integrated in the signal diagnosis and generation device, wherein the modules are electrically connected to each other; The signal diagnosis module is responsible for diagnosing the signal status of various sensors and electronic actuators in the smart car; The signal generation module is responsible for simulating the signal output of various sensors and electronic actuators in the smart car; The external power supply module, based on the power management circuit on the main control board, is used to provide 5V and 12V working power to the sensors and electronic actuators under test, providing convenience for on-site testing; The main control module is used for collecting, processing, analyzing and visualizing signal data.
[0005] Preferably, the signal diagnosis and generation device adopts a 32-bit ARM single-chip microcontroller MCU as the microcontroller core, including a main control board and an MCU microcontroller core circuit integrated on the main control board, a DC signal acquisition circuit, a PWM signal capture circuit, an NTC resistance acquisition circuit, a PWM output circuit, a DC signal output circuit, a LIN bus interface circuit, a SENT bus interface circuit, a CAN bus interface circuit, an HMI serial port screen drive circuit, a power management circuit, and a USB download and communication interface circuit. In order to prevent damage to the device caused by misoperation and automobile EMC interference, each functional circuit is designed with EMC anti-interference and power short-circuit protection functions.
[0006] Preferably, the signal diagnosis module includes a DC signal diagnosis unit, a PWM signal diagnosis unit, an NTC resistance diagnosis unit, a LIN bus listening diagnosis unit, a SENT bus listening diagnosis unit, and a CAN bus listening diagnosis unit, wherein the electrical signals between the units are connected to jointly realize a comprehensive diagnosis of various electrical signals of the automobile system; The DC signal diagnostic unit is used to detect 0-30V DC signals, diagnose the output signals of various analog voltage output sensors in the automotive system, and display physical quantity changes and signal curves. By setting a conversion formula, the corresponding physical quantity changes can be directly displayed. It can replace a multimeter to detect the supply voltage and signal size of batteries and other electronic units, and display the signal curve in real time. The PWM signal unit is used to detect the frequency and duty cycle of the PWM signal, diagnose the PWM signals output by various PWM output sensors and ECUs in the automotive system, and display the waveform curve in real time; The NTC resistance diagnostic unit is used to detect the resistance of the NTC temperature sensor, automatically convert it into a temperature value and display a real-time temperature curve. It can diagnose the resistance of NTC temperature sensors such as the air outlet temperature sensor, the air conditioning pipe temperature sensor, and the water tank temperature sensor. By setting the nominal value and B value parameters of the NTC, the unit automatically completes the conversion and displays the temperature value and real-time temperature curve. The LIN bus listening diagnostic unit, as a slave, diagnoses data on the LIN bus and is used to diagnose whether the signals of various LIN bus sensors, electronic actuators, and ECUs are abnormal. It also sets ID numbers to select specific components for diagnostic analysis and records and stores relevant data frames for R&D analysis. The SENT bus listening diagnostic unit, as a slave, diagnoses the data on the SENT bus and is used to diagnose whether the signals of various SENT bus type sensors and ECUs are abnormal. It also sets the ID number to select specific components for diagnostic analysis and records and stores relevant data frames for R&D analysis. The CAN bus listening diagnostic unit acts as a slave to diagnose data on the CAN bus, diagnosing whether the signals of each CAN electronic control unit and ECU are abnormal, setting ID numbers to filter specific components for diagnostic analysis, and recording and storing relevant data frames for research and development analysis.
[0007] Preferably, in the signal diagnosis module, the signal status diagnosis process specifically includes: Each diagnostic unit receives raw signals from various sensors and electronic actuators in smart cars through its own interface circuit. The raw signals include voltage, current, frequency, pulse width and other types, reflecting the real-time status of the car's internal systems. The diagnostic unit then performs filtering, amplification, signal calibration and normalization preprocessing operations on the received raw signals. Extract key fault diagnosis features that reflect the status of sensors or electronic actuators in each diagnostic unit from the preprocessed signals, including the signal's frequency component, duty cycle, amplitude change, and waveform characteristics; By comparing the extracted features with the preset standard threshold, the fault diagnosis coefficient is calculated, the degree of deviation between the sensor or electronic actuator and the normal state is analyzed, and it is determined whether the sensor or electronic actuator has a fault; The fault diagnosis results are presented in the form of graphics and reports for technical personnel's reference. The fault diagnosis results include fault type, fault location, and fault severity information. Based on the diagnosis results, technical personnel take appropriate measures to repair or maintain the fault.
[0008] Preferably, the calculation expression of the fault diagnosis coefficient is: ; in, is the fault diagnosis coefficient, is the signal characteristic value actually obtained from the sensor or actuator, It is a preset standard threshold value, which is used as a benchmark value for comparison with the actual signal characteristic value. It is the minimum variation range of the signal characteristic value, which is used for normalization processing to ensure that the signals of different sensors or actuators can be compared and analyzed on the same scale. is an exponential function used to describe the degree of deviation between the signal characteristic value and the standard threshold. near When the exponential function value is close to 1, the fault diagnosis coefficient Close to 0, it means the system is normal. and When the deviation increases, the exponential function value decreases rapidly, and the fault diagnosis coefficient Close to 1, it means the possibility of system failure increases, which is a square root formula used to amplify and The deviation between them enhances the sensitivity of the exponential function and is a benchmark value set based on historical data and experience to determine whether the sensor or actuator is working properly. The value range is from 0 to 1. The closer the value is to 1, the greater the possibility of failure.
[0009] Preferably, the signal generating module includes a DC signal analog output unit, a PWM signal analog output unit, a LIN bus output (host) unit and a CAN bus output (host) unit, wherein each unit is electrically signal-connected; The DC signal simulation output unit simulates the 0~10V DC signal output by the ECU and is used to drive and control the DC signal driven speed control module electronic control unit to verify whether the electronic control unit is operating normally. It replaces the analog output sensor and outputs feedback signals to the ECU. The PWM signal simulation output unit simulates the PWM signal output by the ECU and is used for driving and controlling the electronic control unit of the PWM signal-driven speed regulation module to verify whether the operating status of the electronic control unit is normal. It can replace the PWM output sensor to output feedback signals to the ECU, or drive small inductive loads such as solenoid valves to control their operation and verify performance. The LIN bus output (host) unit acts as a host to simulate the ECU to send command frames, control the operation of the speed control module, electronic control valve, and window lift electronic actuator, actively read the data of each electronic actuator or sensor, and set multiple command frames and cyclic reading / control cycles; The CAN bus output (host) unit acts as a host to simulate the ECU to send command frames, exchange data with each ECU unit, and set multiple command frames and cyclic reading / control cycles.
[0010] Preferably, in the signal generating module, the process of outputting the analog signal specifically includes: Start the signal generation module and initialize each unit according to the test requirements. Configure the voltage range (0-10V) of the DC signal analog output unit, configure the frequency and duty cycle of the PWM signal analog output unit, set the communication parameters of the LIN bus and CAN bus, including the baud rate and frame structure, and configure the command frame and control logic of the LIN bus output (host) unit and the CAN bus output (host) unit. Based on the configuration results, the signal simulation process of each output unit is implemented to actively read sensor data or receive feedback signals from electronic actuators. The simulated output is adjusted according to the feedback signal to verify the response and performance of the electronic control unit. Multiple command frames and cyclic reading / control cycles are set to execute repeated test sequences to verify the stability of the system and the accuracy of the response. Monitor the output of the simulation signal and the actual response of the system, and record the test data, including the parameters of the simulation signal and the feedback of the system, for subsequent analysis; Analyze recorded data to determine whether the system is working as expected. Adjust analog signal parameters based on the analysis results to optimize test conditions or diagnose problems. Ensure that system safety measures are in place during analog signal output to prevent overload or short circuit. Implement protection mechanisms such as overvoltage protection and short circuit protection to protect the signal generation module. Through the HMI serial port screen interface and host computer software, the operator is allowed to monitor the test process, adjust parameters, and receive test reports. After completing all test sequences, the signal generation module is safely shut down and reset to the initial state to prepare for the next test.
[0011] Preferably, the signal simulation process of each output unit specifically includes: For the DC signal analog output unit, it outputs the corresponding DC voltage signal according to the configuration, simulates the sensor signal or directly drives the electronic control unit such as the speed control module; For PWM signal analog output unit, output PWM signal, simulate PWM output type sensor or control PWM drive type electronic control unit; For the LIN bus output (host) unit, as the host of the LIN bus, it sends command frames to control the connected electronic actuators, such as speed control modules, electronic control valves, etc., and reads sensor data; The CAN bus output (host) unit acts as the host of the CAN bus, sends command frames to exchange data with each ECU unit, and reads relevant data.
[0012] Preferably, the main control module is composed of a single chip microcomputer program of the main control board, an interface design of an HMI serial port display screen, and a host computer software; The interface of the HMI serial port screen includes the power-on menu interface, each function diagnosis interface, each signal simulation generation interface, parameter setting interface, real-time waveform display interface, and historical data query interface; The single-chip computer program, as a slave, receives instructions from the HMI serial port screen or the host computer software, executes the signal listening diagnosis and signal generation output functions, and uses the single-chip computer as a slave to receive instructions from the two hosts, the HMI serial port screen or the USB end host computer software, and completes the required signal listening diagnosis and signal generation output functions; The host computer software is developed based on the Python platform and communicates with the main control board through the USB2.0 protocol, providing parameter setting of signal diagnosis and generation functions, control command issuance, data reading and storage recording functions.
[0013] Preferably, the application of the main control module specifically includes: After the main control module is powered on, the system is started and the MCU program on the main control board is initialized, including the setting of the stack pointer, the shielding and setting of interrupts, and the initialization of the IO port. The HMI serial port display screen is also initialized, including the loading of the display interface and the detection of the touch function. The host computer software is started synchronously and the necessary program modules and databases are loaded. The HMI serial port display establishes a communication connection with the MCU program on the main control board through the serial port line. The host computer software establishes a communication connection with the main control board through the USB2.0 protocol and uses the Pyusb library backend for data transmission. The MCU program receives instructions from the HMI serial port display or the host computer software, and executes signal monitoring diagnosis or signal generation and output functions according to the instructions. The real-time waveform display interface of the HMI serial port display shows the waveform of the analog signal in real time, which is convenient for the operator to observe and analyze. The host computer software reads the data returned by the main control board, including test parameters and test results, and stores the data in the database. If historical test data needs to be queried, the operator can query the historical test data through the historical data query interface of the HMI serial port display or the historical playback function of the host computer software. The host computer software can play back the historical test data in the form of charts and curves, making it easier for the operator to analyze and compare data changes under different test conditions. When all test sequences are completed, the system is shut down and reset to its initial state, ready for the next test.
[0014] The present invention provides an intelligent automobile signal diagnosis and generation system. It has the following beneficial effects: 1. This intelligent vehicle signal diagnosis and generation system achieves accurate diagnosis and simulation output of vehicle signals by integrating single-chip computer programs, HMI serial port display screens and host computer software. It can monitor and analyze various signals generated by intelligent vehicles in real time during operation. Utilizing the signal simulation output function, it simulates the signal output of intelligent vehicles under different operating conditions, providing a variety of test scenarios, which not only reduces testing costs but also improves test efficiency.
[0015] Second, the intelligent vehicle signal diagnosis and generation system provides intuitive data display and analysis results through the HMI serial port display and host computer software. The precise diagnostic capability enables relevant personnel to quickly locate and solve problems in vehicle signal transmission and processing, thereby improving test accuracy.
[0016] 3. The intelligent automotive signal diagnosis and generation system simplifies the test steps through the automated test process. The operator only needs to select the test function and set the test parameters through the HMI serial port display or the host computer software, and the system will automatically execute the test and record the test results. The automated test process not only improves test efficiency, but also reduces test costs, reduces manual intervention and errors. Through the data storage and playback function, historical test data can be saved, which is convenient for operators to view and analyze at any time. This not only improves the traceability of the test, but also provides strong data support for subsequent optimization and improvement. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 This is a module structure diagram of an intelligent automobile signal diagnosis and generation system of the present invention; Figure 2 It is a hardware circuit block diagram of the present invention. DETAILED DESCRIPTION
[0018] The present invention will be described in further detail below with reference to the accompanying drawings and specific embodiments. The embodiments of the present invention are provided for purposes of illustration and description and are not intended to be exhaustive or to limit the invention to the disclosed forms. Many modifications and variations will be apparent to those skilled in the art. The embodiments are chosen and described to better illustrate the principles of the invention and its practical application, and to enable those skilled in the art to understand the invention and design various embodiments with various modifications suitable for specific applications.
[0019] The first embodiment, as shown in FIG. Figure 1 、 Figure 2 As shown, the present invention provides a technical solution: an intelligent automobile signal diagnosis and generation system, including a signal diagnosis and generation device, and a signal diagnosis module, a signal generation module, an external power supply module and a main control module integrated in the signal diagnosis and generation device, wherein the modules are electrically connected, and the signal diagnosis and generation device adopts a 32-bit ARM single-chip microcontroller MCU microcontroller as a microcontroller core, including a main control board and an MCU microcontroller core circuit integrated on the main control board, a DC signal acquisition circuit, a PWM signal capture circuit, an NTC resistance acquisition circuit, a PWM output circuit, a DC signal output circuit, a LIN bus interface circuit, a SENT bus interface circuit, a CAN bus interface circuit, an HMI serial port screen drive circuit, a power management circuit, and a USB download and communication interface circuit. To prevent damage to the device caused by misoperation and automobile EMC interference, each functional circuit is designed with EMC anti-interference and power short-circuit protection functions; The signal diagnostic module is responsible for diagnosing the signal status of various sensors and electronic actuators in smart cars. The signal diagnostic module includes a DC signal diagnostic unit, a PWM signal diagnostic unit, an NTC resistance diagnostic unit, a LIN bus listening diagnostic unit, a SENT bus listening diagnostic unit, and a CAN bus listening diagnostic unit. The electrical signal connections between these units enable comprehensive diagnosis of various electrical signals in the vehicle system. The DC signal diagnostic unit is used to detect 0~30V DC signals, diagnose the output signals of various analog voltage output sensors in the automotive system, display the changes in physical quantities and signal curves, and directly display the corresponding physical quantity changes by setting the conversion formula. It can replace the multimeter to detect the power supply voltage and signal size of the battery and other electronic units, and display the signal curve in real time. The PWM signal unit is used to detect the frequency and duty cycle of the PWM signal, diagnose various PWM output sensors in the automotive system, and the PWM signal output by the ECU, and display the waveform curve in real time. The NTC resistance diagnostic unit is used to detect the resistance of the NTC temperature sensor, automatically convert it into a temperature value and display the real-time temperature curve. It can diagnose the resistance of NTC type temperature sensors such as the air-conditioning outlet temperature sensor, the air-conditioning pipe temperature sensor, and the water tank temperature sensor, and automatically The conversion is completed automatically, and the temperature value and real-time temperature curve are automatically displayed. The LIN bus listening diagnostic unit, as a slave machine, diagnoses the data on the LIN bus. It is used to diagnose whether the signals of various LIN bus type sensors, electronic actuators, and ECUs are abnormal. It also sets the ID number to filter specific parts for diagnostic analysis, and records and stores relevant data frames for R&D analysis. The SENT bus listening diagnostic unit, as a slave machine, diagnoses the data on the SENT bus. It is used to diagnose whether the signals of various SENT bus type sensors and ECUs are abnormal. It also sets the ID number to filter specific parts for diagnostic analysis, and records and stores relevant data frames for R&D analysis. The CAN bus listening diagnostic unit, as a slave machine, diagnoses the data on the CAN bus. It is used to diagnose whether the signals of various CAN electronic control units and ECUs are abnormal. It also sets the ID number to filter specific parts for diagnostic analysis, and records and stores relevant data frames for R&D analysis. Furthermore, in the signal diagnosis module, the signal status diagnosis process specifically includes: Each diagnostic unit receives the original signals from various sensors and electronic actuators in the smart car through its own interface circuit. The original signals include voltage, current, frequency, pulse width and other types, reflecting the real-time status of the car's internal system, and performs filtering, amplification, signal calibration and normalization preprocessing operations on the received original signals. By filtering the received original signals, noise and interference are removed and the signal-to-noise ratio of the signal is improved. The signal is amplified to ensure that the amplitude of the signal can reach the required level in the subsequent processing process while maintaining the accuracy of the signal. Signal calibration and normalization operations are performed to ensure that signals from different sources can be on the same scale. Compare and analyze the signals, extract the key fault diagnosis features of each diagnostic unit that reflect the status of the sensor or electronic actuator from the preprocessed signal, including the frequency component, duty cycle, amplitude change, and waveform characteristics of the signal. Compare the extracted features with the preset standard threshold value, calculate the fault diagnosis coefficient, analyze the degree of deviation between the sensor or electronic actuator and the normal state, and judge whether the sensor or electronic actuator has a fault. Present the fault diagnosis results in the form of graphics and reports for reference by technicians. The fault diagnosis results include fault type, fault location, and fault severity information. Based on the diagnosis results, technicians take appropriate measures to repair or maintain the fault. The calculation expression of the fault diagnosis coefficient is: ; in, is the fault diagnosis coefficient, is the signal characteristic value actually obtained from the sensor or actuator, It is a preset standard threshold value, which is used as a benchmark value for comparison with the actual signal characteristic value. It is the minimum variation range of the signal characteristic value, which is used for normalization processing to ensure that the signals of different sensors or actuators can be compared and analyzed on the same scale. is an exponential function used to describe the degree of deviation between the signal characteristic value and the standard threshold. near When the exponential function value is close to 1, the fault diagnosis coefficient Close to 0, it means the system is normal. and When the deviation increases, the exponential function value decreases rapidly, and the fault diagnosis coefficient Close to 1, it means the possibility of system failure increases, which is a square root formula used to amplify and The deviation between them enhances the sensitivity of the exponential function and is a benchmark value set based on historical data and experience to determine whether the sensor or actuator is working properly. The value range is from 0 to 1. The closer the value is to 1, the greater the possibility of failure; The signal generation module is responsible for simulating the signal output of various sensors and electronic actuators in smart cars; The external power supply module, based on the power management circuit on the main control board, is used to provide 5V and 12V working power to the sensors and electronic actuators under test, providing convenience for on-site testing; The main control module is used for collecting, processing, analyzing and visualizing signal data.
[0020] The second embodiment, based on the first embodiment, see Figure 1 、 Figure 2 As shown, the signal generation module includes a DC signal analog output unit, a PWM signal analog output unit, a LIN bus output (host) unit, and a CAN bus output (host) unit, wherein each unit is electrically connected; The DC signal simulation output unit simulates the ECU's output of a 0-10V DC signal, used to drive and control the DC signal-driven speed control module electronic control unit, verify whether the electronic control unit is operating normally, replace the analog output sensor, and output feedback signals to the ECU. The PWM signal simulation output unit simulates the ECU's output of a PWM signal, used to drive and control the PWM signal-driven speed control module electronic control unit, verify whether the electronic control unit is operating normally, replace the PWM output sensor, output feedback signals to the ECU, or drive small inductive loads such as solenoid valves to control their operation and verify performance. The LIN bus output (host) unit simulates the ECU as the host to send command frames to control the speed control module, electronic control valve, and window lift electronic actuator. It actively reads data from each electronic actuator or sensor and sets multiple command frames and cyclic reading / control cycles. The CAN bus output (host) unit simulates the ECU as the host to send command frames, exchange data with each ECU unit, and set multiple command frames and cyclic reading / control cycles. Furthermore, in the signal generating module, the process of analog signal output specifically includes: Start the signal generation module and initialize each unit according to the test requirements, configure the voltage range (0~10V) of the DC signal analog output unit, configure the frequency and duty cycle of the PWM signal analog output unit, set the communication parameters of the LIN bus and CAN bus, including baud rate, frame structure, etc., configure the command frame and control logic of the LIN bus output (host) unit and the CAN bus output (host) unit, and implement the signal simulation process of each output unit based on the configuration results. For the DC signal analog output unit, output the corresponding DC voltage signal according to the configuration to simulate the sensor signal or directly drive the electronic control unit such as the speed control module. For the PWM signal analog output unit, output PWM signal to simulate PWM output type sensor or control PWM drive type electronic control unit. For the LIN bus output (host) unit, as the host of the LIN bus, send command frames to control the connected electronic actuators, such as the speed control module, electronic control valve, etc., and read sensor data. For the CAN bus output (host) unit, as the host of the CAN bus, send command frames to control the connected electronic actuators, such as the speed control module, electronic control valve, etc. Command frames are used to exchange data with each ECU unit and read relevant data. Sensor data is actively read or feedback signals are received from electronic actuators. Analog outputs are adjusted based on the feedback signals to verify the response and performance of the electronic control unit. Multiple command frames and cyclic read / control cycles are set to execute repeated test sequences to verify system stability and response accuracy. The analog signal output and the actual system response are monitored. Test data, including analog signal parameters and system feedback, are recorded for subsequent analysis. The recorded data is analyzed to determine whether the system is operating as expected. Based on the analysis results, analog signal parameters are adjusted to optimize test conditions or diagnose problems. System safety measures are in place to prevent overload or short circuit during analog signal output. Protection mechanisms such as overvoltage protection and short-circuit protection are implemented to protect the signal generation module. The HMI serial port screen interface and host computer software allow operators to monitor the test process, adjust parameters, and receive test reports. After all test sequences are completed, the signal generation module is safely shut down and reset to its initial state in preparation for the next test.
[0021] The third embodiment, based on the first and second embodiments, see Figure 1 、 Figure 2 As shown, the main control module consists of the single-chip computer program of the main control board, the interface design of the HMI serial port display screen, and the host computer software; The interface of the HMI serial port screen includes the power-on menu interface, various function diagnosis interfaces, various signal simulation generation interfaces, parameter setting interfaces, real-time waveform display interfaces, and historical data query interfaces. The single-chip microcomputer program receives instructions from the HMI serial port screen or the host computer software as a slave, and performs signal listening diagnosis and signal generation output functions. The single-chip microcomputer is used as a slave to receive instructions from the HMI serial port screen or the USB host computer software, and completes the required signal listening diagnosis and signal generation output functions. The host computer software is developed based on the Python platform and communicates with the main control board through the USB2.0 protocol. It provides parameter setting, control command issuance, data reading and storage recording functions for signal diagnosis and generation functions. It is developed based on the Python platform and uses the Pyusb library backend to directly communicate with the main control board through the USB2.0 protocol. The operator performs the required signal diagnosis or generation function parameter setting through the host computer interface, and issues control and reading commands to the main control board, which then executes the relevant actions. At the same time, the host computer software integrates database functions to store and record diagnostic signals and has historical playback functions. The application of the main control module includes the following steps: After the main control module is powered on, the system is started and the single-chip computer program on the main control board is initialized, including the setting of the stack pointer, the shielding and setting of the interrupt, the initialization of the IO port, and the screen initialization of the HMI serial port display, including the loading of the display interface and the detection of the touch function. The host computer software is started synchronously and the necessary program modules and databases are loaded. The HMI serial port display establishes a communication connection with the single-chip computer program on the main control board through the serial port line. The host computer software establishes a communication connection with the main control board through the USB2.0 protocol and uses the Pyusb library backend for data transmission. Among them, the HMI serial port display displays the power-on menu interface. The operator can choose to enter different function interfaces. Based on the function diagnosis interface, the operator can choose to enter each function diagnosis interface to test the signal listening diagnosis. Based on the signal simulation interface, the operator can choose to enter each signal simulation generation interface to test the signal generation output. In the parameter setting interface, The operator can adjust test parameters such as voltage range, frequency, duty cycle, etc., and send the parameters to the MCU program through the communication connection. The MCU program receives instructions from the HMI serial port display or the host computer software and executes signal listening diagnosis or signal generation and output functions according to the instructions. The real-time waveform display interface of the HMI serial port display shows the waveform of the analog signal in real time, which is convenient for the operator to observe and analyze. The host computer software reads the data returned by the main control board, including test parameters and test results, and stores the data in the database. If historical test data needs to be queried, the operator can query the historical test data through the historical data query interface of the HMI serial port display or the historical playback function of the host computer software. The historical test data can be replayed in the form of charts and curves through the host computer software, which facilitates the operator to analyze and compare data changes under different test conditions. When all test sequences are completed, the system is shut down and reset to the initial state to prepare for the next test.
[0022] Obviously, the embodiments described are only some of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field and related fields without making creative efforts should fall within the scope of protection of the present invention. Structures, devices, and operating methods not specifically described and explained in the present invention shall be implemented in accordance with conventional means in the field unless otherwise specified or limited.
Claims
1. An intelligent automobile signal diagnosis and generation system, characterized in that: It includes a signal diagnosis and generation device, and a signal diagnosis module, a signal generation module, an external power supply module and a main control module integrated on the signal diagnosis and generation device, wherein the electrical signals between the modules are connected; The signal diagnosis module is responsible for diagnosing the signal status of various sensors and electronic actuators in the smart car; The signal generation module is responsible for simulating the signal output of various sensors and electronic actuators in the smart car; The external power supply module is used to provide 5V and 12V working power to the external sensors and electronic actuators under test; The main control module is used for collecting, processing, analyzing and visualizing signal data.
2. The intelligent automobile signal diagnosis and generation system according to claim 1, characterized in that: The signal diagnosis and generation device includes a main control board and an MCU microcontroller core circuit integrated on the main control board, a DC signal acquisition circuit, a PWM signal capture circuit, an NTC resistance value acquisition circuit, a PWM output circuit, a DC signal output circuit, a LIN bus interface circuit, a SENT bus interface circuit, a CAN bus interface circuit, an HMI serial port screen drive circuit, a power management circuit, and a USB download and communication interface circuit.
3. The intelligent automobile signal diagnosis and generation system according to claim 2, characterized in that: The signal diagnosis module includes a DC signal diagnosis unit, a PWM signal diagnosis unit, an NTC resistance value diagnosis unit, a LIN bus listening diagnosis unit, a SENT bus listening diagnosis unit and a CAN bus listening diagnosis unit, wherein the electrical signals between the units are connected; The DC signal diagnosis unit is used to detect 0~30V DC signals, diagnose the output signals of various analog voltage output sensors of the automobile system, and display the changes in physical quantities and signal curves; The PWM signal unit is used to detect the frequency and duty cycle of the PWM signal, diagnose the PWM signals output by various PWM output sensors and ECUs of the automobile system, and display the waveform curve in real time; The NTC resistance diagnostic unit is used to detect the resistance of the NTC temperature sensor, automatically convert it into a temperature value and display a real-time temperature curve; The LIN bus listening diagnosis unit, as a slave machine, diagnoses the data on the LIN bus and is used to diagnose signal anomalies of various LIN bus type sensors, electronic actuators, and ECUs; The SENT bus monitoring diagnosis unit, as a slave machine, diagnoses the data on the SENT bus and is used to diagnose signal anomalies of various SENT bus type sensors and ECUs; The CAN bus monitoring diagnosis unit, as a slave machine, diagnoses data on the CAN bus and is used to diagnose signal anomalies of various CAN electronic control units and ECUs.
4. The intelligent automobile signal diagnosis and generation system according to claim 3, characterized in that: In the signal diagnosis module, the diagnosis process of the signal status specifically includes: Each diagnostic unit receives the original signals from various sensors and electronic actuators in the smart car through its own interface circuit, and performs filtering, amplification, signal calibration and normalization preprocessing operations on the received original signals; Extracting key fault diagnosis features reflecting the status of sensors or electronic actuators in each diagnostic unit from the preprocessed signals, including the frequency components, duty cycle, amplitude changes, and waveform characteristics of the signals; By comparing the extracted features with the preset standard threshold, the fault diagnosis coefficient is calculated, the deviation between the sensor or electronic actuator and the normal state is analyzed, and it is determined whether the sensor or electronic actuator has a fault; The fault diagnosis results are presented in the form of graphics and reports, and the fault diagnosis results include fault type, fault location, and fault severity information.
5. The intelligent automobile signal diagnosis and generation system according to claim 4, characterized in that: The calculation expression of the fault diagnosis coefficient is: ; in, is the fault diagnosis coefficient, is the signal characteristic value actually obtained from the sensor or actuator, It is a preset standard threshold, which is used as a benchmark value for comparison with the actual signal characteristic value. is the minimum variation range of the signal characteristic value, which is used for normalization processing. The value range is 0 to 1.
6. The intelligent automobile signal diagnosis and generation system according to claim 5, characterized in that: The signal generation module includes a DC signal analog output unit, a PWM signal analog output unit, a LIN bus output unit and a CAN bus output unit, wherein each unit is electrically signal connected; The DC signal simulation output unit simulates the ECU to output a 0~10V DC signal, which is used to drive and control the DC signal driven speed control module electronic control unit to verify that the electronic control unit is operating normally; The PWM signal simulation output unit simulates the ECU output PWM signal, which is used for driving control of the PWM signal driven speed control module electronic control unit to verify that the operation state of the electronic control unit is normal; The LIN bus output unit, as a host, simulates the ECU to send command frames, controls the speed control module, the electronic control valve, and the window lifter electronic actuator to work, and actively reads data; The CAN bus output unit, as a host, simulates the ECU to send command frames and exchanges data with each ECU unit.
7. The intelligent automobile signal diagnosis and generation system according to claim 6, characterized in that: In the signal generating module, the process of simulating signal output specifically includes: Start the signal generation module and initialize each unit according to the test requirements, configure the voltage range of the DC signal analog output unit, configure the frequency and duty cycle of the PWM signal analog output unit, set the communication parameters of the LIN bus and CAN bus, including the baud rate and frame structure, and configure the command frame and control logic of the LIN bus output unit and the CAN bus output unit; Based on the configuration results, implement the signal simulation process of each output unit, actively read sensor data or receive feedback signals from electronic actuators, adjust the simulated output according to the feedback signals to verify the response and performance of the electronic control unit, and set multiple command frames and cyclic reading / control cycles to execute repeated test sequences to verify the stability of the system and the accuracy of the response; Monitor the output of the simulation signal and the actual response of the system, and record the test data, including the parameters of the simulation signal and the feedback of the system; Analyze recorded data to determine if the system is working as expected and adjust the parameters of the simulation signal based on the analysis results to optimize test conditions or diagnose problems; The HMI serial port screen interface and host computer software allow the operator to monitor the test process, adjust parameters, and receive test reports. After completing all test sequences, the signal generation module is safely turned off and reset to the initial state to prepare for the next test.
8. The intelligent automobile signal diagnosis and generation system according to claim 7, characterized in that: The signal simulation process of each output unit specifically includes: For the DC signal analog output unit, the corresponding DC voltage signal is output according to the configuration to simulate the sensor signal or directly drive the speed control module; For the PWM signal simulation output unit, the PWM signal is output to simulate the PWM output type sensor or control the PWM drive type electronic control unit; For the LIN bus output unit, it acts as the host of the LIN bus, sends command frames to control the connected electronic actuators and read sensor data; The CAN bus output unit acts as the host of the CAN bus, sends command frames to exchange data with each ECU unit, and reads relevant data.
9. The intelligent automobile signal diagnosis and generation system according to claim 1, characterized in that: The main control module is composed of the single chip microcomputer program of the main control board, the interface design of the HMI serial port display screen, and the host computer software; The interface of the HMI serial port screen includes a power-on menu interface, a function diagnosis interface, a signal simulation generation interface, a parameter setting interface, a real-time waveform display interface, and a historical data query interface; The single-chip computer program, as a slave, receives instructions from the HMI serial port screen or the host computer software and performs signal listening diagnosis and signal generation and output functions; The host computer software is developed based on the Python platform, communicates with the main control board through the USB2.0 protocol, and provides parameter setting of signal diagnosis and generation functions, control command issuance, data reading and storage and recording functions.
10. The intelligent automobile signal diagnosis and generation system according to claim 9, characterized in that: The application of the main control module includes the following specific processes: After the main control module is powered on, the system is started and the single-chip computer program on the main control board is initialized, including the setting of the stack pointer, the shielding and setting of the interrupt, the initialization of the IO port, and the screen initialization of the HMI serial port display, including the loading of the display interface and the detection of the touch function. The host computer software is started synchronously and the program module and database are loaded; The HMI serial port display screen establishes a communication connection with the MCU program on the main control board through the serial port line. The host computer software establishes a communication connection with the main control board through the USB2.0 protocol and uses the Pyusb library backend for data transmission. The MCU program receives instructions from the HMI serial port display screen or the host computer software, and executes the signal listening diagnosis or signal generation output function according to the instructions. The real-time waveform display interface of the HMI serial port display screen displays the waveform of the analog signal in real time, and the host computer software reads the data returned by the main control board, including test parameters and test results, and stores the data in the database; If historical test data needs to be queried, the operator can query the historical test data through the historical data query interface of the HMI serial port display or the historical playback function of the host computer software, and replay the historical test data in the form of charts and curves through the host computer software; When all test sequences are completed, the system is shut down and reset to its initial state, ready for the next test.
Citation Information
Patent Citations
Vehicle failure diagnostic apparatus
CN102063120A
Automatic fault detection device and detection method for new energy automobile
CN109084997A
Automobile intelligent detection assembly
CN111103865A
Whole vehicle fault diagnosis test system
CN112859817A
Intelligent detection platform for new energy vehicle control unit
CN202533798U
