Motor controller and discharge control device and method thereof, motor and vehicle

By setting up an active discharge circuit in the motor controller, using the combination of low-voltage and high-voltage control circuits, the problem of the DC bus capacitor not being discharged quickly enough after being powered under high voltage is solved, and rapid discharge is achieved, avoiding electric shock and improving safety.

CN119787793APending Publication Date: 2025-04-08GREE ELECTRIC APPLIANCE INC OF ZHUHAI
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411924911.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-25
Publication Date
2025-04-08

AI Technical Summary

Technical Problem

The DC bus capacitor in the motor controller needs to be discharged quickly after being powered under high voltage. If the discharge is not rapid enough, it is easy to cause electric shock, which poses safety hazards.

Method used

An active discharge circuit consisting of a low-voltage control circuit and a high-voltage control circuit is set up to control the conduction or shutdown of the discharge switch tube through the driving activation signal to ensure that the DC bus capacitor is discharged quickly when powered under high voltage.

Benefits of technology

Through the use of active discharge circuits, it is possible to quickly discharge when powered under high voltage, avoid electric shock, improve safety, protect testers and reduce losses of related devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119787793A_ABST
    Figure CN119787793A_ABST
Patent Text Reader

Abstract

The invention discloses a motor controller and a discharge control device and method thereof, a motor and a vehicle, and the device is characterized in that the positive electrode of a DC bus capacitor is connected with the first connection end of a discharge switch tube after passing through a discharge resistor unit; the second connecting end of the discharge switch tube is connected with the negative electrode of the direct-current bus capacitor; the signal processing unit is used for processing based on the driving activation signal output by the main control unit and a direct-current bus sampling signal of the motor controller and outputting a control signal so as to control the on or off of the discharge switch tube; under the condition that the discharge switch tube is switched off, the direct current bus capacitor is not discharged; and under the condition that the discharge switch tube is conducted, the discharge resistor unit and the discharge switch tube form a discharge loop to discharge the direct-current bus capacitor. According to the scheme, by arranging the signal processing unit, the direct-current bus capacitor is rapidly discharged during high-voltage power-off, electric shock is avoided, and safety is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of motor controllers, and specifically relates to a discharge control device and method of a motor controller, a motor controller, a motor and a vehicle, and more particularly to an active discharge circuit controlled by a drive activation circuit and a control method thereof, a motor controller, a motor and a vehicle. Background Art

[0002] The busbars of motor controllers (such as those in new energy vehicle controllers) usually have a large capacitor at both ends to support them. However, in certain cases, the DC busbar capacitors in new energy vehicle controllers need to be discharged quickly after being powered on at high voltage. If the DC busbar capacitors are not discharged quickly enough, it is easy to cause electric shock, damage related devices and threaten the personal safety of operators.

[0003] The above contents are only used to assist in understanding the technical solution of the present invention and do not constitute an admission that the above contents are prior art. Summary of the invention

[0004] The object of the present invention is to provide a discharge control device and method for a motor controller, a motor controller, a motor and a vehicle, so as to solve the problem that the DC bus capacitor of the motor controller (such as the motor controller in the controller for new energy vehicles) needs to be discharged quickly after being powered on at high voltage. If the DC bus capacitor is not discharged quickly enough, it is easy to cause electric shock and there is a safety hazard. By setting an active discharge circuit composed of a low-voltage control loop and a high-voltage control loop, the DC bus capacitor is discharged quickly when powered on at high voltage, thereby avoiding electric shock and improving safety.

[0005] The present invention provides a discharge control device for a motor controller, wherein the motor controller comprises a main control unit and a DC bus capacitor; the DC bus capacitor is connected between the DC bus positive terminal and the DC bus negative terminal of the motor controller; the discharge control device for the motor controller comprises: a signal processing unit, a discharge resistor unit, and a discharge switch tube; wherein the drive activation signal output by the main control unit is input to the first input terminal of the signal processing unit; the DC bus sampling signal of the motor controller is input to the second input terminal of the signal processing unit; the output terminal of the signal processing unit is connected to the control terminal of the discharge switch tube; the positive electrode of the DC bus capacitor is connected to the discharge switch tube through the discharge resistor unit; the discharge resistor unit ... The resistor unit is connected to the first connection end of the discharge switch tube; the second connection end of the discharge switch tube is connected to the negative electrode of the DC bus capacitor; wherein the signal processing unit is used to process based on the drive activation signal output by the main control unit and the DC bus sampling signal of the motor controller, and output a control signal to control the conduction or shutdown of the discharge switch tube; when the discharge switch tube is turned off, the discharge resistor unit and the discharge switch tube do not constitute a discharge circuit, and the DC bus capacitor is not discharged; when the discharge switch tube is turned on, the discharge resistor unit and the discharge switch tube constitute a discharge circuit to discharge the DC bus capacitor.

[0006] In some embodiments, the signal processing unit includes: a low-voltage processing module, an optical coupling module, and a high-voltage processing module; wherein the input end of the low-voltage processing module is used to receive the drive activation signal output by the main control unit and the DC bus sampling signal of the motor controller; the output end of the low-voltage processing module is connected to the low-voltage side of the optical coupling module; the high-voltage side of the optical coupling module is connected to the input end of the high-voltage processing module; the output end of the high-voltage processing module is connected to the control end of the discharge switch tube; wherein the drive activation signal output by the main control unit is a set high-level signal, and the DC bus sampling signal of the motor controller is a set When the driving activation signal output by the main control unit is a set low-level signal and the DC bus sampling signal of the motor controller is a set high-voltage power-on signal, the discharge switch tube is turned off; when the driving activation signal output by the main control unit is a set low-level signal and the DC bus sampling signal of the motor controller is a set high-voltage power-down signal, the discharge switch tube is turned on; when the driving activation signal output by the main control unit is a set low-level signal and the DC bus sampling signal of the motor controller is a set low-voltage power-down signal, the discharge switch tube is turned on; when the driving activation signal output by the main control unit is a set low-level signal and the DC bus sampling signal of the motor controller is a set low-voltage power-down signal, the discharge switch tube is turned off.

[0007] In some embodiments, the low-voltage processing module includes: a diode module, a first switch tube module, a voltage stabilizing module, and a voltage divider module; wherein the drive activation signal output by the main control unit is input to the anode of the diode module; the DC bus sampling signal of the motor controller can be input to the cathode of the voltage stabilizing module; the cathode of the diode module and the anode of the voltage stabilizing module can both be connected to the control end of the first switch tube module; a preset first DC power supply can be connected to the first connection end of the first switch tube module; the second connection end of the first switch tube module, as the output end of the low-voltage processing module, is connected to the low-voltage side of the optocoupler module; the voltage divider module is respectively connected to the diode module, the voltage stabilizing module and the first switch tube module.

