Integrated control method and system, electric vehicle and storage medium

Through the integrated control method, the barrier switch is connected to the integrated controller to realize the integration of electronic parking brake and gear control in electric vehicles, solving the problems of high hardware costs and inconvenient operation in traditional solutions, and improving safety and User experience.

CN119002447APending Publication Date: 2024-11-22DONGFENG MOTOR GRP
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411013505.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-26
Publication Date
2024-11-22

AI Technical Summary

Technical Problem

In traditional electric vehicles, electronic parking brake and gear control functions require independent configuration of hardware switches, resulting in high hardware costs and inconvenient operation, affecting parking safety and user experience.

Method used

The integrated control method is adopted to connect the four pins of the lock switch to the input and output ends of the integrated controller, communicate with the vehicle controller through the integrated controller, obtain the level status, judge the switch status, and realize gear switching. Parking control or fault detection to reduce the number of hardware switches.

Benefits of technology

It reduces hardware costs, improves user operation portability, ensures control security, promptly identify fault conditions, avoids status recognition errors, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119002447A_ABST
    Figure CN119002447A_ABST
Patent Text Reader

Abstract

The invention discloses an integrated control method and system, an electric automobile and a storage medium, and relates to the technical field of automobile control, the method is applied to an integrated controller, a first input end, a second input end, a first output end and a second output end of the integrated controller are correspondingly connected with four pins of a gear switch, and the integrated controller is further in communication connection with a vehicle control unit. The method comprises the following steps: acquiring level states of a first input end and a second input end; determining the on-off state of the gear switch according to the preset output state and the level states of the first input end and the second input end; judging whether the switching states of the current period and the previous period are the same or not; if yes, a gear switching request is sent to a vehicle control unit according to the on-off state of the current period, so that gear switching or parking control is conducted; and if not, fault detection is carried out on the gear switch. According to the invention, multiple functions can be realized by using only one gear switch, and the effects of reducing the hardware cost and improving the operation portability are achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of automobile control technology, and in particular to an integrated control method, system, electric vehicle and storage medium. Background Art

[0002] In the related technologies, electric vehicles are basically equipped with EPB (Electrical Park Brake) function and electronic gear control function. For these two functional systems, the traditional solution requires an electronic parking switch and an electronic gear switch to be configured separately. The problem is that the hardware cost is high and the operation is not convenient, which can easily affect parking safety and reduce user experience. Summary of the invention

[0003] The main purpose of the present application is to provide an integrated control method, system, electric vehicle and storage medium, aiming to solve the technical problem of inconvenient operation of electronic parking brake and gear control in related technologies.

[0004] To achieve the above purpose, the present application proposes an integrated control method, which is applied to an integrated controller, wherein a first input terminal, a second input terminal, a first output terminal, and a second output terminal of the integrated controller are correspondingly connected to four pins of a hand-shift switch, and the integrated controller is communicatively connected to a vehicle controller, and the integrated control method includes:

[0005] Acquire the level status of the first input terminal and the second input terminal;

[0006] Determine the switch state of the armrest switch according to the preset output state and the level state of the first input terminal and the second input terminal; wherein the preset output state is the level state of the first output terminal and the second output terminal;

[0007] Determine whether the switch state of the current cycle is the same as that of the previous cycle;

[0008] If they are the same, a gear switching request is sent to the vehicle controller according to the switch status of the current cycle to perform gear switching or parking control;

[0009] If they are different, a fault detection is performed on the hand-shift switch to obtain a fault detection result.

[0010] In one embodiment, the step of determining the switch state of the armrest switch according to the preset output state and the level states of the first input terminal and the second input terminal includes:

[0011] The preset output state in the first cycle is configured as a first output state, wherein the level state of the first output terminal corresponding to the first output state is opposite to the level state of the second output terminal;

[0012] Determining a switch state of the armrest switch in the first cycle according to the first output state and the level states of the first input terminal and the second input terminal;

[0013] After determining the switch state of the first cycle, configuring the preset output state in the second cycle as a second output state, the level states of the first output terminal and the second output terminal corresponding to the second output state are opposite to the level states of the first output terminal and the second output terminal corresponding to the first output state;

[0014] Determining the switch state of the armrest switch in the second cycle according to the second output state and the level states of the first input terminal and the second input terminal;

[0015] The step of determining whether the switch state of the current cycle is the same as that of the previous cycle includes:

[0016] The second cycle is determined to be the current cycle, and it is determined whether the switch state of the current cycle is the same as that of the previous cycle.

[0017] In one embodiment, the armrest switch includes a clamping handle and a release handle, the clamping handle includes a first normally open contact and a first normally closed contact, and the release handle includes a second normally closed contact and a second normally open contact;

[0018] The common point of the first normally open contact and the first normally closed contact is a first pin connected to the first input terminal;

[0019] The common point of the first normally open contact and the second normally closed contact is a second pin connected to the second input terminal;

[0020] The common point of the second normally closed contact and the second normally open contact is a third pin connected to the first output terminal;

[0021] The common point of the first normally closed contact and the second normally open contact is a fourth pin connected to the second output terminal.

[0022] In one embodiment, the step of determining the switch state of the armrest switch in the first cycle according to the first output state and the level states of the first input terminal and the second input terminal includes:

[0023] Based on the first output state,

[0024] If the level state of the first input terminal is low and the level state of the second input terminal is high, it is determined that the switch state of the armrest switch in the first cycle is a natural state;

[0025] If the level state of the first input terminal is high and the level state of the second input terminal is high, it is determined that the switch state of the armrest switch in the first cycle is the clamping state;

[0026] If the level state of the first input terminal is low and the level state of the second input terminal is low, it is determined that the switch state of the armrest switch in the first cycle is a released state;

[0027] Otherwise, the armrest switch is determined to be invalid, and a fault detection is performed on the armrest switch or a self-check is performed on the integrated controller.

[0028] In one embodiment, the step of determining the switch state of the armrest switch in the second cycle according to the second output state and the level states of the first input terminal and the second input terminal includes:

[0029] Based on the second output state,

[0030] If the level state of the first input terminal is high and the level state of the second input terminal is low, it is determined that the switch state of the armrest switch in the second cycle is a natural state;

[0031] If the level state of the first input terminal is low and the level state of the second input terminal is low, it is determined that the switch state of the armrest switch in the second cycle is the clamping state;

[0032] If the level state of the first input terminal is high and the level state of the second input terminal is high, it is determined that the switch state of the armrest switch in the second cycle is a released state;

[0033] Otherwise, the armrest switch is determined to be invalid, and a fault detection is performed on the armrest switch or a self-check is performed on the integrated controller.

[0034] In one embodiment, the step of sending a gear switching request to a vehicle controller according to the switch state of the current cycle to perform gear switching or parking control includes:

[0035] According to the switch state of the current cycle, a gear switching request is sent to the vehicle controller to perform gear switching or parking control. At the same time, the second cycle is determined to be the previous cycle, and the step of configuring the preset output state in the second cycle as the second output state after determining the switch state of the first cycle is returned to determine the new current cycle, and judging whether the switch state of the new current cycle is the same as that of the previous cycle.

[0036] In one embodiment, the step of performing fault detection on the armrest switch to obtain the fault detection result includes:

[0037] The preset output state is configured as a third output state, and the level state of the first output end corresponding to the third output state is the same as the level state of the second output end;

[0038] Based on the third output state,

[0039] If the level state of the first input terminal is low and the level state of the second input terminal is high, or the level state of the first input terminal is high and the level state of the second input terminal is low, it is determined that there is a short-to-ground fault in the armrest switch, and a first fault result is output;

[0040] If the level state of the first input terminal is high and the level state of the second input terminal is high, the preset output state is configured as a fourth output state, and the level states of the first output terminal and the second output terminal corresponding to the fourth output state are opposite to the level states of the first output terminal and the second output terminal corresponding to the third output state;

[0041] Based on the fourth output state,

[0042] If the level state of the first input terminal is high and the level state of the second input terminal is low, or the level state of the first input terminal is high and the level state of the second input terminal is high, or the level state of the first input terminal is low and the level state of the second input terminal is high, it is determined that there is an open circuit fault in the armrest switch and the second fault result is output.

