Motor controller discharging method and device, vehicle and storage medium
By using discharge circuits in the motor controller, the hardware detection circuit is used to determine the effectiveness of the pulse signal of the microprocessor, and the control window comparator circuit trigger the IGBT diversion of the circuit. The problem realizes normal discharge under the failure of the microprocessor.
Patent Information
- Application Number
- CN202411509114.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-28
- Publication Date
- 2025-01-28
AI Technical Summary
The existing motor controller discharge technology has shortcomings in terms of stability and safety, especially in the event of microprocessor failure, which cannot be discharged normally.
The motor controller discharge circuit, including microprocessors, hardware detection circuits, window comparator circuits, isolation devices and discharge circuits. Obtain the voltage value at both ends of the capacitance through the hardware detection circuit, and determine whether the pulse width and pulse cycle of the pulse signal sent by the microprocessor is in the threshold interval. And perform high voltage discharge.
Make sure that discharge can be performed normally under the fault of the microprocessor, which improves the stability and safety of the discharge process.
Smart Images

Figure CN119382482A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of motor controllers, and in particular to a motor controller discharge method, device, vehicle and storage medium. Background Art
[0002] With the rapid development of new energy vehicles, the performance and safety of motor controllers, as one of the key components of electric vehicles, are particularly important. When new energy vehicles are parked or in emergency situations such as collisions or short circuits, the motor controller needs to be powered off at high voltage. Since the DCLink capacitor (motor controller busbar support capacitor) inside the motor controller is large, there is still high voltage inside the motor controller after powering off. Therefore, the voltage in the motor controller needs to be discharged to prevent personal injury.
[0003] In the related technology, the current motor controller discharge technology mainly includes external resistor discharge and motor winding discharge. The external resistor discharge method is to achieve discharge by using a pulse signal to control the switch tube of the drive circuit. However, when the microprocessor fails, the external resistor discharge method cannot send a correct pulse signal, resulting in failure to discharge normally. The motor winding discharge technology cannot control the motor winding for voltage discharge when the motor controller is in a safe state (such as ASC (Active Short Circuit), FW (Free Wheeling)), when the IGBT (Insulate-Gate Bipolar Transistor) is in the upper / lower bridge arm fully open or all 6 bridge arms are turned off.
[0004] It can be seen that the current motor controller discharge technology has deficiencies in stability and safety, which need to be urgently addressed. Summary of the invention
[0005] The present application provides a motor controller discharge method, device, vehicle and storage medium to solve the problems of poor stability and safety of existing motor controller discharge technology, ensure that discharge can be performed normally even when the microprocessor fails, and improve the stability and safety of the discharge process.
[0006] A first aspect of the present application provides a motor controller discharge method, the method adopts a motor controller discharge circuit, the circuit includes a microprocessor, a hardware detection circuit, a window comparator circuit, an isolation device and a discharge loop connected in sequence, wherein the method includes the following steps:
[0007] Obtaining a voltage value across a capacitor in the hardware detection circuit;
[0008] Based on the voltage value across the capacitor in the hardware detection circuit, determining whether the pulse width and pulse period of the pulse signal emitted by the microprocessor are both within the corresponding threshold range;
[0009] If the pulse width or the pulse period is not in the corresponding threshold range, it is determined that the motor controller meets the preset discharge condition, and the window comparator circuit is controlled to output a low level to control the IGBT of the discharge circuit to be in the on state and perform high-voltage discharge.
[0010] According to an embodiment of the present application, judging whether the pulse width and pulse period of the pulse signal emitted by the microprocessor are both within the corresponding threshold range based on the voltage value across the capacitor in the hardware detection circuit includes:
[0011] Determining whether the voltage value across the capacitor in the hardware detection circuit is within a preset voltage range;
[0012] If the voltage value across the capacitor is not within the preset voltage range, it is determined that the pulse width or the pulse period is not within the corresponding threshold range.
[0013] According to one embodiment of the present application, the motor controller discharging method further includes:
[0014] Identifying whether the motor controller discharge circuit has an active discharge requirement;
[0015] If the active discharge requirement exists, the pulse signal output by the microprocessor is controlled to be a preset fixed high level or a fixed low level, so as to utilize the window comparator circuit to output a low level and trigger the discharge process.
[0016] According to an embodiment of the present application, after detecting the voltage value across the capacitor in the hardware detection circuit, the method further includes:
[0017] If the voltage value across the capacitor is within the preset voltage range, the window comparator circuit is controlled to output a high level, maintaining the IGBT of the discharge circuit in an off state, so as to control the discharge circuit not to perform high-voltage discharge.
[0018] According to one embodiment of the present application, the motor controller discharging method further includes:
[0019] At the initial stage of powering on the current motor controller, the high-voltage side power supply is controlled to delay powering on to filter out unstable conditions.
[0020] According to the motor controller discharge method provided by the embodiment of the present application, based on the voltage value across the capacitor in the hardware detection circuit, when the pulse width and pulse period of the pulse signal sent by the microprocessor are not in the corresponding threshold interval, it is determined that the motor controller meets the preset discharge condition, and the window comparator circuit is controlled to output a low level to control the IGBT of the discharge circuit to be in the on state and perform high-voltage discharge. Thus, the problem of poor stability and safety of the existing motor controller discharge technology is solved, ensuring that the discharge can be performed normally even when the microprocessor fails, and improving the stability and safety of the discharge process.
[0021] A second aspect of the present application provides a motor controller discharge device, wherein the device uses a motor controller discharge circuit, wherein the circuit includes a microprocessor, a hardware detection circuit, a window comparator circuit, an isolation device, and a discharge loop connected in sequence, wherein the device includes:
[0022] An acquisition module, used for acquiring the voltage value across the capacitor in the hardware detection circuit;
[0023] A judgment module, used to judge whether the pulse width and pulse period of the pulse signal emitted by the microprocessor are both within the corresponding threshold range based on the voltage value across the capacitor in the hardware detection circuit;
[0024] The control module determines that the motor controller meets the preset discharge condition if the pulse width or the pulse period is not in the corresponding threshold interval, controls the window comparator circuit to output a low level, so as to control the IGBT of the discharge circuit to be in the on state and perform high-voltage discharge.
[0025] According to one embodiment of the present application, the judgment module is used to:
[0026] Determining whether the voltage value across the capacitor in the hardware detection circuit is within a preset voltage range;
[0027] If the voltage value across the capacitor is not within the preset voltage range, it is determined that the pulse width or the pulse period is not within the corresponding threshold range.
[0028] According to one embodiment of the present application, the motor controller discharge device is further used for:
[0029] Identify whether the motor controller discharge circuit has an active discharge requirement;
[0030] If the active discharge requirement exists, the pulse signal output by the microprocessor is controlled to be a preset fixed high level or a fixed low level, so as to utilize the window comparator circuit to output a low level and trigger the discharge process.
[0031] According to an embodiment of the present application, after detecting the voltage value across the capacitor in the hardware detection circuit, the judgment module is further used to:
[0032] If the voltage value across the capacitor is within the preset voltage range, the window comparator circuit is controlled to output a high level, maintaining the IGBT of the discharge circuit in an off state, so as to control the discharge circuit not to perform high-voltage discharge.
[0033] According to one embodiment of the present application, the motor controller discharge device is further used for:
[0034] At the initial stage of powering on the current motor controller, the high-voltage side power supply is controlled to delay powering on to filter out unstable conditions.
[0035] According to the motor controller discharge device provided by the embodiment of the present application, based on the voltage value across the capacitor in the hardware detection circuit, when the pulse width and pulse period of the pulse signal sent by the microprocessor are not in the corresponding threshold interval, it is determined that the motor controller meets the preset discharge condition, and the window comparator circuit is controlled to output a low level to control the IGBT of the discharge circuit to be in the on state and perform high-voltage discharge. Thus, the problem of poor stability and safety of the existing motor controller discharge technology is solved, ensuring that the discharge can be performed normally even when the microprocessor fails, and improving the stability and safety of the discharge process.
[0036] A third aspect of the present application provides a vehicle, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the motor controller discharge method as described in the above embodiment.
[0037] A fourth aspect of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the motor controller discharge method described in the above embodiment.
[0038] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:
[0040] Figure 1 is a schematic structural diagram of a motor controller discharge circuit according to an embodiment of the present application;
[0041] Figure 2A flow chart of a motor controller discharging method provided according to an embodiment of the present application;
[0042] Figure 3 is a schematic diagram of a voltage waveform at the input terminal of a window comparator when a pulse signal is normal according to an embodiment of the present application;
[0043] Figure 4 is a schematic diagram of a voltage waveform at the input terminal of a window comparator under different pulse widths according to an embodiment of the present application;
[0044] Figure 5 is a block diagram of a motor controller discharge device according to an embodiment of the present application;
[0045] Figure 6 A schematic diagram of the structure of a vehicle provided in an embodiment of the present application. DETAILED DESCRIPTION
[0046] Embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, and should not be construed as limiting the present application.
[0047] The following describes the motor controller discharge method, device, vehicle and storage medium of the embodiments of the present application with reference to the accompanying drawings.
[0048] Before introducing the motor controller discharge method of the embodiment of the present application, a motor controller discharge circuit involved in the motor controller discharge method of the present application is briefly introduced.
[0049] Specifically, if Figure 1 As shown, the motor controller discharge circuit of the present application includes a microprocessor μC, a hardware detection circuit 100, a window comparator circuit 200, an isolation device 300 and a discharge loop 400 which are connected in sequence.
[0050] Among them, the hardware detection circuit 100 includes a first resistor R1, a second resistor R2, a third resistor R3, a fourth resistor R4, a first transistor Q1 and a capacitor C1. The window comparator circuit 200 includes a first comparator U1 and a second comparator U2, the first comparator U1 and the second comparator U2 together constitute a window comparator, Vref_H is the upper limit of the preset voltage interval of the comparator, and Vref_L is the lower limit of the preset voltage interval of the comparator. The isolation device 300 includes a fifth resistor R5, a sixth resistor R6, a second transistor Q2 and an isolator Q3. The discharge circuit 400 includes a seventh resistor R7, an eighth resistor R8, a MOS (Metal-Oxide-Semiconductor Field-Effect Transistor, Metal-Oxide Semiconductor Field-Effect Transistor) tube Q4, an IGBTQ5, the ninth to the thirty-eighth resistors R9-R38 and a motor controller bus support capacitor dclink, wherein the dclink capacitor is between the high-voltage positive electrode HV+ and the high-voltage negative electrode HV-.
[0051] The following describes a motor controller discharge method using the above motor controller discharge circuit.
[0052] Specifically, Figure 2 A schematic flow chart of a motor controller discharging method provided in an embodiment of the present application.
[0053] like Figure 2 As shown, the motor controller discharge method includes the following steps:
[0054] In step S201, the voltage value across the capacitor in the hardware detection circuit is obtained.
[0055] Specifically, during the operation of the motor system, the microprocessor μC continuously sends out a pulse signal, the hardware detection circuit is connected to the microprocessor, and the voltage value across the capacitor in the hardware detection circuit can be determined through the pulse signal sent by the microprocessor μC.
[0056] In step S202, based on the voltage value across the capacitor in the hardware detection circuit, it is determined whether the pulse width and pulse period of the pulse signal sent by the microprocessor are both within the corresponding threshold range.
[0057] Further, in some embodiments, based on the voltage value across the capacitor in the hardware detection circuit, it is determined whether the pulse width and pulse period of the pulse signal emitted by the microprocessor are both in the corresponding threshold range, including: determining whether the voltage value across the capacitor in the hardware detection circuit is in a preset voltage range; if the voltage value across the capacitor is not in the preset voltage range, then determining that the pulse width or pulse period is not in the corresponding threshold range.
[0058] Among them, the preset voltage interval of the embodiment of the present application is determined by setting the upper limit value Vref_H of the preset voltage interval and the lower limit value Vref_L of the preset voltage interval of the window comparator. The upper limit value Vref_H of the preset voltage interval needs to be greater than the maximum value of the pulsating voltage of the capacitor C1 and retain a certain margin, and the lower limit value Vref_L of the preset voltage interval needs to be less than the minimum value of the pulsating voltage of the capacitor C1 and retain a certain margin.
[0059] In step S203, if the pulse width or pulse period is not in the corresponding threshold interval, it is determined that the motor controller meets the preset discharge condition, and the control window comparator circuit outputs a low level to control the IGBT of the discharge circuit to be in the on state and perform high voltage discharge.
[0060] Specifically, if Figure 1 As shown, the high level of the pulse signal will cause the first transistor Q1 to be in the on state, and the low level of the pulse signal will cause the first transistor Q1 to be in the off state. When the first transistor Q1 is in the off state, the capacitor C1 is charged through the third resistor R3 and the fourth resistor R4, and its charging time constant is t1=(R3+R4)×C1; when the first transistor Q1 is in the on state, the capacitor C1 is discharged through the fourth resistor R4 and the first transistor Q1, and its discharge time constant is t2=R4×C1. Therefore, the voltage fluctuation range across the capacitor C1 can be controlled by reasonably adjusting the charging time constant and the discharging time constant of the capacitor C1. For example, as Figure 3 As shown, when the microprocessor μC outputs a PWM signal with a fixed pulse width and frequency, the voltage across the capacitor C1 will be stabilized within a preset voltage range.
[0061] When the microprocessor μC fails (due to clock failure, interference, etc.) and the pulse width of the output pulse signal is not within the threshold range, for example, Figure 4 As shown, at this time, the voltage across the capacitor C1 will change according to the pulse width, and different voltages will be obtained. At this time, the window comparator detects that the signal is not within the preset voltage range, and determines that the motor controller meets the preset discharge condition. The window comparator outputs a low level, and the second transistor Q2 is turned off, the isolator Q3 is turned on through the sixth resistor R6, and then the MOS tube Q4 is turned on. At this time, the gate of IGBT Q5 is high level, so IGBT Q5 is turned on, and the dclink capacitor is discharged at high voltage through the resistor array and IGBTQ5.
[0062] Furthermore, in some embodiments, the motor controller discharge method also includes: identifying whether there is an active discharge requirement for the motor controller discharge circuit; if there is an active discharge requirement, controlling the pulse signal output by the microprocessor to be a preset fixed high level or a fixed low level, so as to utilize the window comparator circuit to output a low level and trigger the discharge process.
[0063] Specifically, when the motor system recognizes that active discharge is required, that is, when there is a demand for active discharge, the pulse signal output by the control microprocessor μC is a preset fixed high level or a fixed low level. At this time, the voltage across the capacitor C1 is 0V or a high level, and the voltage across the capacitor C1 is not within the preset voltage range of the window comparator. Therefore, the window comparator outputs a low level. At this time, the second transistor Q2 is cut off, and the isolator Q3 is turned on through the sixth resistor R6, and then the MOS tube Q4 is turned on. At this time, the gate of IGBT Q5 is a high level, so IGBT Q5 is turned on, and the dclink capacitor is discharged at high voltage through the resistor array and IGBT Q5.
[0064] In addition, when the output of the microprocessor μC is stuck (such as the output is high level or low level), the control method is the same as the above-mentioned control method when there is an active discharge demand. The voltage across the capacitor C1 is 0V or high level, and the voltage across the capacitor C1 is not within the preset voltage range of the window comparator. Therefore, the window comparator outputs a low level. At this time, the second transistor Q2 is turned off, the isolator Q3 is turned on through the sixth resistor R6, and then the MOS tube Q4 is turned on. At this time, the gate of the IGBT Q5 is high level, so the IGBT Q5 is turned on, and the dclink capacitor is discharged at high voltage through the resistor array and the IGBT Q5.
[0065] Furthermore, in some embodiments, after detecting the voltage value across the capacitor in the hardware detection circuit, it also includes: if the voltage value across the capacitor is in a preset voltage range, the window comparator circuit is controlled to output a high level to maintain the IGBT of the discharge circuit in an off state, so as to control the discharge circuit not to perform high-voltage discharge.
[0066] Specifically, during the normal operation of the motor system, the microprocessor μC continuously sends out a pulse signal, and the period and pulse width of the pulse signal are fixed. When the voltage across the capacitor C1 is between the lower limit value Vref_L of the preset voltage interval and the upper limit value Vref_H of the preset voltage interval, that is, the voltage across the capacitor C1 is in the preset voltage interval, the window comparator outputs a high level through the fifth resistor R5 (pull-up resistor), so the second transistor Q2 is in the on state, and the collector voltage of the second transistor Q2 is low. At this time, the isolator Q3 is in the off state, and the MOS tube Q4 is also in the off state. At this time, the gate voltage of IGBTQ5 is 0V, so that the discharge circuit does not work.
[0067] Furthermore, in some embodiments, the motor controller discharge method further includes: at the initial stage of powering on the current motor controller, controlling the high-voltage side power supply to delay powering on so as to filter out unstable states.
[0068] It is understandable that since the capacitor C1 will gradually climb to a steady-state voltage in the early stages of charging and discharging, the window comparator output may be abnormal in the initial stage of power-on of the current motor system. Therefore, in this case, the power-on delay of the high-voltage side VCC2 power supply can be controlled to filter out the unstable state in the initial stage of power-on.
[0069] Therefore, the present invention discharges by using an external discharge resistor. In order to ensure that the discharge can be performed normally even when the microprocessor fails, the microprocessor continuously sends a pulse signal, and the hardware detection circuit detects the pulse width and period of the pulse signal. When the period or pulse width of the pulse signal is not within a preset reasonable range, the hardware comparator circuit will trigger the discharge signal, which is transmitted to the high-voltage side circuit through an isolation device to control the IGBT of the discharge circuit to perform high-voltage discharge. Even in the case of a microprocessor failure, such as the output is stuck at a high level / low level, the output PWM pulse width is abnormal, etc., the motor controller discharge circuit can still identify it normally and perform active discharge, thereby improving safety.
[0070] According to the motor controller discharge method proposed in the embodiment of the present application, based on the voltage value across the capacitor in the hardware detection circuit, when the pulse width and pulse period of the pulse signal sent by the microprocessor are not in the corresponding threshold interval, it is determined that the motor controller meets the preset discharge conditions, and the window comparator circuit is controlled to output a low level to control the IGBT of the discharge circuit to be in the on state and perform high-voltage discharge. Thus, the problem of poor stability and safety of the existing motor controller discharge technology is solved, ensuring that the discharge can be performed normally even when the microprocessor fails, and improving the stability and safety of the discharge process.
[0071] Next, the motor controller discharge device proposed according to the embodiment of the present application is described with reference to the accompanying drawings.
[0072] In this embodiment, the motor controller discharge device adopts a motor controller discharge circuit, which includes a microprocessor, a hardware detection circuit, a window comparator circuit, an isolation device and a discharge loop connected in sequence.
[0073] Figure 5 It is a block diagram of a motor controller discharge device according to an embodiment of the present application.
[0074] like Figure 5 As shown, the motor controller discharge device 10 includes: an acquisition module 500 , a judgment module 600 and a control module 700 .
[0075] Among them, the acquisition module 500 is used to obtain the voltage value across the capacitor in the hardware detection circuit; the judgment module 600 is used to judge whether the pulse width and pulse period of the pulse signal emitted by the microprocessor are both in the corresponding threshold range based on the voltage value across the capacitor in the hardware detection circuit; the control module 700 is used to determine whether the motor controller meets the preset discharge condition if the pulse width or pulse period is not in the corresponding threshold range, and control the window comparator circuit to output a low level to control the IGBT of the discharge circuit to be in the on state and perform high-voltage discharge.
[0076] Furthermore, in some embodiments, the determination module 600 is used to:
[0077] Determine whether the voltage value across the capacitor in the hardware detection circuit is within a preset voltage range;
[0078] If the voltage value across the capacitor is not within the preset voltage range, it is determined that the pulse width or the pulse period is not within the corresponding threshold range.
[0079] Furthermore, in some embodiments, the motor controller discharge device 10 is also used to: identify whether there is an active discharge requirement in the motor controller discharge circuit; if there is an active discharge requirement, control the pulse signal output by the microprocessor to be a preset fixed high level or a fixed low level, so as to utilize the window comparator circuit to output a low level and trigger the discharge process.
[0080] Furthermore, in some embodiments, after detecting the voltage value across the capacitor in the hardware detection circuit, the judgment module 600 is also used to: if the voltage value across the capacitor is in a preset voltage range, control the window comparator circuit to output a high level, maintain the IGBT of the discharge circuit in an off state, so as to control the discharge circuit not to perform high-voltage discharge.
[0081] Furthermore, in some embodiments, the motor controller discharge device 10 is also used to control the high-voltage side power supply to delay powering on in the initial stage of powering on the current motor controller, so as to filter out unstable states.
[0082] It should be noted that the above explanation of the motor controller discharge method embodiment is also applicable to the motor controller discharge device of this embodiment, and will not be repeated here.
[0083] According to the motor controller discharge device proposed in the embodiment of the present application, based on the voltage value across the capacitor in the hardware detection circuit, when the pulse width and pulse period of the pulse signal sent by the microprocessor are not in the corresponding threshold interval, it is determined that the motor controller meets the preset discharge condition, and the window comparator circuit is controlled to output a low level to control the IGBT of the discharge circuit to be in the on state and perform high-voltage discharge. Thus, the problem of poor stability and safety of the existing motor controller discharge technology is solved, ensuring that the discharge can be performed normally even when the microprocessor fails, and improving the stability and safety of the discharge process.
[0084] Figure 6 A schematic diagram of the structure of a vehicle provided in an embodiment of the present application. The vehicle may include:
[0085] A memory 601 , a processor 602 , and a computer program stored in the memory 601 and executable on the processor 602 .
[0086] When the processor 602 executes the program, the motor controller discharging method provided in the above embodiment is implemented.
[0087] Furthermore, the vehicle also includes:
[0088] The communication interface 603 is used for communication between the memory 601 and the processor 602 .
[0089] The memory 601 is used to store computer programs that can be executed on the processor 602 .
[0090] The memory 601 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
[0091] If the memory 601, the processor 602 and the communication interface 603 are implemented independently, the communication interface 603, the memory 601 and the processor 602 can be connected to each other through a bus and communicate with each other. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 6 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0092] Optionally, in a specific implementation, if the memory 601, the processor 602 and the communication interface 603 are integrated on a chip, the memory 601, the processor 602 and the communication interface 603 can communicate with each other through an internal interface.
[0093] The processor 602 may be a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application.
[0094] An embodiment of the present application also provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the above-mentioned motor controller discharge method is implemented.
[0095] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or N embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
[0096] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of this application, "N" means at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0097] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, fragment or portion of code comprising one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.
[0098] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purpose of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or N wirings (electronic devices), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.
[0099] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiment, the N steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0100] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.
[0101] In addition, each functional unit in each embodiment of the present application may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.
[0102] The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, etc. Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limiting the present application. A person of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present application.
Claims
1. A motor controller discharge method, characterized in that: The method adopts a motor controller discharge circuit, which includes a microprocessor, a hardware detection circuit, a window comparator circuit, an isolation device and a discharge loop connected in sequence, wherein the method includes the following steps: Obtaining a voltage value across a capacitor in the hardware detection circuit; Based on the voltage value across the capacitor in the hardware detection circuit, determining whether the pulse width and pulse period of the pulse signal emitted by the microprocessor are both within the corresponding threshold range; If the pulse width or the pulse period is not in the corresponding threshold range, it is determined that the motor controller meets the preset discharge condition, and the window comparator circuit is controlled to output a low level to control the IGBT of the discharge circuit to be in the on state and perform high-voltage discharge.
2. The method according to claim 1, characterized in that The step of judging whether the pulse width and the pulse period of the pulse signal emitted by the microprocessor are both within the corresponding threshold range based on the voltage value across the capacitor in the hardware detection circuit includes: Determining whether the voltage value across the capacitor in the hardware detection circuit is within a preset voltage range; If the voltage value across the capacitor is not within the preset voltage range, it is determined that the pulse width or the pulse period is not within the corresponding threshold range.
3. The method according to claim 1, characterized in that Also includes: Identify whether the motor controller discharge circuit has an active discharge requirement; If the active discharge requirement exists, the pulse signal output by the microprocessor is controlled to be a preset fixed high level or a fixed low level, so as to utilize the window comparator circuit to output a low level and trigger the discharge process.
4. The method according to claim 2, characterized in that: After detecting the voltage value across the capacitor in the hardware detection circuit, the method further includes: If the voltage value across the capacitor is within the preset voltage range, the window comparator circuit is controlled to output a high level, maintaining the IGBT of the discharge circuit in an off state, so as to control the discharge circuit not to perform high-voltage discharge.
5. The method according to claim 1, characterized in that Also includes: At the initial stage of powering on the current motor controller, the high-voltage side power supply is controlled to delay powering on to filter out unstable conditions.
6. A motor controller discharge device, characterized in that: The device adopts a motor controller discharge circuit, which includes a microprocessor, a hardware detection circuit, a window comparator circuit, an isolation device and a discharge loop connected in sequence, wherein the device includes: An acquisition module, used to acquire the voltage value across the capacitor in the hardware detection circuit; A judgment module, used to judge whether the pulse width and pulse period of the pulse signal emitted by the microprocessor are both within the corresponding threshold range based on the voltage value across the capacitor in the hardware detection circuit; The control module determines that the motor controller meets the preset discharge condition if the pulse width or the pulse period is not in the corresponding threshold interval, controls the window comparator circuit to output a low level, so as to control the IGBT of the discharge circuit to be in the on state and perform high-voltage discharge.
7. The device according to claim 6, characterized in that The judging module is used for: Determining whether the voltage value across the capacitor in the hardware detection circuit is within a preset voltage range; If the voltage value across the capacitor is not within the preset voltage range, it is determined that the pulse width or the pulse period is not within the corresponding threshold range.
8. The device according to claim 6, characterized in that Also used for: Identify whether the motor controller discharge circuit has an active discharge requirement; If the active discharge requirement exists, the pulse signal output by the microprocessor is controlled to be a preset fixed high level or a fixed low level, so as to utilize the window comparator circuit to output a low level and trigger the discharge process.
9. A vehicle, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the motor controller discharge method according to any one of claims 1 to 5.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: The program is executed by a processor to implement the motor controller discharging method according to any one of claims 1 to 5.