[0008] In some embodiments, the voltage divider module includes: a first voltage divider resistor, a second voltage divider resistor, a third voltage divider resistor, a fourth voltage divider resistor, and a fifth voltage divider resistor; wherein, the cathode of the diode module is connected to a preset first ground after passing through the first voltage divider resistor and the second voltage divider resistor; the first voltage divider resistor and the second voltage divider resistor are connected to the control end of the first switch tube module; a preset first DC power supply is connected to the first connection end of the first switch tube module after passing through the third voltage divider resistor; the second connection end of the first switch tube module is connected to the preset first ground after passing through the fourth voltage divider resistor; the low voltage side of the optocoupler module is the diode side of the optocoupler module, and the second connection end of the first switch tube module is connected to the anode of the diode side of the optocoupler module; the cathode of the diode side of the optocoupler module is connected to the preset first ground; the DC bus sampling signal of the motor controller is input to the cathode of the voltage stabilizing module after passing through the fifth voltage divider resistor; the anode of the voltage stabilizing module is connected to the control end of the first switch tube module.

[0009] In some embodiments, the voltage stabilizing module includes: a voltage stabilizing diode or a TVS tube; wherein the cathode of the voltage stabilizing diode serves as the cathode of the voltage stabilizing module; the anode of the voltage stabilizing diode serves as the anode of the voltage stabilizing module; the cathode of the TVS tube serves as the cathode of the voltage stabilizing module; and the anode of the TVS tube serves as the anode of the voltage stabilizing module.

[0010] In some embodiments, the high-voltage processing module includes: a sixth voltage-dividing resistor, a seventh voltage-dividing resistor, and an eighth voltage-dividing resistor; wherein the high-voltage side of the optocoupler module is the transistor side of the optocoupler module; a preset second DC power supply is connected to the collector of the transistor side of the optocoupler module after passing through the eighth voltage-dividing resistor; the emitter of the transistor side of the optocoupler module is connected to a preset second ground; the collector of the transistor side of the optocoupler module is connected to the preset second ground after passing through the sixth voltage-dividing resistor and the seventh voltage-dividing resistor; the common end of the sixth voltage-dividing resistor and the seventh voltage-dividing resistor, as the output end of the high-voltage processing module, is connected to the control end of the discharge switch tube module.

[0011] Matching the above device, the present invention further provides a motor controller on the other hand, including: the discharge control device of the motor controller described above.

[0012] Matching the above-mentioned device, the present invention provides a motor on another aspect, including: the discharge control device of the motor controller mentioned above, or the motor controller mentioned above.

[0013] Matching the above-mentioned device, the present invention provides a vehicle on another aspect, comprising: the discharge control device of the motor controller mentioned above, or the motor controller mentioned above, or the motor mentioned above.

[0014] Matching the above-mentioned motor controller, the present invention provides a discharge control method of a motor controller on another aspect, comprising: receiving a drive activation signal output by the main control unit and a DC bus sampling signal of the motor controller; processing by the signal processing unit based on the drive activation signal output by the main control unit and the DC bus sampling signal of the motor controller, and outputting a control signal to control the on or off of the discharge switch tube; when the discharge switch tube is turned off, the discharge resistor unit and the discharge switch tube do not constitute a discharge circuit, and the DC bus capacitor is not discharged; when the discharge switch tube is turned on, the discharge resistor unit and the discharge switch tube constitute a discharge circuit, and the DC bus capacitor is discharged.

[0015] In some embodiments, when the signal processing unit includes a low-voltage processing module, an optical coupling module, and a high-voltage processing module, the signal processing unit processes the drive activation signal output by the main control unit and the DC bus sampling signal of the motor controller to output a control signal to control the on or off of the discharge switch tube, including: when the drive activation signal output by the main control unit is a set high-level signal and the DC bus sampling signal of the motor controller is a set high-voltage power-on signal, the discharge switch tube is turned off; when the drive activation signal output by the main control unit is a set low-level signal and the DC bus sampling signal of the motor controller is a set high-voltage power-on signal, the discharge switch tube is turned off; when the drive activation signal output by the main control unit is a set low-level signal and the DC bus sampling signal of the motor controller is a set high-voltage power-down signal, the discharge switch tube is turned on; when the drive activation signal output by the main control unit is a set low-level signal and the DC bus sampling signal of the motor controller is a set high-voltage power-down signal, the discharge switch tube is turned on; when the drive activation signal output by the main control unit is a set low-level signal and the DC bus sampling signal of the motor controller is a set low-voltage power-down signal, the discharge switch tube is turned off.

[0016] Therefore, the scheme of the present invention is aimed at the DC bus capacitor (such as capacitor C1) on the input side of the inverter in the motor controller. Since the drive module (such as IGBT) of the inverter in the motor controller is controlled by the DSP main chip via the drive activation circuit and the drive circuit, an active discharge circuit is provided which is controlled by the drive activation signal (i.e., PWM enable signal EN_PWM) sent by the DSP main chip to the drive activation circuit and the DC bus sampling value (i.e., high-voltage sampling value DSP_DC) of the motor controller. When the DC bus capacitor needs to be discharged, discharge is achieved through the active discharge circuit; the active discharge circuit has a low-voltage control loop and a high-voltage control loop, a discharge resistor (such as a discharge resistor R) and a discharge switch tube (such as a MOS tube D3) are set on the high-voltage control loop side, when the drive activation signal sent by the DSP main chip is at a low level (that is, the signal EN_PWM=0V) and the motor controller performs a high-voltage power-down operation, the low-voltage control loop and the high-voltage control loop are not conductive, and the discharge switch tube in the high-voltage control loop is conductive to connect the discharge resistor to discharge the DC bus capacitor; thus, by setting an active discharge circuit composed of a low-voltage control loop and a high-voltage control loop, the DC bus capacitor is quickly discharged when the high-voltage power is down, thereby avoiding electric shock and improving safety.

[0017] Other features and advantages of the present invention will be set forth in the description which follows, and in part will be apparent from the description, or may be learned by practice of the present invention.

[0018] The technical solution of the present invention is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 It is a structural schematic diagram of an embodiment of a discharge control device of a motor controller of the present invention;

[0020] Figure 2 is a structural schematic diagram of the active discharge circuit of the present invention;

[0021] Figure 3 It is a functional module schematic diagram of a drive activation circuit (PWM enable) in a related solution;

[0022] Figure 4 It is a functional module diagram of a circuit for converting VCC to VCC2 through a non-common ground power supply voltage regulator chip;

[0023] Figure 5 It is a structural schematic diagram of a driving circuit in a related solution (taking one phase of three phases and upper tube control as an example);

[0024] Figure 6 It is a flow chart of an embodiment of a discharge control method of a motor controller of the present invention. DETAILED DESCRIPTION

[0025] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the specific embodiments of the present invention and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0026] Considering that the DC bus capacitor of the motor controller (such as the motor controller in the new energy vehicle controller) needs to be discharged quickly after the high voltage is turned off, if the DC bus capacitor is not discharged quickly enough, it is easy to cause electric shock and there is a safety hazard. For example: for the DC bus capacitor in the new energy vehicle controller, in certain circumstances, it is necessary to add an active discharge circuit to enable the DC bus capacitor in the new energy vehicle controller to discharge quickly after the high voltage is turned off (that is, the high voltage on the input side of the DC bus capacitor is turned off). Especially in the process of engineer testing and debugging, since it often involves high voltage power-off and the drive module (such as the switch tube of the inverter in the motor controller) is turned off (such as the switch tube of the inverter in the motor controller), if the DC bus capacitor is not discharged quickly enough, it is easy to cause electric shock, loss of related devices and threaten the personal safety of the tester. Among them, the switch tube of the inverter in the motor controller is such as the insulated gate bipolar transistor (IGBT). In other words, the bus capacitor is not discharged quickly enough, which means that the bus capacitor is not discharged quickly enough when the high voltage is turned off and the drive module is turned off.