[0043] In one embodiment, the step of sending a gear switching request to a vehicle controller according to the switch state of the current cycle to perform gear switching or parking control includes:

[0044] If the hand-gear switch is in the released state in the current cycle, the switch flag is incremented by one;

[0045] Generate a gear switching request according to the switching flag, and send it to the vehicle controller, so that the vehicle controller performs gear switching in a preset switching order according to the received gear switching request;

[0046] If the switch state of the hand-gear switch in the current cycle is the clamped state, a parking request is generated and sent to the vehicle controller, so that the vehicle controller performs parking control according to the parking request.

[0047] In one embodiment, before the step of obtaining the level status of the first input terminal and the second input terminal, the integrated control method further includes:

[0048] Sampling a first voltage at the first input terminal and a second voltage at the second input terminal;

[0049] Comparing the first voltage and the second voltage with preset voltage values ​​respectively;

[0050] If the first voltage is greater than the preset voltage value or the second voltage is greater than the preset voltage value, the timing starts. When the timing time reaches the preset threshold, it is determined that there is a short circuit fault in the armrest switch, and the short circuit fault result is output;

[0051] If the first voltage is not greater than the preset voltage value and the second voltage is not greater than the preset voltage value, the step of acquiring the level states of the first input terminal and the second input terminal is performed.

[0052] In addition, to achieve the above purpose, the present application also proposes an integrated control system, which is applied to electric vehicles. The integrated control system includes:

[0053] An integrated controller, the integrated controller is communicatively connected with a vehicle controller of the electric vehicle;

[0054] A hand-gear switch, wherein four pins of the hand-gear switch are correspondingly connected to a first input terminal, a second input terminal, a first output terminal, and a second output terminal of the integrated controller;

[0055] The integrated controller includes a memory, a processor, and a computer program stored in the memory and running on the processor, and the computer program is configured to implement the steps of the integrated control method as described above.

[0056] In addition, to achieve the above-mentioned purpose, the present application also proposes an electric vehicle, comprising:

[0057] Vehicle controller;

[0058] An integrated control system such as the one described above;

[0059] Among them, the integrated control system is communicatively connected with the vehicle controller.

[0060] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the integrated control method as described above are implemented.

[0061] One or more technical solutions proposed in this application have at least the following technical effects:

[0062] An integrated control method is proposed. Four pins of a hand-held gear switch are connected to a first input terminal, a second input terminal, a first output terminal and a second output terminal of an integrated controller respectively. After the integrated controller is connected to a vehicle controller for communication, the integrated controller is used to realize gear switching, parking control or fault detection. Multiple functions can be realized by only one hand-held gear switch, which reduces the number of hardware switches and hardware costs. In addition, the user only needs to operate the hand-held gear switch, which is convenient to operate, improves the portability of user operation and helps to improve user experience. The level state of the first input terminal and the second input terminal is obtained by the integrated controller, and the switch state of the hand-held gear switch is determined according to the preset output state and the level state of the first input terminal and the second input terminal. When the switch state of the current cycle is the same as that of the previous cycle, a gear switching request is sent to the vehicle controller according to the switch state of the current cycle to perform gear switching or parking control, so that different functions are executed according to different switch states of the hand-held gear switch. When the switch state of the current cycle is different from that of the previous cycle, fault detection is performed on the hand-held gear switch, and the fault condition is identified in time to avoid errors in the state recognition of the hand-held gear switch and even vehicle control errors, thereby improving control safety. BRIEF DESCRIPTION OF THE DRAWINGS

[0063] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0064] Figure 1 This is a flow chart of the first embodiment of the integrated control method of the present application;

[0065] Figure 2 A connection diagram of an integrated control system provided in an embodiment of the present application;

[0066] Figure 3 A detailed flow chart of the first embodiment of the integrated control method of the present application;

[0067] Figure 4 A detailed connection diagram of the integrated control system provided in the embodiment of the present application;

[0068] Figure 5 for Figure 4 Schematic diagram of the switching effect when the switching state of the middle armrest switch is the natural state;

[0069] Figure 6 for Figure 4 Schematic diagram of the switching effect when the switching state of the middle armrest switch is the clamping state;

[0070] Figure 7 for Figure 4 Schematic diagram of the switching effect when the center armrest switch is in the released state.

[0071] Description of Figure Numbers:

[0072] 1. Integrated control system; 2. Vehicle controller; 10. Integrated controller; 11. Micro control unit; 20. Hand shift switch; 21. Clamping handle; 22. Release handle.

[0073] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0074] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.

[0075] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.

[0076] With the improvement of the level of electrification and intelligence of automobiles, the electronic control function configuration is becoming more and more abundant, and the demand for switch devices is also increasing. Therefore, there is a need to concentrate multiple switches in one part to realize the function. At present, electric vehicles are basically equipped with EPB (Electrical Park Brake) function and electronic gear control function. For these two functional systems, the traditional solution requires an electronic parking switch and an electronic gear switch to be configured separately.

[0077] In the related art, the electronic parking switch is independently set and installed near the driver's seat. Its four pins are directly connected to the hydraulic control unit of the ESC (Electronic Stability Control) system. The state of the electronic parking switch is identified according to the on-off state of the hard wire of the switch, including three states: natural, clamped and released. The problem with this method is that a separate electronic parking switch has a high hardware cost and is installed near the driver's seat, which is not very convenient to operate. In order to reduce the setting of electronic parking switches and reduce hardware costs, there is also a solution to integrate the clamping and releasing of the EPB function into the vehicle-mounted multimedia device MP5, but the problem with this solution is that it needs to be operated through a soft switch on the touch screen, which is still not very convenient to operate and is likely to affect parking safety and reduce user experience.

[0078] In response to the above problems, the main solution proposed in the embodiment of the present application is: the first input terminal, the second input terminal, the first output terminal and the second output terminal of the integrated controller are connected to the four pins of the armrest switch accordingly, and the integrated controller is communicatively connected to the vehicle controller, so that the integrated controller obtains the level status of the first input terminal and the second input terminal, determines the switching state of the armrest switch according to the preset output state and the level status of the first input terminal and the second input terminal, and judges whether the switching state of the current cycle is the same as that of the previous cycle. If they are the same, a gear switching request is sent to the vehicle controller according to the switch state of the current cycle to perform gear switching or parking control. If they are different, a fault detection is performed on the armrest switch to obtain a fault detection result; wherein the preset output state is the level state of the first output terminal and the second output terminal.

[0079] The solution provided in the embodiment of the present application utilizes an integrated controller to implement gear switching, parking control or fault detection. Multiple functions can be achieved using only one armrest switch, which reduces the number of hardware switches and reduces hardware costs. In addition, the user only needs to operate the armrest switch, which is relatively convenient to operate, improves the portability of user operation, and helps to improve user experience. The integrated controller is also used to specifically implement different functions corresponding to different switch states of the armrest switch, and to promptly identify fault conditions to avoid errors in the state recognition of the armrest switch or even errors in the control of the entire vehicle, thereby improving control safety.

[0080] In this embodiment, for ease of description, the following description is made taking the integrated controller in the integrated control system as the execution subject.

[0081] It should be noted that the integrated controller is a computing service device with data processing, network communication and program running functions, such as a PC (Personal Computer), an embedded computer, an industrial computer, etc., or a programmable control device that can realize the above functions, such as a CPU (Central Processing Unit), an MCU (Microcontroller Unit), a PAC (Programmable Automation Controller), a PLC (Programmable Logic Controller), etc. The following takes the integrated controller as an MCU as an example, and describes the embodiments of the present application and the following embodiments in conjunction with the accompanying drawings.

[0082] Based on this, the embodiment of the present application provides an integrated control method, referring to Figure 1 , Figure 1 This is a flow chart of the first embodiment of the integrated control method of the present application.

