Switch state diagnosis circuit, method, device, electronic device and storage medium
By designing a switch status diagnosis circuit including a wake-up source, a wake-up circuit, a status recognition circuit and an EPB switch module, the problem that traditional circuits are difficult to diagnose EPB switch status in real time is solved, real-time monitoring and fault detection of the EPB switch module status is realized, and fault detection efficiency is improved.
Patent Information
- Application Number
- CN202411649159.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-19
- Publication Date
- 2025-03-14
- Estimated Expiration
- 2044-11-19
AI Technical Summary
The traditional electronic parking brake system (EPB) switch status diagnosis circuit is difficult to work immediately after the car is ignited and powered on, and cannot diagnose the switch status in real time, making it difficult to deal with emergencies.
A switch state diagnosis circuit including a wake-up source, a wake-up circuit, a state recognition circuit and an EPB switch module is designed. Through the coordinated work of the controller and the state recognition circuit, the status of the EPB switch module is monitored in real time to determine whether it is in a normal or faulty state.
Real-time monitoring and fault detection of the status of the EPB switch module is realized, fault detection efficiency is improved, and it can work immediately after the car is ignited and powered up to deal with emergencies.
Smart Images

Figure CN119147955B_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present invention relate to the technical field of parking switch detection, and in particular, to a switch state diagnosis circuit, method, device, electronic device and storage medium. Background Art
[0002] EPB (Electrical Park Brake) is now widely used in new energy vehicles. The key to its effective execution is to accurately identify and diagnose the passenger's operation of the EPB switch. However, the traditional switch recognition circuit needs to work after the car is ignited and powered on, which is not only difficult to deal with emergencies, but also difficult to diagnose the switch status in real time.
[0003] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention
[0004] In view of this, the embodiments of the present invention provide a switch state diagnosis circuit, method, device, electronic device and storage medium to at least solve the problem of low efficiency of EPB switch state diagnosis in the related art. The switch state diagnosis circuit, method, device, electronic device and storage medium provided by the embodiments of the present application are implemented as follows:
[0005] In the first aspect, an embodiment of the present invention provides a switch state diagnostic circuit, comprising: a wake-up source; a wake-up circuit; a state identification circuit, wherein the state identification circuit is connected to the wake-up source and the wake-up circuit; an EPB switch module, wherein the EPB switch module is connected to the wake-up source, the wake-up circuit and the state identification circuit; and a controller, wherein the controller is connected to the state identification circuit, and in response to the EPB switch module being in a static state, determines the state of the EPB switch module based on a level type combination output by the state identification circuit and a preset drive instruction combination output by the controller, wherein the state includes one of: a normal state and a fault state.
[0006] In combination with the first aspect, in some embodiments, the EPB switch module includes multiple interfaces; the state identification circuit includes: multiple driving sub-circuits, the driving sub-circuits are connected to the controller, used to receive preset driving instructions of the controller, and output corresponding driving amplification signals based on the preset driving instructions; multiple switching sub-circuits, the switching sub-circuits are connected to the driving sub-circuits one-to-one, and the connection points are connected to the interfaces one-to-one, and the driving amplification signals are output to the controller through switching tubes; an enabling circuit, the enabling circuit is connected to the switching sub-circuit and the controller, and is used to receive the start-up instructions of the controller to turn on the switching tubes of the switching sub-circuits.
[0007] In combination with the first aspect, in some embodiments, it also includes a power supply module and a pull-up source module, the power supply module is connected to the wake-up circuit, and the pull-up source module is connected to the state identification circuit; the controller is also connected to the wake-up source, and the controller responds to the EPB switch module being in the wake-up state and meeting the preset conditions, turning off the wake-up source, thereby turning off the power supply of the power supply module, and at the same time, turning on the power supply of the pull-up source module, wherein the power supply voltage of the power supply module is greater than the power supply voltage of the pull-up source module.
[0008] In combination with the first aspect, in some embodiments, the wake-up source includes a first wake-up source and a second wake-up source, and the wake-up circuit includes a first wake-up circuit and a second wake-up circuit; the EPB switch module includes: a first end, the first end is connected to the first wake-up source and connected to the state identification circuit; a second end, the second end is connected to the first wake-up circuit and connected to the state identification circuit; a third end, the third end is connected to the second wake-up circuit and connected to the state identification circuit; and a fourth end, the fourth end is connected to the second wake-up source and connected to the state identification circuit.
[0009] In a second aspect, an embodiment of the present invention provides a switch status diagnosis method, including: in response to the EPB switch module being in a wake-up state, turning on the state identification circuit of the switch status diagnosis circuit of the above-mentioned embodiment; after turning on, in response to the EPB switch module being in a static state, determining the state of the EPB switch module based on the level type combination output by the state identification circuit and the preset drive instruction combination output by the controller, the state including one of: a normal state and a fault state.
[0010] In combination with the second aspect, in some embodiments, the state of the EPB switch module is determined based on the level type combination output by the state identification circuit and the preset drive instruction combination output by the controller, including: when at least one level in the level type combination is not 0 and conforms to the first preset drive instruction combination output by the controller, the state is determined to be a first fault state; when at least one level in the level type combination is not 1 and conforms to the second preset drive instruction combination output by the controller, the state is determined to be a second fault state; when all levels in the level type combination are not all 1 and conform to the third preset drive instruction combination output by the controller, the state is determined to be a third fault state; when all levels in the level type combination are all 1 and conform to the third preset drive instruction combination output by the controller, the state is determined to be a normal state.
[0011] In combination with the second aspect, in some embodiments, the first fault state is a short circuit to power supply fault, the second fault state is a short circuit to ground fault, and the third fault state is an open circuit fault; when the short circuit to power supply fault is detected, a first warning message is sent to the user's handheld display device and the user's vehicle-mounted display device; when the short circuit to ground fault or the open circuit fault is detected, a second warning message is sent to the user's vehicle-mounted display device.
[0012] In a third aspect, an embodiment of the present invention provides a switch state diagnostic device, including: a circuit calling module, used to respond to the EPB switch module being in a wake-up state, and turn on the state identification circuit of the switch state diagnostic circuit of the above embodiment; a state diagnostic module, which is used to respond to the EPB switch module being in a static state after being turned on, and determine the state of the EPB switch module based on the level type combination output by the state identification circuit and the preset drive instruction combination output by the controller, wherein the state includes one of: a normal state and a fault state.
[0013] In a fourth aspect, an embodiment of the present invention provides a storage medium, including a stored program, wherein when the program is run, the switch state diagnosis method of the above embodiment is executed in a processor of a device where the program is located.
[0014] In a fifth aspect, an embodiment of the present invention provides an electronic device, comprising one or more processors; a storage device for storing one or more programs; when the one or more programs are executed by the one or more processors, the one or more processors execute the switch status diagnosis method of the above embodiment.
[0015] It should be understood that the second to fifth aspects of the present application correspond to the technical solutions of the first aspect of the present application, and the beneficial effects achieved by each aspect and the corresponding feasible implementation methods are similar and will not be repeated here.
[0016] Beneficial effects:
[0017] In this embodiment, the circuit includes: a wake-up source; a wake-up circuit; a state identification circuit, the state identification circuit is connected to the wake-up source and the wake-up circuit; an EPB switch module, the EPB switch module is connected to the wake-up source, the wake-up circuit and the state identification circuit; a controller, the controller is connected to the state identification circuit, in response to the EPB switch module being in a static state, the controller determines the state of the EPB switch module based on the level type combination output by the state identification circuit and the preset drive instruction combination output by the controller, the state includes one of the following: a normal state and a fault state. In this embodiment, the state of the EPB switch module is monitored in real time through the coordinated work of the state identification circuit and the controller, thereby improving the efficiency of fault detection. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0019] Figure 1 It is a structural block diagram of a switch state diagnosis circuit provided by an embodiment of the present invention.
[0020] Figure 2 It is a schematic diagram of a switch state diagnosis circuit provided by an embodiment of the present invention.
[0021] Figure 3 It is a schematic diagram of a switch status diagnosis method provided by an embodiment of the present invention.
[0022] Figure 4 It is a schematic diagram of a switch status diagnosis device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0023] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0024] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0025] Figure 1 is a structural block diagram of a switch state diagnosis circuit provided by an embodiment of the present invention, such as Figure 1 As shown, the switch state diagnosis circuit may include:
[0026] A wake-up source 100; a wake-up circuit 200; a state identification circuit 300, wherein the state identification circuit is connected to the wake-up source and the wake-up circuit; an EPB switch module 400 (also referred to as a "whole vehicle EPB switch interface"), wherein the EPB switch module is connected to the wake-up source, the wake-up circuit, and the state identification circuit; a controller, wherein the controller is connected to the state identification circuit, and in response to the EPB switch module being in a static state, determines the state of the EPB switch module based on a combination of level types output by the state identification circuit and a combination of preset drive instructions output by the controller, wherein the state includes one of the following: a normal state and a fault state. This embodiment monitors the state of the EPB switch module in real time through the coordinated work of the state identification circuit and the controller, thereby improving the efficiency of fault detection.
[0027] In the above embodiment, the fault state includes at least one of: an open circuit of the EPB switch, a short power supply, and a short ground fault.
[0028] The above-mentioned wake-up source may include one or more modes such as a local wake-up source, a network wake-up source, an RTC (real-time clock) wake-up, and a user input (such as a button press).
[0029] The above-mentioned wake-up circuit can contain logic gates, triggers or other types of electronic components. When the wake-up source detects a specific condition or signal, the EPB switch module receives and transmits these wake-up signals. Subsequently, the wake-up circuit responds to these signals and activates the power management circuit, thereby waking up the target device from a low-power state and resuming normal operation.
[0030] The above-mentioned controller is a structure for controlling the switch state diagnosis circuit, which can wake up or diagnose the target switch. The controller can generate corresponding output signals according to specific input signals, such as current, temperature, voltage, etc., to realize the control of the switch state diagnosis circuit. The controller may contain a variety of circuit types such as switch circuits, logic circuits, timing circuits, comparator circuits, etc. Its role is not limited to signal driving, but also includes real-time monitoring of switch status, fault diagnosis and alarm, and data recording and analysis.
[0031] In some embodiments, Figure 2As shown, the EPB switch module includes multiple interfaces; the state identification circuit includes: multiple driving sub-circuits, the driving sub-circuits are connected to the controller, used to receive preset driving instructions of the controller, and output corresponding driving amplified signals based on the preset driving instructions; multiple switching sub-circuits, the switching sub-circuits are connected to the driving sub-circuits one-to-one, wherein the connection points are connected to the interfaces one-to-one, and the driving amplified signals are output to the controller through the switching tubes; an enabling circuit, the enabling circuit is connected to the switching sub-circuits and the controller, and is used to receive the start-up instructions of the controller to turn on the switching tubes of the switching sub-circuits.
[0032] It can be understood that the state identification circuit includes a driving circuit, a switching circuit and an enabling circuit.
[0033] The above-mentioned EPB switch module may include four interfaces as required. Specifically, the wake-up source includes a first wake-up source and a second wake-up source, and the wake-up circuit includes a first wake-up circuit and a second wake-up circuit; the EPB switch module includes: a first end, the first end is connected to the first wake-up source and connected to the state recognition circuit; a second end, the second end is connected to the first wake-up circuit and connected to the state recognition circuit; a third end, the third end is connected to the second wake-up circuit and connected to the state recognition circuit; a fourth end, the fourth end is connected to the second wake-up source and connected to the state recognition circuit.
[0034] The above-mentioned driving sub-circuit is used for signal amplification, and can be a MOSFET driving circuit or an operational amplifier circuit, which is not limited here. This embodiment uses a driving sub-circuit composed of two triodes and five resistors.
[0035] The above-mentioned switch subcircuit includes an electronic component that receives the controller instruction and controls its on or off, which can be a triode switch circuit or a relay drive circuit, which is not limited here. This embodiment uses a MOSFET switch circuit to achieve on and off by controlling the gate voltage.
[0036] The enabling circuit is used to control the enabling state of the circuit. Specifically, it receives an enabling signal (usually a level signal) to determine whether to allow a certain part of the circuit to enter the working state. In this embodiment, pin 1 of the controller chip is connected to multiple MOSFET switch circuits through an amplifier circuit.
[0037] In some embodiments, Figure 2As shown, the switch state diagnosis circuit also includes a power supply module and a pull-up source module, the power supply module is connected to the wake-up circuit, and the pull-up source module is connected to the state identification circuit; the controller is also connected to the wake-up source, and the controller responds to the EPB switch module being in the wake-up state and meeting the preset conditions, turning off the wake-up source, thereby turning off the power supply of the power supply module, and at the same time, turning on the power supply of the pull-up source module, wherein the power supply voltage of the power supply module is greater than the power supply voltage of the pull-up source module.
[0038] The above-mentioned wake-up source includes pin 10, and the controller controls the switch of the wake-up power supply by controlling pin 10. After effective wake-up, the controller will turn off the power supply to prevent interference with the switch state recognition. After wake-up, the VDD power supply is powered on, and the combined transistor is controlled to provide a pull-up source for VBAT to achieve low-voltage on and off control of the high-level signal of the whole vehicle. In addition, the pull-up power supply provides diagnostic logic power supply for the state recognition circuit to ensure that the diagnostic signal can continue to be provided after the car is ignited.
[0039] Optionally, the preset condition may be that the wake-up continues for a preset time, that is, the wake-up is determined to be successful if the preset time is exceeded.
[0040] Figure 3 is a schematic diagram of a switch status diagnosis method provided by an embodiment of the present invention, such as Figure 3 As shown, the switch status diagnosis method may include:
[0041] S301 , in response to the EPB switch module being in the awake state, starting the state identification circuit of the switch state diagnosis circuit of the above embodiment.
[0042] S302, after being turned on, in response to the EPB switch module being in a static state, the state of the EPB switch module is determined based on the level type combination output by the state recognition circuit and the preset drive instruction combination output by the controller, and the state includes one of: a normal state and a fault state.
[0043] The above-mentioned static state refers to a state in which the EPB switch module does not perform APPLY and RELEASE actions.
[0044] In this embodiment, the enable signal controlled by the controller pin 1 can control the enablement of the acquisition circuit of the diagnostic pins 6, 7, 8, and 9. Before wake-up, pin 1 is not enabled, so the circuits of the diagnostic pins 6, 7, 8, and 9 do not work, and the wake-up circuit waits for the wake-up signal input.
[0045] As a preferred implementation, after waking up, the wake-up circuit realizes self-locking by configuring the combination of transistors and their resistors, and turns off the wake-up circuit. At this time, pin 1 is enabled, and only the circuits of diagnostic pins 6, 7, 8, and 9 work. Through the above operation, the sample can be controllably isolated from the state before power-on wake-up and the state of diagnosis after power-on, ensuring that the two functions of EPB switch wake-up and state recognition are not affected.
[0046] In some embodiments, the step of determining the state of the EPB switch module based on the level type combination output by the state recognition circuit and the preset drive instruction combination output by the controller includes:
[0047] When at least one level in the level type combination is not 0 and conforms to the first preset driving instruction combination output by the controller, the state is determined to be a first fault state.
[0048] Exemplarily, when the controller drives pins 2, 3, 4, and 5 to all be low levels, if at least one of pins 6, 7, 8, and 9 is read as not 0, it is determined to be a short circuit to a power failure.
[0049] When at least one level in the level type combination is not 1 and conforms to the second preset driving instruction combination output by the controller, the state is determined to be the second fault state.
[0050] Exemplarily, when the controller drives pins 2, 3, 4, and 5 to all be high levels, if at least one of pins 6, 7, 8, and 9 is read as not 1, it is determined to be a short circuit to ground fault.
[0051] When all levels in the level type combination are not all 1 and conform to the third preset driving instruction combination output by the controller, it is determined that the state is a third fault state.
[0052] Exemplarily, when the controller drives pins 3 and 5 to a high level and pins 2 and 4 to a low level, if pins 6, 7, 8, and 9 are not all 1, it is determined to be an open circuit fault.
[0053] When all levels in the level type combination are 1 and conform to the third preset driving instruction combination output by the controller, it is determined that the state is a normal state.
[0054] Exemplarily, when the controller drives pins 3 and 5 to a high level and pins 2 and 4 to a low level, if pins 6, 7, 8, and 9 are all read as 1, it is determined to be a normal state.
[0055] In some embodiments, when the short circuit to power supply fault is detected, a first warning message is sent to the user's handheld display device and the user's vehicle-mounted display device; when the short circuit to ground fault or the open circuit fault is detected, a second warning message is sent to the user's vehicle-mounted display device.
[0056] Figure 4 is a schematic diagram of a switch state diagnosis device provided by an embodiment of the present invention, such as Figure 4 As shown, the switch state diagnostic device includes:
[0057] The circuit calling module 401 is used to start the state identification circuit of the switch state diagnosis circuit of the above embodiment in response to the EPB switch module being in the awake state;
[0058] The status diagnosis module 402 is used to determine the status of the EPB switch module based on the level type combination output by the status identification circuit and the preset drive instruction combination output by the controller after being turned on, and the status includes one of: a normal state and a fault state.
[0059] According to another aspect of an embodiment of the present invention, there is further provided an electronic device, comprising: a memory for storing an executable program; and a processor for running the program, wherein the above switch status diagnosis method is executed when the program is running.
[0060] The memory in the above steps can be one of the memories such as random access memory RAM, read-only memory ROM and non-volatile memory, which is used to store programs and data in electronic devices. It is a temporary or permanent storage space that enables the processor to access and execute the information stored therein; the processor is the core component of the electronic device that executes program instructions, and is responsible for executing programs and data stored in the memory and processing various computing tasks. The types of memory and processor are not limited here.
[0061] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is provided. The computer-readable storage medium includes a stored executable program. When the executable program runs, the device where the storage medium is located is controlled to execute the above-mentioned switch status diagnosis method.
[0062] The computer-readable storage medium in the above steps can be a physical device for storing data, including semiconductors, magnetic cores, magnetic drums, magnetic tapes, laser disks, etc. Different media have different storage densities, access speeds and cost-effectiveness. Computer-readable storage media can allow computer systems to read and access information stored therein, which can be temporary or permanent, depending on the method and purpose of storing data.
[0063] According to another aspect of an embodiment of the present invention, a computer program product is further provided. When the computer program is executed by a processor, the above switch state diagnosis method is implemented.
[0064] The computer program product in the above steps may refer to a software product consisting of a series of computer programs, codes and related documents. These programs and codes are written to achieve specific functions and requirements, and usually include application programs, operating systems, database management systems, etc. The core of the computer program product is the program, that is, a collection of codes that perform tasks according to specific rules and logic.
[0065] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0066] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or can be integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0067] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0068] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated units may be implemented in the form of hardware or in the form of software functional units.
[0069] If the units are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk, etc., which can store program codes.
[0070] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A switch state diagnosis circuit, characterized in that: include: Wake-up source; Wake-up circuit; a state identification circuit, the state identification circuit being connected to the wake-up source and the wake-up circuit; An EPB switch module, the EPB switch module is connected to the wake-up source, the wake-up circuit and the state recognition circuit; a controller, the controller being connected to the state recognition circuit, and in response to the EPB switch module being in a static state, determining a state of the EPB switch module based on a combination of level types output by the state recognition circuit and a combination of preset drive instructions output by the controller, the state comprising one of: a normal state and a fault state; The EPB switch module includes a plurality of interfaces; The state recognition circuit comprises: A plurality of driving sub-circuits, each of which is connected to the controller and configured to receive a preset driving instruction from the controller and output a corresponding driving amplification signal based on the preset driving instruction; A plurality of switch subcircuits, wherein the switch subcircuits are connected to the drive subcircuits in a one-to-one correspondence, wherein the connection points are connected to the interfaces in a one-to-one correspondence, and the drive amplified signal is output to the controller through the switch tubes; An enabling circuit, the enabling circuit is connected to the switch sub-circuit and the controller, and is used to receive a startup instruction from the controller to turn on the switch tube of the switch sub-circuit.
2. The switch state diagnosis circuit according to claim 1, characterized in that: It also includes a power module and a pull-up source module, wherein the power module is connected to the wake-up circuit, and the pull-up source module is connected to the state identification circuit; The controller is also connected to the wake-up source. In response to the EPB switch module being in the awake state and meeting the preset conditions, the controller turns off the wake-up source, thereby turning off the power supply of the power module, and at the same time, turns on the power supply of the pull-up source module, wherein the power supply voltage of the power module is greater than the power supply voltage of the pull-up source module.
3. The switch state diagnosis circuit according to claim 1, characterized in that: The wakeup source includes a first wakeup source and a second wakeup source, and the wakeup circuit includes a first wakeup circuit and a second wakeup circuit; The EPB switch module comprises: A first end, the first end is connected to the first wake-up source and to the state recognition circuit; a second end, the second end being connected to the first wake-up circuit and to the state recognition circuit; a third end, the third end being connected to the second wake-up circuit and to the state recognition circuit; A fourth end, the fourth end is connected to the second wake-up source and to the state identification circuit.
4. A switch status diagnosis method, characterized in that: include: In response to the EPB switch module being in the awake state, turning on the state identification circuit of the switch state diagnosis circuit according to any one of claims 1 to 3; After being turned on, in response to the EPB switch module being in a static state, the state of the EPB switch module is determined based on the level type combination output by the state recognition circuit and the preset drive instruction combination output by the controller, and the state includes one of: a normal state and a fault state.
5. The switch status diagnosis method according to claim 4, characterized in that: The method of determining the state of the EPB switch module based on the level type combination output by the state recognition circuit and the preset drive instruction combination output by the controller includes: When at least one level in the level type combination is not 0 and meets the first preset driving instruction combination output by the controller, the state is determined to be a first fault state; When at least one level in the level type combination is not 1 and meets the second preset driving instruction combination output by the controller, the state is determined to be a second fault state; When all levels in the level type combination are not all 1 and meet the third preset driving instruction combination output by the controller, it is determined that the state is a third fault state; When all levels in the level type combination are 1 and conform to the third preset driving instruction combination output by the controller, it is determined that the state is a normal state.
6. The switch status diagnosis method according to claim 5, characterized in that: The first fault state is a short circuit to power supply fault, the second fault state is a short circuit to ground fault, and the third fault state is an open circuit fault; When the short circuit to power supply fault is detected, a first warning message is sent to the user's handheld display device and the user's vehicle-mounted display device; when the short circuit to ground fault or the open circuit fault is detected, a second warning message is sent to the user's vehicle-mounted display device.
7. A switch status diagnostic device, characterized in that: include: A circuit calling module, configured to start a state identification circuit of the switch state diagnosis circuit according to any one of claims 1 to 3 in response to the EPB switch module being in a wake-up state; The status diagnosis module is used to determine the status of the EPB switch module based on the level type combination output by the status identification circuit and the preset drive instruction combination output by the controller after being turned on, and the status includes one of: normal status and fault status.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein when the program is executed, the switch state diagnosis method according to any one of claims 4 to 6 is executed in a processor of a device where the program is controlled.
9. An electronic device, characterized in that: include: one or more processors; A storage device for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors execute the switch state diagnosis method according to any one of claims 4 to 6.
Citation Information
Patent Citations
Electronic parking brake system and method for waking up the system in sleep mode
CN109606338A
Multichannel analog input detection circuit with trigger wake-up function
CN111142449A