[0027] In the related scheme, a discharge resistor is set, and a pin of the main chip of the digital signal processing technology (DSP) outputs a high level, so that the discharge resistor is connected to both ends of the capacitor to achieve discharge. The reason for the slow discharge in the related scheme is usually that the resistance of the discharge resistor at both ends of the capacitor is large, and the discharge current is small. When the high voltage is just applied, some of the charge will not be discharged in time, which is easy to cause electric shock, damage related devices and threaten the personal safety of the tester.

[0028] Therefore, the scheme of the present invention provides a discharge control device for a motor controller, specifically an active discharge circuit controlled by a drive activation circuit, which can determine whether to connect the active discharge circuit according to the level output of the drive activation circuit, thereby controlling the discharge speed of the DC bus capacitor, avoiding electric shock, preventing testers from accidentally getting electric shock and reducing related device losses.

[0029] According to an embodiment of the present invention, a discharge control device for a motor controller is provided. Figure 1 The motor controller comprises a main control unit and a DC bus capacitor, wherein the main control unit is a DSC main chip, and the DC bus capacitor is a Figure 2The capacitor C1 shown in the figure; the DC bus capacitor is connected between the DC bus positive terminal and the DC bus negative terminal of the motor controller, such as the capacitor C1 is connected between the positive pole DC+ and the negative pole DC- of the high voltage; the motor controller also has an inverter; the inverter has a drive activation circuit, a drive circuit, and a drive module (such as IGBT); the main control unit sends a drive activation signal (i.e., PWM enable signal EN_PWM) to control the drive activation circuit, the drive activation circuit controls the drive circuit, and the drive circuit controls the conduction or shutdown of the drive module. In the scheme of the present invention, Figure 1 As shown, the discharge control device of the motor controller includes: a signal processing unit, a discharge resistance unit (such as Figure 2 The discharge resistor R shown in FIG. Figure 2 MOS tube D3 shown).

[0030] The drive activation signal (i.e., PWM enable signal EN_PWM) output by the main control unit is input to the first input end of the signal processing unit; the DC bus sampling signal (e.g., bus sampling value DSP_DC) of the motor controller is input to the second input end of the signal processing unit; the output end of the signal processing unit is connected to the control end of the discharge switch tube (e.g., Figure 2 The positive electrode of the DC bus capacitor is connected to the first connection end of the discharge switch tube after passing through the discharge resistor unit; the second connection end of the discharge switch tube is connected to the negative electrode of the DC bus capacitor; the first connection end of the discharge switch tube is connected to the gate of the MOS tube D3 shown in the figure; the ... Figure 2 The drain of the MOS tube D3 shown in FIG. 1 is connected to the second connection terminal of the discharge switch tube. Figure 2 The source of the MOS tube D3 is shown.

[0031] Among them, the signal processing unit is used to process the drive activation signal output by the main control unit and the DC bus sampling signal of the motor controller, and output a control signal to control the conduction or shutdown of the discharge switch tube; when the discharge switch tube is turned off, the discharge resistance unit and the discharge switch tube do not constitute a discharge circuit, and the DC bus capacitor is not discharged; when the discharge switch tube is turned on, the discharge resistance unit and the discharge switch tube constitute a discharge circuit to discharge the DC bus capacitor.

[0032] In the motor controller, the DSP main chip controls the drive activation circuit, the drive activation circuit controls the drive circuit, and the drive circuit controls the drive module (such as IGBT) of the inverter. The solution of the present invention proposes an active discharge circuit controlled by the drive activation circuit, which can determine whether the active discharge circuit is connected or not according to the level output of the drive activation circuit (such as the drive activation circuit of the drive circuit of the switch tube of the inverter in the motor controller), thereby controlling the discharge speed of the DC bus capacitor, so that when the drive module is turned off, even if the low-voltage power supply is not disconnected, rapid discharge can be achieved to avoid electric shock, prevent accidental electric shock to testers and reduce related device losses.

[0033] In some embodiments, the signal processing unit includes: a low voltage processing module (such as Figure 2 Low voltage control circuit shown), optocoupler module (such as Figure 2 The optical coupler isolation chip D2 shown in FIG. Figure 2 The high-voltage control loop shown in the figure). The input end of the low-voltage processing module is used to receive the drive activation signal output by the main control unit and the DC bus sampling signal of the motor controller; the output end of the low-voltage processing module is connected to the low-voltage side of the optical coupling module; the high-voltage side of the optical coupling module is connected to the input end of the high-voltage processing module; the output end of the high-voltage processing module is connected to the control end of the discharge switch tube.

[0034] Wherein, when the driving activation signal output by the main control unit is a set high-level signal, and the DC bus sampling signal of the motor controller is a set high-voltage power-on signal, the discharge switch tube is turned off. Specifically, when the driving activation signal output by the main control unit is a set high-level signal, and the DC bus sampling signal of the motor controller is a set high-voltage power-on signal, the low-voltage processing module turns on the optical coupling module, and the output signal of the high-voltage processing module is insufficient to turn on the discharge switch tube, and the discharge switch tube is turned off; wherein, the set high-level signal, such as the signal EN_PWM output by the DSP main chip = 3.3V. For example: when the driving circuit is activated (i.e., the signal EN_PWM output by the DSP main chip is 3.3V) and the high voltage DC+ is powered on normally, current flows through the low voltage side of the optocoupler isolation chip D2 (i.e., the diode side of the optocoupler isolation chip D2), causing the high voltage side of the optocoupler isolation chip D2 to be turned on. At this time, the gate-source voltage of the MOS tube D3 is less than the turn-on voltage of the MOS tube D3, and the discharge resistor R is not connected to the loop. At this time, the new energy vehicle controller works normally, and the capacitor C1 does not need to be discharged.

[0035] When the driving activation signal output by the main control unit is a set low-level signal, and the DC bus sampling signal of the motor controller is a set high-voltage power-on signal, the discharge switch tube is turned off. Specifically, when the driving activation signal output by the main control unit is a set low-level signal, and the DC bus sampling signal of the motor controller is a set high-voltage power-on signal, the low-voltage processing module turns on the optical coupling module, and the output signal of the high-voltage processing module is insufficient to turn on the discharge switch tube, and the discharge switch tube is turned off; wherein the set low-level signal, such as the signal EN_PWM output by the DSP main chip = 0V. For example: when the tester does not activate the drive circuit (i.e., the signal EN_PWM output by the DSP main chip = 0V), but still applies the high-voltage DC+ test, current flows through the low-voltage side of the optocoupler isolation chip D2 (i.e., the diode side of the optocoupler isolation chip D2), causing the high-voltage side of the optocoupler isolation chip D2 to be turned on. At this time, the voltage across the gate and source of the MOS tube D3 is less than the turn-on voltage of the MOS tube D3. At this time, the discharge resistor R is not connected to the loop, and the new energy vehicle controller works normally.

[0036] When the driving activation signal output by the main control unit is a set low-level signal, and the DC bus sampling signal of the motor controller is a set high-voltage electrical signal, the discharge switch tube is turned on. Specifically, when the driving activation signal output by the main control unit is a set low-level signal, and the DC bus sampling signal of the motor controller is a set high-voltage electrical signal, the low-voltage processing module turns off the optical coupling module, and the output signal of the high-voltage processing module is sufficient to turn on the discharge switch tube, and the discharge switch tube is turned on; for example: when the drive circuit is not activated (i.e., the signal EN_PWM output by the DSP main chip = 0V), and the high-voltage DC+ power-off operation is performed, the low-voltage side of the optical coupling isolation chip D2 (i.e., the transistor side of the optical coupling isolation chip D2) is not turned on, then the gate-source voltage of the MOS tube D3 is greater than the turn-on voltage of the MOS tube D3, the source and drain of the MOS tube D3 are turned on, and the discharge resistor R is connected to both ends of the DC bus capacitor (i.e., the capacitor C1), and the residual charge of the capacitor is quickly discharged.

[0037] In the case where the driving activation signal output by the main control unit is a set low-level signal, and the DC bus sampling signal of the motor controller is a set low-voltage electrical signal, the discharge switch tube is turned off. Specifically, in the case where the driving activation signal output by the main control unit is a set low-level signal, and the DC bus sampling signal of the motor controller is a set low-voltage electrical signal, the low-voltage processing module has no input signal, and the high-voltage processing module has no output signal, and the discharge switch tube is turned off. For example: when further low-voltage power-off is performed (for example, the power supply end of the DSP main chip is powered off), due to insufficient power supply of the DC power supply VCC, the DC power supply VCC2 cannot be converted from the DC power supply VCC, so there is no voltage on the components of the active discharge circuit, avoiding continuous power consumption.

[0038] In the solution of the present invention, the driving activation signal (i.e., PWM enable signal EN_PWM) is used as the signal input of the active discharge circuit. According to whether the driving circuit is working or not and the voltage value sampling at both ends of the capacitor, power generation can be quickly performed under high voltage conditions. Instead of being directly controlled by the pins of the DSP main chip in the related solutions, the DSP main chip IO port and software control logic are saved, and the response is faster.

[0039] In the scheme of the present invention, the driving activation circuit controls whether the active discharge circuit is connected or not, and there is no need to set up an IO port (i.e., input and output interface) of the DSP main chip, thereby saving the pins and control logic of the DSP main chip; active discharge of the DC bus capacitor can be achieved when the power supply is low; the active discharge circuit is disconnected when the controller for new energy vehicles is powered off to avoid continuous power consumption.

[0040] In some embodiments, the low-voltage processing module includes: a diode module (such as Figure 2 The diode D4 shown in FIG. 1 ), the first switch tube module (such as Figure 2 The transistor D1 shown in the figure), the voltage regulator module (such as Figure 2 The voltage-regulating diode D5 shown in FIG. Figure 2 Resistor R1, resistor R2, resistor R3, resistor R4 and resistor R8) are shown.

[0041] The drive activation signal output by the main control unit is input to the anode of the diode module; the DC bus sampling signal of the motor controller can be input to the cathode of the voltage regulator module; the cathode of the diode module and the anode of the voltage regulator module can be connected to the control end of the first switch tube module (such as Figure 2 The base of the transistor D1 shown in FIG. 1 is a base of the transistor D1 shown in FIG. 1 ). A preset first DC power supply (such as a DC power supply VCC) can be connected to a first connection terminal (such as a DC power supply VCC) of the first switch tube module. Figure 2The collector of the transistor D1 shown in FIG. 1 ); the second connection end of the first switch tube module (such as Figure 2 The emitter of the transistor D1 shown in the figure) is used as the output end of the low voltage processing module and is connected to the low voltage side of the optical coupling module. The voltage divider module is connected to the diode module, the voltage stabilizing module and the first switch tube module respectively.

