EPB switch input device, EPB controller, electronic parking control system and method
By using a controllable resistor sub-circuit and control unit in the EPB switch input device to identify the input status and diagnose the fault, the problems of high integration and poor flexibility of the EPB switch input reading scheme in the prior art are solved, and the EPB switch and Flexible design of motor control devices and stability of chip supply.
Patent Information
- Application Number
- CN202411022978.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-29
- Publication Date
- 2024-11-26
- Estimated Expiration
- 2044-07-29
AI Technical Summary
The existing EPB switch input reading solutions have problems such as high integration, poor flexibility and single suppliers, resulting in short supply of chips and insufficient design flexibility.
Design an EPB switch input device, including a controllable pull-up resistor circuit and a controllable pull-down resistor circuit, change the on state of these resistors through the control unit, obtain the output level state of the EPB switch, and according to the preset correspondence relationship Identify input status and diagnose faults to realize separate selection of EPB switches and motor control devices.
Improves flexibility in EPB switch input reading, reduces the risk of chip supply shortage, makes motor controller design more flexible, and simplifies the implementation process through a clear logical structure.
Smart Images

Figure CN119018104A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of vehicle control technology, and in particular to an EPB switch input device, an EPB controller, an electronic parking control system and a method. Background Art
[0002] The EPB (Electrical Park Brake) switch replaces the mechanical handbrake in the vehicle, and changes the original situation where the driver pulls the handbrake mechanical lever to lock the wheel through the mechanical structure connected to it, to the driver only needs to gently pull up or press the EPB switch to easily tighten and release the wheel end caliper, thereby achieving the purpose of parking. In addition, due to the addition of the motor, EPB can also realize multiple functions such as automatic parking. Therefore, the EPB switch has gradually become one of the key components of the vehicle.
[0003] However, the structure of the EPB switch is not the common input high and low level, PWM input or analog signal input, but an input of an interconnected relationship. For example, see Figure 1 and Figure 2 ,in, Figure 1 It is a schematic diagram of a specific example structure of an EPB switch in the related art; Figure 2 for Figure 1 Schematic diagram of the connection relationship of the EPB switch in different states. Figure 1 It can be seen that the EPB switch mainly includes Figure 1 The switch body (not shown in the figure) of the "Apply" and "Release" buttons shown in the figure and the connection line (not shown in the figure) having four output ports, namely, the first output port EPB_SW1, the second output port EPB_SW2, the third output port EPB_SW3 and the fourth output port EPB_SW4. When the driver operates the EPB switch (such as pressing the "Apply" or "Release" button), the connection state of the connection line will change. The controller identifies the driver's intention to input the EPB switch by judging the connection states of the four output ports, namely, the first output port EPB_SW1, the second output port EPB_SW2, the third output port EPB_SW3 and the fourth output port EPB_SW4 of the EPB switch, and then controls the vehicle brake to perform corresponding actions, and can judge the wrong connection relationship under the fault state. When the EPB switch is in different input states, the connection relationship of the four output ports is different, such as Figure 2As shown: when the EPB switch is in the middle position (i.e., zero position), the first output port EPB_SW1 is connected to the third output port EPB_SW3, and the second output port EPB_SW2 is connected to the fourth output port EPB_SW4; when the EPB switch is in the tightened (i.e., pulled up) state, the first output port EPB_SW1, the second output port EPB_SW2, and the fourth output port EPB_SW4 are connected; when the EPB switch is in the released state, the first output port EPB_SW1, the third output port EPB_SW3, and the fourth output port EPB_SW4 are connected. At present, the mainstream solution for reading the EPB switch state is to read it through an integrated chip, which has the following defects:
[0004] On the one hand, the current mainstream chips with EPB switch input reading solutions are only a few chips from one chip company, and they all integrate multiple functions such as EPB switch input and motor controller, and are targeted at the architecture of the current mainstream electric control brake system. They are not friendly to other brake architectures and have low design flexibility. On the other hand, due to the relatively single supplier, once the chip shortage occurs due to limited production capacity or other reasons, it is difficult to continue production by finding alternative materials. There is a risk of insufficient production capacity due to the shortage of chips with EPB switch input reading function.
[0005] It should be noted that the information disclosed in the background technology section of the invention is only intended to deepen the understanding of the general background technology of the invention, and should not be regarded as an admission or suggestion in any form that the information constitutes prior art already known to those skilled in the art. Summary of the invention
[0006] The purpose of the present invention is to provide an EPB switch input device, an EPB controller, an electronic parking control system and a method to address one or more of the problems in the prior art when reading the input status of the EPB switch, such as high integration, poor flexibility and high dependence. The present invention not only enables the EPB switch and the motor control device to be selected separately, making the design of the motor controller more flexible, but also reduces the risk of insufficient production capacity due to the shortage of chips with EPB switch input reading function.
[0007] In order to achieve the above-mentioned object, the present invention is implemented by the following technical scheme: an EPB switch input device for an EPB switch, the EPB switch input device comprising an EPB switch input circuit and a control unit, the number of the EPB switch input circuits being the same as the number of the output ports of the EPB switch; the first end of the EPB switch input circuit being configured to be connected to the output port corresponding thereto, and the second end of the EPB switch input circuit being connected to the control unit; the EPB switch input circuit comprising a controllable pull-up resistor subcircuit and a controllable pull-down resistor subcircuit;
[0008] The control unit is configured to sequentially change the on and off states of the pull-down resistor subcircuit and the controllable pull-up resistor subcircuit of all the EPB switch input circuits and obtain the output level states of all the EPB switch input circuits in each state, and obtain the output level combination result of the output level states of all the EPB switch input circuits in the same polling cycle;
[0009] The control unit is further used to identify the current input state of the EPB switch and / or diagnose a fault of the EPB switch according to the output level combination result and a preset correspondence between the EPB switch input circuit output level and the EPB switch input state.
[0010] Optionally, the controllable pull-up resistor subcircuit includes a controllable pull-up resistor, and the controllable pull-down resistor subcircuit includes a controllable pull-down resistor; the first end of the controllable pull-up resistor of each EPB switch input circuit is coupled to the first end of the controllable pull-down resistor to form a common contact, the first end of the common contact is configured to be connected to the output port corresponding to the EPB switch input circuit, and the second end of the common contact is coupled to the control unit; the second end of the controllable pull-up resistor and the second end of the controllable pull-down resistor are respectively coupled to the control unit;
[0011] The control unit is configured to sequentially control the controllable pull-down resistors of all the EPB switch input circuits to be turned on, the controllable pull-up resistors of one of the EPB switch input circuits to be turned on and the controllable pull-up resistors of the other circuits to be turned off, and obtain the output level states of all the EPB switch input circuits in each state, and obtain the output level combination result of the output level states of all the EPB switch input circuits in the same polling cycle.
[0012] Optionally, the EPB switch input circuit has at least four paths, and the EPB switch input circuit configured to connect to the first output port of the EPB switch also includes a fixed pull-up resistor for a wake-up function, and a first end of the fixed pull-up resistor is coupled to the common contact point.
[0013] Optionally, the EPB switch input circuit configured to be connected to the fourth output port of the EPB switch also includes a fixed pull-down resistor and a wake-up circuit, wherein the first end of the fixed pull-down resistor is coupled to the common contact, the first end of the wake-up circuit is coupled to the common contact, and the second end of the wake-up circuit is configured to be coupled to a wake-up pin of a system base chip, and the system base chip is used to power the control unit.
[0014] Optionally, the ratio of the resistance value of the controllable pull-up resistor to the resistance value of the controllable pull-down resistor is less than 1 / 9; the resistance values of the fixed-value pull-up resistor and the fixed-value pull-down resistor are equal and both are greater than 500k ohms.
[0015] Optionally, each of the EPB switch input circuits further includes an anti-static current subcircuit; a first end of the anti-static current subcircuit is coupled to a second end of the common point, and a second end of the anti-static current subcircuit is coupled to the control unit.
[0016] Optionally, the preset correspondence between the output level of the EPB switch input circuit and the input state of the EPB switch includes a first truth table of the output level of each EPB switch input circuit in the same polling cycle when the EPB switch is in a zero position state, a second truth table of the output level of each EPB switch input circuit in the same polling cycle when the EPB switch is in a tightened state, and a third truth table of the output level of each EPB switch input circuit in the same polling cycle when the EPB switch is in a released state;
[0017] The control unit is configured to identify the current input state of the EPB switch according to the output level combination result and the first output level truth table, the second output level truth table and the third output level truth table; and if the output level combination result obtained within a polling cycle does not find the corresponding output level truth table, then start the next polling cycle to re-acquire the output level combination result.
[0018] Optionally, the preset correspondence between the output level of the EPB switch input circuit and the input state of the EPB switch further includes a fourth truth table of the output level of each of the EPB switch input circuits in the same polling cycle when the EPB switch is in a short-circuit state and / or a fifth truth table of the output level of each of the EPB switch input circuits in the same polling cycle when the EPB switch is in an open-circuit state;
[0019] The control unit is further configured to diagnose a fault of the EPB switch according to the output level combination result and the fourth output level truth table and / or the fifth output level truth table.
[0020] In order to achieve the above object, the present invention further provides an EPB controller, which includes an EPB switch and any one of the above-mentioned EPB switch input devices.
[0021] In order to achieve the above object, the present invention further provides an electronic parking control system, which includes any one of the above-mentioned EPB switch input devices or the above-mentioned EPB controller.
[0022] In order to achieve the above object, the present invention further provides a method for obtaining the EPB switch input state, which is used for any of the above-mentioned EPB switch input devices, the above-mentioned EPB controller or the above-mentioned electronic parking control system, and the obtaining method includes:
[0023] Sequentially changing the on and off states of the controllable pull-down resistor subcircuit and the controllable pull-up resistor subcircuit of all the EPB switch input circuits and acquiring the output level states of all the EPB switch input circuits in each state, and obtaining the output level combination result of the output level states of all the EPB switch input circuits in the same polling cycle;
[0024] According to the output level combination result and the preset correspondence between the EPB switch input circuit output level and the EPB switch input state, the current input state of the EPB switch is identified and / or the fault of the EPB switch is diagnosed.
[0025] Compared with the prior art, the EPB switch input device, EPB controller, electronic parking control system and method provided by the present invention have the following advantages:
[0026] The EPB switch input device provided by the present invention comprises an EPB switch input circuit corresponding to the output port of the EPB switch one by one, and each EPB switch input circuit comprises a controllable pull-up resistor subcircuit and a controllable pull-down resistor subcircuit, thereby laying a foundation for a control unit to change the on and off states of the controllable pull-up resistor subcircuit and the controllable pull-down resistor subcircuit to obtain the connection state of the output port of the EPB switch and thereby identify the intention of the driver to input the EPB switch; further, the control unit sequentially changes the on and off states of the controllable pull-down resistor subcircuit and the controllable pull-up resistor subcircuit of all the EPB switch input circuits and obtains the output level state of all the EPB switch input circuits in each state, thereby obtaining The output level combination result of the output level states of all the EPB switch input circuits in the same polling cycle is obtained, and the corresponding relationship between the output level of the EPB switch input circuit and the EPB switch input state is preset according to the output level combination result, so as to realize the identification of the current input state of the EPB switch and / or diagnose the fault of the EPB switch. Therefore, the EPB switch input device provided by the present invention can replace the chip with EPB switch input bound to the motor control function, so that the EPB switch and the motor control device can be selected separately, so that the design of the motor controller is more flexible, thereby reducing the risk of insufficient production capacity caused by the shortage of chips with EPB switch input reading function. Furthermore, the EPB switch input device provided by the present invention has clear logic, simple structure, and is easy to implement.
[0027] Furthermore, the EPB switch input device provided by the present invention is configured to connect the EPB switch input circuit of the fourth output port of the EPB switch and further includes a fixed pull-down resistor and a wake-up circuit, the first end of the fixed pull-down resistor is coupled to the common contact, the first end of the wake-up circuit is coupled to the common contact, and the second end of the wake-up circuit is configured to couple to the wake-up pin of the system basic chip, and the system basic chip is used to power the control unit. Therefore, the present invention can input the EPB switch state to the control unit through the EPB switch input circuit, so that when the EPB controller is in a dormant state, the driver can wake up the EPB controller by toggling the EPB switch.
[0028] Since the EPB controller, electronic parking control system and method provided by the present invention belong to the same inventive concept as the EPB switch input device provided by the present invention, the EPB controller, electronic parking control system and method provided by the present invention at least have all the advantages of the EPB switch input device provided by the present invention. For details on the beneficial effects of the EPB controller, electronic parking control system and method provided by the present invention, please refer to the above description of the beneficial effects of the EPB switch input device provided by the present invention, which will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] Figure 1 It is a schematic diagram of a specific example structure of an EPB switch in the related art;
[0030] Figure 2 for Figure 1 Schematic diagram of the connection relationship of the EPB switch in different states;
[0031] Figure 3 A structural block diagram of an EPB switch input device provided by a first embodiment of the present invention;
[0032] Figure 4a for Figure 3 A structural block diagram of an EPB switch input circuit for connecting to a first output port of an EPB switch in an EPB switch input device shown;
[0033] Figure 4b for Figure 3 A structural block diagram of an EPB switch input circuit for connecting to a second output port of an EPB switch in the EPB switch input device shown;
[0034] Figure 4c for Figure 3 A structural block diagram of an EPB switch input circuit for connecting to a third output port of an EPB switch in the EPB switch input device shown;
[0035] Figure 4d for Figure 3 A structural block diagram of an EPB switch input circuit for connecting a fourth output port of an EPB switch in the EPB switch input device shown;
[0036] Figure 5 A schematic flow chart of a method for acquiring an EPB switch input state provided in a fourth embodiment of the present invention;
[0037] The reference numerals are as follows:
[0038] The first output port-EPB_SW1, the second output port-EPB_SW2, the third output port-EPB_SW3, the fourth output port-EPB_SW4;
[0039] EPB switch - 100;
[0040] EPB switch input circuits-210, 220, 230, 240, control unit-MCU;
[0041] Controllable pull-up resistors - 211, 221, 231, 241, controllable pull-down resistors - 212, 222, 232, 242, common contacts - 213, 223, 233, 243;
[0042] Fixed value pull-up resistor -214, fixed value pull-down resistor -244;
[0043] Anti-static current subcircuit-215, 225, 235, 245;
[0044] Wake-up circuit - 246;
[0045] System Basis Chip - SBC. DETAILED DESCRIPTION
[0046] The EPB switch input device, EPB controller, electronic parking control system and method proposed in the present invention are further described in detail below in conjunction with the accompanying drawings. According to the following description, the advantages and features of the present invention will be clearer. It should be noted that the drawings are in a very simplified form and use non-precise proportions, which are only used to conveniently and clearly assist in explaining the purpose of the embodiments of the present invention. In order to make the purposes, features and advantages of the present invention more obvious and easy to understand, please refer to the drawings. It should be noted that the structures, proportions, sizes, etc. illustrated in the drawings of this specification are only used to match the contents disclosed in the specification for people familiar with this technology to understand and read, and are not used to limit the limiting conditions for the implementation of the present invention. Any modification of the structure, change of the proportional relationship or adjustment of the size, under the same or similar conditions as the effects and purposes that can be achieved by the present invention, should still fall within the scope of the technical content disclosed by the present invention. The specific design features of the present invention disclosed herein include, for example, specific dimensions, directions, positions and shapes, which will be determined in part by the specific environment to be applied and used. And, in the embodiments described below, sometimes the same figure mark is used in common between different drawings to represent the same part or part with the same function, and its repeated description is omitted. In this specification, similar reference numerals and letters are used to refer to similar items, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures. In addition, if the method described herein includes a series of steps, the order of these steps presented herein is not necessarily the only order in which these steps can be performed, and some of the steps described may be omitted and / or some other steps not described herein may be added to the method.
[0047] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements. The singular forms "a", "an" and "the" include plural objects, the term "or" is generally used in a sense including "and / or", the term "several" is generally used in a sense including "at least one", and the term "at least two" is generally used in a sense including "two or more". In addition, the terms "first", "second" and "third" are used for descriptive purposes only and are not to be understood as indicating or suggesting relative importance or implicitly indicating the number of the indicated technical features.
[0048] It should be understood that when an element is referred to as being "connected to" or "coupled to" another element, it may be directly connected to the other element or there may be intervening elements. Conversely, when an element is referred to as being "directly connected to" another element, there are no intervening elements.
[0049] The core idea of the present invention is to provide an EPB switch input device, an EPB controller, an electronic parking control system and a method. The present invention not only enables the EPB switch and the motor control device to be selected separately, making the design of the motor controller more flexible, but also reduces the risk of insufficient production capacity caused by the shortage of chips with EPB switch input reading function.
[0050] It should be noted that the EPB switch input device, EPB controller, electronic parking control system and method provided by the present invention can be applied to vehicles. It should be understood that the term "vehicle" or "vehicle-related" or other similar terms used herein include general motor vehicles, such as passenger vehicles including sports utility vehicles (SUVs), buses, trucks, various commercial vehicles, and hybrid vehicles, electric vehicles, plug-in hybrid electric vehicles, fuel cell vehicles and other alternative fuel vehicles (e.g., fuels obtained from resources other than petroleum).
[0051] In order to realize the above idea, the first embodiment of the present invention provides an EPB switch input device for an EPB switch. Specifically, see Figure 3, Figure 3 This is a structural block diagram of an EPB switch input device provided by a first embodiment of the present invention. Figure 3 It can be seen that the EPB switch input device includes an EPB switch input circuit and a control unit MCU. The EPB switch input circuit ( Figure 3 The number of four EPB switch input circuits 210, EPB switch input circuit 220, EPB switch input circuit 230 and EPB switch input circuit 240 is shown as an example, which is the same as the number of output ports of the EPB switch 100; the first end of the EPB switch input circuit is configured to be connected to the corresponding output port, and the second end of the EPB switch input circuit is connected to the control unit MCU; the EPB switch input circuit includes a controllable pull-up resistor subcircuit (not shown in the figure, an example can be seen below Figure 4a Controllable pull-up resistor 211, below Figure 4b Controllable pull-up resistor 221, below Figure 4c The controllable pull-up resistor 231 or below Figure 4d The controllable pull-up resistor 241 in the figure) and the controllable pull-down resistor subcircuit (not shown in the figure, and can be seen below for example) Figure 4a The controllable pull-down resistor 212, below Figure 4b The controllable pull-down resistor 222 in the following Figure 4c The controllable pull-down resistor 232 or below Figure 4d Specifically, the control unit MCU is configured to sequentially change the on and off states of the controllable pull-down resistor subcircuit and the controllable pull-up resistor subcircuit of all the EPB switch input circuits and obtain the output level states of all the EPB switch input circuits in each state, and obtain the output level combination result of the output level states of all the EPB switch input circuits in the same polling cycle. The control unit MCU is also used to identify the current input state of the EPB switch 100 and / or diagnose the fault of the EPB switch 100 according to the output level combination result and the preset correspondence between the output level of the EPB switch input circuit and the input state of the EPB switch 100.
[0052] Therefore, the EPB switch input device provided by the present invention includes EPB switch input circuits corresponding to the output ports of the EPB switch 100 one by one, and each EPB switch input circuit includes a controllable pull-up resistor subcircuit and a controllable pull-down resistor subcircuit, thereby laying a foundation for the control unit MCU to change the on and off states of the controllable pull-up resistor subcircuit and the controllable pull-down resistor subcircuit to obtain the connection state of the output port of the EPB switch 100 and thereby identify the intention of the driver to input the EPB switch 100; further, the control unit MCU sequentially changes the on and off states of the controllable pull-down resistor subcircuit and the controllable pull-up resistor subcircuit of all the EPB switch input circuits and obtains the output level state of all the EPB switch input circuits in each state, thereby obtaining The output level combination result of the output level states of all the EPB switch input circuits in the same polling cycle is obtained, and according to the output level combination result and the preset corresponding relationship between the output level of the EPB switch input circuit and the input state of the EPB switch 100, the current input state of the EPB switch 100 is identified and / or the fault of the EPB switch 100 is diagnosed. Therefore, the EPB switch input device provided by the present invention can replace the chip with the EPB switch 100 input bound to the motor control function, so that the EPB switch 100 and the motor control device can be selected separately, so that the design of the motor controller is more flexible, thereby reducing the risk of insufficient production capacity caused by the shortage of the chip with the EPB switch 100 input reading function. Furthermore, the EPB switch input device provided by the present invention has clear logic, simple structure, and is easy to implement.
[0053] The EPB switch input device provided by the present invention has at least four EPB switch input circuits. For ease of description and understanding, Figure 3 As shown in this article, an EPB switch input device with four EPB switch input circuits is used as an example for description. However, it should be noted that, as can be understood by those skilled in the art, Figure 3 The EPB switch input device shown with four-way EPB switch input circuits is merely an exemplary description of a preferred embodiment and is not a limitation of the present invention. For example, the EPB switch input device provided by the present invention is also applicable to an EPB switch 100 having a connection relationship less than or equal to six output ports (PINs).
[0054] It should be further noted that the present invention does not impose too many restrictions on the specific implementation of the control unit MCU. Exemplarily, the control unit MCU may be, but is not limited to, a microprocessor (Micro Processing Unit, MPU), other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), application-specific integrated circuits (Application Specific Integrated Circuit, ASIC), field-programmable gate arrays (Field-Programmable Gate Array, FPGA) and other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. It should be further noted that, as those skilled in the art can understand, the present invention does not limit the specific implementation of the control unit MCU. For example, in some exemplary embodiments, the control unit MCU can reuse the relevant hardware resources of the existing vehicle controller of the vehicle, such as reusing the EPB controller, that is, by upgrading the EPB controller, so that the EPB controller can be connected to the EPB switch input circuit and can control the controllable pull-up resistor subcircuit and the controllable pull-down resistor subcircuit of the EPB switch input circuit to have the functions of the control unit MCU of the EPB switch input device provided by the present invention. Obviously, the vehicle controller provided by the present invention can also reuse the hardware resources of other vehicle controllers besides the EPB controller, which are not listed one by one here. Furthermore, in some other exemplary embodiments, the above-mentioned control unit MCU can also have independent hardware resources such as memory and processor, without being integrated with any existing vehicle controller of the vehicle. Furthermore, the present invention does not impose specific restrictions on the specific implementation method of the EPB switch input circuit of the EPB switch input device. For example, in some embodiments, the EPB switch input circuit of the EPB switch input device provided by the present invention can be integrated into a chip. In other embodiments, the EPB switch input circuit of the EPB switch input device can also exist in the form of a discrete device.
[0055] For some of the exemplary embodiments, see Figure 4a , Figure 4b , Figure 4c as well as Figure 4d ,in, Figure 4a for Figure 3 The structure block diagram of the EPB switch input circuit 210 used for connecting the first output port EPB_SW1 of the EPB switch 100 in the EPB switch input device shown; Figure 4b for Figure 3 The structure block diagram of the EPB switch input circuit 220 used for connecting the second output port EPB_SW2 of the EPB switch 100 in the EPB switch input device shown; Figure 4c for Figure 3 The structure block diagram of the EPB switch input circuit 230 used for connecting the third output port EPB_SW3 of the EPB switch 100 in the EPB switch input device shown; Figure 4d for Figure 3 FIG. 1 is a block diagram of a structure of an EPB switch input circuit 240 in an EPB switch input device for connecting to a fourth output port EPB_SW4 of the EPB switch 100. Figure 4a , Figure 4b , Figure 4c as well as Figure 4d It can be seen that the controllable pull-up resistor subcircuit includes a controllable pull-up resistor (exemplarily, such as Figure 4a The controllable pull-up resistor 211 of the EPB switch input circuit 210 is shown as Figure 4b The controllable pull-up resistor 221 of the EPB switch input circuit 220 is shown as Figure 4c The controllable pull-up resistor 231 of the EPB switch input circuit 230 and the Figure 4d The controllable pull-up resistor 241 of the EPB switch input circuit 240 is shown, and the controllable pull-down resistor subcircuit includes a controllable pull-down resistor (exemplarily, Figure 4a The controllable pull-down resistor 212 of the EPB switch input circuit 210 is shown as Figure 4b The controllable pull-down resistor 222 of the EPB switch input circuit 220 is shown as Figure 4c The controllable pull-down resistor 232 of the EPB switch input circuit 230 and the Figure 4d The controllable pull-down resistor 242 of the EPB switch input circuit 240 shown in the figure); the first end of the controllable pull-up resistor of each EPB switch input circuit is coupled to the first end of the controllable pull-down resistor to form a common point (exemplarily, as shown in FIG. Figure 4a The common point 213 of the EPB switch input circuit 210 is shown as Figure 4b The common point 223 of the EPB switch input circuit 220 is shown as Figure 4c The common point 233 of the EPB switch input circuit 230 and the Figure 4d The common point 243 of the EPB switch input circuit 240 is shown in FIG. 1 , and the first end of the common point is configured to be connected to the output port corresponding to the EPB switch input circuit (exemplarily, as shown in FIG. 1 ). Figure 4a The first end of the common point 213 of the EPB switch input circuit 210 is coupled to the first output port EPB_SW1 of the EPB switch 100. Figure 4b The first end of the common point 223 of the EPB switch input circuit 220 is coupled to the second output port EPB_SW2 of the EPB switch 100. Figure 4cThe first end of the common point 233 of the EPB switch input circuit 230 is coupled to the third output port EPB_SW3 of the EPB switch 100. Figure 4d The first end of the common contact 243 of the EPB switch input circuit 240 is coupled to the fourth output port EPB_SW4 of the EPB switch 100, and the second end of the common contact is coupled to the control unit MCU; the second end of the controllable pull-up resistor and the second end of the controllable pull-down resistor are respectively coupled to the control unit MCU. The control unit MCU is configured to sequentially control the controllable pull-down resistors of all the EPB switch input circuits to be turned on, the controllable pull-up resistors of one of the EPB switch input circuits to be turned on and the controllable pull-up resistors of the other circuits to be turned off, and to obtain the output level state of all the EPB switch input circuits in each state, and obtain the output level combination result of the output level state of all the EPB switch input circuits in the same polling cycle.
[0056] It can be seen that the EPB switch input device provided by the present invention, the controllable pull-up resistor subcircuit adopts a controllable pull-up resistor, and the controllable pull-down resistor subcircuit adopts a controllable pull-down resistor design mode, which is not only more convenient for the control of the control unit MCU, but also the controllable pull-up resistor and the controllable pull-down resistor are easy to obtain and inexpensive, and the circuit structure is simple and easy to implement. It should be noted that, as can be understood by those skilled in the art, the controllable pull-up resistor subcircuit described herein adopts a controllable pull-up resistor, and the controllable pull-down resistor subcircuit only adopts a controllable pull-down resistor design mode is only an exemplary description of a preferred embodiment, and is not a limitation of the present invention. In other embodiments, other methods other than a controllable pull-up resistor and a controllable pull-down resistor can be used to implement the controllable pull-up resistor subcircuit and the controllable pull-up resistor subcircuit. For example, a circuit composed of a fixed value resistor and a controllable switch can be used. Examples are not given one by one here.
[0057] Preferably, in some exemplary embodiments, the preset correspondence between the output level of the EPB switch input circuit and the input state of the EPB switch 100 includes a first truth table of the output level of each of the EPB switch input circuits in the same polling cycle when the EPB switch 100 is in the zero position state, a second truth table of the output level of each of the EPB switch input circuits in the same polling cycle when the EPB switch 100 is in the tightened state, and a third truth table of the output level of each of the EPB switch input circuits in the same polling cycle when the EPB switch 100 is in the released state. The control unit MCU is configured to identify the current input state of the EPB switch 100 according to the output level combination result and the first output level truth table, the second output level truth table, and the third output level truth table; and if the output level combination result obtained in a polling cycle does not find the corresponding output level truth table, then start the next polling cycle to re-acquire the output level combination result.
[0058] Therefore, the EPB switch input device provided by the present invention has different truth tables corresponding to the output level states of the EPB switch input circuit when the EPB switch 100 inputs different states. Therefore, by polling the truth tables corresponding to the various EPB switch input circuits when the EPB switch 100 is in different states, it is possible to identify whether the EPB switch 100 is currently in a zero state, a tightened state, or a released state. This allows the EPB switch input device provided by the present invention to replace the chip with the EPB switch 100 input bound to the motor control function, and allows the EPB switch 100 and the motor control device to be selected separately, thereby making the design of the motor controller more flexible, thereby reducing the risk of insufficient production capacity due to a shortage of chips with the EPB switch 100 input reading function.
[0059] Exemplarily, please refer to Table 1, Table 2 and Table 3, wherein Table 1 is a first truth table of the output level of each EPB switch input circuit in the same polling cycle when the EPB switch 100 is in the zero position state, Table 2 is a second truth table of the output level of each EPB switch input circuit in the same polling cycle when the EPB switch 100 is in the tightened state, and Table 3 is a third truth table of the output level of each EPB switch input circuit in the same polling cycle when the EPB switch 100 is in the released state.
[0060] Table 1
[0061]
[0062] Table 2
[0063]
[0064] Table 3
[0065]
[0066] Specifically, when the four output ports of the EPB switch 100 are in a weak pull-down state by default, if a strong pull-up is applied to one of the output ports, according to Figure 2 According to the connection relationship shown, the input port itself and the input port connected to the output port will be in a high level state, and the output port without a connection relationship will be in a low level state. According to this principle, when the EPB controller enters the normal working state, the controllable pull-down resistors 212, 222, 232 and 242 of the four-way EPB switch input circuits 210, 220, 230 and 240 will be turned on, and one of the controllable pull-up resistors 211, 221, 231 and 241 of the four-way EPB switch input circuits 210, 220, 230 and 240 will be turned on in turn by polling, and the control unit MCU reads the high and low level states of the outputs of the four-way EPB switch input circuits, thereby identifying the current input state of the EPB switch 100.
[0067] Exemplarily, in one embodiment, the controllable pull-down resistors 212, 222, 232 and 242 of the four EPB switch input circuits are first turned on simultaneously, and then the controllable pull-up resistor 211 of the first EPB switch input circuit 210 is turned on (pulled up), and the controllable pull-up resistor 221 of the second EPB switch input circuit 220, the controllable pull-up resistor 231 of the third EPB switch input circuit 230 and the controllable pull-up resistor 241 of the fourth EPB switch input circuit 240 are disconnected, so that the output level states of the four EPB switch input circuits are: high, low, high, low; then the controllable pull-up resistor 221 of the second EPB switch input circuit 220 is turned on (pulled up), and the controllable pull-up resistor 211 of the first EPB switch input circuit 210, the controllable pull-up resistor 231 of the third EPB switch input circuit 230 and the controllable pull-up resistor 241 of the fourth EPB switch input circuit 240 are disconnected, The output level states of the four EPB switch input circuits are obtained in sequence: low, high, low, high; then, the controllable pull-up resistor 231 of the third EPB switch input circuit 230 is turned on (pulled up), and the controllable pull-up resistor 211 of the first EPB switch input circuit 210, the controllable pull-up resistor 221 of the second EPB switch input circuit 220, and the controllable pull-up resistor 241 of the fourth EPB switch input circuit 240 are disconnected, and the output level states of the four EPB switch input circuits are obtained in sequence: high, low, high, low; finally, the controllable pull-up resistor 241 of the fourth EPB switch input circuit 240 is turned on (pulled up), and the controllable pull-up resistor 211 of the first EPB switch input circuit, the controllable pull-up resistor 221 of the second EPB switch input circuit 220, and the controllable pull-up resistor 231 of the third EPB switch input circuit 230 are disconnected, and the output level states of the four EPB switch input circuits are obtained in sequence: low, high, low, high. So far, a complete polling cycle is obtained from the continuous four polling pull-up conduction states from the controllable pull-up resistor 211 of the first EPB switch input circuit 210 being turned on (pulled up) to the controllable pull-up resistor 241 of the fourth EPB switch input circuit 240 being turned on (pulled up). At this time, the output level combination results in the polling cycle are: high-low-high-low, low-high-low-high, high-low-high-low, and low-high-low-high. By comparing Table 1, Table 2 and Table 3, it can be concluded that the output level combination result is completely consistent with Table 1, so it can be determined that the EPB switch 100 is currently in the zero position state. If the output level combination result read by the control unit MCU in the same polling cycle does not have a corresponding truth table, the control unit MCU believes that the EPB switch 100 has switched in this polling cycle, and then waits for the output level combination result of the next polling cycle.
[0068] Furthermore, in a specific example, according to the current hardware circuit design, the time for each EPB switch input circuit from the control unit MCU outputting the pull-up signal to the EPB switch input circuit reading the output level state of the four EPB switch input circuits is 2.5ms. This period of time can ensure that the level state of the EPB switch input circuit can reach a stable state after the pull-up controllable resistor is switched. Therefore, the time required for a whole polling cycle is 10ms. In the most extreme case where the EPB switch 100 changes, within 2.5ms after the pull-up of the first EPB switch input circuit 110 has been turned on, the four EPB switch input circuits cannot reach a stable state before the control unit MCU reads the state, so this round of polling is invalid and it is necessary to wait for the next polling cycle. It can be seen that the EPB switch input device provided by the present invention can take no longer than 20ms from the change of the EPB switch 100 to the control unit MCU reading the corresponding state, and can respond well to the driver's operation of the EPB switch 100.
[0069] Furthermore, in some exemplary embodiments, the preset correspondence between the output level of the EPB switch input circuit and the input state of the EPB switch 100 further includes a fourth truth table of the output level of each of the EPB switch input circuits in the same polling cycle when the EPB switch 100 is in a short-circuit state and / or a fifth truth table of the output level of each of the EPB switch input circuits in the same polling cycle when the EPB switch 100 is in an open-circuit state. The control unit MCU is further configured to diagnose a fault of the EPB switch 100 according to the output level combination result and the fourth truth table of the output level and / or the fifth truth table of the output level.
[0070] Therefore, in the EPB switch input device provided by the present invention, the preset correspondence between the output level of the EPB switch input circuit and the input state of the EPB switch 100 also includes a fourth truth table of the output level when the EPB switch 100 is in a short-circuit state and a fifth truth table of the output level when the EPB switch 100 is in an open-circuit state, thereby laying a foundation for the control unit MCU to diagnose whether the EPB switch 100 is in a fault state according to the output level combination result, so that the EPB switch input device provided by the present invention has the function of diagnosing the fault of the EPB switch 100.
[0071] It should be noted that, as those skilled in the art can understand, the first output level truth table, the second output level truth table, the third output level truth table, the third output level truth table, the fourth output level truth table and the fifth output level truth table of the preset correspondence between the output level of the EPB switch input circuit and the input state of the EPB switch 100 are merely exemplary descriptions, and not limitations of the present invention. The present invention does not impose excessive restrictions on the specific content of the preset correspondence between the output level of the EPB switch input circuit and the input state of the EPB switch 100.
[0072] Preferably, in some of the exemplary embodiments, please continue to refer to Figure 4a ,from Figure 4a It can be seen that the EPB switch input circuit configured to be connected to the first output port EPB_SW1 of the EPB switch 100 further includes a fixed value pull-up resistor 214 for a wake-up function, and a first end of the fixed value pull-up resistor 214 is coupled to the common contact 213. Therefore, the EPB switch input device provided by the present invention can pull up the output of the EPB switch 100 to the VBAT (battery power supply) normal power supply through the fixed value pull-up resistor 214 for the wake-up function, thereby ensuring the power supply requirement of the control unit MCU in a sleep state.
[0073] Preferably, in some of the exemplary embodiments, see Figure 4d ,from Figure 4d It can be seen that the EPB switch input circuit configured to be connected to the fourth output port EPB_SW4 of the EPB switch 100 also includes a fixed pull-down resistor 244 and a wake-up circuit 246, wherein the first end of the fixed pull-down resistor 244 is coupled to the common contact 243, the first end of the wake-up circuit 246 is coupled to the common contact 243, and the second end of the wake-up circuit 246 is configured to be coupled to the wake-up pin of the system basis chip SBC (System Basis Chip), and the system basis chip SBC is used to power the control unit MCU.
[0074] Specifically, the EPB switch input device provided by the present invention has a first EPB switch input circuit 210 with a fixed pull-up resistor 214 pulled up to the VBAT constant power, and a fourth EPB switch input circuit 240 with a wake-up circuit 246 connected to the wake-up PIN (pin) of the system basic chip SBC and a fixed pull-down resistor 244. Figure 2As shown in the connection relationship, when the EPB switch 100 is in the middle position, the output of the first path (the first EPB switch input circuit 210 is connected to the first output port EPB_SW1 of the EPB switch 100) and the output of the fourth path (the fourth EPB switch input circuit 240 is connected to the fourth output port EPB_SW4 of the EPB switch 100) have no connection relationship, and when the EPB switch 100 is in the released or tightened state, the first path output has a connection relationship with the fourth path output. According to this principle, when the EPB controller is not in sleep mode, after the driver turns the EPB switch 100, the level of the fourth EPB switch input circuit 240 will be converted from the low level provided by the original fixed pull-down resistor 244 to the voltage formed by the fixed pull-up resistor 214 and the fixed pull-down resistor 244. This voltage can make the wake-up circuit 246 output a high level to the system basic chip SBC wake-up PIN, thereby waking up the system basic chip SBC power supply and the entire EPB controller.
[0075] Preferably, in some exemplary embodiments, the ratio of the resistance of the controllable pull-up resistors 211, 221, 231, 241 to the resistance of the controllable pull-down resistors 212, 222, 232, 242 is less than 1 / 9; the resistance of the fixed-value pull-up resistor 214 and the fixed-value pull-down resistor 244 are equal and both are greater than 500k ohms. Thus, by setting the ratio of the resistance of the controllable pull-up resistors 211, 221, 231, 241 to the resistance of the controllable pull-down resistors 212, 222, 232, 242 to be less than 1 / 9, it is possible to ensure that when multiple EPB switch input circuits 210, 220, 230 and 240 are connected, the state of the EPB switch input device can be effectively identified. By making the resistance values of the fixed pull-up resistor 214 and the fixed pull-down resistor 244 equal and greater than 500k ohms, it can be ensured that after the EPB switch 100 inputs a state that meets the wake-up condition (i.e., after the voltage is divided by the fixed pull-up resistor 214 and the fixed pull-down resistor 244), the voltage can reach the voltage determined by the wake-up circuit 246 as a valid wake-up source, and it can also be ensured that the resistance is large enough when the EPB switch 100 does not input the wake-up source signal, thereby effectively preventing excessive leakage current from consuming the battery power when parking.
[0076] Exemplarily, as a preferred method, the resistance value of a single controllable pull-up resistor is set to be less than 1 / 9 of the resistance value of a single controllable pull-down resistor. Figure 3As shown, when the EPB switch input circuits 210, 220, 230 and 240 are connected to a total of 4 EPB switch input circuits, (for example, when a maximum of 4 controllable pull-down resistors 212, 222, 232, 242 are connected in parallel with a controllable pull-up resistor (for example, the controllable pull-up resistor 211 of the EPB switch input circuit 210) to divide the voltage, it can ensure that the corresponding EPB switch input circuit (for example, the EPB switch input circuit 210) is identified as a high level. Preferably, by setting the resistance value of the fixed-value pull-up resistor 214 to be equal to the resistance value of a single fixed-value pull-down resistor 244, for example, the resistance values are both greater than 500k ohms, it can ensure that the fixed-value pull-down resistor 244 providing the wake-up function is connected to the EPB switch 100 when the input meets the wake-up condition. After the state (that is, after the voltage is divided by two fixed resistors), the voltage that the wake-up circuit determines as an effective wake-up source is reached, and when the EPB switch 100 does not input the wake-up source signal, the resistance is large enough to effectively prevent excessive leakage current from consuming the battery power when parking. It should be noted that those skilled in the art can understand that the resistance of the pull-up resistor in this article: the resistance of a single controllable pull-down resistor is less than 1 / 9, and the resistance of the fixed pull-up resistor and the single fixed pull-down resistor 244 are both greater than 500K ohms are only exemplary descriptions of preferred embodiments, and are not limitations of the present invention. When applying the present invention, the resistance of the controllable pull-up resistor, the resistance of the controllable pull-down resistor, the resistance of the fixed pull-down resistor, and the resistance of the fixed pull-up resistor should be reasonably set according to actual needs.
[0077] Please continue to see Figure 4a , Figure 4b , Figure 4c as well as Figure 4d ,from Figure 4a , Figure 4b , Figure 4c as well as Figure 4d It can be seen that in some exemplary embodiments, each of the EPB switch input circuits further includes an anti-static current subcircuit (exemplarily, such as Figure 4a The anti-static current subcircuit 215 of the EPB switch input circuit 210 is shown as Figure 4b The anti-static current subcircuit 225 of the EPB switch input circuit 220 is shown as Figure 4c The anti-static current subcircuit 235 of the EPB switch input circuit 230 and the Figure 4d The anti-static current subcircuit 245 of the EPB switch input circuit 240 shown in FIG. 240); the first end of the anti-static current subcircuit is coupled to the second end of the common point (exemplarily, as shown in FIG. 245 ). Figure 4a The first terminal of the anti-static current sub-circuit 215 is coupled to the second terminal of the common point 213, as shown in FIG. Figure 4b The first end of the anti-static current sub-circuit 225 is coupled to the second end of the common point 223, as shown in FIG. Figure 4cThe first terminal of the anti-static current sub-circuit 235 is coupled to the second terminal of the common point 233 and the Figure 4d The first end of the anti-static current subcircuit 245 is coupled to the second end of the common contact 243), and the second end of the anti-static current subcircuit is coupled to the control unit MCU. Since each EPB switch input circuit has an anti-static current subcircuit, the anti-static current subcircuit will disconnect the input circuit of the control unit MCU after the EPB controller is powered off, and the anti-static current subcircuit will be closed when the EPB controller is powered on normally, which can prevent the EPB switch input circuit from discharging to the control unit MCU, thereby protecting the control unit MCU well, thereby improving the safety and reliability of the EPB switch input device.
[0078] It should be noted that, as those skilled in the art can understand, the present invention does not impose too many restrictions on the specific implementation of the anti-static current subcircuit. For more detailed information about the anti-static current subcircuit, please refer to the relevant technical adaptability understanding known to those skilled in the art, and no further description will be given here.
[0079] Based on the same inventive concept, the second embodiment of the present invention provides an EPB controller, and the EPB controller provided in this embodiment includes an EPB switch and an EPB switch input device provided in any implementation manner of the first embodiment of this invention. Since the EPB controller provided by the present invention and the EPB switch input device provided by the present invention belong to the same inventive concept, the EPB controller provided by the present invention at least has all the advantages of the EPB switch input device provided by the present invention. For details of the beneficial effects of the EPB controller provided by the present invention, please refer to the above description of the beneficial effects of the EPB switch input device provided by the present invention, which will not be repeated here. Furthermore, since the basic principle of the EPB controller provided by the present invention is the same as the basic principle of the EPB switch input device provided by the present invention, for more detailed contents of the EPB controller provided by the present invention, please refer to the above description of the EPB switch input device described above for an adaptive understanding, which will not be repeated here.
[0080] Based on the same inventive concept, a third embodiment of the present invention provides an electronic parking control system. The electronic parking control system provided by this embodiment includes the EPB switch input device provided by any implementation of the first embodiment of this invention or includes the EPB controller provided by the second embodiment of this invention.
[0081] Based on the same inventive concept, a fourth embodiment of the present invention provides a method for obtaining the EPB switch input state. It is used in the switch input device, EPB controller or electronic parking control system provided by the present invention. For details, please refer to Figure 5 , Figure 5The flowchart of the method for obtaining the EPB switch input state provided in this embodiment is as follows. Figure 5 It can be seen that the acquisition method includes:
[0082] S100: sequentially changing the on and off states of the controllable pull-down resistor subcircuits and the controllable pull-up resistor subcircuits of all the EPB switch input circuits and acquiring the output level states of all the EPB switch input circuits in each state, and obtaining the output level combination results of the output level states of all the EPB switch input circuits in the same polling cycle;
[0083] S200: According to the output level combination result and a preset correspondence relationship between the EPB switch input circuit output level and the EPB switch input state, identify the current input state of the EPB switch and / or diagnose a fault of the EPB switch.
[0084] Compared with the prior art, the EPB switch input device, EPB controller, electronic parking control system and method provided by the present invention have the following advantages:
[0085] The EPB switch input device provided by the present invention comprises an EPB switch input circuit corresponding to the output port of the EPB switch one by one, and each EPB switch input circuit comprises a controllable pull-up resistor subcircuit and a controllable pull-down resistor subcircuit, thereby laying a foundation for a control unit to change the on and off states of the controllable pull-up resistor subcircuit and the controllable pull-down resistor subcircuit to obtain the connection state of the output port of the EPB switch and thereby identify the intention of the driver to input the EPB switch; further, the control unit sequentially changes the on and off states of the controllable pull-down resistor subcircuit and the controllable pull-up resistor subcircuit of all the EPB switch input circuits and obtains the output level state of all the EPB switch input circuits in each state, thereby obtaining The output level combination result of the output level states of all the EPB switch input circuits in the same polling cycle is obtained, and the corresponding relationship between the output level of the EPB switch input circuit and the EPB switch input state is preset according to the output level combination result, so as to realize the identification of the current input state of the EPB switch and / or diagnose the fault of the EPB switch. Therefore, the EPB switch input device provided by the present invention can replace the chip with EPB switch input bound to the motor control function, so that the EPB switch and the motor control device can be selected separately, so that the design of the motor controller is more flexible, thereby reducing the risk of insufficient production capacity caused by the shortage of chips with EPB switch input reading function. Furthermore, the EPB switch input device provided by the present invention has clear logic, simple structure, and is easy to implement.
[0086] Furthermore, the EPB switch input device provided by the present invention is configured to connect the EPB switch input circuit of the fourth output port of the EPB switch and further includes a fixed pull-down resistor and a wake-up circuit, the first end of the fixed pull-down resistor is coupled to the common contact, the first end of the wake-up circuit is coupled to the common contact, and the second end of the wake-up circuit is configured to couple to the wake-up pin of the system basic chip, and the system basic chip is used to power the control unit. Therefore, the present invention can input the EPB switch state to the control unit through the EPB switch input circuit, so that when the EPB controller is in a dormant state, the driver can wake up the EPB controller by toggling the EPB switch.
[0087] Since the EPB controller, electronic parking control system and method provided by the present invention belong to the same inventive concept as the EPB switch input device provided by the present invention, the EPB controller, electronic parking control system and method provided by the present invention at least have all the advantages of the EPB switch input device provided by the present invention. For details on the beneficial effects of the EPB controller, electronic parking control system and method provided by the present invention, please refer to the above description of the beneficial effects of the EPB switch input device provided by the present invention, which will not be repeated here.
[0088] It should be noted that the devices and methods disclosed in the embodiments of this invention may also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architectures, functions and operations of the devices, methods and computer program products according to the multiple embodiments of this invention. In this regard, each box in the flowchart or block diagram may represent a part of a module, program or code, and the module, program segment or part of the code contains one or more executable instructions for implementing the specified logical functions, and the module, program segment or part of the code contains one or more executable instructions for implementing the specified logical functions. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart, can be implemented by a dedicated hardware-based system for performing a specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions.
[0089] In addition, the functional modules in the various embodiments of this document may be integrated together to form an independent part, or each module may exist independently, or two or more modules may be integrated to form an independent part.
[0090] The above description is only a description of a preferred embodiment of an EPB switch input device, an EPB controller, an electronic parking control system and a method provided by the present invention, and is not intended to limit the scope of the present invention. Any changes and modifications made by a person skilled in the art in the field of the present invention based on the above disclosure shall fall within the scope of protection of the present invention. Obviously, a person skilled in the art may make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations fall within the scope of the present invention and its equivalent technologies, the present invention is also intended to include these modifications and variations.
Claims
1. An EPB switch input device for an EPB switch, characterized in that: The EPB switch input device comprises an EPB switch input circuit and a control unit, wherein the number of the EPB switch input circuits is the same as the number of the output ports of the EPB switch; a first end of the EPB switch input circuit is configured to be connected to the corresponding output port, and a second end of the EPB switch input circuit is connected to the control unit; the EPB switch input circuit comprises a controllable pull-up resistor subcircuit and a controllable pull-down resistor subcircuit; The control unit is configured to sequentially change the on and off states of the controllable pull-down resistor subcircuits and the controllable pull-up resistor subcircuits of all the EPB switch input circuits and obtain the output level states of all the EPB switch input circuits in each state, and obtain the output level combination results of the output level states of all the EPB switch input circuits in the same polling cycle; The control unit is further used to identify the current input state of the EPB switch and / or diagnose a fault of the EPB switch according to the output level combination result and a preset correspondence between the EPB switch input circuit output level and the EPB switch input state.
2. The EPB switch input device according to claim 1, characterized in that: The controllable pull-up resistor subcircuit includes a controllable pull-up resistor, and the controllable pull-down resistor subcircuit includes a controllable pull-down resistor; the first end of the controllable pull-up resistor of each EPB switch input circuit is coupled to the first end of the controllable pull-down resistor to form a common contact, the first end of the common contact is configured to be connected to the output port corresponding to the EPB switch input circuit, and the second end of the common contact is coupled to the control unit; the second end of the controllable pull-up resistor and the second end of the controllable pull-down resistor are respectively coupled to the control unit; The control unit is configured to sequentially control the controllable pull-down resistors of all the EPB switch input circuits to be turned on, the controllable pull-up resistors of one of the EPB switch input circuits to be turned on and the controllable pull-up resistors of the other circuits to be turned off, and obtain the output level states of all the EPB switch input circuits in each state, and obtain the output level combination result of the output level states of all the EPB switch input circuits in the same polling cycle.
3. The EPB switch input device according to claim 2, characterized in that: The EPB switch input circuit has at least four paths, and the EPB switch input circuit configured to connect the first output port of the EPB switch also includes a fixed pull-up resistor for a wake-up function, and a first end of the fixed pull-up resistor is coupled to the common contact point.
4. The EPB switch input device according to claim 3, characterized in that: The EPB switch input circuit configured to be connected to the fourth output port of the EPB switch also includes a fixed pull-down resistor and a wake-up circuit, wherein the first end of the fixed pull-down resistor is coupled to the common contact point, the first end of the wake-up circuit is coupled to the common contact point, and the second end of the wake-up circuit is configured to be coupled to the wake-up pin of the system base chip, and the system base chip is used to power the control unit.
5. The EPB switch input device according to claim 4, characterized in that: The ratio of the resistance value of the controllable pull-up resistor to the resistance value of the controllable pull-down resistor is less than 1 / 9; the resistance values of the fixed-value pull-up resistor and the fixed-value pull-down resistor are equal and both are greater than 500k ohms.
6. The EPB switch input device according to claim 2, characterized in that: Each of the EPB switch input circuits further includes a static current protection subcircuit; a first end of the static current protection subcircuit is coupled to the second end of the common point, and a second end of the static current protection subcircuit is coupled to the control unit.
7. The EPB switch input device according to any one of claims 1 to 6, characterized in that: The preset correspondence between the output level of the EPB switch input circuit and the input state of the EPB switch includes a first truth table of the output level of each EPB switch input circuit in the same polling cycle when the EPB switch is in a zero position state, a second truth table of the output level of each EPB switch input circuit in the same polling cycle when the EPB switch is in a tightened state, and a third truth table of the output level of each EPB switch input circuit in the same polling cycle when the EPB switch is in a released state; The control unit is configured to identify a current input state of the EPB switch according to the output level combination result and the first output level truth table, the second output level truth table, and the third output level truth table; And if the output level combination result obtained in a polling cycle does not find the corresponding output level truth table, then start the next polling cycle to re-acquire the output level combination result.
8. The EPB switch input device according to claim 7, characterized in that: The preset correspondence between the output level of the EPB switch input circuit and the input state of the EPB switch further includes a fourth truth table of the output level of each of the EPB switch input circuits in the same polling cycle when the EPB switch is in a short-circuit state and / or a fifth truth table of the output level of each of the EPB switch input circuits in the same polling cycle when the EPB switch is in an open-circuit state; The control unit is further configured to diagnose a fault of the EPB switch according to the output level combination result and the fourth output level truth table and / or the fifth output level truth table.
9. An EPB controller, characterized in that: It comprises an EPB switch and the EPB switch input device as claimed in any one of claims 1 to 8.
10. An electronic parking control system, characterized in that: It comprises the EPB switch input device according to any one of claims 1 to 8 or the EPB controller according to claim 9.
11. A method for obtaining an EPB switch input state, characterized in that: For the EPB switch input device according to any one of claims 1 to 8, the EPB controller according to claim 9, or the electronic parking control system according to claim 10, the acquisition method comprises: Sequentially changing the on and off states of the controllable pull-down resistor subcircuit and the controllable pull-up resistor subcircuit of all the EPB switch input circuits and acquiring the output level states of all the EPB switch input circuits in each state, and obtaining the output level combination result of the output level states of all the EPB switch input circuits in the same polling cycle; According to the output level combination result and the preset correspondence between the EPB switch input circuit output level and the EPB switch input state, the current input state of the EPB switch is identified and / or the fault of the EPB switch is diagnosed.
Citation Information
Patent Citations
Electronic parking brake system and method for waking up the system in sleep mode
CN109606338A
Commercial vehicle switch fault diagnosis method and switch circuit
CN114545830A
Electronic parking braking safety control system and method and vehicle-mounted area controller
CN117698675A
Vehicular control unit
JP2014024389A
Diagnostic circuit for electronic parking brake
KR1020110072015A
