Motor control method and device, computer equipment and computer readable storage medium
By obtaining the operating status information of the vehicle and the motor, the motor controller's opening conditions are judged, and the drive signal is output when the conditions are met. This solves the problem of unstable motor output torque in the existing technology and realizes the control of the motor in different states. Safe and stable operation.
Patent Information
- Application Number
- CN202410869544.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-01
- Publication Date
- 2024-09-27
AI Technical Summary
The existing motor control method cannot smoothly control the motor output torque according to the actual operating status of the vehicle and motor, which can easily lead to unstable torque output and may cause damage to the vehicle.
By obtaining the vehicle's operating status information and the motor's operating parameter information at the current moment, it is judged whether the motor controller meets the preset opening conditions. If it is met, it will output a drive signal; if it is not met, it will enter a safe operating state to avoid damage. The specific method includes when the motor controller is in the off state, judging whether the open condition is met based on the operating status and speed information, and using the PI controller, modulator and inverter to output the drive signal when the conditions are met, otherwise it will enter the three-phase short circuit or remain off.
It achieves smooth changes in the motor output torque, avoids damage to the vehicle, and ensures that the motor works safely and reliably under different operating conditions.
Smart Images

Figure CN118713531A
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle technology, and in particular to a motor control method, device, computer equipment, and computer-readable storage medium. Background Art
[0002] Motors are an important component of industrial fields such as new energy vehicles, medical electronics and aerospace.
[0003] However, current motor control methods are still unable to meet usage requirements. Summary of the invention
[0004] Based on this, it is necessary to provide a motor control method, device, computer equipment and computer-readable storage medium to enable the motor to operate smoothly according to the current operating status of the vehicle in response to the above technical problems.
[0005] In a first aspect, the present application provides a motor control method, the method comprising:
[0006] Acquire the current running state information of the vehicle, the running parameter information of the motor and the switch state information of the motor controller, wherein the running parameter information includes the motor speed information and the motor angular velocity information, and the motor controller includes the open state and the closed state;
[0007] When the motor controller is in the closed state, judging whether the motor controller meets a preset open condition according to the operation state information and the motor speed information;
[0008] When the open-tube condition is met, controlling the motor controller to output a drive signal to the motor according to preset motor working parameter information and the motor angular velocity information;
[0009] When the opening condition is not met, the motor controller is controlled to drive the motor to enter a safe operation state.
[0010] In one embodiment, the safe operation state includes a shut-off state and a three-phase short circuit state; and controlling the motor controller to drive the motor into the safe operation state includes:
[0011] Determining whether a first preset condition is met according to the operating state information, wherein the first preset condition is that the vehicle high voltage power-on is completed;
[0012] When the first preset condition is not met, controlling the motor controller to maintain the off state;
[0013] When the first preset condition is met, judging whether a second preset condition is met according to the motor speed information and a preset first speed threshold, wherein the second preset condition is that the motor speed information is less than the first speed threshold;
[0014] When the second preset condition is met, controlling the motor controller to maintain the off state;
[0015] When the second preset condition is not met, the motor controller is controlled to drive the motor to enter the three-phase short-circuit state.
[0016] In one embodiment, the opening conditions include:
[0017] The vehicle is in a high voltage powered state and a normal operating state;
[0018] The motor controller is in a waiting-to-open state;
[0019] The motor speed information is less than a second speed threshold.
[0020] In one embodiment, the motor controller includes a PI controller, a modulator and an inverter; and controlling the motor controller to output a drive signal to the motor according to preset motor operating parameter information and the motor angular velocity information includes:
[0021] Control the PI controller to output a voltage signal to the modulator according to preset motor operating parameter information, the motor angular velocity information and a preset formula, wherein the modulator outputs a pulse control signal to the inverter according to the voltage signal, and the inverter outputs the drive signal to the motor according to the pulse control signal.
[0022] In one embodiment, the voltage signal includes a d-axis feedforward voltage signal and a q-axis feedforward voltage signal, and the motor operating parameter information includes stator winding resistance, d-axis inductance, q-axis inductance, d-axis initial current, q-axis initial current, and motor rotor flux; the preset formula includes:
[0023]
[0024] Among them, the is the d-axis feedforward voltage signal, is the q-axis feedforward voltage signal, is the stator winding resistance, is the d-axis initial current, is the q-axis initial current, is the motor angular velocity information, is the q-axis inductance, is the d-axis inductance, t is the preset time, is the motor rotor flux.
[0025] In one embodiment, the operating parameter information further includes motor torque information, and the method further includes:
[0026] When the motor controller is in the open state, judging whether the closing condition is met according to the operation state information, the motor speed information and the motor torque information;
[0027] When the shutdown condition is met, controlling the motor controller to enter the shutdown state;
[0028] When the tube-closing condition is not met, the motor controller is controlled to maintain the tube-opening state.
[0029] In a second aspect, the present application provides a motor control device, the device comprising:
[0030] An information acquisition module, used to acquire the current vehicle operation status information, motor operation parameter information and motor controller switch status information, wherein the operation parameter information includes motor speed information and motor angular velocity information, and the motor controller includes an open state and a closed state;
[0031] A first judgment module, used for judging whether the motor controller meets a preset opening condition according to the operation status information and the motor speed information when the motor controller is in the closing state;
[0032] A first control module, configured to control the motor controller to output a driving signal to the motor according to preset motor working parameter information and the motor angular velocity information when the open-tube condition is met;
[0033] The second control module is used to control the motor controller to drive the motor to enter a safe operation state when the opening condition is not met.
[0034] In a third aspect, the present application provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the method in any one of the above embodiments when executing the computer program.
[0035] In a fourth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the method in any one of the above embodiments.
[0036] In a sixth aspect, the present application provides a computer program product, including a computer program, which implements the steps of the method in any of the above embodiments when executed by a processor.
[0037] The above-mentioned motor control method, device, computer equipment and computer-readable storage medium first obtain the vehicle's current operating status information, the motor's operating parameter information and the switch status information of the motor controller, the operating parameter information includes the motor speed information and the motor angular velocity information. When the motor controller is in the closed state, it is judged according to the operating status information and the motor speed information whether the motor controller can enter the open state at this time to output a drive signal to the motor. When the open condition is met, the motor controller is controlled to output a drive signal to the motor according to the preset motor working parameter information and the motor angular velocity information, so that the motor can work smoothly according to the current operating status of the vehicle. When the open condition is not met, the motor is controlled to enter a safe operating state to avoid damage to the vehicle. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0039] Figure 1 is a flow chart of a motor control method in one embodiment;
[0040] Figure 2 is a flow chart of step S104 in one embodiment;
[0041] Figure 3 is a flow chart of a motor control method according to another embodiment;
[0042] Figure 4 is a structural block diagram of a motor control device in one embodiment;
[0043] Figure 5 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0044] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0045] Permanent magnet synchronous motor is an important part of new energy vehicles. The motor is usually controlled by a motor controller, which usually includes a PI controller, a modulator and an inverter. The PI controller can convert the current signal into a voltage signal and output it to the modulator. The modulation outputs a pulse control signal to the inverter based on the received voltage signal, and the inverter outputs a drive signal to the motor according to the pulse control signal. When the vehicle is in a low-speed gliding state and the drive motor is in zero torque control mode, the inverter in the motor controller is usually in a closed state, that is, the motor controller will not output a drive signal to the motor to reduce energy consumption. When the vehicle has a torque demand, the inverter in the motor controller is turned on. Even if the inverter in the motor controller becomes an open state, the motor controller outputs a drive signal to the motor to make the motor output torque. However, the existing method of controlling the open-tube of the motor controller is usually to make the inverter directly output a pulse control signal with a 50% duty cycle. The inverter outputs a drive signal to the motor according to the pulse control signal with a 50% duty cycle. After the motor starts working, the PI controller performs closed-loop control according to the current signal in the drive signal output by the inverter. This control method does not take into account the actual operating status of the vehicle and the motor, which can easily cause unstable motor torque output and may cause damage to the vehicle.
[0046] Therefore, the present application proposes a motor control method, which can make the output torque of the motor change smoothly. The application of this method to a vehicle controller is used as an example for explanation. Figure 1 As shown, the motor control method includes steps S101 to S104.
[0047] S101: Acquire the current operating state information of the vehicle, the operating parameter information of the motor and the switch state information of the motor controller, wherein the operating parameter information includes the motor speed information and the motor angular velocity information, and the motor controller includes an open state and a closed state.
[0048] First, the current vehicle operating status information, motor operating parameter information and motor controller switch status information are obtained. The motor operating parameter information may include motor speed information nMtr and motor angular velocity information w e The switch state information of the motor controller includes an open state and a closed state. The switch control of the motor controller is performed according to the real-time state of the vehicle and the real-time state of the motor.
[0049] S102: When the motor controller is in the closed state, judging whether the motor controller meets a preset open condition according to the operation state information and the motor speed information.
[0050] The operation status information includes power-on information and fault information. The power-on information includes high-voltage power-on status and high-voltage power-off status. The fault information includes three-level fault status and normal operation status. The open-tube condition includes the first open-tube condition, the second open-tube condition, the third open-tube condition and the fourth open-tube condition. The first open-tube condition is that the vehicle is in the high-voltage power-on state, the second open-tube condition is that the vehicle is in the normal operation state, the third open-tube condition is that the motor controller is in the waiting-to-open state, and the fourth open-tube condition is that the motor speed information nMtr is less than the second speed threshold (nMtrBase-nDvt1). Among them, the three-level fault state means that the vehicle has a three-level fault, the normal operation state means that the vehicle does not have a three-level fault, and the motor controller is in the waiting-to-open state means that the motor controller receives the IGBT opening instruction in the closed state. nMtrBase is the motor base speed, and nDvt1 is the first speed deviation. In the application, the first speed deviation nDvt1 can be calibrated according to specific needs.
[0051] When the motor controller is in the off state, the vehicle controller determines whether the vehicle has completed high-voltage power-on and whether the vehicle has a third-level fault, whether the motor controller has received the IGBT on command, and whether the motor speed information nMtr is less than the second speed threshold (nMtrBase-nDvt1). When the motor controller is in the waiting-to-on state, the motor speed information nMtr is less than the second speed threshold (nMtrBase-nDvt1), and the vehicle is in the high-voltage power-on state and the normal operation state, it is determined that the motor controller meets the preset on condition. When the current state of the vehicle does not meet any of the above-mentioned on condition, it is determined that the motor controller does not meet the on condition.
[0052] S103: When the open-tube condition is met, the motor controller is controlled to output a driving signal to the motor according to preset motor operating parameter information and motor angular velocity information.
[0053] When the motor controller meets the preset open-tube conditions, the PI controller in the motor controller is controlled to output a voltage signal to the modulator according to the preset motor operating parameter information, the motor angular velocity information and the preset formula, wherein the modulator outputs a pulse control signal to the inverter according to the voltage signal, and the inverter outputs a drive signal to the motor according to the pulse control signal.
[0054] The motor operating parameter information includes the pre-stored stator winding resistance, d-axis inductance, q-axis inductance, d-axis initial current, q-axis initial current and motor rotor flux, the voltage signal includes the d-axis feedforward voltage signal and the q-axis feedforward voltage signal, and the preset formula includes:
[0055]
[0056] in, is the d-axis feedforward voltage signal, is the q-axis feedforward voltage signal, is the stator winding resistance, is the initial current of d axis, is the initial current of q axis, is the motor angular velocity information, is the q-axis inductance, is the d-axis inductance, t is the preset time, is the motor rotor flux.
[0057] It can be understood that the d-axis initial current and the q-axis initial current refer to the d-axis current and the q-axis current corresponding to the motor outputting zero torque in the current running state of the vehicle. The d-axis current and the q-axis current corresponding to the motor outputting zero torque can be preset. The d-axis current and the q-axis current corresponding to the motor outputting zero torque and the motor angular velocity information are Substituting into the preset formula, we can get the dq axis feedforward voltage and , the modulator will and The pulse width modulation algorithm (such as the space vector pulse width modulation algorithm SVPWM) is converted into a three-phase H-bridge PWM of the motor controller, that is, a pulse control signal, which is input into the inverter to control the on and off of each IGBT switch tube, and the inverter then outputs a drive signal to drive the motor to output stably. The duty cycle of the pulse control signal output by the modulator is controlled by the motor angular velocity information at the current moment and the d-axis current and q-axis current corresponding to the zero torque output of the motor, so that the inverter-driven motor can output torque smoothly.
[0058] S104: When the pipe opening condition is not met, the motor controller is controlled to drive the motor to enter a safe operation state.
[0059] When the current state of the vehicle does not meet any of the above-mentioned pipe opening conditions, it is determined that the motor controller does not meet the pipe opening conditions. At this time, the motor controller drives the motor to enter a corresponding safe operation state according to the current state of the vehicle.
[0060] The above-mentioned motor control method first obtains the current operating status information of the vehicle, the operating parameter information of the motor and the switch status information of the motor controller, the operating parameter information includes the motor speed information and the motor angular velocity information. When the motor controller is in the closed state, it is judged according to the operating status information and the motor speed information whether the motor controller can enter the open state at this time to output a drive signal to the motor. When the open condition is met, the motor controller is controlled to output a drive signal to the motor according to the preset motor working parameter information and the motor angular velocity information, so that the motor can work smoothly according to the current operating status of the vehicle. When the open condition is not met, the motor is controlled to enter a safe operating state to avoid damage to the vehicle.
[0061] In one embodiment, the safe operation state includes a shut-off state and a three-phase short-circuit state. Figure 2 As shown, in step S104, the controller drives the motor to enter a safe operation state, including steps S201 to S205.
[0062] S201: Determine whether a first preset condition is met based on the operating status information, wherein the first preset condition is that the vehicle high voltage power-on is completed.
[0063] When the motor controller does not meet the opening condition, the vehicle controller first determines whether the vehicle is in a high-voltage power-on state based on the vehicle's operating status information, that is, whether the vehicle has completed high-voltage power-on.
[0064] S202: When the first preset condition is not met, control the motor controller to maintain the off state.
[0065] If the vehicle is in a high-voltage power-off state at this time, that is, the vehicle has not completed high-voltage power-on at this time, it means that both the motor controller and the motor cannot work, and the motor controller should be controlled to continue to remain in the off state.
[0066] S203: When the first preset condition is met, determine whether the second preset condition is met according to the motor speed information and a preset first speed threshold, wherein the second preset condition is that the motor speed information is less than the first speed threshold.
[0067] If the vehicle has completed high-voltage power-up, it is determined whether the motor speed information nMtr is less than the first speed threshold nThd.
[0068] S204: When the second preset condition is met, the motor controller is controlled to maintain the off state.
[0069] If the motor speed information nMtr is less than the first speed threshold nThd, the motor controller remains in the off state.
[0070] S205: When the second preset condition is not met, control the motor controller to drive the motor into a three-phase short-circuit state.
[0071] If the motor speed information nMtr is greater than or equal to the first speed threshold nThd, the motor controller is controlled to drive the motor into a three-phase short circuit state. The three-phase short circuit (Active short circuit, ASC) is to turn on the three IGBT switches of the upper bridge arm of the three-phase inverter in the motor controller at the same time and turn off the three IGBT switches of the lower bridge arm, or turn on the three IGBT switches of the lower bridge arm at the same time and turn off the three IGBT switches of the upper bridge arm. The latter method is generally used to implement ASC action. In this way, the three-phase output voltage vector of the motor controller is a zero vector, the DC end and the AC end circuit no longer form a loop, and the line current of the motor circulates inside the three-phase inverter bridge of the motor controller and between the motors, and will not be fed back to the high-voltage battery pack to damage the battery.
[0072] In one embodiment, the operating parameter information also includes motor torque information, such as Figure 3 As shown, the motor control method further includes steps S301 to S303.
[0073] S301: When the motor controller is in an open state, determine whether a close condition is met according to the operation state information, the motor speed information and the motor torque information.
[0074] The operation status information includes the state where the torque command is zero, and the shutdown condition includes the first shutdown condition, the second shutdown condition, the third shutdown condition and the fourth shutdown condition: the first shutdown condition is that the motor controller is in the waiting shutdown state, the second shutdown condition is that the motor speed information nMtr is less than the third speed threshold (nMtrBase-nDvt2), the third shutdown condition is that the torque command is zero, and the fourth shutdown condition is that the absolute value of the difference between the motor torque information and the torque command is less than the preset torque threshold trqErr. nDvt2 is the second speed deviation, wherein the waiting shutdown state refers to the state where the motor controller receives the IGBT shutdown command. In the application, the first speed deviation nDvt1 and the second speed deviation nDvt2 can be the same in size, and the first speed deviation nDvt1, the second speed deviation nDvt2 and the preset torque threshold trqErr can all be calibrated according to specific needs.
[0075] S302: When the shutdown condition is met, the motor controller is controlled to enter the shutdown state.
[0076] When the motor controller is in the waiting-to-shutdown state, the motor speed information nMtr is less than the third speed threshold (nMtrBase-nDvt2), the torque command is zero, and the absolute value of the difference between the motor torque information and the torque command is less than the preset torque threshold trqErr, the motor controller is judged to meet the shutdown condition. The motor controller may also include an IGBT driver chip to power each IGBT switch tube in the inverter. At this time, the PI controller and the modulator may be turned off first, and then the IGBT driver chip may be turned off.
[0077] S303: When the pipe closing condition is not met, the motor controller is controlled to maintain the pipe opening state.
[0078] If the motor controller does not meet the shut-off condition at this time, it indicates that the current state of the vehicle does not meet at least one of the above-mentioned shut-off conditions. At this time, the motor controller should continue to maintain the open state, provide a drive signal to the motor, and allow the motor to continue to output torque. Exemplarily, when the motor controller is in the state to be shut off, the motor speed information nMtr is less than the third speed threshold (nMtrBase-nDvt2), the torque command is zero but the absolute value of the difference between the motor torque information and the torque command is greater than the preset torque threshold trqErr, if the motor controller is forcibly controlled to shut off, the downward slope of the motor output torque is large, which will cause the motor output torque to be unstable. Therefore, in this application, it is set that the motor controller is controlled to enter the shut-off state only when the shut-off condition is met. When the shut-off condition is not met, the motor controller should continue to maintain the open state, which is conducive to the smooth change of the motor output torque.
[0079] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0080] Based on the same inventive concept, the embodiment of the present application also provides a motor control device for implementing the motor control method involved above. The implementation solution provided by the device to solve the problem is similar to the implementation solution recorded in the above method, so the specific limitations in one or more motor control device embodiments provided below can refer to the limitations of the motor control method above, and will not be repeated here.
[0081] In one embodiment, Figure 4 As shown, the present application provides a motor control device, which includes: an information acquisition module 401 , a first judgment module 402 , a first control module 403 and a second control module 404 .
[0082] The information acquisition module 401 is used to acquire the current vehicle operation state information, motor operation parameter information and motor controller switch state information, wherein the operation parameter information includes motor speed information and motor angular velocity information, and the motor controller includes an open state and a closed state;
[0083] The first judgment module 402 is used to judge whether the motor controller meets the preset opening condition according to the operation state information and the motor speed information when the motor controller is in the closing state;
[0084] The first control module 403 is used to control the motor controller to output a driving signal to the motor according to preset motor working parameter information and motor angular velocity information when the open-tube condition is met;
[0085] The second control module 404 is used to control the motor controller to drive the motor into a safe operation state when the opening condition is not met.
[0086] In one embodiment, the safe operation state includes a shut-off state and a three-phase short circuit state; the second control module 404 includes: a first judgment submodule, a first control submodule, a second judgment submodule, a second control submodule and a third control submodule.
[0087] The first judgment submodule is used to judge whether a first preset condition is met according to the operation status information, wherein the first preset condition is that the vehicle high voltage power-on is completed.
[0088] The first control submodule is used to control the motor controller to maintain a shutdown state when the first preset condition is not met.
[0089] The second judgment submodule is used to judge whether a second preset condition is met according to the motor speed information and a preset first speed threshold when the first preset condition is met, wherein the second preset condition is that the motor speed information is less than the first speed threshold.
[0090] The second control submodule is used to control the motor controller to maintain the off state when a second preset condition is met.
[0091] The third control submodule is used to control the motor controller to drive the motor into a three-phase short-circuit state when the second preset condition is not met.
[0092] In one embodiment, the opening condition includes: the vehicle is in a high-voltage power-on state and a normal operating state; the motor controller is in a waiting-to-open state; and the motor speed information is less than a second speed threshold.
[0093] In one embodiment, the motor controller includes a PI controller, a modulator and an inverter; the first control module 403 includes: a fourth control submodule, the fourth control submodule is used to control the PI controller to output a voltage signal to the modulator according to preset motor operating parameter information and motor angular velocity information and a preset formula, wherein the modulator outputs a pulse control signal to the inverter according to the voltage signal, and the inverter outputs a drive signal to the motor according to the pulse control signal.
[0094] In one embodiment, the operating parameter information further includes motor torque information, and the motor control device further includes: a second judgment module, a third control module and a fourth control module.
[0095] The second judgment module is used to judge whether the closing condition is met according to the operation state information, the motor speed information and the motor torque information when the motor controller is in the open state.
[0096] The third control module is used to control the motor controller to enter the shutdown state when the shutdown condition is met.
[0097] The fourth control module is used to control the motor controller to maintain an open-tube state when the closing condition is not met.
[0098] Each module in the above motor control device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each module.
[0099] In one embodiment, the present application provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of the method in any of the above embodiments are implemented.
[0100] In an exemplary embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as shown in FIG. Figure 5As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, near field communication (NFC) or other technologies. When the computer program is executed by the processor, a motor control method is implemented. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.
[0101] Those skilled in the art will understand that Figure 5 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0102] In one embodiment, the present application provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps of the method in any of the above embodiments are implemented.
[0103] In one embodiment, the present application provides a computer program product, including a computer program, which implements the steps of the method in any of the above embodiments when the computer program is executed by a processor.
[0104] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.
[0105] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.
[0106] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0107] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A motor control method, characterized in that: The method comprises: Acquire the current running state information of the vehicle, the running parameter information of the motor and the switch state information of the motor controller, wherein the running parameter information includes the motor speed information and the motor angular velocity information, and the motor controller includes the open state and the closed state; When the motor controller is in the closed state, judging whether the motor controller meets a preset open condition according to the operation state information and the motor speed information; When the open-tube condition is met, controlling the motor controller to output a drive signal to the motor according to preset motor working parameter information and the motor angular velocity information; When the opening condition is not met, the motor controller is controlled to drive the motor to enter a safe operation state.
2. The motor control method according to claim 1, characterized in that: The safe operation state includes a closed state and a three-phase short circuit state; and controlling the motor controller to drive the motor into the safe operation state includes: Determining whether a first preset condition is met according to the operating state information, wherein the first preset condition is that the vehicle high voltage power-on is completed; When the first preset condition is not met, controlling the motor controller to maintain the off state; When the first preset condition is met, judging whether a second preset condition is met according to the motor speed information and a preset first speed threshold, wherein the second preset condition is that the motor speed information is less than the first speed threshold; When the second preset condition is met, controlling the motor controller to maintain the off state; When the second preset condition is not met, the motor controller is controlled to drive the motor to enter the three-phase short-circuit state.
3. The motor control method according to claim 1, characterized in that: The opening conditions include: The vehicle is in a high voltage powered state and a normal operating state; The motor controller is in a waiting-to-open state; The motor speed information is less than a second speed threshold.
4. The motor control method according to claim 1, characterized in that: The motor controller includes a PI controller, a modulator and an inverter; The controlling the motor controller to output a driving signal to the motor according to preset motor operating parameter information and the motor angular velocity information includes: Control the PI controller to output a voltage signal to the modulator according to preset motor operating parameter information, the motor angular velocity information and a preset formula, wherein the modulator outputs a pulse control signal to the inverter according to the voltage signal, and the inverter outputs the drive signal to the motor according to the pulse control signal.
5. The motor control method according to claim 4, characterized in that: The voltage signal includes a d-axis feedforward voltage signal and a q-axis feedforward voltage signal, and the motor operating parameter information includes stator winding resistance, d-axis inductance, q-axis inductance, d-axis initial current, q-axis initial current, and motor rotor flux; the preset formula includes: Among them, the is the d-axis feedforward voltage signal, is the q-axis feedforward voltage signal, is the stator winding resistance, is the d-axis initial current, is the q-axis initial current, is the motor angular velocity information, is the q-axis inductance, is the d-axis inductance, t is the preset time, is the motor rotor flux.
6. The motor control method according to claim 1, characterized in that: The operating parameter information also includes motor torque information, and the method further includes: When the motor controller is in the open state, judging whether the closing condition is met according to the operation state information, the motor speed information and the motor torque information; When the shutdown condition is met, controlling the motor controller to enter the shutdown state; When the tube-closing condition is not met, the motor controller is controlled to maintain the tube-opening state.
7. A motor control device, characterized in that: The device comprises: An information acquisition module, used to acquire the current vehicle operation status information, motor operation parameter information and motor controller switch status information, wherein the operation parameter information includes motor speed information and motor angular velocity information, and the motor controller includes an open state and a closed state; A first judgment module, used for judging whether the motor controller meets a preset opening condition according to the operation status information and the motor speed information when the motor controller is in the closing state; A first control module, configured to control the motor controller to output a driving signal to the motor according to preset motor working parameter information and the motor angular velocity information when the open-tube condition is met; The second control module is used to control the motor controller to drive the motor to enter a safe operation state when the opening condition is not met.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
Citation Information
Cited By
Protection control method and device for motor controller in low-voltage state, medium and equipment
CN119705074A