[0083] In this embodiment, refer to Figure 2 , Figure 2 The connection diagram of the integrated control system provided in this embodiment, the integrated control system 1 includes an integrated controller 10 and a hand-held switch 20, the integrated control method is applied to the integrated controller 10, the first input terminal INP0, the second input terminal INP1, the first output terminal OUT0 and the second output terminal OUT1 of the integrated controller 10 are connected one-to-one with the four pins SW1, SW2, SW3, and SW4 of the hand-held switch 20, and the integrated controller 10 is also communicatively connected with the vehicle controller 2.

[0084] It should be noted that the vehicle controller 2 is the main device for the operation of the vehicle. The integrated controller 10 in the integrated control system 1 can share a control device with other systems in the vehicle, or can be independently provided with a control device. The specific selection can be made according to actual needs and is not limited here. The arm shift switch 20 in the integrated control system 1 can be an integrated arm shift lever switch, which can replace the traditional electronic gear switch. The arm shift switch 20 can be installed under the steering wheel of the vehicle for easy operation by the driver.

[0085] In the related art, some cars are equipped with a shift lever switch, but this shift lever switch can only realize the gear switching function and has nothing to do with the EPB function of the car. Therefore, in some embodiments, the integrated control system 1 can be directly set based on the above connection relationship when the car is produced to realize the integrated control method, so as to solve the problem of inconvenient operation of electronic parking brake and gear control in the related art, reduce the number of switches, realize multiple functions with one shift lever switch, reduce hardware costs, and improve operational portability; it is also possible to directly improve the car that has been equipped with a shift lever switch, specifically improve its internal control program, so as to use the shift lever switch to realize the EPB function, gear switching function and fault detection function at the same time, so as to further reduce hardware costs.

[0086] In this embodiment, the integrated control method includes steps S10 to S50:

[0087] Step S10, obtaining the level status of the first input terminal and the second input terminal.

[0088] It should be noted that the level state includes a high level state and a low level state. The first input terminal INP0 of the integrated controller 10 is connected to the first pin SW1 of the armrest switch 20. The AD (Analog-to-Digital) sampling function of the first input terminal INP0 can obtain the voltage analog signal of the first pin SW1, and then compare the voltage value corresponding to the voltage analog signal with the high level threshold and the low level threshold respectively, and convert it into a digital signal to determine the output state of the first pin SW1, so that the level state of the first input terminal INP0 can be obtained as high (1) or low (0). Similarly, the integrated controller 10 can also obtain the level state of the second input terminal INP1 as high (1) or low (0). For the sake of brevity of the specification, it will not be repeated here.

[0089] Exemplarily, taking the power supply voltage Vbat=12V as an example, two threshold values ​​are set, namely 0.16×Vbat=1.92V and 0.01×Vbat=0.12V, the high level threshold can be set to be greater than 0.12V and less than or equal to 1.92V, and the low level threshold can be set to be less than or equal to 0.12V. When the voltage of the first pin SW1 is within the high level threshold, the first input terminal INP0=1, and when the voltage of the first pin SW1 is within the low level threshold, the first input terminal INP0=0. Similarly, when the voltage of the second pin SW2 is within the high level threshold, the second input terminal INP1=1, and when the voltage of the second pin SW2 is within the low level threshold, the second input terminal INP1=0.

[0090] Step S20, determining the switch state of the armrest switch according to the preset output state and the level states of the first input terminal and the second input terminal.

[0091] The preset output state is the level state of the first output terminal and the second output terminal.

[0092] It should be noted that the first output terminal OUT0 of the integrated controller 10 is connected to the third pin SW3 of the armrest switch 20, and the first output terminal OUT0 is used to provide an output voltage, so that a loop can be formed between the armrest switch 20 and the integrated controller 10, so that the integrated controller 10 can sample the voltage of the first input terminal INP0 and the second input terminal INP1 to determine the corresponding level state. Among them, the integrated controller 10 can directly generate a control instruction (Order) to control the level state of the first output terminal OUT0 to be high (1) or low (0). Similarly, the integrated controller 10 can also control the level state of the second output terminal OUT1 to be high (1) or low (0). For the sake of brevity of the specification, it is not repeated here. It can be understood that the integrated controller 10 can also generate a control instruction as needed to simultaneously control the level state of the first output terminal OUT0 and the second output terminal OUT1. The specific combination includes OUT0=0, OUT1=1; OUT0=1, OUT1=0; OUT0=0, OUT1=0; OUT0=1, OUT1=1. In other words, the preset output state can include four different situations.

[0093] In addition, it should be noted that the switching states of the armrest switch 20 may include a natural state, a clamped state and a released state. The natural state refers to the normal state in which the armrest switch 20 is not operated by the user, the clamped state refers to the state in which the armrest switch 20 is operated by the user and is moved to one side, and the released state refers to the state in which the armrest switch 20 is operated by the user and is moved to the other side opposite to the clamped state.

[0094] Exemplarily, the method in which the integrated controller 10 determines the switching state of the armrest switch 20 according to the preset output state and the level state of the first input terminal INP0 and the second input terminal INP1 includes: pre-storing a lookup table in the integrated controller 10 in advance, the lookup table including the state values ​​corresponding to the first input terminal INP0, the second input terminal INP1, the first output terminal OUT0, the second output terminal OUT1 and the four pins SW1, SW2, SW3, and SW4 of the armrest switch 20 of the integrated controller 10 in different switching states. When the integrated controller 10 controls the output voltage of the first output terminal OUT0 and the second output terminal OUT1 according to the preset output state, and obtains the level state of the first input terminal INP0 and the second input terminal INP1, the state value of the first output terminal OUT0, the state value of the second output terminal OUT1, the state value of the first input terminal INP0, and the state value of the second input terminal INP1 can be substituted into the lookup table for search, so that the switching state of the armrest switch 20 can be determined accordingly.

[0095] It is understandable that steps S10 and S20 may be performed continuously or repeatedly at preset time intervals or cycles, so that the integrated controller 10 can identify the switch status of the armrest switch 20 in different periods or cycles in real time.

[0096] Exemplarily, the integrated controller 10 may execute steps S10-S20 once every 10ms, taking the 10ms as a cycle or a count, thereby obtaining the switch state recognition result in the cycle or the corresponding switch state recognition result; or may execute steps S10-S20 once or multiple times every 40ms, taking the 40ms as a cycle, thereby obtaining the switch state recognition result in the cycle, or correspondingly counting multiple times, thereby obtaining multiple corresponding switch state recognition results. This is only an example and is not specifically limited.

[0097] Step S30, determining whether the switch state of the current cycle is the same as that of the previous cycle.

[0098] It should be noted that the current cycle and the previous cycle are two cycles that are adjacent in time sequence. When the integrated controller 10 is just powered on and is in the initial state, the current cycle is the first cycle. After the integrated controller 10 executes steps S10-S20 once in the first cycle and obtains the switch state of the arm-hold switch 20, since there is no previous cycle and no switch state of the previous cycle at this time, the integrated controller 10 will not execute the step S30; but when the first cycle ends and enters the second cycle, the integrated controller 10 will execute steps S10-S20 once in the second cycle and obtain the switch state of the arm-hold switch 20. At this time, the second cycle is the current cycle, the first cycle is the previous cycle, the switch state of the first cycle is the switch state of the previous cycle, and the switch state of the second cycle is the switch state of the current cycle, then the integrated controller 10 can execute the step S30. In other words, step S30 will not be performed in the first cycle when the integrated controller 10 is in the initial state, but will be executed in the second cycle thereafter, and the current cycle in the judgment process will not be the first cycle.

[0099] It can be understood that by determining the subsequent operation based on the switch state of the armrest switch 20 identified corresponding to two adjacent cycles, possible faults can be eliminated. Compared with directly improving the recognition accuracy by the state duration, the logic processing process is simpler and the accuracy of the final recognition result of the actual state of the armrest switch 20 is further improved on the basis of reducing the error of subsequent execution actions.

[0100] Step S40: If they are the same, a gear switching request is sent to the vehicle controller according to the switch state of the current cycle to perform gear switching or parking control.