[0042] The solution of the present invention designs an active discharge circuit for a motor controller. The logic structure of the active discharge circuit is mainly composed of a triode (such as Figure 2 The transistor D1 in the Figure 2 The optocoupler isolation chip D2 in the circuit is used as the input to realize the fast discharge of the DC bus capacitor when the high voltage is turned off and the drive circuit is disabled, thereby avoiding electric shock and improving safety. When the drive circuit is disabled, the drive module cannot be driven normally, and the DC bus capacitor needs to be discharged quickly to protect the test personnel and reduce the risk of electric shock.

[0043] In some embodiments, the voltage divider module includes: a first voltage divider resistor (such as resistor R1), a second voltage divider resistor (such as resistor R2), a third voltage divider resistor (such as resistor R3), a fourth voltage divider resistor (such as resistor R4), and a fifth voltage divider resistor (such as resistor R8).

[0044] The cathode of the diode module is connected to a preset first ground (i.e., ground GND) after passing through the first voltage-dividing resistor and the second voltage-dividing resistor; the first voltage-dividing resistor and the second voltage-dividing resistor are connected to the control end (e.g., Figure 2 The base of the transistor D1 shown in FIG. 1 ); a preset first DC power supply (such as a DC power supply VCC) is connected to the first connection end (such as a first connection end) of the first switch tube module after passing through the third voltage-dividing resistor. Figure 2 The collector of the transistor D1 shown in FIG. 1 ); the second connection end of the first switch tube module (such as Figure 2 The emitter of the transistor D1 shown in the figure) is connected to a preset first ground (i.e., ground GND) after passing through the fourth voltage-dividing resistor. The low-voltage side of the optical coupling module is the diode side of the optical coupling module, and the second connection end of the first switch tube module (such as Figure 2 The emitter of the transistor D1 shown in the figure is connected to the anode of the diode side of the optical coupling module; the cathode of the diode side of the optical coupling module is connected to the preset first ground (i.e., ground GND). The DC bus sampling signal of the motor controller is input to the cathode of the voltage stabilizing module after passing through the fifth voltage dividing resistor; the anode of the voltage stabilizing module is connected to the control end of the first switch tube module (such as Figure 2 The base of transistor D1 shown).

[0045] In the scheme of the present invention, the voltage-dividing module performs voltage-dividing processing on the drive activation signal output by the main control unit, the DC bus sampling signal of the motor controller, and a preset first DC power supply such as a DC power supply VCC, so as to process the divided signal to determine whether the low-voltage side of the optocoupler module is turned on, thereby improving the safety and accuracy of the processing of the drive activation signal output by the main control unit, the DC bus sampling signal of the motor controller, and a preset first DC power supply such as a DC power supply VCC.

[0046] In some implementations, the voltage stabilizing module includes: a voltage stabilizing diode or a TVS tube.

[0047] The cathode of the voltage regulator diode is used as the cathode of the voltage regulator module; the anode of the voltage regulator diode is used as the anode of the voltage regulator module. The cathode of the TVS tube is used as the cathode of the voltage regulator module; the anode of the TVS tube is used as the anode of the voltage regulator module.

[0048] In some embodiments, the high-voltage processing module includes: a sixth voltage-dividing resistor (such as resistor R6 ), a seventh voltage-dividing resistor (such as resistor R7 ), and an eighth voltage-dividing resistor (such as resistor R5 ).

[0049] Among them, the high-voltage side of the optocoupler module is the transistor side of the optocoupler module; the preset second DC power supply (such as DC power supply VCC2) is connected to the collector of the transistor side of the optocoupler module after passing through the eighth voltage-dividing resistor; the emitter of the transistor side of the optocoupler module is connected to a preset second ground (such as ground DC-). The collector of the transistor side of the optocoupler module is connected to a preset second ground (such as ground DC-) after passing through the sixth voltage-dividing resistor and the seventh voltage-dividing resistor; the common end of the sixth voltage-dividing resistor and the seventh voltage-dividing resistor, as the output end of the high-voltage processing module, is connected to the control end of the discharge switch tube module (such as Figure 2 The gate of the MOS tube D3 shown).

[0050] Figure 2 FIG. 1 is a schematic diagram of the structure of the active discharge circuit of the present invention. Figure 2 The active discharge circuit shown includes: resistor R1, resistor R2, resistor R3, resistor R4, resistor R5, resistor R6, resistor R7, resistor R8, diode D4, voltage regulator diode D5, transistor D1, MOS tube D3, optocoupler isolation chip D2, discharge resistor R, and capacitor C1.

[0051] Among them, the output end of the PWM enable signal EN_PWM of the driving activation circuit is connected to the anode of the diode D4; the cathode of the diode D4 is connected to the base of the transistor D1 through the resistor R1. The base of the transistor D1 is also connected to the ground GND through the resistor R2. The output end of the bus sampling value DSP_DC is connected to the cathode of the voltage regulator diode D5 through the resistor R8; the anode of the voltage regulator diode D5 is connected to the base of the transistor D1. The DC power supply VCC is connected to the collector of the transistor D1 through the resistor R3; the emitter of the transistor D1 is connected to the ground GND through the resistor R4. The emitter of the transistor D1 is connected to the anode on the diode side of the optocoupler isolation chip D2; the cathode on the diode side of the optocoupler isolation chip D2 is grounded GND. The bus sampling value DSP_DC is the bus sampling value in the motor controller.

[0052] The DC power supply VCC2 is connected to the ground DC- (i.e., the negative pole DC- of the DC bus) after passing through resistors R5, R6, and R7. The collector on the transistor side of the optocoupler isolation chip D2 is connected to the common end of resistors R5 and R6. The emitter on the transistor side of the optocoupler isolation chip D2 is connected to the ground DC-. The common end of resistors R6 and R7 is connected to the gate of MOS tube D3. The positive pole DC+ of the DC bus is connected to the drain of MOS tube D3 after passing through discharge resistor R; the source of MOS tube D3 is connected to the ground DC-. Capacitor C1 is connected between the positive pole DC+ of the DC bus and the negative pole DC- of the DC bus.

[0053] exist Figure 2 The active discharge circuit shown has a first control loop and a second control loop, the first control loop is a low-voltage control loop, and the second control loop is a high-voltage control loop.

[0054] In the first control loop, resistors R1 and R2 form a voltage divider resistor, resistors R8 and R2 form a voltage divider resistor, and resistors R3 and R4 form a voltage divider resistor. The input signal at the input end of the first control loop is composed of a PWM enable signal EN_PWM and a bus sampling value DSP_DC.

[0055] Figure 4 The functional module diagram of the circuit that converts VCC to VCC2 through a non-common ground power supply voltage regulator chip. Figure 4The first pin of the functional module shown is connected to the DC power supply VCC, the second pin can output the DC power supply VCC2, the third pin is grounded GND, and the fourth pin is connected to the negative pole DC- of the DC bus. In the second control loop, resistors R5, R6, and R7 form a voltage divider resistor; the drain of the MOS tube D3 is connected to a discharge resistor R with a preset resistance; the capacitor C1 is the DC bus capacitor to be discharged, and the two ends of the capacitor C1, DC+ and DC-, are high voltage; the DC power supply VCC2 is the DC power supply VCC converted by a non-common ground power supply voltage regulator chip, such as Figure 4 As shown. The two control loops (i.e., the low-voltage control loop and the high-voltage discharge loop) are separated by an optocoupler isolation chip D2, thereby isolating the high-voltage side from the low-voltage side. The circuit that converts VCC to VCC2 through a non-common ground power supply voltage regulator chip can use a switching power supply model F0505XT-1WR3 or NN1-05S05ANT.

[0056] Figure 3 It is a functional module schematic diagram of the drive activation circuit (PWM enable) in the related scheme. Figure 3 The figure shows a common drive activation circuit (PWM enable). The drive activation circuit, under the action of the enable signal EN_PWM sent by the DSP main chip, can be based on the input U_PWM_3.3V signal, V_PWM_3.3V signal, W_PWM_3.3V signal, respectively, after corresponding conversion, output U_PWM_5V signal, V_PWM_5V signal, W_PWM_5V signal. The enable signal EN_PWM is sent by the main control board DSP. When the enable signal EN_PWM is at a high level, the drive activation circuit converts the 3.3V PWM wave into a 5V PWM wave, and sends a wave to the drive circuit, so that the drive module can work normally under the drive of the drive circuit, realizing the conversion of high-voltage DC to AC, thereby driving the motor to rotate. The common drive activation circuit can use a chip with the model number IC SN74ACT244PWRTC74ACT244FT.

[0057] Figure 5 It is a schematic diagram of the structure of the driving circuit in the related scheme (taking one phase of three phases and the upper tube control as an example). Figure 5The figure shows a common driving circuit (taking one phase of the three phases and the upper tube control as an example), including: a driving chip U3, a resistor R9, a push-pull circuit and a resistor R10. The push-pull circuit includes a transistor U1 and a transistor U2. The input end of the driving chip U3 is used to receive the signal PWM_5V, and the output end of the driving chip U3 is connected to the base of the transistor U1 and the base of the transistor U2 respectively after passing through the resistor R9; the DC power supply +V1 is connected to the collector of the transistor U1, the emitter of the transistor U1 is connected to the emitter of the transistor U2, and the collector of the transistor U2 is connected to the DC power supply -V2. The common end of the emitter of the transistor U1 and the emitter of the transistor U2 is connected to the gate G of the IGBT after passing through the resistor R10. The signal PWM_5V is output to the gate G of the power module such as the IGBT after passing through the driving chip U3, the resistor R9, the push-pull circuit and the resistor R10.

[0058] When the signal EN_PWM is at a high level, the signal PWM_5V is converted from the signal PWM_3.3V; after passing through the driver chip U3 and the push-pull circuit, it is added to the GE ends of the power module such as the IGBT, thereby realizing the normal operation of the upper tube in the inverter of the motor controller. When the upper and lower tubes of the three-phase inverter are working normally, DC power is converted into AC power, thereby controlling the operation of the motor.

[0059] The active discharge circuit proposed in the solution of the present invention has multiple situations in normal operation. Specifically, when the drive circuit is activated (i.e. the signal EN_PWM output by the DSP main chip = 3.3V) and the high voltage DC+ is normally powered on, Figure 2 There is voltage at the input end of the active discharge circuit shown. After voltage division by resistors R1 and R2, transistor D1 is turned on, and current flows through the low-voltage side of the optocoupler isolation chip D2 (i.e., the diode side of the optocoupler isolation chip D2), so that the high-voltage side of the optocoupler isolation chip D2 is turned on. At this time, the voltage across the gate and source of the MOS tube D3 is less than the turn-on voltage of the MOS tube D3, and the discharge resistor R is not connected to the loop. At this time, the new energy vehicle controller works normally, and the capacitor C1 does not need to be discharged.

[0060] When the tester does not activate the drive circuit (i.e. the signal EN_PWM output by the DSP main chip = 0V), but still applies the high-voltage DC+ test, the high-voltage sampling value DSP_DC causes the voltage-stabilizing diode D5 to break down in reverse. At this time, the diode D4 is reversely cut off, the transistor D1 is turned on, and current flows through the low-voltage side of the optocoupler isolation chip D2 (i.e. the diode side of the optocoupler isolation chip D2), causing the high-voltage side of the optocoupler isolation chip D2 to be turned on. At this time, the gate-source voltage of the MOS tube D3 is less than the turn-on voltage of the MOS tube D3. At this time, the discharge resistor R is not connected to the loop, and the new energy vehicle controller works normally.

[0061] When the drive circuit is not activated (i.e., the signal EN_PWM output by the DSP main chip is 0V), and the high voltage DC+ is powered off, the voltage DC+ across the capacitor C1 will be reduced to a certain extent, which is not enough to break down the voltage stabilizing diode D5. At this time, the transistor D1 is not conducting, and there is no current on the low voltage side of the optocoupler isolation chip D2 (i.e., the diode side of the optocoupler isolation chip D2). Therefore, the low voltage side of the optocoupler isolation chip D2 (i.e., the transistor side of the optocoupler isolation chip D2) is not conducting, and the gate-source voltage of the MOS tube D3 is greater than the conduction voltage of the MOS tube D3. The source and drain of the MOS tube D3 are conducting, and the discharge resistor R is connected to the two ends of the DC bus capacitor (i.e., the capacitor C1) to quickly discharge the remaining charge of the capacitor. When the low voltage is further powered off (for example, the power supply end of the DSP main chip is powered off), due to the insufficient power supply of the DC power supply VCC, the DC power supply VCC2 cannot be converted from the DC power supply VCC, so there is no voltage on the components of the active discharge circuit, avoiding the continuous consumption of electricity.

[0062] The active discharge circuit proposed in the solution of the present invention is intended to protect the safety of testers and reduce the risk of accidental electric shock when testers operate just after high voltage is applied. Compared with the method of detecting the voltage across the capacitor C1 and controlling the discharge by the DSP main chip in the related solution, the solution of the present invention introduces a drive activation signal as an input terminal, and discharges by a hardware structure, with a simple circuit structure and low component cost; and it reduces the occupation of the DSP main chip pins and saves software control logic. In addition, the active discharge circuit proposed in the solution of the present invention can work in the case of high voltage power-on but not low voltage power-off, and has a wide range of applications and good safety.

[0063] According to the technical solution of the present invention, the DC bus capacitor (such as capacitor C1) on the input side of the inverter in the motor controller is used. Since the drive module (such as IGBT) of the inverter in the motor controller is controlled by the DSP main chip via the drive activation circuit and the drive circuit, an active discharge circuit controlled by a drive activation signal (i.e., PWM enable signal EN_PWM) sent by the DSP main chip to the drive activation circuit and a DC bus sampling value (i.e., high-voltage sampling value DSP_DC) of the motor controller is provided. When the DC bus capacitor needs to be discharged, discharge is achieved through the active discharge circuit. The active discharge circuit has a low-voltage control circuit. A discharge resistor (such as a discharge resistor R) and a discharge switch tube (such as a MOS tube D3) are arranged on the high-voltage control circuit side. When the drive activation signal sent by the DSP main chip is at a low level (that is, the signal EN_PWM=0V) and the motor controller performs a high-voltage power-down operation, the low-voltage control circuit and the high-voltage control circuit are not connected, and the discharge switch tube in the high-voltage control circuit is connected to connect the discharge resistor to discharge the DC bus capacitor; thus, by setting an active discharge circuit composed of a low-voltage control circuit and a high-voltage control circuit, the DC bus capacitor is quickly discharged when the high-voltage power is down, thereby avoiding electric shock and improving safety.

[0064] According to an embodiment of the present invention, a motor controller corresponding to the discharge control device of the motor controller is also provided. The motor controller may include: the discharge control device of the motor controller described above.

[0065] Since the processing and functions implemented by the motor controller of this embodiment basically correspond to the embodiments, principles and examples of the device, for the details not described in this embodiment, please refer to the relevant descriptions in the aforementioned embodiments and will not be repeated here.

[0066] According to an embodiment of the present invention, a motor corresponding to a discharge control device of a motor controller is also provided. The motor may include: the discharge control device of the motor controller described above, or the motor controller described above.

[0067] Since the processing and functions implemented by the motor of this embodiment basically correspond to the embodiments, principles and examples of the device, for the details not fully described in this embodiment, please refer to the relevant descriptions in the aforementioned embodiments and will not be repeated here.

[0068] According to an embodiment of the present invention, a vehicle corresponding to a discharge control device of a motor controller is also provided. The vehicle may include: the discharge control device of the motor controller described above, or the motor controller described above, or the motor described above.

[0069] Since the processing and functions implemented by the vehicle of this embodiment basically correspond to the embodiments, principles and examples of the device, for the details not described in this embodiment, please refer to the relevant descriptions in the aforementioned embodiments and will not be repeated here.

[0070] According to an embodiment of the present invention, a discharge control method of a motor controller corresponding to the discharge control device of the motor controller is also provided, such as Figure 6 The flow chart of an embodiment of the method of the present invention is shown in FIG. The discharge control method of the motor controller may include: step S110 to step S120.

[0071] In step S110 , a drive activation signal output by the main control unit and a DC bus sampling signal of the motor controller are received.

[0072] At step S120, the signal processing unit processes the drive activation signal output by the main control unit and the DC bus sampling signal of the motor controller, and outputs a control signal to control the on or off of the discharge switch tube; when the discharge switch tube is turned off, the discharge resistor unit and the discharge switch tube do not constitute a discharge circuit, and the DC bus capacitor is not discharged; when the discharge switch tube is turned on, the discharge resistor unit and the discharge switch tube constitute a discharge circuit, and the DC bus capacitor is discharged.

[0073] In the scheme of the present invention, through the active discharge circuit controlled by the drive activation circuit, it is possible to determine whether the active discharge circuit is connected or not according to the level output of the drive activation circuit (such as the drive activation circuit of the drive circuit of the switch tube of the inverter in the motor controller), thereby controlling the discharge speed of the DC bus capacitor, so that when the drive module is turned off, even if the low-voltage power supply is not disconnected, rapid discharge can be achieved to avoid electric shock, prevent accidental electric shock to the tester and reduce the loss of related devices.

[0074] Among them, when the signal processing unit includes a low-voltage processing module, an optocoupler module, and a high-voltage processing module, in step S120, the signal processing unit processes the drive activation signal output by the main control unit and the DC bus sampling signal of the motor controller, and outputs a control signal to control the on or off of the discharge switch tube, including any one of the following processing scenarios: the first processing scenario, the second processing scenario, the third processing scenario, and the fourth processing scenario.

[0075] The first processing scenario: when the drive activation signal output by the main control unit is a set high-level signal, and the DC bus sampling signal of the motor controller is a set high-voltage power-on signal, the discharge switch tube is turned off. Specifically, when the drive activation signal output by the main control unit is a set high-level signal, and the DC bus sampling signal of the motor controller is a set high-voltage power-on signal, the low-voltage processing module turns on the optical coupling module, and the output signal of the high-voltage processing module is insufficient to turn on the discharge switch tube, and the discharge switch tube is turned off; wherein, the set high-level signal, such as the signal EN_PWM output by the DSP main chip = 3.3V. For example: when the driving circuit is activated (i.e., the signal EN_PWM output by the DSP main chip is 3.3V) and the high voltage DC+ is powered on normally, current flows through the low voltage side of the optocoupler isolation chip D2 (i.e., the diode side of the optocoupler isolation chip D2), causing the high voltage side of the optocoupler isolation chip D2 to be turned on. At this time, the gate-source voltage of the MOS tube D3 is less than the turn-on voltage of the MOS tube D3, and the discharge resistor R is not connected to the loop. At this time, the new energy vehicle controller works normally, and the capacitor C1 does not need to be discharged.

[0076] The second processing scenario: when the drive activation signal output by the main control unit is a set low-level signal, and the DC bus sampling signal of the motor controller is a set high-voltage power-on signal, the discharge switch tube is turned off. Specifically, when the drive activation signal output by the main control unit is a set low-level signal, and the DC bus sampling signal of the motor controller is a set high-voltage power-on signal, the low-voltage processing module turns on the optical coupling module, and the output signal of the high-voltage processing module is insufficient to turn on the discharge switch tube, and the discharge switch tube is turned off; wherein the set low-level signal, such as the signal EN_PWM output by the DSP main chip = 0V. For example: when the tester does not activate the drive circuit (i.e., the signal EN_PWM output by the DSP main chip = 0V), but still applies the high-voltage DC+ test, current flows through the low-voltage side of the optocoupler isolation chip D2 (i.e., the diode side of the optocoupler isolation chip D2), causing the high-voltage side of the optocoupler isolation chip D2 to be turned on. At this time, the voltage across the gate and source of the MOS tube D3 is less than the turn-on voltage of the MOS tube D3. At this time, the discharge resistor R is not connected to the loop, and the new energy vehicle controller works normally.

[0077] The third processing situation: when the driving activation signal output by the main control unit is a set low-level signal, and the DC bus sampling signal of the motor controller is a set high-voltage electrical signal, the discharge switch tube is turned on. Specifically, when the driving activation signal output by the main control unit is a set low-level signal, and the DC bus sampling signal of the motor controller is a set high-voltage electrical signal, the low-voltage processing module turns off the optical coupling module, and the output signal of the high-voltage processing module is sufficient to turn on the discharge switch tube, and the discharge switch tube is turned on; for example: when the drive circuit is not activated (that is, the signal EN_PWM output by the DSP main chip = 0V), and the high-voltage DC+ power-off operation is performed, the low-voltage side of the optical coupling isolation chip D2 (that is, the transistor side of the optical coupling isolation chip D2) is not turned on, then the gate-source voltage of the MOS tube D3 is greater than the turn-on voltage of the MOS tube D3, the source and drain of the MOS tube D3 are turned on, and the discharge resistor R is connected to both ends of the DC bus capacitor (that is, the capacitor C1) to quickly discharge the residual charge of the capacitor.

[0078] The fourth processing scenario: when the drive activation signal output by the main control unit is a set low-level signal, and the DC bus sampling signal of the motor controller is a set low-voltage electrical signal, the discharge switch tube is turned off. Specifically, when the drive activation signal output by the main control unit is a set low-level signal, and the DC bus sampling signal of the motor controller is a set low-voltage electrical signal, the low-voltage processing module has no input signal, and the high-voltage processing module has no output signal, and the discharge switch tube is turned off. For example: when further low-voltage power-off is performed (for example, the power supply end of the DSP main chip is powered off), due to insufficient power supply of the DC power supply VCC, the DC power supply VCC2 cannot be converted from the DC power supply VCC, so there is no voltage on the components of the active discharge circuit, avoiding continuous power consumption.

[0079] In the solution of the present invention, the driving activation signal (i.e., PWM enable signal EN_PWM) is used as the signal input of the active discharge circuit. According to whether the driving circuit is working or not and the voltage value sampling at both ends of the capacitor, power generation can be quickly performed under high voltage conditions. Instead of being directly controlled by the pins of the DSP main chip in the related solutions, the DSP main chip IO port and software control logic are saved, and the response is faster.

[0080] In the scheme of the present invention, the driving activation circuit controls whether the active discharge circuit is connected or not, and there is no need to set up an IO port (i.e., input and output interface) of the DSP main chip, thereby saving the pins and control logic of the DSP main chip; active discharge of the DC bus capacitor can be achieved when the power supply is low; the active discharge circuit is disconnected when the controller for new energy vehicles is powered off to avoid continuous power consumption.

[0081] Since the processing and functions implemented by the method of this embodiment basically correspond to the embodiments, principles and examples of the aforementioned motor controller, motor and vehicle, for the details not exhaustive in the description of this embodiment, please refer to the relevant descriptions in the aforementioned embodiments and will not be repeated here.

[0082] In summary, it is easy for those skilled in the art to understand that, under the premise of no conflict, the above-mentioned advantageous methods can be freely combined and superimposed.

[0083] The above description is only an embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent substitution, improvement, etc. made within the spirit and principle of the present invention shall be included in the scope of the claims of the present invention.

Claims

1. A discharge control device for a motor controller, characterized in that: The motor controller comprises a main control unit and a DC bus capacitor; the DC bus capacitor is connected between the DC bus positive terminal and the DC bus negative terminal of the motor controller; the discharge control device of the motor controller comprises: a signal processing unit, a discharge resistor unit, and a discharge switch tube; wherein, The driving activation signal output by the main control unit is input to the first input terminal of the signal processing unit; The DC bus sampling signal of the motor controller is input to the second input terminal of the signal processing unit; The output end of the signal processing unit is connected to the control end of the discharge switch tube; the positive electrode of the DC bus capacitor is connected to the first connection end of the discharge switch tube after passing through the discharge resistor unit; the second connection end of the discharge switch tube is connected to the negative electrode of the DC bus capacitor; Among them, the signal processing unit is used to process the drive activation signal output by the main control unit and the DC bus sampling signal of the motor controller, and output a control signal to control the conduction or shutdown of the discharge switch tube; when the discharge switch tube is turned off, the discharge resistance unit and the discharge switch tube do not constitute a discharge circuit, and the DC bus capacitor is not discharged; when the discharge switch tube is turned on, the discharge resistance unit and the discharge switch tube constitute a discharge circuit to discharge the DC bus capacitor.

2. The discharge control device of the motor controller according to claim 1, characterized in that: The signal processing unit includes: a low voltage processing module, an optical coupling module, and a high voltage processing module; wherein, The input end of the low-voltage processing module is used to receive the drive activation signal output by the main control unit and the DC bus sampling signal of the motor controller; the output end of the low-voltage processing module is connected to the low-voltage side of the optical coupling module; the high-voltage side of the optical coupling module is connected to the input end of the high-voltage processing module; the output end of the high-voltage processing module is connected to the control end of the discharge switch tube; Wherein, when the driving activation signal output by the main control unit is a set high-level signal, and the DC bus sampling signal of the motor controller is a set high-voltage power-on signal, the discharge switch tube is turned off; When the driving activation signal output by the main control unit is a set low-level signal and the DC bus sampling signal of the motor controller is a set high-voltage power-on signal, the discharge switch tube is turned off; When the driving activation signal output by the main control unit is a set low-level signal and the DC bus sampling signal of the motor controller is a set high-voltage electrical signal, the discharge switch tube is turned on; When the driving activation signal output by the main control unit is a set low-level signal and the DC bus sampling signal of the motor controller is a set low-voltage electrical signal, the discharge switch tube is turned off.

3. The discharge control device of the motor controller according to claim 2, characterized in that: The low voltage processing module includes: a diode module, a first switch tube module, a voltage stabilizing module, and a voltage dividing module; wherein, The driving activation signal output by the main control unit is input to the anode of the diode module; the DC bus sampling signal of the motor controller can be input to the cathode of the voltage stabilizing module; the cathode of the diode module and the anode of the voltage stabilizing module can be connected to the control end of the first switch tube module; A preset first DC power supply can be connected to a first connection end of the first switch tube module; a second connection end of the first switch tube module, as an output end of the low-voltage processing module, is connected to a low-voltage side of the optical coupling module; The voltage divider module is connected to the diode module, the voltage stabilizing module and the first switch tube module respectively.

4. The discharge control device of the motor controller according to claim 3, characterized in that: The voltage dividing module includes: a first voltage dividing resistor, a second voltage dividing resistor, a third voltage dividing resistor, a fourth voltage dividing resistor, and a fifth voltage dividing resistor; wherein, The cathode of the diode module is connected to a preset first ground via the first voltage-dividing resistor and the second voltage-dividing resistor; the first voltage-dividing resistor and the second voltage-dividing resistor are connected to the control end of the first switch tube module; the preset first DC power supply is connected to the first connection end of the first switch tube module via the third voltage-dividing resistor; the second connection end of the first switch tube module is connected to the preset first ground via the fourth voltage-dividing resistor; The low voltage side of the optical coupling module is the diode side of the optical coupling module, the second connection end of the first switch tube module is connected to the anode of the diode side of the optical coupling module; the cathode of the diode side of the optical coupling module is connected to a preset first ground; The DC bus sampling signal of the motor controller is input to the cathode of the voltage stabilizing module after passing through the fifth voltage-dividing resistor; the anode of the voltage stabilizing module is connected to the control end of the first switch tube module.

5. The discharge control device of the motor controller according to claim 3 or 4, characterized in that: The voltage stabilizing module includes: a voltage stabilizing diode or a TVS tube; wherein, The cathode of the voltage stabilizing diode serves as the cathode of the voltage stabilizing module; the anode of the voltage stabilizing diode serves as the anode of the voltage stabilizing module; The cathode of the TVS tube serves as the cathode of the voltage stabilizing module; the anode of the TVS tube serves as the anode of the voltage stabilizing module.

6. The discharge control device of the motor controller according to any one of claims 2 to 5, characterized in that: The high-voltage processing module includes: a sixth voltage-dividing resistor, a seventh voltage-dividing resistor, and an eighth voltage-dividing resistor; wherein, The high-voltage side of the optical coupling module is the transistor side of the optical coupling module; the preset second DC power supply is connected to the collector of the transistor side of the optical coupling module after passing through the eighth voltage-dividing resistor; the emitter of the transistor side of the optical coupling module is connected to the preset second ground; The collector on the transistor side of the optocoupler module is connected to a preset second ground after passing through the sixth voltage-dividing resistor and the seventh voltage-dividing resistor; the common end of the sixth voltage-dividing resistor and the seventh voltage-dividing resistor serves as the output end of the high-voltage processing module and is connected to the control end of the discharge switch tube module.

7. A motor controller, characterized in that: include: A discharge control device for a motor controller according to any one of claims 1 to 6.

8. A motor, characterized in that: include: A discharge control device for a motor controller as claimed in any one of claims 1 to 6, or a motor controller as claimed in claim 7.

9. A vehicle, characterized in that: include: A discharge control device for a motor controller as claimed in any one of claims 1 to 6, or a motor controller as claimed in claim 7, or a motor as claimed in claim 8.

10. A discharge control method of a motor controller corresponding to the discharge control device of the motor controller according to any one of claims 1 to 6, characterized in that: include: Receiving a drive activation signal output by the main control unit and a DC bus sampling signal of the motor controller; The signal processing unit processes the drive activation signal output by the main control unit and the DC bus sampling signal of the motor controller, and outputs a control signal to control the on or off of the discharge switch tube; Among them, when the discharge switch tube is turned off, the discharge resistance unit and the discharge switch tube do not constitute a discharge circuit, and the DC bus capacitor is not discharged; when the discharge switch tube is turned on, the discharge resistance unit and the discharge switch tube constitute a discharge circuit, and the DC bus capacitor is discharged.

11. The discharge control method of the motor controller according to claim 10, characterized in that: In the case where the signal processing unit includes a low-voltage processing module, an optical coupling module, and a high-voltage processing module, the signal processing unit processes the drive activation signal output by the main control unit and the DC bus sampling signal of the motor controller, and outputs a control signal to control the on or off of the discharge switch tube, including: When the driving activation signal output by the main control unit is a set high-level signal and the DC bus sampling signal of the motor controller is a set high-voltage power-on signal, the discharge switch tube is turned off; When the driving activation signal output by the main control unit is a set low-level signal and the DC bus sampling signal of the motor controller is a set high-voltage power-on signal, the discharge switch tube is turned off; When the driving activation signal output by the main control unit is a set low-level signal and the DC bus sampling signal of the motor controller is a set high-voltage electrical signal, the discharge switch tube is turned on; When the driving activation signal output by the main control unit is a set low-level signal and the DC bus sampling signal of the motor controller is a set low-voltage electrical signal, the discharge switch tube is turned off.