Circuit for real-time normalized detection of switching signal state
By using a circuit that monitors the status of switch signals in real time and routinely, combined with a switch diagnostic module and a switch signal input module, and utilizing PWM signal control, the problems of malfunction and low detection accuracy in existing switch detection circuits are solved, achieving accurate fault diagnosis and efficient system adaptability.
Patent Information
- Application Number
- CN202423114566.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-16
- Publication Date
- 2025-12-05
- Estimated Expiration
- 2034-12-16
AI Technical Summary
The existing switch detection circuit sends an incorrect signal to the main control module when it is turned on, causing malfunctions. In addition, the existing PWM square wave switch detection circuit has low detection accuracy.
The circuit employs real-time, routine detection of switch signal status, including a switch diagnostic module and a switch signal input module. The switch diagnostic module is controlled by the PWM signals COM_HI and COM_LO of the main control module. Combined with the PWM signals COM_VDD and COM_GND of the switch signal input module, the output module of the comparison monitoring signal is realized to detect the status of the operating mechanism.
It enables precise detection of switching signals, improves the accuracy and efficiency of fault diagnosis, and enhances the flexibility and adaptability of the system.
Smart Images

Figure CN223637671U_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of circuit detection, and in particular to a circuit for real-time and normal detection of switch signal states. BACKGROUND
[0002] With the increasing popularity of functional safety awareness and standards, automobile manufacturers have increasingly high requirements for the functional safety of products. Suppliers must consider functional safety in the design stage, and heterogeneous redundancy and fault detection become key elements in the design.
[0003] Fault detection can timely detect abnormal states of operating mechanisms (switch entities) in a system and prevent potential risks. Existing switch detection circuits on the market often send high-level signals to the main control module when conducting and send low-level signals when not conducting. If a switch fails, the main control module may incorrectly identify a low-level response signal as a high-level response signal, which may cause the product to malfunction. In addition, existing switch circuits need to detect whether a fault has occurred by operating the switch, and existing PWM square wave switch detection circuits have long pulse transmission intervals, resulting in low detection accuracy. CONTENT OF THE UTILITY MODEL
[0004] In order to be able to detect the state of the switch signal in real time, the present application provides a circuit for real-time and normal detection of switch signal states.
[0005] The circuit for real-time and normal detection of switch signal states provided by the present application adopts the following technical solution:
[0006] A circuit for real-time and normal detection of switch signal states includes a switch diagnosis module and a switch signal input module. The first output end and the second output end of a main control module are electrically connected to the first input end and the second output end of the switch diagnosis module, respectively. The first output end of the main control module is used to output a PWM signal COM_HI, and the second output end of the main control module is used to output a PWM signal COM_LO. The first output end and the second output end of the switch diagnosis module are electrically connected to the first control end and the second control end of the switch signal input module, respectively. The input end of the switch signal input module is electrically connected to the output end of an operating mechanism, and the output end of the switch signal input module is electrically connected to the signal input end of the main control module.
[0007] By adopting the above technical solution, the switch diagnosis module receives the PWM signal COM_HI and the PWM signal COM_LO and outputs a PWM signal to the switch signal input module. This enables the switch signal input module to detect the histogram of the operating mechanism according to the received PWM signal, and then the switch signal input module returns the detected operating state to the main control module, thereby accurately determining the state of the switch gear in the operating mechanism.
[0008] As preferred, the switch diagnosis module comprises a first diagnosis submodule and a second diagnosis submodule, the first output end of the master control module is electrically connected to the input end of the first diagnosis submodule, the output end of the first diagnosis submodule is set as the first output end of the switch diagnosis module, and the first output end of the switch diagnosis module is used for outputting the PWM signal COM_VDD; the second output end of the master control module is electrically connected to the input end of the second diagnosis submodule, the output end of the second diagnosis submodule is set as the second output end of the switch diagnosis module, and the second output end of the switch diagnosis module is used for outputting the PWM signal COM_GND.
[0009] By adopting the above technical scheme, the first diagnosis submodule is arranged to convert the PWM signal COM_HI into the PWM signal COM_VDD used for controlling the switch signal input module; and the second diagnosis submodule is arranged to convert the PWM signal COM_LO into the PWM signal COM_GND used for controlling the switch signal input module.
[0010] As preferred, the first diagnosis submodule comprises a PNP transistor Q1, an NPN transistor Q2 and a power supply VDD, the first output end of the master control module is electrically connected to the base of the NPN transistor Q2, the emitter of the NPN transistor Q2 is grounded, and the collector of the NPN transistor Q2 is electrically connected to the base of the PNP transistor Q1 through a resistor R2; the voltage output end of the power supply VDD is electrically connected to the emitter of the PNP transistor Q1, and the collector of the PNP transistor Q1 is used for outputting the PWM signal COM_VDD.
[0011] By adopting the above technical scheme, when the first output end COM_HI of the master control module outputs a low level, the NPN transistor Q2 is cut off at this time, and the PNP transistor Q1 is cut off. When the first output end COM_HI of the master control module outputs a high level, the NPN transistor Q2 is turned on at this time, and the base of the PNP transistor Q1 is grounded in turn through the resistor R1 and the NPN transistor Q2, so that the PNP transistor Q1 is turned on, that is, the output voltage of the power supply VDD can be output through the PNP transistor Q1, and the output of the PWM signal COM_VDD can be realized.
[0012] As preferred, the emitter of the PNP transistor Q1 is further electrically connected to the base of the PNP transistor Q1 through the resistor R1.
[0013] By adopting the above technical scheme, the resistor R1 realizes the base current supply of the PNP transistor Q1, ensures that it works in the amplification zone, and improves the stability and reliability of the circuit.
[0014] As preferred, the second diagnostic submodule comprises an NPN transistor Q3, the second output end of the main control module is electrically connected to the base of the NPN transistor Q3 through a resistor R3, the emitter of the NPN transistor Q3 is grounded, and the collector of the NPN transistor Q3 is used for outputting the PWM signal COM_GND.
[0015] By adopting the technical scheme, when the first output end of the main control module outputs a high level, the NPN transistor Q3 is turned on, so that the output of the PWM signal COM_GND can be realized.
[0016] As preferred, the base of the NPN transistor Q3 is also electrically connected to the emitter of the NPN transistor Q3 through a resistor R4.
[0017] By adopting the technical scheme, the base current supply of the NPN transistor Q3 is realized through the resistor R4, the working of the NPN transistor Q3 in the amplification zone is ensured, and the stability and reliability of the circuit are improved.
[0018] As preferred, the switch diagnostic module further comprises a monitoring signal output submodule, the monitoring signal output submodule comprises a resistor R5, a resistor R6 and a resistor R7, the output end of the first diagnostic submodule is electrically connected to the input end of the main control module in sequence through the resistor R7, the resistor R5 and the resistor R6, and the output end of the second diagnostic submodule is electrically connected to the connection point between the resistor R7 and the resistor R5.
[0019] By adopting the technical scheme, the output of the monitoring signal COM-LO-Monitor is realized, the monitoring function of the circuit is enhanced, and the fault analysis of the operating mechanism can be realized.
[0020] As preferred, the monitoring signal output submodule further comprises a capacitor C1, one end of the capacitor C1 is electrically connected to the connection point between the resistor R5 and the resistor R6, and the other end of the capacitor C1 is grounded.
[0021] By adopting the technical scheme, the output stability and filtering effect of the monitoring signal are optimized by arranging the capacitor C1, and the signal quality of the circuit is improved.
[0022] As preferred, the switch signal input module comprises a plurality of resistors, the second output end of the switch diagnostic module is electrically connected to the ground end of the operating mechanism, the first output end of the switch diagnostic module is electrically connected to the signal input end of the main control module in sequence through two resistors respectively, and the connection points between the two electrically connected resistors are respectively electrically connected to the output end of the operating mechanism.
[0023] By adopting the technical scheme, the operation mechanism state detection and signal feedback are realized, and the signal detection and feedback function of the circuit is enhanced.
[0024] To sum up, the present application includes at least one of the following beneficial technical effects:
[0025] 1. The PWM signal COM_HI and COM_LO output by the master control module control the switch diagnosis module, which can flexibly adjust the detection time and adapt to different operation mechanisms, enhancing the flexibility and adaptability of the system;
[0026] 2. Combined with the signal processing of the switch signal input module and the master control module, the ON / OFF / fault state of each switch gear can be accurately judged, and the specific fault type can be identified, improving the accuracy and efficiency of fault diagnosis. BRIEF DESCRIPTION OF DRAWINGS
[0027] Figure 1 is the schematic diagram of the embodiment of the present application;
[0028] Figure 2 is the circuit diagram of the switch diagnosis module in the embodiment of the present application;
[0029] Figure 3 is the circuit diagram of the switch signal input module in the embodiment of the present application.
[0030] Reference signs: 1, switch diagnosis module; 11, first diagnosis sub-module; 12, second diagnosis sub-module; 13, monitoring signal output sub-module; 2, switch signal input module. DETAILED DESCRIPTION
[0031] The following will be described in detail in combination with the accompanying Figures 1-3 The present application will be further described in detail.
[0032] The embodiment of the present application discloses a circuit for real-time and normal detection of switch signal state.
[0033] Reference Figure 1 and Figure 2The circuit for real-time normalization detection of switch signal state comprises a switch diagnosis module 1, a switch signal input module 2 and a master control module. The first output end and the second output end of the master control module are electrically connected to the first input end and the second output end of the switch diagnosis module 1 respectively, the first output end is used for outputting a PWM signal COM_HI, and the second output end is used for outputting a PWM signal COM_LO. The first output end and the second output end of the switch diagnosis module 1 are electrically connected to the first control end and the second control end of the switch signal input module 2 respectively, and the third control end of the switch diagnosis module 1 is electrically connected to the input end of the master control module. The switch diagnosis module 1 is used for receiving the PWM signal COM_HI and the PWM signal COM_LO, and outputting a PWM signal COM_GND and a PWM signal COM_VDD to the switch signal input module 2, and simultaneously outputting a PWM signal COM_LO_MON to the master control module. The input end of the switch signal input module 2 is electrically connected to the output end of an operating mechanism (switch entity), the output end of the switch signal input module 2 is electrically connected to the signal input end of the master control module, and the switch signal input module 2 can detect the state of the operating mechanism according to the PWM signal COM_GND and the PWM signal COM_VDD, and return the detected operating state to the master control module.
[0034] With reference to Figure 2 The switch diagnosis module 1 comprises a first diagnosis submodule 11, a second diagnosis submodule 12 and a monitoring signal output submodule 13. The first diagnosis submodule 11 comprises a PNP transistor Q1, an NPN transistor Q2 and a power supply VDD, and the output voltage of the power supply VDD is set to 5V in the embodiment. The first output end of the master control module is electrically connected to the base of the NPN transistor Q2, the emitter of the NPN transistor Q2 is grounded, and the collector of the NPN transistor Q2 is electrically connected to the base of the PNP transistor Q1 through a resistor R2. The voltage output end of the power supply VDD is electrically connected to the emitter of the PNP transistor Q1, the collector of the PNP transistor Q1 is set as the first output end of the switch diagnosis module 1, and the first output end of the switch diagnosis module 1 is used for outputting a PWM signal COM_VDD. In addition, the emitter of the PNP transistor Q1 is also electrically connected to the base of the PNP transistor Q1 through a resistor R1, the resistor R1 plays a biasing role and is used for providing a base current for the PNP transistor Q1, so that the PNP transistor Q1 can work in an amplification zone.
[0035] The first output end COM_HI of the master module is used for outputting a PWM signal. When the first output end COM_HI of the master module outputs a low level, the NPN transistor Q2 is cut off, and the PNP transistor Q1 is cut off. When the first output end COM_HI of the master module outputs a high level, the NPN transistor Q2 is turned on, and the base of the PNP transistor Q1 is grounded through the resistor R1 and the NPN transistor Q2 in turn, so that the PNP transistor Q1 is turned on, that is, the output voltage of the power supply VDD can be output through the PNP transistor Q1.
[0036] The second diagnostic submodule 12 comprises an NPN transistor Q3. The second output end of the master module is electrically connected to the base of the NPN transistor Q3 through a resistor R3. The emitter of the NPN transistor Q3 is grounded. The collector of the NPN transistor Q3 is configured as the second output end of the switch diagnostic module 1, which is used for outputting a PWM signal COM_GND. In addition, the base of the NPN transistor Q3 is also electrically connected to the emitter of the NPN transistor Q3 through a resistor R4. The resistor R4 serves as a biasing function, which is used for providing a base current for the NPN transistor Q3, so that the NPN transistor Q3 can work in an amplification zone.
[0037] The second output end COM_LO of the master module is used for outputting a PWM signal. When the second output end COM_LO outputs a low level, the NPN transistor Q3 is cut off. When the second output end COM_LO outputs a high level, the NPN transistor Q3 is turned on, and the output end COM_GND is grounded through the NPN transistor Q3 and outputs a low level signal.
[0038] The monitoring signal output submodule 13 comprises a resistor R5, a resistor R6 and a resistor R7. The collector of the PNP transistor Q1 is electrically connected to the input end of the master module through the resistor R7, the resistor R5 and the resistor R6 in turn. The collector of the NPN transistor Q3 is electrically connected to the connection point between the resistor R7 and the resistor R5. The monitoring signal output submodule 13 further comprises a capacitor C1. One end of the capacitor C1 is electrically connected to the connection point between the resistor R5 and the resistor R6, and the other end of the capacitor C1 is grounded. The PWM signal COM_GND can be input back to the master module as a monitoring signal COM_LO_Monitor at all times.
[0039] Reference Figure 3The operating mechanism has four gears in the embodiment, which are R gear, NR gear, ND gear and D gear. The operating mechanism is provided with four output ends for outputting response signals, and the four response signals are respectively response signal R_CO, response signal NR_CO, response signal ND_CO and response signal D_CO. The switch signal input module 2 includes a plurality of resistors, the second output end of the switch diagnosis module 1 is electrically connected to the ground end of the operating mechanism, the first output end of the switch diagnosis module 1 is electrically connected to the four signal input ends of the master control module in sequence through two resistors respectively, and the connection points between the two electrically connected resistors are electrically connected to the output end R_CO, the output end NR_CO, the output end ND_CO and the output end D_CO respectively, and the signal input ends of the master control module are used for receiving response signal R_SIG, response signal NR_SIG, response signal ND_SIG and response signal D_SIG.
[0040] When the response signal is OFF, the PWM signal COM_VDD output by the switch diagnosis module 1 can be input to the master control module through two resistors in sequence; when the response signal is ON, the combined PWM signal of the PWM signal COM_VDD and the PWM signal COM_GND is input to the master control module. The master control module can determine the ON / OFF / fault of each switch gear by judging the high-low point level state of the monitoring signal COM_LO_MON and the plurality of response signals, and by logic and time operation.
[0041] On this basis, by setting the frequency and duty cycle of the PWM signal COM_HI and the PWM signal COM_LO, the detection time of the operating mechanism can be controlled and different operating mechanisms can be detected.
[0042] The implementation principle of the circuit for real-time and normal detection of the switch signal state in the embodiment is that the master control module outputs the PWM signal COM_HI and the PWM signal COM_LO to the switch diagnosis module 1, and the switch diagnosis module 1 transmits the PWM signal COM_VDD and the PWM signal COM_GND to the switch signal input module 2, so as to detect the state of the external operating mechanism (i.e. the switch entity), and realize real-time monitoring and fault diagnosis of the operating mechanism state.
[0043] The above are preferred embodiments of the present application, and do not limit the protection scope of the present application, so: any equivalent changes made according to the structure, shape, principle of the present application should be covered within the protection scope of the present application.
Claims
1. A circuit for detecting the state of a switch signal in real time, normalizing, characterized by: The switch diagnosis module (1) and the switch signal input module (2) are included, the first output end and the second output end of the main control module are electrically connected to the first input end and the second output end of the switch diagnosis module (1) respectively, the first output end of the main control module is used for outputting the PWM signal COM_HI, and the second output end of the main control module is used for outputting the PWM signal COM_LO;The first output end and the second output end of the switch diagnosis module (1) are electrically connected to the first control end and the second control end of the switch signal input module (2) respectively;The input end of the switch signal input module (2) and the output end of the operating mechanism are electrically connected, and the output end of the switch signal input module (2) is electrically connected to the signal input end of the main control module.
2. The circuit for detecting the state of a switch signal in real time according to claim 1, wherein: The switch diagnosis module (1) includes the first diagnosis submodule (11) and the second diagnosis submodule (12), the first output end of the main control module is electrically connected to the input end of the first diagnosis submodule (11), the output end of the first diagnosis submodule is arranged as the first output end of the switch diagnosis module (1), and the first output end of the switch diagnosis module (1) is used for outputting the PWM signal COM_VDD;The second output end of the main control module is electrically connected to the input end of the second diagnosis submodule (12), the output end of the second diagnosis submodule is arranged as the second output end of the switch diagnosis module (1), and the second output end of the switch diagnosis module (1) is used for outputting the PWM signal COM_GND.
3. The circuit for detecting the state of a switch signal in real time according to claim 2, wherein: The first diagnosis submodule (11) includes a PNP transistor Q1, an NPN transistor Q2 and a power supply VDD, the first output end of the main control module is electrically connected to the base of the NPN transistor Q2, the emitter of the NPN transistor Q2 is grounded, and the collector of the NPN transistor Q2 is electrically connected to the base of the PNP transistor Q1 through a resistor R2;The voltage output end of the power supply VDD is electrically connected to the emitter of the PNP transistor Q1, and the collector of the PNP transistor Q1 is used for outputting the PWM signal COM_VDD.
4. The circuit for detecting the state of a switch signal in real time according to claim 3, wherein: The emitter of the PNP transistor Q1 is also electrically connected to the base of the PNP transistor Q1 through a resistor R1.
5. The circuit for detecting the state of a switch signal in real time according to claim 2, wherein: The second diagnosis submodule (12) includes an NPN transistor Q3, the second output end of the main control module is electrically connected to the base of the NPN transistor Q3 through a resistor R3, the emitter of the NPN transistor Q3 is grounded, and the collector of the NPN transistor Q3 is used for outputting the PWM signal COM_GND.
6. The circuit for detecting the state of a switch signal in real time according to claim 5, wherein: The base of the NPN transistor Q3 is also electrically connected to the emitter of the NPN transistor Q3 through a resistor R4.
7. The circuit for detecting the state of a switch signal in real time according to claim 2, wherein: The switch diagnosis module (1) further comprises a monitoring signal output sub-module (13), the monitoring signal output sub-module (13) comprises resistors R5, R6 and R7, the output end of the first diagnosis sub-module (11) is electrically connected to the input end of the main control module in sequence through the resistor R7, the resistor R5 and the resistor R6, and the output end of the second diagnosis sub-module (12) is electrically connected to the connecting point between the resistor R7 and the resistor R5.
8. The circuit for detecting the state of a switch signal in real time according to claim 7, wherein: The monitoring signal output sub-module (13) further comprises a capacitor C1, one end of the capacitor C1 is electrically connected to the connecting point between the resistor R5 and the resistor R6, and the other end of the capacitor C1 is grounded.
9. The circuit for detecting the state of a switch signal in real time according to claim 1, wherein: The switch signal input module (2) comprises a plurality of resistors, the second output end of the switch diagnosis module (1) is electrically connected to the ground end of the operating mechanism, the first output end of the switch diagnosis module (1) is electrically connected to the signal input end of the main control module in sequence through two resistors respectively, and the connecting points between the two electrically connected resistors are electrically connected to the output ends of the operating mechanism respectively.