[0101] It should be noted that the gear switching request refers to the request generated by the integrated controller 10 according to the switch state of the current cycle identified. After the integrated controller 10 sends the gear switching request to the vehicle controller 2, the vehicle controller 2 can respond to the gear switching request to perform gear switching or directly perform parking control. Among them, the gear switching can be cyclic switching in a certain gear sequence, and the parking control can be directly switching the gear to the parking gear regardless of the current state.

[0102] In the current cycle, if the switch state of the armrest switch 20 recognized by the integrated controller 10 is the same as the switch state corresponding to the previous cycle, it means that the armrest switch 20 is working stably and without faults, and the user's operation on it is also normal. Therefore, the integrated controller 10 can generate a corresponding gear switching request based on the switch state of the current cycle, and then send it to the vehicle controller 2, so that the vehicle controller 2 can perform gear switching or parking control accordingly.

[0103] It is understandable that the integrated controller 10 implements gear switching or parking control according to the switching state of the armrest switch 20, that is, the armrest switch 20 has both the functions of operating gear switching and operating parking control.

[0104] Step S50: If they are different, a fault detection is performed on the armrest switch to obtain a fault detection result.

[0105] It should be noted that fault detection refers to executing a detection program on the integrated controller 10 to detect faults in the armrest switch 20. The fault condition can be determined by a preset output state and the level state of the first input terminal and the second input terminal to achieve fault detection. Fault detection can also be achieved by a separately set fault detection device, which is not specifically limited here.

[0106] In the current cycle, if the switch state of the armrest switch 20 recognized by the integrated controller 10 is different from the switch state corresponding to the previous cycle, it means that the armrest switch 20 is unstable and the recognized state may deviate from the actual state, that is, the armrest switch 20 may have a fault, including a short-to-ground fault or an open circuit fault. Therefore, the integrated controller 10 can perform fault detection on it, and after obtaining the corresponding fault detection result, output the fault detection result to remind the user.

[0107] It is understandable that the integrated controller 10 implements fault detection of the armrest switch 20 according to the switching state of the armrest switch 20, and can promptly detect the invalid operation of the armrest switch 20 so as to clear the fault in time.

[0108] Optionally, the starting condition for the integrated controller 10 to start executing step S10 may be recognizing that the user has manually operated the armrest switch 20, or receiving operation instruction information generated by the user operating the armrest switch 20. Correspondingly, whenever the starting condition is met, the cycle count may be reset to zero, and the method may be executed accordingly according to the new operation performed by the user, so as to perform the next gear shift, parking control or fault detection.

[0109] The present embodiment provides an integrated control method, wherein four pins of a hand-held shift switch are correspondingly connected to a first input terminal, a second input terminal, a first output terminal, and a second output terminal of an integrated controller, and after the integrated controller is communicatively connected to a vehicle controller, the integrated controller is used to implement gear switching, parking control, or fault detection. Multiple functions can be implemented using only one hand-held shift switch, thereby reducing the number of hardware switches and hardware costs, and the user only needs to operate the hand-held shift switch, which is convenient to operate, improves the portability of user operation, and helps to improve user experience; the level state of the first input terminal and the second input terminal is specifically obtained through the integrated controller, and the switch state of the hand-held shift switch is determined according to a preset output state and the level state of the first input terminal and the second input terminal. When the switch state of a current cycle is the same as that of a previous cycle, a gear switching request is sent to the vehicle controller according to the switch state of the current cycle to perform gear switching or parking control, thereby implementing different functions corresponding to different switch states of the hand-held shift switch, and when the switch state of a current cycle is different from that of a previous cycle, fault detection is performed on the hand-held shift switch, and the fault condition is identified in time to avoid errors in the state recognition of the hand-held shift switch, or even vehicle control errors, and improve control safety.

[0110] In one possible implementation, refer to Figure 3 , Figure 3 A detailed flow chart provided for this embodiment, step S20 may include steps S21 to S24:

[0111] Step S21, configuring the preset output state in the first cycle to be the first output state, wherein the level state of the first output terminal corresponding to the first output state is opposite to the level state of the second output terminal;

[0112] Step S22, determining the switch state of the armrest switch in the first cycle according to the first output state and the level states of the first input terminal and the second input terminal;

[0113] Step S23, after determining the switch state of the first cycle, configuring the preset output state in the second cycle as a second output state, the level states of the first output terminal and the second output terminal corresponding to the second output state are opposite to the level states of the first output terminal and the second output terminal corresponding to the first output state;

[0114] Step S24, determining the switch state of the armrest switch in the second cycle according to the second output state and the level states of the first input terminal and the second input terminal.

[0115] It should be noted that when the integrated controller 10 is powered on and started and is in the initial stage, the control instruction (Order) generated by the integrated controller 10 has a default value of 0. At this time, the integrated controller 10 can select a matching output state, i.e., the first output state, according to Order=0, and control the output voltage of the first input terminal and the second input terminal with the default first output state, and then determine the switching state of the armrest switch 20 in the first cycle in combination with the level state of the first input terminal and the second input terminal collected correspondingly in the cycle (first cycle).

[0116] The default preset output state may be the first output state. In some embodiments, the first output state may be OUT0=0, OUT1=1, or OUT0=1, OUT1=0; the second output state is opposite to the first output state, when the first output state is OUT0=0, OUT1=1, the second output state is OUT0=1, OUT1=0, and when the first output state is OUT0=1, OUT1=0, the second output state is OUT0=0, OUT1=1.

[0117] It should also be noted that after the integrated controller 10 determines the switching state of the first cycle, it enters the second stage. At this time, the control instruction (Order) generated by the integrated controller 10 takes a value of 1, and the integrated controller 10 can select a matching output state, that is, the second output state, according to the Order=1, and use the second output state to control the output voltage of the first input terminal and the second input terminal, and then combine the level states of the first input terminal and the second input terminal correspondingly collected in the cycle (second cycle) to determine the switching state of the armrest switch 20 in the second cycle.

[0118] Correspondingly, such as Figure 3 As shown, step S30 may include step S31:

[0119] Step S31, determining that the second cycle is the current cycle, and judging whether the switch state of the current cycle is the same as that of the previous cycle.

[0120] It should be noted that the second cycle is determined as the current cycle, the first cycle is determined as the previous cycle, and judging whether the switch state of the current cycle is the same as that of the previous cycle is actually judging whether the switch state of the second cycle is the same as that of the previous cycle; if they are the same, execute step S40, if they are different, execute step S50.

[0121] In a possible implementation, Figure 3 As shown, step S40 may include step S41:

[0122] Step S41, if they are the same, send a gear switching request to the vehicle controller 2 according to the switch state of the current cycle to perform gear switching or parking control. At the same time, determine that the second cycle is the previous cycle, and return to execute the step of configuring the preset output state in the second cycle as the second output state after determining the switch state of the first cycle to determine the new current cycle and judge whether the switch state of the new current cycle is the same as that of the previous cycle.

[0123] It should be noted that if the switch state of the second cycle is the same as that of the previous cycle, the integrated controller 10 sends a gear switching request to the vehicle controller 2 according to the switch state of the second cycle. At the same time, the integrated controller 10 also determines the second cycle as the previous cycle, and determines the next cycle, that is, the third cycle, as the new current cycle, and returns to step S23, and configures the preset output state in the third cycle as the new output state. The level state of the first output terminal and the second output terminal corresponding to the new output state is opposite to the level state of the first output terminal and the second output terminal corresponding to the preset output state (that is, the second output state) in the previous cycle (that is, the second cycle). The integrated controller 10 then controls the output voltage of the first input terminal and the second input terminal with the new output state; then continues to execute Perform step S24, and determine the switch state of the armrest switch 20 in the new current cycle (i.e., the third cycle) according to the new output state and the level state of the first input terminal and the second input terminal correspondingly collected in the new current cycle (i.e., the third cycle); then, execute step S31, determine that the third cycle is the new current cycle, and judge whether the switch state of the new current cycle (i.e., the third cycle) is the same as that of the previous cycle (i.e., the second cycle); if they are the same, the above steps can be repeated until the cycle count reaches the preset count and the counter is cleared to end the process so that it can be recounted later, or the cycle is stopped after it is determined that the vehicle controller 2 has successfully performed the gear switching or parking control, and the process ends; if they are different, execute step S50 accordingly.

