Method, device and vehicle for power-on diagnostic control of motor drive circuit
By performing the power-on diagnostic process of the motor drive circuit in stages during different polling cycles, the problem of polling task blocking caused by traditional strategies is solved, and the stability of the electronic braking system is improved.
Patent Information
- Application Number
- CN202310925718.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-25
- Publication Date
- 2026-11-10
- Estimated Expiration
- 2043-07-25
AI Technical Summary
Traditional power-on diagnostic control strategies for motor drive circuits can easily lead to the blocking of other polling tasks after the ECU is powered on, affecting the stability of the electronic braking system.
The power-on diagnostic process of the motor drive circuit is divided into multiple stages and executed in different polling cycles to avoid blocking other polling tasks during the power-on diagnostic process of the motor drive circuit.
This improves the stability of the electronic braking system, ensuring that the power-on diagnostic process of the motor drive circuit does not affect the execution of other polling tasks, thus enhancing the overall operational stability of the system.
Smart Images

Figure CN117227475B_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of vehicle control, specifically relating to a power-on diagnostic control method, device, and vehicle for motor drive circuits. Background Technology
[0002] To enhance vehicle safety and braking performance, vehicles are typically equipped with Electronic Braking Systems (EBS).
[0003] The EBS (Electronic Brake Assist System) utilizes a pedal travel sensor to detect the degree to which the driver has pressed the brake pedal. The Electronic Control Unit (ECU) converts this signal into a corresponding brake assist torque, which is then transmitted to the motor in the brake assist system. Driven by an electromechanical amplification mechanism, the motor pushes the rack to generate hydraulic output from the master cylinder, thus achieving electronic control. To achieve the correct assist output, the ECU needs to output a three-phase voltage signal to drive the motor through the motor drive circuit to meet the driver's braking needs. Due to the importance of the motor drive circuit, it is necessary to perform necessary diagnostics on the ECU upon power-up to detect any abnormalities promptly, allowing the system to enter a safe mode and ensuring system safety.
[0004] However, the traditional power-on diagnostic control strategy for motor drive circuits executes a single task after the ECU is powered on. This approach easily blocks other polling tasks during the power-on diagnostic process of the motor drive circuit. Furthermore, if there are waiting operations for specific operating conditions during power-on diagnostics, it will affect the execution of subsequent tasks. Therefore, the traditional power-on diagnostic control strategy for motor drive circuits easily leads to problems with the smooth execution of other polling tasks, severely impacting the stability of the EBS. Summary of the Invention
[0005] This invention provides a power-on diagnostic control method, apparatus, and vehicle for motor drive circuits, which can prevent other polling tasks of the EBS from being blocked during the power-on diagnostic of the motor drive circuit, thereby improving the stability of the EBS.
[0006] This invention provides a power-on diagnostic control method for a motor drive circuit, comprising: entering a polling multitasking state in response to EBS function initialization; and executing multiple stages of power-on diagnostics of the motor drive circuit in different polling cycles.
[0007] In one embodiment, each stage of the power-on diagnostics is performed in a different polling cycle.
[0008] In one embodiment, each battery voltage anomaly detection in the battery voltage anomaly polling detection phase of the power-on diagnostics is performed in different polling cycles of other polling tasks.
[0009] In one embodiment, the steps of controlling the multiple stages of power-on diagnostics of the motor drive circuit to be executed in different polling cycles include: controlling all switching elements in the motor drive H-bridge circuit to be disconnected before the first polling cycle; performing motor pre-drive device configuration in the first polling cycle; and starting battery voltage abnormality polling detection in the second polling cycle until the battery voltage is normal.
[0010] In one embodiment, the step of starting battery voltage anomaly detection in the second polling cycle until the battery voltage is normal includes: starting battery voltage anomaly detection in the second polling cycle; if the detected battery voltage is abnormal, then performing battery voltage anomaly detection again in the third polling cycle until the detected battery voltage is normal.
[0011] In one embodiment, the step of controlling the multiple stages of power-on diagnosis of the motor drive circuit to be executed in different polling cycles further includes: after the battery voltage is normal, performing pre-drive diagnosis on the motor pre-drive device, and entering a safe mode when the pre-drive diagnosis result is a pre-drive fault; when the pre-drive diagnosis result is a normal pre-drive, performing fault diagnosis on the motor drive H-bridge circuit, and entering a normal control mode when the H-bridge circuit is normal, and entering the safe mode when the H-bridge circuit is faulty.
[0012] In one embodiment, the first polling period and the second polling period are respectively the first polling period and the second polling period of the communication polling task.
[0013] In one embodiment, controlling all switching elements in the motor drive H-bridge circuit to disconnect before the first polling cycle includes: acquiring a pressure signal from a pedal travel sensor; finding the corresponding electric drive signal based on the pressure signal; and controlling all switching elements in the motor drive H-bridge circuit to disconnect based on the electric drive signal.
[0014] In one implementation, the polling period for each task is the same.
[0015] The present invention also provides a power-on diagnostic control device for a motor drive circuit, the power-on diagnostic control device for the motor drive circuit including a memory and a processor, wherein the processor can implement the above-mentioned power-on diagnostic control method for the motor drive circuit when executing the application program stored in the memory.
[0016] The present invention also provides a vehicle including the above-described power-on diagnostic control device for the motor drive circuit.
[0017] The power-on diagnostic control method, device, and vehicle for motor drive circuits provided by this invention can enter a polling multitasking state after EBS function initialization, and execute multiple stages of power-on diagnostics of the motor drive circuit in different polling cycles. Therefore, it can avoid other polling tasks of EBS being blocked during the power-on diagnostics of the motor drive circuit, thereby improving the stability of EBS. Attached Figure Description
[0018] Figure 1 This is a schematic diagram of the structure of an electronic braking system provided in an embodiment of the present invention;
[0019] Figure 2 This is a schematic diagram of the structure of the electronic control unit and the motor provided in an embodiment of the present invention;
[0020] Figure 3 A schematic flowchart of a power-on diagnostic control method for a motor drive circuit provided in one embodiment of the present invention;
[0021] Figure 4 A timing diagram of a power-on diagnostic control method for a motor drive circuit provided in one embodiment of the present invention;
[0022] Figure 5 This is a schematic flowchart illustrating the power-on diagnostic control method for a motor drive circuit according to an embodiment of the present invention. Detailed Implementation
[0023] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the various embodiments of the present invention will be described in detail below with reference to the accompanying drawings. However, those skilled in the art will understand that many technical details have been presented in the various embodiments of the present invention to enable the reader to better understand the present invention. However, the technical solutions claimed in the present invention can be implemented even without these technical details and various changes and modifications based on the following embodiments.
[0024] Figure 1 This is a schematic diagram of an electronic braking system provided in an embodiment of the present invention. Figure 1 As shown, in one embodiment, the Electronic Braking System (EBS) includes an Electronic Control Unit (ECU) ①, a motor ②, a central shaft ③, a rack ④, a piston ⑤, brake fluid ⑥, a master cylinder ⑦, a brake pedal ⑧, a mechanical brake push rod ⑨, and a pedal travel sensor ⑩.
[0025] Specifically, when the user presses the brake pedal ⑧, the end of the brake pedal ⑧ pushes the mechanical brake push rod ⑨ to deflect. The pedal travel sensor ⑩ can sense the displacement amplitude of the mechanical brake push rod ⑨. The pedal travel sensor ⑩ converts the displacement it senses into a circuit characteristic signal (e.g., a voltage pulse signal, a current signal of corresponding intensity, or a signal with corresponding high and low duty cycles) according to a preset rule (usually set by the user, such as converting the displacement into a voltage pulse signal of corresponding intensity using a predetermined formula, or finding the corresponding voltage pulse in historical data based on the displacement amount for output). The electronic control unit ① receives the travel signal, i.e., the circuit characteristic signal, output by the pedal travel sensor ⑩, and then finds the corresponding motor drive signal based on the travel signal, and then converts it into a three-phase voltage signal that can drive the motor ② to operate and outputs it to the motor ②.
[0026] Specifically, the three-phase voltage signal driving motor ② can be a PWM signal. Upon receiving this PWM signal, motor ② drives itself to rotate accordingly, which in turn drives the central shaft ③ to rotate. Since a gear is installed on the lower edge of the central shaft ③, and this gear meshes with a rack ④, the central shaft ③ drives the gear to rotate, and the gear drives the rack ④ to move left and right. Because the left end of the rack ④ is fixedly connected to the piston ⑤ in the master cylinder ⑦, the piston ⑤ can slide left and right along the master cylinder ⑦, changing the brake fluid ⑥ content within the master cylinder ⑦, thus enabling the piston ⑤ to push the brake fluid ⑥ to output hydraulic pressure when it moves to the left.
[0027] Figure 2 This is a schematic diagram of the structure of the electronic control unit and the motor provided in an embodiment of the present invention. Figure 2 As shown, in one embodiment, the electronic control unit includes a power supply voltage sampling circuit, a power supply control device, a main control device (also known as an MCU), a motor pre-drive device (e.g., a TLe9183), a motor drive H-bridge circuit (also known as an H Bridge), and a sampling circuit.
[0028] The electronic control unit (ECU) performs a self-check upon power-up before commencing normal operation. Specifically, the main controller in the ECU sends a pre-drive control signal to the motor pre-drive device to control it during the pre-drive process. The pre-drive device outputs a corresponding three-phase drive signal to the motor drive H-bridge circuit based on the three-phase motor PWM drive duty cycle, enabling the H-bridge circuit to operate according to the three-phase drive signal. A current amplifier amplifies the C-phase and E-phase currents of the motor drive H-bridge circuit and then samples them through a sampling circuit. The sampling circuit outputs a current sampling signal to the main controller based on the amplified C-phase and E-phase current voltages. The main controller then calculates the three-phase current value and the three-phase duty cycle value, and uses this value to determine the pre-drive diagnostic result. The main controller also receives three-phase status feedback signals from the motor drive circuit and pre-drive fault signals from the motor pre-drive device, performing pre-drive diagnostics to determine whether to enter normal control mode or safety mode. The main controller is also used to control the motor drive circuit to output a three-phase voltage signal to the motor when entering the normal control mode, so as to power the motor to push the master cylinder forward and push out the brake fluid.
[0029] Figure 3 This is a flowchart illustrating the power-on diagnostic control method for a motor drive circuit provided in the first embodiment of the present invention. The power-on diagnostic control method for a motor drive circuit provided in this embodiment can be applied, but is not limited to, to applications such as... Figure 1 or Figure 2 The electronic control unit shown is, for example Figure 3 As shown, the power-on diagnostic control method for the motor drive circuit provided in this embodiment includes:
[0030] Step S31: In response to the initialization of the electronic braking system, enter the polling multitasking state;
[0031] Step S32: Execute the multiple stages of power-on diagnostics of the motor drive circuit in different polling cycles.
[0032] Entering the polling multi-task state is equivalent to entering the multi-threaded state. Specifically, this could involve simultaneously performing battery voltage anomaly detection polling tasks and other polling tasks (such as communication polling tasks). Multiple stages of the power-on diagnostics of the motor drive circuit are executed in different polling cycles. For example, the first and second stages of the power-on diagnostics can be executed in the first polling cycle, and the third stage in the second polling cycle, etc. If a stage of the power-on diagnostics, such as the third stage, is a polling stage, the execution result of the third stage of the power-on diagnostics in this application will not affect the execution of other polling tasks. Compared to existing technologies where all stages of the power-on diagnostics are executed before the first polling cycle of other polling tasks, which can easily lead to uncontrollable extensions in the power-on diagnostic time and thus affect the execution of other polling tasks, this application avoids the problem of other polling tasks being blocked during the power-on diagnostics period, resulting in unsmooth execution of polling tasks.
[0033] In one embodiment, each stage of the power-on diagnostics is executed in a different polling cycle. The power-on diagnostics includes a battery voltage anomaly polling detection stage. Specifically, in one embodiment, each battery voltage anomaly detection in the battery voltage anomaly polling detection stage of the power-on diagnostics can be executed in a different polling cycle of another polling task. For example, the first battery voltage anomaly detection is executed in the second polling cycle of another polling task, such as a communication polling task, and the second battery voltage anomaly detection is executed in the third polling cycle of a communication polling task.
[0034] Figure 4 This is a timing diagram of a power-on diagnostic control method for a motor drive circuit provided in one embodiment of the present invention. Figure 5 This is a schematic flowchart illustrating the power-on diagnostic control method for a click-driven circuit according to an embodiment of the present invention. Please also refer to... Figure 4 and Figure 5The power-on diagnostic control method for the motor drive circuit includes: a first stage of power-on diagnostics, such as a switching element setting stage, before the first polling cycle; a second stage of power-on diagnostics, such as a motor pre-drive device configuration stage, within the first polling cycle; a third stage of power-on diagnostics, such as battery voltage anomaly detection, starting within the second polling cycle; if a battery voltage anomaly is detected, the battery voltage is detected again within the third polling cycle until the detected battery voltage is normal; after the battery voltage is normal, a fourth stage of power-on diagnostics, such as a pre-drive diagnostic stage, and a fifth stage, such as a motor drive H-bridge circuit diagnostic stage, are then performed. The fourth and fifth stages can be executed in different polling cycles. The polling cycle can be, for example, the polling cycle of a communication polling task, so that other polling tasks, such as communication polling tasks, are not blocked during the power-on diagnostics of the motor drive circuit and can be executed synchronously with the power-on diagnostics of the motor drive circuit, improving the stability of the EBS.
[0035] In one embodiment, the power-on diagnostic control method for the motor drive circuit includes:
[0036] Step S51: All switching elements in the control motor drive H-bridge circuit are disconnected;
[0037] Step S52: Configure the motor pre-drive device;
[0038] Step S53: Perform abnormal battery voltage polling detection until the battery voltage is normal;
[0039] Step S54: Perform pre-drive diagnosis on the motor pre-drive device and determine whether the pre-drive diagnosis result is a pre-drive fault;
[0040] If the pre-drive diagnosis result is a pre-drive failure, proceed to step S55: Enter safe mode;
[0041] If the pre-drive diagnosis result is a non-pre-drive fault, then the pre-drive is normal, and proceed to step S56: perform fault diagnosis on the motor drive H-bridge circuit and determine whether the fault diagnosis result is a fault.
[0042] If the fault diagnosis result of the motor drive H-bridge circuit is non-faulty, i.e. normal, proceed to step S57: enter normal control mode.
[0043] If the fault diagnosis result of the motor drive H-bridge circuit is a fault, proceed to step S55: Enter safe mode.
[0044] In some examples, the prerequisite for executing step S51: controlling all the switching elements in the motor drive H-bridge circuit to be disconnected is that the electronic control unit is powered on at the moment of power-on, for example, when the electronic control unit is first connected to the power supply voltage, or when the electronic control unit suddenly changes from a low level in standby mode to a high level after receiving a signal from the pedal travel sensor.
[0045] In some examples, step S52: performing motor pre-drive device configuration includes:
[0046] Obtain motor control items, corresponding motor control parameters, pre-drive detection items, and corresponding pre-drive diagnostic thresholds;
[0047] Set the motor control parameters into the motor pre-drive device according to the corresponding motor control items;
[0048] Store the pre-drive test items and the corresponding pre-drive diagnostic thresholds in the motor pre-drive device.
[0049] Furthermore, multiple pairs of motor control items, corresponding motor control parameters, pre-drive detection items, and corresponding pre-drive diagnostic thresholds can be pre-stored. For example, the user can view each pair of "motor control items, corresponding motor control parameters, pre-drive detection items, and corresponding pre-drive diagnostic thresholds," and select which pair to import. After receiving the user's selection information and a confirmation signal, the system finds the pair of "motor control items, corresponding motor control parameters, pre-drive detection items, and corresponding pre-drive diagnostic thresholds" that corresponds to the user's selection information and imports it.
[0050] In one embodiment, step S53: performing battery voltage anomaly polling detection until the battery voltage is normal includes:
[0051] Detect the voltage value at the output terminal of the battery circuit;
[0052] When the voltage value is within the preset battery voltage range, the battery circuit output is determined to be normal.
[0053] When the voltage value is not within the preset battery voltage range, the battery circuit output is determined to be abnormal.
[0054] In some examples, step S53: performing battery voltage anomaly polling detection until the battery voltage is normal, also includes:
[0055] After determining that the battery circuit output is abnormal, return to the step of detecting the voltage value at the output of the battery circuit after a preset interval, until the battery voltage is normal.
[0056] In one implementation, the cycle for the battery voltage anomaly polling detection is the same as the cycle for other polling tasks, for example, 5 microseconds.
[0057] Specifically, in one embodiment, step S54: performing a pre-drive diagnostic on the motor pre-drive device, including:
[0058] Test the pre-drive test values of the pre-drive test items corresponding to the configured motor pre-drive devices;
[0059] Compare the pre-drive detection values corresponding to the pre-drive detection items with the stored pre-drive diagnostic thresholds;
[0060] When all pre-drive test values are within the corresponding pre-drive diagnostic threshold range, the pre-drive diagnostic result is set to pre-drive normal.
[0061] If the pre-drive test value of any pre-drive test item is not within the corresponding pre-drive diagnostic threshold range, the pre-drive diagnostic result is set as a pre-drive fault.
[0062] Specifically, in one embodiment, during pre-drive diagnostics, multiple pre-drive test items are tested simultaneously. Multiple test items can be performed concurrently, and the overall pre-drive diagnostic result is considered normal only after all test items are set to normal. There are various pre-drive test items, each corresponding to a test circuit, and the user can select which pre-drive test items to test. During execution, if even one pre-drive test item fails, the entire test is considered to have failed. The purpose of setting up pre-drive items is to allow maintenance personnel to quickly pinpoint the cause and location of the fault when a pre-drive failure occurs.
[0063] Specifically, in one embodiment, step S56: performing fault diagnosis on the motor drive H-bridge circuit, including:
[0064] Each motor drive H-bridge circuit's switching element is individually turned on to input the three-phase test voltage;
[0065] Detect the three-phase feedback voltage of a individually conducting switching element;
[0066] Compare the three-phase feedback voltage with the preset three-phase normal range;
[0067] If the feedback voltage of any phase in the three-phase feedback voltage exceeds the normal range of the corresponding three phases, the fault diagnosis result of the motor drive H-bridge circuit will be judged as a fault.
[0068] When all feedback voltages in the three-phase feedback voltage fall within the normal range of the corresponding three phases, the fault diagnosis result of the motor drive H-bridge circuit is determined to be normal.
[0069] Specifically, in one embodiment, the switching element in the motor drive H-bridge circuit is a field-effect transistor (FET). During implementation, to avoid mutual interference between FETs, the FET to be detected is individually turned on while the others are turned off. Comparing the three-phase feedback voltage with a preset three-phase normal range is for fault diagnosis of the detected FET, and only the fault status of the currently detected FET is obtained. When the three-phase feedback voltage of the current FET is within the corresponding three-phase normal range, the three-phase feedback voltage of the next individually turned-on FET needs to be detected and compared, until the last FET is turned on and its three-phase feedback voltage is compared.
[0070] Step 105: Based on the pre-drive diagnosis results and the fault diagnosis results, set the working mode of the motor drive to the working mode and output a three-phase voltage signal to the motor to power the motor to push the master cylinder forward and push out the brake fluid.
[0071] Specifically, in one implementation, the motor drive circuit cannot function normally in the safety mode. It needs to wait for maintenance / repair personnel to come and troubleshoot the problems corresponding to the pre-drive diagnosis and / or the problems corresponding to the motor drive H-bridge circuit before it will automatically switch from the safety mode to the normal operation mode, so that the motor drive circuit can output a three-phase voltage signal to power the motor to push the master cylinder forward and push out the brake fluid.
[0072] The present invention also provides a power-on diagnostic control device for a motor drive circuit, the power-on diagnostic control device for the motor drive circuit including a memory and a processor, wherein the processor can implement the above-mentioned power-on diagnostic control method for the motor drive circuit when executing the application program stored in the memory.
[0073] The present invention also provides a vehicle including the above-described motor drive circuit power-on diagnostic control device.
[0074] In response to the initialization of the electronic braking system, the present invention enters a polling multitasking state and executes the multiple stages of the power-on diagnosis of the motor drive circuit in different polling cycles. This avoids blocking other polling tasks of the electronic braking system during the power-on diagnosis of the motor drive circuit, thereby improving the stability of the electronic braking system.
[0075] All modules involved in this embodiment are logical modules. In practical applications, a logical unit can be a physical unit, a part of a physical unit, or a combination of multiple physical units. Furthermore, to highlight the innovative aspects of this invention, this embodiment does not introduce units that are not closely related to solving the technical problem proposed by this invention; however, this does not mean that other units are absent from this embodiment.
[0076] It is not difficult to see that this embodiment is a system implementation corresponding to the first embodiment, and this embodiment can be implemented in conjunction with the first embodiment. The relevant technical details mentioned in the first embodiment are still valid in this embodiment, and will not be repeated here to reduce repetition. Accordingly, the relevant technical details mentioned in this embodiment can also be applied to the first embodiment.
[0077] The above descriptions are merely embodiments of the present invention. Commonly known structures and characteristics of the solutions are not described in detail here. Those skilled in the art are aware of all common technical knowledge in the field prior to the application date or priority date, are aware of all existing technologies in that field, and have the ability to apply conventional experimental methods prior to that date. Those skilled in the art can, under the guidance of the present invention, improve and implement this solution in combination with their own capabilities. Some typical well-known structures or methods should not be obstacles for those skilled in the art to implement the present invention. It should be noted that those skilled in the art can make several modifications and improvements without departing from the structure of the present invention. These should also be considered within the scope of protection of the present invention, and will not affect the effectiveness of the implementation of the present invention or the practicality of the patent. The scope of protection claimed by the present invention should be determined by the content of its claims, and the specific embodiments described in the specification can be used to interpret the content of the claims.
Claims
1. A power-on diagnostic control method for a motor drive circuit, characterized in that, include: In response to the initialization of the electronic braking system, it enters a polling multitasking state; The multiple stages of the power-on diagnostics of the motor drive circuit are executed in different polling cycles. The steps of controlling the power-on diagnostics of the motor drive circuit, which are performed in different polling cycles, include: Before the first polling cycle, all switching elements in the H-bridge circuit controlling the motor drive are disconnected; Motor pre-drive device configuration is performed during the first polling cycle; The second polling cycle begins the abnormal battery voltage polling detection until the battery voltage returns to normal. The step of starting the abnormal battery voltage polling detection during the second polling cycle until the battery voltage returns to normal includes: During the second polling cycle, anomaly detection of the battery voltage begins; If the detected battery voltage is abnormal, the battery voltage will be checked again in the third polling cycle until the detected battery voltage is normal. The steps of controlling the power-on diagnostics of the motor drive circuit to be executed in different polling cycles in multiple stages further include: After the battery voltage is normal, a pre-drive diagnosis is performed on the motor pre-drive device, and if the pre-drive diagnosis result is a pre-drive fault, the system enters a safe mode. When the pre-drive diagnosis result is normal, the motor drive H-bridge circuit is diagnosed for fault. When the H-bridge circuit is normal, the normal control mode is entered. When the H-bridge circuit is faulty, the safety mode is entered.
2. The power-on diagnostic control method for a motor drive circuit as described in claim 1, characterized in that, Each stage of the power-on diagnostics is executed in a different polling cycle.
3. The power-on diagnostic control method for the motor drive circuit as described in claim 1, characterized in that, Each battery voltage anomaly detection in the battery voltage anomaly polling detection phase of the power-on diagnostics is executed in different polling cycles of other polling tasks.
4. The power-on diagnostic control method for the motor drive circuit as described in claim 1, characterized in that, The first polling cycle and the second polling cycle are respectively the first polling cycle and the second polling cycle of the communication polling task.
5. The power-on diagnostic control method for a motor drive circuit as described in claim 1, characterized in that, The polling cycle for each task is the same.
6. A power-on diagnostic control device for a motor drive circuit, characterized in that, The power-on diagnostic control device for the motor drive circuit includes a memory and a processor. When the processor executes the application program stored in the memory, it can implement the power-on diagnostic control method for the motor drive circuit as described in any one of claims 1-5.
7. A vehicle, characterized in that, The vehicle includes a power-on diagnostic control device for the motor drive circuit as described in claim 6.
Citation Information
Patent Citations
Diagnosis methods for phase line faults of electric power steering system
CN102539988A
Rack movement control method and device of electric brake system
CN110481521A