[0124] Among them, in step S22 and step S24, when determining the switch state of the armrest switch 20, it can be determined based on a preset lookup table.

[0125] In this embodiment, the integrated controller identifies the switching state of the armrest switch in two adjacent cycles based on two different situations, and controls the output in two opposite situations, so that the basis for identifying the switch state in any two cycles before and after is different, thereby avoiding repeated meaningless actions, and accurately identifying the switch state of the armrest switch, thereby accurately determining whether the switch states of two adjacent cycles are the same, to ensure that the subsequent selection of step S40 or step S50 is accurately executed, thereby improving the accuracy of centralized control.

[0126] In one possible implementation, refer to Figure 4 , Figure 4 The detailed connection diagram of the integrated control system provided for this embodiment shows that the armrest switch 20 may include a clamping handle 21 and a release handle 22, the clamping handle 21 includes a first normally open contact 1a and a first normally closed contact 1b, and the release handle 22 includes a second normally closed contact 2a and a second normally open contact 2b.

[0127] Among them, the common contact of the first normally open contact 1a and the first normally closed contact 1b is the first pin SW1, which is connected to the first input terminal INP0; the common contact of the first normally open contact 1a and the second normally closed contact 2a is the second pin SW2, which is connected to the second input terminal INP1; the common contact of the second normally closed contact 2a and the second normally open contact 2b is the third pin SW3, which is connected to the first output terminal OUT0; the common contact of the first normally closed contact 1b and the second normally open contact 2b is the fourth pin SW4, which is connected to the second output terminal OUT1.

[0128] like Figure 4 As shown, the integrated controller 10 may include a microcontroller unit (MCU) 11, which may be used as a controller for the EPB function and the gear shift function, and may also be used as a hydraulic control unit of the ESC system to adjust the brake hydraulic pressure. The four pins SW1, SW2, SW3, and SW4 of the armrest switch 20 may be hardwired to the four interfaces INP0, INP1, OUT0, and OUT1 of the MCU.

[0129] Reference Figure 5-Figure 7 ,in, Figure 5 This is a schematic diagram of the switching effect when the hand-shift switch is in the natural state. Figure 6 This is a schematic diagram of the switching effect when the armrest switch is in the clamped state. Figure 7 It is a schematic diagram of the switching effect when the armrest switch is in the released state; in this embodiment, the armrest switch 20 can be switched between the three states of natural, clamped and released by manual operation of the user. When the armrest switch 20 is in the natural state, the corresponding gear should be N gear (neutral); when the armrest switch 20 is in the clamped state, the corresponding gear should be P (Parking); when the armrest switch 20 is in the released state, the corresponding gear is not restricted, but a gear switch needs to be executed, and the specific switching can be performed according to the preset switching order.

[0130] For example, when the user returns the armrest switch 20 to its original position, the following may be displayed: Figure 5The switch state shown, that is, the clamping handle 21 and the release handle 22 are not moved, at this time, the first normally open contact 1a is in the open state under normal conditions, the first normally closed contact 1b is in the closed state under normal conditions, the second normally closed contact 2a is in the closed state under normal conditions, and the second normally open contact 2b is in the open state under normal conditions. Correspondingly, SW1, MCU, SW4, 1b form a conductive loop, and SW2, 2a, SW3 and MCU form a conductive loop. When the user operates the armrest switch 20, specifically moves the clamping handle 21, it can be presented as follows Figure 6 The switch state shown is that the clamping handle 21 is moved and the release handle 22 is not moved. At this time, the first normally open contact 1a is switched to a closed state, the first normally closed contact 1b is switched to an open state, the second normally closed contact 2a is normally closed, and the second normally open contact 2b is normally open. Correspondingly, SW4 is empty, SW1, 1a, 2a, SW3 and MCU form a conductive loop, SW2, 2a, SW3 and MCU form another conductive loop, that is, SW1, SW2 and SW3 are conductive, and SW4 is isolated. When the user operates the armrest switch 20, specifically when the release handle 22 is moved, it can be presented as follows Figure 7 The switch state shown, that is, the release handle 22 is moved and the clamping handle 21 is not moved, at this time, the first normally open contact 1a is in the open state under normal conditions, the first normally closed contact 1b is in the closed state under normal conditions, the second normally closed contact 2a is switched to the open state, and the second normally open contact 2b is switched to the closed state. Correspondingly, SW2 is empty, SW1, 1b, SW4 and MCU form a conductive loop, SW1, 1b, 2b, SW3 and MCU form another conductive loop, that is, SW1, SW3 and SW4 are conductive, and SW2 is isolated.

[0131] In a specific implementation, step S22 may include step S221:

[0132] Step S221, based on the first output state, if the level state of the first input terminal is low and the level state of the second input terminal is high, then it is determined that the switching state of the arm-shift switch in the first cycle is a natural state; if the level state of the first input terminal is high and the level state of the second input terminal is high, then it is determined that the switching state of the arm-shift switch in the first cycle is a clamped state; if the level state of the first input terminal is low and the level state of the second input terminal is low, then it is determined that the switching state of the arm-shift switch in the first cycle is a released state; otherwise, it is determined that the arm-shift switch is invalid, and a fault detection is performed on the arm-shift switch or the integrated controller performs a self-test.

[0133] In another specific implementation, step S24 may include step S241:

[0134] Step S241, based on the second output state, if the level state of the first input terminal is high and the level state of the second input terminal is low, then the switching state of the arm-shift switch in the second cycle is determined to be a natural state; if the level state of the first input terminal is low and the level state of the second input terminal is low, then the switching state of the arm-shift switch in the second cycle is determined to be a clamped state; if the level state of the first input terminal is high and the level state of the second input terminal is high, then the switching state of the arm-shift switch in the second cycle is determined to be a released state; otherwise, the arm-shift switch is determined to be invalid, and a fault detection is performed on the arm-shift switch or a self-test is performed on the integrated controller.

[0135] It should be noted that a lookup table may be pre-stored in the centralized controller 10 , and step S221 and step S241 determine the switch state by looking up the table respectively.

[0136] Since the level states of the first input terminal and the second input terminal and the level states of the first output terminal and the second output terminal can form a variety of combinations, in actual application, the three switch states can be configured with corresponding combinations as needed to set a lookup table.

[0137] For example, the lookup table is shown in Table 1 below:

[0138] Table 1

[0139]

[0140] Referring to Table 1 above, we can know that:

[0141] In step S221, when the first output state includes the level state of the first output terminal being low and the level state of the second output terminal being high, that is, when OUT0=0 and OUT1=1, if INP0=0 and INP1=1, the corresponding combination is (0, 1, 0, 1), and it can be determined that the arm-block switch 20 is in a natural state, if INP0=1 and INP1=1, the corresponding combination is (0, 1, 1, 1), and it can be determined that the arm-block switch 20 is in a clamped state, and if INP0=0 and INP1=0, the corresponding combination is (0, 1, 0, 0), and it can be determined that the arm-block switch 20 is in a released state. If it does not belong to one of the above three combinations, the integrated controller 10 can determine that the arm-block switch 20 is invalid, and perform fault detection on the arm-block switch 20 or the integrated controller 10 performs self-test.

[0142] In step S241, the second output state is opposite to the first output state, and the second output state includes that the level state of the first output terminal is high and the level state of the second output terminal is low, that is, OUT0=1, OUT1=0. At this time, if INP0=0, INP1=0, the corresponding combination is (1,0,1,0), and it can be determined that the arm-block switch 20 is in a natural state. If INP0=0, INP1=0, the corresponding combination is (1,0,0,0), and it can be determined that the arm-block switch 20 is in a clamped state. If INP0=1, INP1=1, the corresponding combination is (1,0,1,1), and it can be determined that the arm-block switch 20 is in a released state. If it does not belong to one of the above three combinations, the integrated controller 10 can determine that the arm-block switch 20 is invalid, and perform fault detection on the arm-block switch 20 or the integrated controller 10 performs self-test.

[0143] Among them, the fault detection of the hand-gear switch 20 can refer to the specific implementation method of step S50, and the self-check of the integrated controller 10 can be implemented by the integrated controller 10 calling its own preset self-check program. The specific self-check content can be selected according to actual needs, which will not be repeated here.

[0144] In this implementation, based on a detailed integrated control system, a specific method for identifying the switch state of the hand-shift switch is given, and specific switch state identification is performed corresponding to the preset output states set in two adjacent cycles, so that the switch state can be accurately and quickly identified, thereby ensuring the normal and accurate execution of subsequent steps.

[0145] In a feasible implementation, step S50 may include steps S51 to S54:

[0146] Step S51, configuring the preset output state to be a third output state, wherein the level state of the first output terminal corresponding to the third output state is the same as the level state of the second output terminal;

[0147] Step S52, based on the third output state, if the level state of the first input terminal is low and the level state of the second input terminal is high, or the level state of the first input terminal is high and the level state of the second input terminal is low, it is determined that there is a short-to-ground fault in the armrest switch, and a first fault result is output;

[0148] Step S53, based on the third output state, if the level state of the first input terminal is high and the level state of the second input terminal is high, then configure the preset output state to be a fourth output state, and the level states of the first output terminal and the second output terminal corresponding to the fourth output state are opposite to the level states of the first output terminal and the second output terminal corresponding to the third output state;

[0149] Step S54, based on the fourth output state, if the level state of the first input terminal is high and the level state of the second input terminal is low, or the level state of the first input terminal is high and the level state of the second input terminal is high, or the level state of the first input terminal is low and the level state of the second input terminal is high, then it is determined that there is an open circuit fault in the armrest switch, and the second fault result is output.

[0150] It should be noted that the specific method of performing fault detection on the armrest switch 20 here can also be applied to the fault detection performed on the armrest switch 20 when it is determined that the armrest switch 20 is invalid in the aforementioned step S221 and step S241.

[0151] It should be noted that when the integrated controller 10 enters the fault detection stage, the value of the control instruction (Order) generated by the integrated controller 10 becomes 2, and the integrated controller 10 can select the matching output state, that is, the third output state, according to Order=2, and control the output voltage of the first input terminal and the second input terminal with the third output state, and then combine the level state of the first input terminal and the second input terminal collected in the cycle to determine whether there is a short-to-ground fault. If there is a short-to-ground fault in the hand-shift switch 20, the first fault result is output; if not, it is further determined whether there is an open circuit fault.

[0152] In some embodiments, the third output state can be OUT0=0, OUT1=0, or OUT0=1, OUT1=1; the fourth output state is opposite to the third output state. When the third output state is OUT0=0, OUT1=0, the fourth output state is OUT0=1, OUT1=1; when the third output state is OUT0=1, OUT1=1, the fourth output state is OUT0=0, OUT1=0.

[0153] It should also be noted that when the integrated controller 10 determines that there is no short-to-ground fault in the armrest switch 20, the value of the control instruction (Order) generated by the integrated controller 10 becomes 3, and the integrated controller 10 can select the matching output state, that is, the fourth output state, according to Order=3, and control the output voltage of the first input terminal and the second input terminal with the fourth output state, and then combine the level state of the first input terminal and the second input terminal collected in the cycle to determine whether there is an open circuit fault. If there is an open circuit fault in the armrest switch 20, the second fault result is output; if not, the process can be terminated.

[0154] For example, referring to Table 1 above, we can know that:

[0155] In step S52, when the third output state includes the level state of the first output end being low and the level state of the second output end being low, that is, when OUT0=0 and OUT1=0, if INP0=0 and INP1=1, the corresponding combination is (0,0,0,1), and it can be determined that there is a short-to-ground fault between SW1 and SW4 and between SW2 and SW3 in the armrest switch 20, and the short-to-ground fault count is performed accordingly; if INP0=1 and INP1=0, the corresponding combination is (0,0,1,0), and it can be determined that there is a short-to-ground fault between SW3 and SW4 in the armrest switch 20, and the short-to-ground fault count is performed; subsequently, after each count reaches its respective preset value, the first fault result can be output as the short-to-ground fault in the armrest switch 20. It can be understood that when OUT0=0 and OUT1=0, if INP0=1 and INP1=1, the corresponding combination is (0,0,1,1), and it can be determined that there is no short-to-ground fault in the armrest switch 20. At the same time, the short-to-ground fault count can be cleared, and the next stage of fault detection, namely, open circuit fault detection, can be performed. Specifically, after configuring the preset output state to be the fourth output state, execute step S54; if the combination of INP0, INP1, OUT0 and OUT1 does not belong to any of the above combinations, the process can be ended directly at this time.

[0156] In step S52, when the fourth output state includes the level state of the first output end being high and the level state of the second output end being high, that is, when OUT0=1 and OUT1=1, if INP0=1 and INP1=0, the corresponding combination is (1,1,1,0), and it can be determined that there is an open circuit fault between SW1 and SW4 in the armrest switch 20, and the open circuit fault count is performed; if INP0=1 and INP1=1, the corresponding combination is (1,1,1,1), and it can be determined that there is an open circuit fault between SW1 and SW4 and between SW2 and SW3 in the armrest switch 20, and the open circuit fault count is performed accordingly; if INP0=0 and INP1=1, the corresponding combination is (1,1,0,1), and it can be determined that there is an open circuit fault between SW2 and SW3 in the armrest switch 20, and the open circuit fault count is performed accordingly; It can be understood that, when OUT0=1 and OUT1=1, if the combination of INP0, INP1, OUT0 and OUT1 does not belong to any of the above combinations, the process can be directly terminated.

[0157] In this implementation, the short-to-ground fault and open-circuit fault of the armrest switch can be detected, and the situation in which the armrest switch cannot achieve gear switching and parking control can be discovered in time. This is achieved only through the internal logic of the integrated controller, and the execution method is simple and does not require other hardware. It is easy to operate and saves costs.

[0158] In a feasible implementation, step S40 may include steps S42 to S44:

[0159] Step S42, if the switch state of the hand-gear switch in the current cycle is the release state, then the switch flag is incremented by one;

[0160] Step S43, generating a gear switching request according to the switching flag, and sending it to the vehicle controller 2, so that the vehicle controller 2 performs gear switching according to the received gear switching request and in a preset switching order.

[0161] It should be noted that the integrated controller 10 can be communicatively connected with the vehicle controller 2 via the CAN bus.

[0162] In a specific implementation, a gear switching request is generated based on a switching flag. The gear switching request may be generated when the switching flag reaches a preset threshold value. Correspondingly, the vehicle controller 2 performs a gear switching based on the received gear switching request. The gear switching may be performed once a gear switching request is received.

[0163] For example, assuming that the preset threshold value is set to 5, if the integrated controller 10 detects that the hand-shift switch 20 is in the released state for 5 times and the switching flag reaches the preset threshold value 5, the integrated controller 10 generates a gear switching request and sends the corresponding request message to the vehicle controller 2; the vehicle controller 2 immediately switches the gear after receiving the gear switching request from the CAN bus.

[0164] In another specific embodiment, a gear switching request is generated based on a switching flag, or a gear switching request is generated each time the switching flag is increased by one. Correspondingly, the vehicle controller 2 performs a gear switching based on the received gear switching request, and a gear switching is performed only when a preset number of gear switching requests are received.

[0165] For example, assuming that the preset number is 5, each time the integrated controller 10 detects that the hand-shift switch 20 is in the released state, the switching flag is incremented by one, and the integrated controller 10 also generates a gear switching request accordingly, and sends the corresponding request message to the vehicle controller 2; after the vehicle controller 2 receives the gear switching request from the CAN bus, it counts and performs the gear switching only when the count reaches the preset number of 5.

[0166] It should also be noted that the preset switching order can be set in advance in the vehicle controller 2. When the vehicle controller 2 switches gears according to the preset switching order, the preset switching order can be PDNRP, where P gear is parking gear, D gear is drive gear, R gear is reverse gear, and N gear is neutral gear. In the related art, when a separately set gear switching switch realizes gear switching, it only switches between D gear, R gear and N gear. However, in this embodiment, when the gear switch 20 switches gears, it can switch between P gear, D gear, N gear, R gear and P gear, and the parking control function is added to the gear switching.

[0167] Optionally, when the count reaches a preset threshold, initialization processing can be performed to reset the counter to zero. Specifically, the switch fault flag, each short circuit fault count, each open circuit fault count, switching flag, etc. can be reset to zero. Of course, it can also be selected according to actual needs, and no specific limitation is made here.

[0168] It can be understood that the gear switching is actually performed only after the switch state of the current cycle is detected to be in the released state for multiple times, which can avoid recognition errors caused by switch failure or other problems and improve the accuracy of the method.

[0169] Step S44: If the switch state of the gear shift switch in the current cycle is the clamped state, a parking request is generated and sent to the vehicle controller 2, so that the vehicle controller 2 performs parking control according to the parking request.

[0170] It should be noted that the vehicle controller 2 performs parking control based on the parking request specifically refers to directly switching the gear to P gear, which is different from the method of switching the gear to P gear in step S43 only when the gear is in R gear. Here, no matter which gear is currently in, it can be directly switched to P gear, so that the purpose of parking control by the user manually operating the gear switch 20 can be achieved.

[0171] In this implementation, according to the different switch states of the gear shift switch in the current cycle, the gear shift can be switched in sequence or parking control can be performed directly, thereby realizing different specific control methods in different situations. While facilitating user operation and improving operational convenience, it can also respond to the user's parking operation in a timely manner to ensure the safety of the car.

[0172] Based on the first embodiment of the integrated control method of the present application, in the second embodiment of the integrated control method of the present application, the same or similar contents as the above embodiment can be referred to the above introduction, and will not be repeated later. On this basis, before step S10, the integrated control method also includes steps S01 to S02:

[0173] Step S01, sampling a first voltage at a first input terminal and a second voltage at a second input terminal;

[0174] Step S02, comparing the first voltage and the second voltage with preset voltage values ​​respectively;

[0175] Step S03, if the first voltage is greater than the preset voltage value or the second voltage is greater than the preset voltage value, start timing until the timing duration reaches a preset threshold, determine that the armrest switch has a short circuit fault, and output a short circuit fault result;

[0176] Step S04 , if the first voltage is not greater than the preset voltage value and the second voltage is not greater than the preset voltage value, executing step S10 of acquiring the level states of the first input terminal and the second input terminal.

[0177] It should be noted that before the arm-grip switch 20 is powered on, the integrated controller 10 can first perform a short-circuit fault detection on it. The preset voltage value refers to the maximum voltage value of the arm-grip switch 20 under normal conditions without a short circuit. If the voltage value is exceeded, it can be determined that there may be a short circuit. The timing duration can be realized by the timer, and the collected timing duration is directly compared with the preset threshold. For example, if the preset threshold is 200ms, when the timing reaches 200ms, it means that the short circuit situation lasts long enough, and it does not belong to a short-term short circuit situation caused by power surges, voltage fluctuations, etc., but it is determined that there is a short circuit fault. The timing duration can also be realized by counting the cycles through a counter, so as to compare the obtained count with the number corresponding to the preset threshold. For example, when 10ms is a cycle, if the preset threshold is 200ms, the number corresponding to the preset threshold can be converted, that is, the counting cycle threshold is 20 cycles. When the count reaches 20, it can be determined that there is a short circuit fault.

[0178] In this implementation, integrated control is entered only after it is determined that there is no short-circuit fault in the hand-gear switch 20, thereby performing gear switching or EPB control, which can further improve the safety of the method and ensure the safe operation of the vehicle.

[0179] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the integrated control method of the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.

[0180] The present application also provides an integrated control system, which is applied to electric vehicles, such as Figure 2 As shown, the integrated control system 1 may include an integrated controller 10 and a hand-gear switch 20;

[0181] The integrated controller 10 is communicatively connected to the vehicle controller 2 of the electric vehicle; the four pins of the hand-gear switch 20 are correspondingly connected to the first input terminal, the second input terminal, the first output terminal and the second output terminal of the integrated controller 10;

[0182] The integrated controller 10 includes at least one processor, a memory connected to the at least one processor for communication, and a computer program stored in the memory and executable on the at least one processor, wherein the computer program is configured to implement the steps of the integrated control method in the above-mentioned embodiment.

[0183] like Figure 4 As shown, the integrated controller 10 may include an MCU, and the four interfaces of the MCU correspond to the first input terminal INP0, the second input terminal INP1, the first output terminal OUT0, and the second output terminal OUT1. The MCU may perform various appropriate actions and processes according to a program stored in a memory or a program loaded from the outside into the memory, and the memory may also store various programs and data required for the electric vehicle to perform ESC operations.

[0184] The armrest switch 20 may include a clamping handle 21 and a release handle 22. The clamping handle 21 includes a first normally open contact 1a and a first normally closed contact 1b. The release handle 22 includes a second normally closed contact 2a and a second normally open contact 2b. The common point of the first normally open contact 1a and the first normally closed contact 1b is the first pin SW1, which is connected to the first input terminal INP0; the common point of the first normally open contact 1a and the second normally closed contact 2a is the second pin SW2, which is connected to the second input terminal INP1; the common point of the second normally closed contact 2a and the second normally open contact 2b is the third pin SW3, which is connected to the first output terminal OUT0; the common point of the first normally closed contact 1b and the second normally open contact 2b is the fourth pin SW4, which is connected to the second output terminal OUT1.

[0185] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable storage medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be installed from a memory. When the computer program is executed by a processor, the above-mentioned functions defined in the integrated control method disclosed in the embodiment of the present application are executed.

[0186] The integrated control system provided by the present application adopts the integrated control method in the above embodiment, which can solve the technical problem of inconvenient operation of electronic parking brake and gear control in the related art. Compared with the related art, the beneficial effects of the integrated control system provided by the present application are the same as the beneficial effects of the integrated control method provided by the above embodiment, and other technical features in the integrated control system are the same as the features disclosed in the integrated control method in the above embodiment, which will not be repeated here.

[0187] It should be understood that the various parts disclosed in the embodiments of the present application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0188] The present application also provides an electric vehicle, which includes a vehicle controller 2 and the integrated control system 1 in the above embodiment;

[0189] The integrated control system 1 is communicatively connected with the vehicle controller 2 .

[0190] The electric vehicle provided by the present application adopts the integrated control method in the above embodiment, which can solve the technical problem of inconvenient operation of electronic parking brake and gear control in the related art. Compared with the related art, the beneficial effects of the electric vehicle provided by the present application are the same as the beneficial effects of the integrated control method provided by the above embodiment, and the other technical features in the electric vehicle are the same as the features disclosed in the integrated control method in the above embodiment, which will not be repeated here.

[0191] It should be noted that the above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by any technician familiar with the technical field within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.

[0192] The present application also provides a computer-readable storage medium having computer-readable program instructions (ie, computer program) stored thereon, wherein the computer-readable program instructions are used to execute the integrated control method in the above-mentioned embodiment.

[0193] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared or semiconductor systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: a portable computer disk, hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, etc., or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by an instruction execution system or device, or a combination of the two. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.

[0194] The computer-readable storage medium may be included in the integrated controller, or may exist independently without being assembled into the integrated controller. The computer-readable storage medium carries one or more programs, and when the one or more programs are executed by the integrated controller, the electric vehicle can realize the above functions defined in the integrated control method disclosed in the embodiment of the present application.

[0195] Computer program code for performing the operations of the present application may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or to an external computer, such as an Internet connection provided by an Internet service provider.

[0196] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the method, system and computer program product according to various embodiments of the present application. In this regard, each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0197] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.

[0198] The storage medium provided in this application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned integrated control method, and can solve the technical problem of inconvenient operation of electronic parking brake and gear control in the related art. Compared with the related art, the beneficial effects of the computer-readable storage medium provided in this application are the same as the beneficial effects of the integrated control method provided in the above-mentioned embodiment, and will not be repeated here.

[0199] The present application also provides a computer program product, comprising a computer program, which implements the steps of the above-mentioned integrated control method when executed by a processor.

[0200] The computer program product provided by this application can solve the technical problem of inconvenient operation of electronic parking brake and gear control in the related art. Compared with the related art, the beneficial effects of the computer program product provided by this application are the same as the beneficial effects of the integrated control method provided by the above embodiment, which will not be repeated here.

[0201] The above are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect application in other related technical fields are included in the patent protection scope of the present application.

Claims

1. An integrated control method, characterized in that: Applied to an integrated controller, the first input end, the second input end, the first output end and the second output end of the integrated controller are correspondingly connected to the four pins of the hand-gear switch, the integrated controller is communicatively connected to the vehicle controller, and the integrated control method includes: Acquire the level states of the first input terminal and the second input terminal; Determining the switch state of the armrest switch according to a preset output state and the level states of the first input terminal and the second input terminal; wherein the preset output state is the level state of the first output terminal and the second output terminal; Determining whether the switch state in the current cycle is the same as that in the previous cycle; If they are the same, a gear switching request is sent to the vehicle controller according to the switch state of the current cycle to perform gear switching or parking control; If they are different, a fault detection is performed on the hand-shift switch to obtain a fault detection result.

2. The integrated control method according to claim 1, characterized in that: The step of determining the switch state of the armrest switch according to the preset output state and the level states of the first input terminal and the second input terminal comprises: The preset output state in the first cycle is configured as a first output state, wherein the level state of the first output terminal corresponding to the first output state is opposite to the level state of the second output terminal; Determine the switch state of the armrest switch in the first cycle according to the first output state and the level states of the first input terminal and the second input terminal; After determining the switch state of the first cycle, configuring the preset output state in the second cycle to be a second output state, the level states of the first output end and the second output end corresponding to the second output state are opposite to the level states of the first output end and the second output end corresponding to the first output state; Determine the switch state of the armrest switch in the second cycle according to the second output state and the level states of the first input terminal and the second input terminal; The step of determining whether the switch state in the current cycle is the same as that in the previous cycle comprises: Determine that the second cycle is the current cycle, and judge whether the switch state of the current cycle is the same as that of the previous cycle.

3. The integrated control method according to claim 2, characterized in that: The armrest switch includes a clamping handle and a release handle, the clamping handle includes a first normally open contact and a first normally closed contact, and the release handle includes a second normally closed contact and a second normally open contact; The common point of the first normally open contact and the first normally closed contact is a first pin connected to the first input terminal; The common point of the first normally open contact and the second normally closed contact is a second pin connected to the second input terminal; The common point of the second normally closed contact and the second normally open contact is a third pin connected to the first output terminal; The common point of the first normally closed contact and the second normally open contact is a fourth pin connected to the second output terminal.

4. The integrated control method according to claim 3, characterized in that: The step of determining the switch state of the armrest switch in the first cycle according to the first output state and the level states of the first input terminal and the second input terminal comprises: Based on the first output state, If the level state of the first input terminal is low and the level state of the second input terminal is high, it is determined that the switch state of the armrest switch in the first cycle is a natural state; If the level state of the first input terminal is high and the level state of the second input terminal is high, it is determined that the switch state of the armrest switch in the first cycle is a clamping state; If the level state of the first input terminal is low and the level state of the second input terminal is low, it is determined that the switch state of the armrest switch in the first cycle is a released state; Otherwise, it is determined that the armrest switch is invalid, and a fault detection is performed on the armrest switch or the integrated controller performs a self-check.

5. The integrated control method according to claim 3, characterized in that: The step of determining the switch state of the armrest switch in the second period according to the second output state and the level states of the first input terminal and the second input terminal comprises: Based on the second output state, If the level state of the first input terminal is high and the level state of the second input terminal is low, it is determined that the switch state of the armrest switch in the second cycle is a natural state; If the level state of the first input terminal is low and the level state of the second input terminal is low, it is determined that the switch state of the armrest switch in the second cycle is a clamping state; If the level state of the first input terminal is high and the level state of the second input terminal is high, it is determined that the switch state of the armrest switch in the second cycle is a released state; Otherwise, it is determined that the armrest switch is invalid, and a fault detection is performed on the armrest switch or the integrated controller performs a self-check.

6. The integrated control method according to claim 2, characterized in that: The step of sending a gear switching request to the vehicle controller according to the switch state of the current cycle to perform gear switching or parking control includes: A gear switching request is sent to the vehicle controller according to the switch state of the current cycle to perform gear switching or parking control. At the same time, the second cycle is determined to be the previous cycle, and the step of configuring the preset output state in the second cycle as the second output state after determining the switch state of the first cycle is returned to execute, so as to determine a new current cycle and judge whether the switch state of the new current cycle is the same as that of the previous cycle.

7. The integrated control method according to claim 1, characterized in that: The step of performing fault detection on the armrest switch to obtain a fault detection result comprises: configuring the preset output state to be a third output state, wherein the level state of the first output terminal corresponding to the third output state is the same as the level state of the second output terminal; Based on the third output state, If the level state of the first input terminal is low and the level state of the second input terminal is high, or the level state of the first input terminal is high and the level state of the second input terminal is low, it is determined that the armrest switch has a short-to-ground fault, and a first fault result is output; If the level state of the first input terminal is high and the level state of the second input terminal is high, the preset output state is configured as a fourth output state, and the level states of the first output terminal and the second output terminal corresponding to the fourth output state are opposite to the level states of the first output terminal and the second output terminal corresponding to the third output state; Based on the fourth output state, If the level state of the first input terminal is high and the level state of the second input terminal is low, or the level state of the first input terminal is high and the level state of the second input terminal is high, or the level state of the first input terminal is low and the level state of the second input terminal is high, it is determined that the armrest switch has an open circuit fault and the second fault result is output.

8. The integrated control method according to claim 1, characterized in that: The step of sending a gear switching request to the vehicle controller according to the switch state of the current cycle to perform gear switching or parking control includes: If the hand-held gear switch is in the released state in the current cycle, the switching flag is incremented by one; Generate a gear switching request according to the switching flag, and send it to the vehicle controller, so that the vehicle controller performs gear switching in a preset switching order according to the received gear switching request; If the switch state of the armrest switch in the current cycle is a clamped state, a parking request is generated and sent to the vehicle controller, so that the vehicle controller performs parking control according to the parking request.

9. The integrated control method according to any one of claims 1 to 8, characterized in that: Before the step of acquiring the level states of the first input terminal and the second input terminal, the integrated control method further includes: sampling a first voltage at the first input terminal and a second voltage at the second input terminal; Comparing the first voltage and the second voltage with preset voltage values ​​respectively; If the first voltage is greater than the preset voltage value or the second voltage is greater than the preset voltage value, timing starts, and when the timing duration reaches a preset threshold, it is determined that the armrest switch has a short circuit fault, and a short circuit fault result is output; If the first voltage is not greater than the preset voltage value and the second voltage is not greater than the preset voltage value, the step of acquiring the level states of the first input terminal and the second input terminal is performed.

10. An integrated control system, characterized in that: Applied to electric vehicles, the integrated control system includes: An integrated controller, the integrated controller being communicatively connected to a vehicle controller of the electric vehicle; A hand-gear switch, wherein four pins of the hand-gear switch are correspondingly connected to a first input terminal, a second input terminal, a first output terminal, and a second output terminal of the integrated controller; The integrated controller comprises a memory, a processor and a computer program stored in the memory and running on the processor, wherein the computer program is configured to implement the steps of the integrated control method according to any one of claims 1 to 9.

11. An electric vehicle, characterized in that: The electric vehicle comprises: Vehicle controller; The integrated control system as claimed in claim 10; Wherein, the integrated control system is communicatively connected with the vehicle controller.

12. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the integrated control method according to any one of claims 1 to 9 are implemented.

Citation Information

Cited By

  • Detection method, electronic equipment and electric vehicle

    CN120116755A