Motor control method and device, equipment and storage medium
By obtaining constraint parameters and monitoring the rotational speed, the stalled situation of the BLDC motor is determined, and control measures are taken to solve the problem of the motor being unable to recover autonomously when it is stalled, and to achieve safe and stable operation of the motor.
Patent Information
- Application Number
- CN202410887025.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-03
- Publication Date
- 2024-10-01
AI Technical Summary
When the BLDC motor is blocked, it cannot achieve autonomous recovery through the existing overcurrent and temperature monitoring, resulting in possible damage to the motor.
Determine whether the motor monitoring function is activated by obtaining the constraint parameters, determine the motor stall condition based on the target speed and the current actual speed, and take active shutdown and restart control measures to avoid damage.
It realizes the autonomous recovery of the BLDC motor in the case of stalling, avoids motor damage due to over-temperature or over-current, and ensures safe and stable operation of the motor.
Smart Images

Figure CN118739967A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle control technology, and in particular to motor control methods, devices, equipment and storage media. Background Art
[0002] BLDC motors can be used for shift control, cooling control, clutch control, etc. When the motor is blocked, not only will the system lose control function, but if it is not protected, it will cause the stator coil or power tube to burn out due to overcurrent or overtemperature in serious cases. Therefore, the monitoring and protection of BLDC motor blockage is very important. At present, the motor is protected by monitoring current and temperature. From the perspective of realizing the function, for abnormal shutdown conditions of the motor, it is impossible to detect the blockage through overcurrent and temperature monitoring, resulting in damage to the motor due to faults such as overtemperature or overcurrent.
[0003] Therefore, how to avoid damage to the motor due to faults such as overtemperature or overcurrent and achieve autonomous recovery of the control function is a problem that needs to be solved urgently.
[0004] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention
[0005] The main purpose of this application is to provide a motor control method, device, equipment and storage medium, aiming to solve the technical problem of how to avoid damage to the motor due to faults such as overtemperature or overcurrent and achieve autonomous recovery of the control function.
[0006] To achieve the above object, the present application proposes a motor control method, the method comprising:
[0007] Obtaining constraint parameters, and determining whether the motor monitoring function is activated according to the constraint parameters;
[0008] When the motor monitoring function is activated, obtain the motor target speed and current actual speed;
[0009] Determine the motor stall condition according to the target speed and the current actual speed;
[0010] The motor is controlled according to the motor stall condition.
[0011] In one embodiment, determining whether the motor monitoring function is activated according to the constraint parameter includes:
[0012] Determining the control function, supply voltage, motor current and controller area network signal of the motor according to the constraint parameters;
[0013] Detecting whether the control function of the motor is activated and obtaining a detection result;
[0014] Comparing the supply voltage with a preset voltage range to obtain a first comparison result;
[0015] Comparing the motor current with a preset current threshold to obtain a second comparison result;
[0016] Verifying the controller area network signal to obtain a verification result;
[0017] Determine whether the motor monitoring function is activated according to the detection result, the first comparison result, the second comparison result and the verification result.
[0018] In one embodiment, determining whether the motor monitoring function is activated according to the detection result, the first comparison result, the second comparison result and the verification result includes:
[0019] When the detection result is that the control function of the motor is activated, the first comparison result is that the supply voltage is within the preset voltage range, the second comparison result is that the motor current is greater than the preset current threshold, and the verification result is that the controller area network signal is correct, it is determined that the motor monitoring function is activated;
[0020] When at least one of the following is not satisfied: the detection result is that the control function of the motor is activated, the first comparison result is that the supply voltage is within the preset voltage range, the second comparison result is that the motor current is greater than the preset current threshold, and the verification result is that the controller LAN signal is correct, it is determined that the motor monitoring function is not activated.
[0021] In one embodiment, determining the motor stall condition according to the target speed and the current actual speed includes:
[0022] Comparing the target speed with a first preset speed threshold to obtain a third comparison result;
[0023] Comparing the current actual speed with a second preset speed threshold to obtain a fourth comparison result;
[0024] When the third comparison result is that the target speed is greater than the first preset speed threshold and the fourth comparison result is that the current actual speed is less than or equal to the second preset speed threshold, it is determined that the motor stall condition is that the motor is stalled.
[0025] In one embodiment, determining the motor stall condition according to the target speed and the current actual speed further includes:
[0026] When the third comparison result is that the target speed is less than or equal to the first preset speed threshold or the fourth comparison result is that the current actual speed is greater than the second preset speed threshold, it is determined that the motor is not blocked.
[0027] In one embodiment, controlling the motor according to the motor stall condition includes:
[0028] When the motor stall condition is that the motor stalls, generating a motor control instruction;
[0029] Controlling the motor to actively stop and restart according to the motor control instruction to obtain a stop-restart number;
[0030] When the number of shutdown-restart cycles reaches a preset number threshold, the motor is controlled to remain in a shutdown state.
[0031] In one embodiment, controlling the motor to actively stop and restart according to the motor control instruction to obtain the number of stop-restart times includes:
[0032] Controlling the motor to actively stop and restart according to the motor control instruction, and updating the target speed to obtain a reference target speed;
[0033] Controlling the motor to run for a preset time and obtaining a reference actual speed within the preset time;
[0034] When the reference target speed is greater than a first preset speed threshold and the reference actual speed is less than or equal to a second preset speed threshold, the steps of actively stopping and restarting the motor according to the motor control instruction, updating the target speed, obtaining the reference target speed, and counting the number of shutdowns and restarts are executed.
[0035] In addition, to achieve the above-mentioned purpose, the present application also proposes a motor control device, the motor control device comprising:
[0036] A determination module, used to obtain constraint parameters and determine whether the motor monitoring function is activated according to the constraint parameters;
[0037] An acquisition module is used to obtain the motor target speed and current actual speed when the motor monitoring function is activated;
[0038] The determination module is further used to determine the motor stall condition according to the target speed and the current actual speed;
[0039] A control module is used to control the motor according to the motor stall condition.
[0040] In addition, to achieve the above objectives, the present application also proposes a motor control device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the motor control method described above.
[0041] In addition, to achieve the above objectives, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the motor control method described above are implemented.
[0042] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the steps of the motor control method described above are implemented.
[0043] The present application provides a motor control method, which can monitor the engine functional status in real time and accurately by first acquiring constraint parameters and determining whether the motor monitoring function is activated based on the constraint parameters; when the motor monitoring function is activated, the motor target speed and the current actual speed are acquired; the motor stall condition is determined based on the target speed and the current actual speed, so that the engine abnormal state can be determined quickly and accurately; the motor is controlled based on the motor stall condition, so as to avoid damage to the motor due to faults such as overtemperature or overcurrent, and realize autonomous recovery of the control function.
[0044] In summary, the present application determines whether the motor monitoring function is activated based on the constraint parameters. When the motor monitoring function is activated, the motor stall condition is determined based on the target speed and the current actual speed and the motor is controlled. This overcomes the technical defect that stalling cannot be detected through overcurrent and temperature monitoring, resulting in damage to the motor due to faults such as overtemperature or overcurrent. This can avoid damage to the motor due to faults such as overtemperature or overcurrent and achieve autonomous recovery of the control function. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0046] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0047] Figure 1 A schematic diagram of a flow chart provided for the first embodiment of the motor control method of the present application;
[0048] Figure 2 A schematic diagram of a flow chart provided for the second embodiment of the motor control method of the present application;
[0049] Figure 3 This is a schematic diagram of the module structure of the motor control device according to an embodiment of the present application;
[0050] Figure 4 Schematic diagram of the device structure of the hardware operating environment involved in the motor control method in the embodiment of the present application.
[0051] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0052] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.
[0053] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.
[0054] The main solution of the embodiment of the present application is: obtain constraint parameters, and determine whether the motor monitoring function is activated based on the constraint parameters; when the motor monitoring function is activated, obtain the motor target speed and the current actual speed; determine the motor stall condition based on the target speed and the current actual speed; and control the motor based on the motor stall condition.
[0055] BLDC motors can be used for shift control, cooling control, clutch control, etc. When the motor is blocked, not only will the system lose control function, but if no protection is performed, in serious cases, the stator coil or power tube will be burned due to overcurrent or overtemperature. Therefore, the monitoring and protection of BLDC motor blockage is very important. At present, the motor is protected by monitoring current and temperature. From the perspective of realizing the function, for abnormal shutdown conditions of the motor, the blockage cannot be detected by overcurrent and temperature monitoring, resulting in damage to the motor due to faults such as overtemperature or overcurrent. Therefore, how to avoid damage to the motor due to faults such as overtemperature or overcurrent and realize autonomous recovery of the control function is a problem that needs to be solved urgently.
[0056] The present application locates the target combustion cylinder according to the knock intensity of different combustion cylinders of the engine, the knock retreat angle within a preset time, and the misfire rate, and realizes the combustion control of the engine by controlling the injection amount of the target combustion cylinder, thereby overcoming the technical defect of low combustion efficiency of existing engines, avoiding damage to the motor due to faults such as overheating or overcurrent, and realizing autonomous recovery of the control function.
[0057] It should be noted that the execution subject of this embodiment can be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device capable of realizing the above functions, a motor control device, etc. The following takes the motor control device as an example to illustrate this embodiment and the following embodiments.
[0058] Based on this, the present application embodiment provides a motor control method, referring to Figure 1 , Figure 1 This is a flow chart of the first embodiment of the motor control method of the present application.
[0059] In this embodiment, the motor control method includes steps S10 to S30:
[0060] Step S10, obtaining constraint parameters, and determining whether the motor monitoring function is activated according to the constraint parameters.
[0061] It should be noted that, in this embodiment, the motor refers to a BLDC motor, that is, a brushless direct current motor, which is a type of motor that uses electronic commutation rather than mechanical brush commutation.
[0062] It is understandable that the constraint parameters are key conditions for determining whether the motor monitoring function is activated, and these parameters are usually set based on the motor's operating characteristics, environmental conditions, and usage requirements. For example, when the motor load exceeds a certain threshold, or the supply voltage exceeds a safe voltage range, the constraint parameters may trigger the activation of the motor monitoring function, and this embodiment does not impose specific restrictions on this.
[0063] It is understood that obtaining the constraint parameters can be to monitor the operating parameters of the motor in real time through sensors, such as load, temperature, current, voltage, etc., and compare these real-time data with the preset constraint parameters. When the parameters monitored in real time exceed or fall below the threshold of the constraint parameters, the system will automatically activate the motor monitoring function to ensure the safe and stable operation of the motor.
[0064] In a feasible implementation, in step S10, "determining whether the motor monitoring function is activated according to the constraint parameters" may include: determining the motor's control function, power supply voltage, motor current and controller area network signal according to the constraint parameters; detecting whether the motor's control function is activated to obtain a detection result; comparing the power supply voltage with a preset voltage range to obtain a first comparison result; comparing the motor current with a preset current threshold to obtain a second comparison result; verifying the controller area network signal to obtain a verification result; determining whether the motor monitoring function is activated based on the detection result, the first comparison result, the second comparison result and the verification result.
[0065] It should be noted that in this embodiment, the constraint parameters may be the control function of the motor, the power supply voltage, the motor current, and the controller area network signal, which is not specifically limited in this embodiment. The control function of the motor may be the control function of basic operations such as starting, stopping, accelerating, and decelerating the motor. The power supply voltage refers to the voltage received by the motor controller from the power supply during the operation of the motor. The motor current refers to the current passing through the motor when it is working. The controller area network signal is a signal used for communication within the motor control system.
[0066] It is understood that in this embodiment, the control function of the motor may be a function such as a shift control, a clutch control, and a cooling control, and this embodiment does not impose any specific restrictions on this. Whether the motor monitoring function is activated can be determined by detecting whether the motor control function is activated.
[0067] It can be understood that, in this embodiment, the supply voltage may be 12V, and the preset voltage range may be 9-16V. At this time, the supply voltage is normal, that is, the first comparison result is that the supply voltage is within the preset voltage range.
[0068] It can be understood that in this embodiment, the motor current can be 20A or 30A, and the preset current threshold can be 15A. At this time, the motor current is greater than the preset current threshold, and the current meets the conditions, that is, the second comparison result is that the motor current is greater than the preset current threshold, wherein the preset current threshold must be greater than the normal operating current and less than the overcurrent current.
[0069] It is worth mentioning that verifying the controller area network signal means determining whether the controller area network signal is correct. When the control system needs to receive instructions through the controller area network, it is necessary to judge the instructions, such as through signal timeout, E2E verification, etc. to determine whether the controller area network is correct.
[0070] In a feasible implementation manner, determining whether the motor monitoring function is activated based on the detection result, the first comparison result, the second comparison result and the verification result includes: determining that the motor monitoring function is activated when the detection result is that the motor control function is activated, the first comparison result is that the power supply voltage is within the preset voltage range, the second comparison result is that the motor current is greater than the preset current threshold, and the verification result is that the controller LAN signal is correct, and determining that the motor monitoring function is not activated when at least one of the following is not satisfied: the detection result is that the motor control function is activated, the first comparison result is that the power supply voltage is within the preset voltage range, the second comparison result is that the motor current is greater than the preset current threshold, and the verification result is that the controller LAN signal is correct.
[0071] It should be noted that, in this embodiment, the control function of the motor is shift control, that is, when the shift control is activated, the BLDC motor control is activated, and monitoring is triggered, otherwise monitoring is prohibited. The power supply voltage is 12V, and the preset voltage range is 9-16V. The 12V voltage is between 9 and 16V. At this time, the power supply voltage is normal and monitoring is triggered, otherwise monitoring is prohibited. The motor current can be 20A, and the preset current threshold can be 15A. At this time, the motor current>preset current threshold, and the current meets the conditions to trigger monitoring, otherwise monitoring is prohibited. When the controller LAN signal is correct, monitoring is triggered, otherwise monitoring is prohibited.
[0072] It is worth noting that when the above monitoring constraints are triggered at the same time, the monitoring conditions are considered to be met and the motor monitoring function is activated. If any of the monitoring constraints is not triggered, the monitoring conditions are considered to be unmet and the motor monitoring function is not activated.
[0073] In the specific implementation, when the control function of the motor is gear shift control, it is necessary to consider the situation where the motor stops abnormally due to inaccurate gear shift position signal. Therefore, it is necessary to determine whether the position sensor has an electrical fault (including Hall signal and high-precision position signal monitoring) and whether the sensor power supply voltage is abnormal. If there is no fault or abnormality, monitoring is triggered, otherwise monitoring is prohibited.
[0074] Step S20, when the motor monitoring function is activated, obtaining the motor target speed and the current actual speed.
[0075] It should be noted that the motor target speed is the speed that the system expects the motor to reach, and the current actual speed is the speed at which the motor is currently running.
[0076] It is understandable that obtaining the motor target speed and the current actual speed may include receiving a motor target speed instruction from a controller area network, and detecting the current actual speed of the motor in real time through a motor speed sensor.
[0077] Step S30, determining the motor stall condition according to the target speed and the current actual speed.
[0078] It should be noted that the motor stalling situation includes the motor stalling and the motor not stalling. Motor stalling refers to the situation where the motor cannot rotate normally due to some reason (such as overload, mechanical failure, etc.). Motor stalling will cause the internal current of the motor to increase sharply, which may damage the motor and its related components.
[0079] In a feasible implementation, step S30 may include: comparing the target speed with a first preset speed threshold to obtain a third comparison result; comparing the current actual speed with a second preset speed threshold to obtain a fourth comparison result; when the third comparison result is that the target speed is greater than the first preset speed threshold and the fourth comparison result is that the current actual speed is less than or equal to the second preset speed threshold, determining that the motor stall condition is that the motor is stalled.
[0080] It should be noted that the first preset speed threshold N1 refers to the threshold corresponding to the motor target speed, such as 50 rpm, and the second preset speed threshold N2 refers to the threshold corresponding to the current actual speed, such as 0 rpm.
[0081] It is understandable that when the motor target speed>N1 (calibrable, for example, 50rpm) and the current actual speed≤N2 (calibrable, for example, 0rpm) for a preset time length T1, it is determined that the motor is stalled, wherein the preset time length T1 may be 2s.
[0082] In a feasible implementation, step S30 may further include: when the third comparison result is that the target speed is less than or equal to the first preset speed threshold or the fourth comparison result is that the current actual speed is greater than the second preset speed threshold, determining that the motor stall condition is that the motor is not stalled.
[0083] It should be noted that when the motor target speed ≤ N1 (which can be calibrated, such as 50 rpm) or the current actual speed > N2 (which can be calibrated, such as 0 rpm), it is determined that the motor is not blocked.
[0084] Step S40: controlling the motor according to the motor stall condition.
[0085] It should be noted that controlling the motor includes restoring the control function through a restart attempt and exiting the motor monitoring function.
[0086] It is understandable that when it is determined that the motor is stalled, the main power supply of the motor can be immediately disconnected to prevent the internal current of the motor from further increasing, thereby avoiding damage to the motor and related components. In addition, in order to prevent the motor from stalling when it is restarted, a short motor start prohibition time can be set to ensure that the motor will not be restarted before the fault is eliminated.
[0087] It can be understood that when it is determined that the motor is not stalled, the normal operation of the motor will be maintained and the motor monitoring function will be exited.
[0088] The present embodiment provides a motor control method. The present embodiment can monitor the engine functional status in real time and accurately by first acquiring constraint parameters and determining whether the motor monitoring function is activated based on the constraint parameters; when the motor monitoring function is activated, the motor target speed and the current actual speed are acquired; the motor stall condition is determined based on the target speed and the current actual speed, so that the engine abnormal state can be determined quickly and accurately; the motor is controlled based on the motor stall condition, so as to avoid damage to the motor due to faults such as overtemperature or overcurrent, and realize autonomous recovery of the control function.
[0089] In summary, this embodiment determines whether the motor monitoring function is activated based on the constraint parameters. When the motor monitoring function is activated, the motor stall condition is determined based on the target speed and the current actual speed and the motor is controlled. This overcomes the technical defect that stalling cannot be detected through overcurrent and temperature monitoring, resulting in damage to the motor due to faults such as overtemperature or overcurrent. This can avoid damage to the motor due to faults such as overtemperature or overcurrent, and achieve autonomous recovery of the control function.
[0090] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can refer to the above introduction, and will not be repeated later. Figure 2 , the step S40 further includes steps S401-S403:
[0091] Step S401, when the motor stall condition is that the motor is stalled, a motor control instruction is generated.
[0092] It should be noted that the motor control instruction is an instruction for instructing the motor to perform corresponding operations. In this embodiment, when the motor stall situation is determined to be a motor stall, the system needs to take immediate measures to prevent the motor from further damage.
[0093] It can be understood that when it is determined that the motor is stalled, the trigger flag A=1 (A=1 when triggered), otherwise A=0, and when the flag A=1, a motor control instruction is generated.
[0094] Step S402, controlling the motor to actively stop and restart according to the motor control instruction, and obtaining the number of stop-restart times.
[0095] It should be noted that the number of stop-restarts is the number of times the motor is actively stopped and attempted to restart after a stall occurs. This is to verify whether the motor can recover its normal working state through restart, and also to evaluate whether the motor has a persistent fault problem. When controlling the motor to actively stop, the system will first disconnect the main power supply of the motor to ensure that the current inside the motor is zero to avoid further damage to the motor and related components. Then, the system will wait for a while to allow the heat inside the motor to dissipate to reduce the temperature of the motor. After the motor temperature drops to a safe range, the system will try to restart the motor.
[0096] In a feasible implementation, step S402 may include: controlling the motor to actively shut down and restart according to the motor control instruction, and updating the target speed to obtain a reference target speed; controlling the motor to run for a preset time, and obtaining a reference actual speed within the preset time; when the reference target speed is greater than a first preset speed threshold and the reference actual speed is less than or equal to a second preset speed threshold, executing the steps of controlling the motor to actively shut down and restart according to the motor control instruction, updating the target speed, obtaining the reference target speed, and counting the number of shutdown-restart times.
[0097] It should be noted that after the BLDC motor is shut down and the target speed or target duty cycle is set to 0 through the motor control instruction, the target speed is reset to Ntar, i.e., the reference target speed, which is usually a smaller speed, such as 500rpm. The target duty cycle can also be reset to Ptar, which is usually a smaller duty cycle, such as 30%.
[0098] It can be understood that the preset time length T2 can be 1.5s, that is, the motor is controlled to run for 1.5s. If the actual speed is always ≤N2 within 1.5s, the BLDC motor will be shut down and stop actively after 1.5s, and the target speed or target duty cycle will be set to 0, and the cumulative number of times will be increased by 1, that is, N=N0+1(N0=0).
[0099] It is worth noting that after the BLDC motor is turned off and stopped actively and the target speed or target duty cycle is set to 0, the switch is repeated and the target speed is reset, and the operation continues for 1.5s. The actual target speed is always ≤ N2 within 1.5s. Then, after 1.5s, the BLDC motor is turned off and stopped actively and the target speed or target duty cycle is set to 0. The cumulative number of times is increased by 1, that is, N=N0+2 (N0=0), and the shutdown-restart is repeated in sequence. The cumulative number of times is obtained to obtain the shutdown-restart number N.
[0100] Step S403, when the number of shutdown-restart times reaches a preset number threshold, controlling the motor to remain in a shutdown state.
[0101] It should be noted that when the number of shutdown-restart times N reaches the threshold value Nmax, the trigger flag B=1 (B=1 when triggered), otherwise B=0. When the flag B=1, the motor is controlled to be in a shutdown state and the motor is no longer allowed to work. The preset number of times can be 5 times, 10 times, etc.
[0102] It is understandable that when flag B is triggered, the corresponding control function should be prohibited. For example, if it is used for gear shift control, gear shifting and self-learning request are not allowed, and if it is used for clutch control, the clutch is opened.
[0103] It is worth noting that when flag B is triggered, the impact of control on the entire vehicle is considered to limit the performance of the vehicle. For example, measures such as limiting the vehicle speed or opening the clutch to disable certain operating conditions are used for cooling control.
[0104] It is worth noting that if flag B needs to be restored, the restoration conditions need to be met. For example, for shift control, flag B needs to be restored (B=0) in the next driving cycle, and self-learning is triggered in the next driving cycle; for example, for cooling control, as long as the motor target speed is greater than N1 and the actual motor speed is greater than N3 (calibrable, such as 10rpm) for T3s (e.g. 10s, calibrable), flag B is restored (B=0).
[0105] In this embodiment, the motor is controlled to actively stop and restart through motor control instructions to try to actively restore motor control, which can achieve autonomous recovery of the control function and ensure driving safety.
[0106] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the motor control method of the present application. More simple transformations based on this technical concept are all within the protection scope of the present application.
[0107] This application also provides a motor control device, please refer to Figure 3 , the motor control device comprises:
[0108] The determination module 10 is used to obtain constraint parameters and determine whether the motor monitoring function is activated according to the constraint parameters.
[0109] The acquisition module 20 is used to acquire the motor target speed and the current actual speed when the motor monitoring function is activated.
[0110] The determination module 10 is further configured to determine a motor stall condition according to the target rotation speed and the current actual rotation speed.
[0111] The control module 30 is used to control the motor according to the motor stall condition.
[0112] The present embodiment provides a motor control device, which can monitor the functional status of the engine in real time and accurately by first acquiring constraint parameters and determining whether the motor monitoring function is activated based on the constraint parameters; when the motor monitoring function is activated, the motor target speed and the current actual speed are acquired; the motor stall condition is determined based on the target speed and the current actual speed, so that the abnormal state of the engine can be determined quickly and accurately; the motor is controlled based on the motor stall condition, so as to avoid damage to the motor due to faults such as overtemperature or overcurrent, and realize autonomous recovery of the control function.
[0113] In summary, this embodiment determines whether the motor monitoring function is activated based on the constraint parameters. When the motor monitoring function is activated, the motor stall condition is determined based on the target speed and the current actual speed and the motor is controlled. This overcomes the technical defect that stalling cannot be detected through overcurrent and temperature monitoring, resulting in damage to the motor due to faults such as overtemperature or overcurrent. This can avoid damage to the motor due to faults such as overtemperature or overcurrent, and achieve autonomous recovery of the control function.
[0114] Optionally, the determination module 10 is also used to determine the control function, power supply voltage, motor current and controller local area network signal of the motor according to the constraint parameters; detect whether the control function of the motor is activated to obtain a detection result; compare the power supply voltage with a preset voltage range to obtain a first comparison result; compare the motor current with a preset current threshold to obtain a second comparison result; verify the controller local area network signal to obtain a verification result; determine whether the motor monitoring function is activated based on the detection result, the first comparison result, the second comparison result and the verification result.
[0115] Optionally, the determination module 10 is further used to determine that the motor monitoring function is activated when the detection result is that the motor control function is activated, the first comparison result is that the power supply voltage is within the preset voltage range, the second comparison result is that the motor current is greater than the preset current threshold, and the verification result is that the controller LAN signal is correct; and to determine that the motor monitoring function is not activated when at least one of the following is not satisfied: the detection result is that the motor control function is activated, the first comparison result is that the power supply voltage is within the preset voltage range, the second comparison result is that the motor current is greater than the preset current threshold, and the verification result is that the controller LAN signal is correct.
[0116] Optionally, the determination module 10 is also used to compare the target speed with a first preset speed threshold to obtain a third comparison result; compare the current actual speed with a second preset speed threshold to obtain a fourth comparison result; when the third comparison result is that the target speed is greater than the first preset speed threshold and the fourth comparison result is that the current actual speed is less than or equal to the second preset speed threshold, it is determined that the motor stall condition is that the motor is stalled.
[0117] Optionally, the determination module 10 is further used to determine that the motor is not stalled when the third comparison result is that the target speed is less than or equal to the first preset speed threshold or the fourth comparison result is that the current actual speed is greater than the second preset speed threshold.
[0118] Optionally, the control module 30 is also used to generate a motor control instruction when the motor is stuck; control the motor to actively shut down and restart according to the motor control instruction to obtain a shutdown-restart number; when the shutdown-restart number reaches a preset number threshold, control the motor to remain in a shutdown state.
[0119] Optionally, the control module 30 is also used to control the motor to actively shut down and restart according to the motor control instruction, and update the target speed to obtain a reference target speed; control the motor to run for a preset time, and obtain a reference actual speed within the preset time; when the reference target speed is greater than a first preset speed threshold and the reference actual speed is less than or equal to a second preset speed threshold, execute the steps of controlling the motor to actively shut down and restart according to the motor control instruction, and update the target speed to obtain the reference target speed, and count the number of shutdown-restart times.
[0120] The motor control device provided by the present application adopts the motor control method in the above embodiment, which can solve the technical problem of how to avoid damage to the motor due to faults such as overtemperature or overcurrent and realize the autonomous recovery of the control function. Compared with the prior art, the beneficial effects of the motor control device provided by the present application are the same as the beneficial effects of the motor control method provided by the above embodiment, and the other technical features in the motor control device are the same as the features disclosed in the above embodiment method, which will not be repeated here.
[0121] The present application provides a motor control device, which includes: at least one processor; and a memory that is communicatively connected to the at least one processor; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the motor control method in the above-mentioned embodiment one.
[0122] Reference below Figure 4 , which shows a schematic diagram of the structure of a motor control device suitable for implementing the embodiment of the present application. The motor control device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 4 The motor control device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0123] like Figure 4 As shown, the motor control device may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the motor control device are also stored. The processing device 1001, ROM1002, and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the motor control device to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows a motor control device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have alternatively.
[0124] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.
[0125] The motor control device provided by the present application adopts the motor control method in the above embodiment, which can solve the technical problem of how to avoid damage to the motor due to faults such as overtemperature or overcurrent and realize the autonomous recovery of the control function. Compared with the prior art, the beneficial effects of the motor control device provided by the present application are the same as the beneficial effects of the motor control method provided by the above embodiment, and the other technical features in the motor control device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.
[0126] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0127] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0128] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the motor control method in the above-mentioned embodiment.
[0129] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.
[0130] The computer-readable storage medium may be included in the motor control device; or may exist independently without being assembled into the motor control device.
[0131] The above-mentioned computer-readable storage medium carries one or more programs. When the above-mentioned one or more programs are executed by the motor control device, the motor control device: obtains constraint parameters, and determines whether the motor monitoring function is activated based on the constraint parameters; when the motor monitoring function is activated, obtains the motor target speed and the current actual speed; determines the motor stall condition based on the target speed and the current actual speed; and controls the motor according to the motor stall condition.
[0132] Computer program code for performing the operations of the present application may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0133] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0134] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.
[0135] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned motor control method, and can solve the technical problem of how to avoid damage to the motor due to faults such as overtemperature or overcurrent, and realize the autonomous recovery of the control function. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the motor control method provided by the above-mentioned embodiment, and will not be repeated here.
[0136] The present application also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the steps of the motor control method as described above are implemented.
[0137] The computer program product provided by the present application can solve the technical problem of how to avoid damage to the motor due to faults such as over-temperature or over-current and realize the autonomous recovery of the control function. Compared with the prior art, the beneficial effects of the computer program product provided by the present application are the same as the beneficial effects of the motor control method provided by the above embodiment, which will not be repeated here.
[0138] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.
Claims
1. A motor control method, characterized in that: The method comprises: Obtaining constraint parameters, and determining whether the motor monitoring function is activated according to the constraint parameters; When the motor monitoring function is activated, obtain the motor target speed and current actual speed; Determine the motor stall condition according to the target speed and the current actual speed; The motor is controlled according to the motor stall condition.
2. The method according to claim 1, characterized in that The step of determining whether the motor monitoring function is activated according to the constraint parameter includes: Determining the control function, supply voltage, motor current and controller area network signal of the motor according to the constraint parameters; Detecting whether the control function of the motor is activated and obtaining a detection result; Comparing the supply voltage with a preset voltage range to obtain a first comparison result; Comparing the motor current with a preset current threshold to obtain a second comparison result; Verifying the controller area network signal to obtain a verification result; Determine whether the motor monitoring function is activated according to the detection result, the first comparison result, the second comparison result and the verification result.
3. The method according to claim 2, characterized in that The determining whether the motor monitoring function is activated according to the detection result, the first comparison result, the second comparison result and the verification result includes: When the detection result is that the control function of the motor is activated, the first comparison result is that the supply voltage is within the preset voltage range, the second comparison result is that the motor current is greater than the preset current threshold, and the verification result is that the controller area network signal is correct, it is determined that the motor monitoring function is activated; When at least one of the following is not satisfied: the detection result is that the control function of the motor is activated, the first comparison result is that the supply voltage is within the preset voltage range, the second comparison result is that the motor current is greater than the preset current threshold, and the verification result is that the controller LAN signal is correct, it is determined that the motor monitoring function is not activated.
4. The method according to claim 1, characterized in that The determining the motor stall condition according to the target speed and the current actual speed includes: Comparing the target speed with a first preset speed threshold to obtain a third comparison result; Comparing the current actual speed with a second preset speed threshold to obtain a fourth comparison result; When the third comparison result is that the target speed is greater than the first preset speed threshold and the fourth comparison result is that the current actual speed is less than or equal to the second preset speed threshold, it is determined that the motor stall condition is that the motor is stalled.
5. The method according to claim 4, characterized in that The determining of the motor stall condition according to the target speed and the current actual speed also includes: When the third comparison result is that the target speed is less than or equal to the first preset speed threshold or the fourth comparison result is that the current actual speed is greater than the second preset speed threshold, it is determined that the motor is not blocked.
6. The method according to claim 1, characterized in that The controlling the motor according to the motor stall condition includes: When the motor stall condition is that the motor stalls, generating a motor control instruction; Controlling the motor to actively stop and restart according to the motor control instruction to obtain a stop-restart number; When the number of stop-restart cycles reaches a preset number threshold, the motor is controlled to remain in a stop state.
7. The method according to claim 6, characterized in that The step of controlling the motor to actively stop and restart according to the motor control instruction to obtain the number of stop-restart times includes: Controlling the motor to actively stop and restart according to the motor control instruction, and updating the target speed to obtain a reference target speed; Controlling the motor to run for a preset time and obtaining a reference actual speed within the preset time; When the reference target speed is greater than a first preset speed threshold and the reference actual speed is less than or equal to a second preset speed threshold, the steps of actively stopping and restarting the motor according to the motor control instruction, updating the target speed, obtaining the reference target speed, and counting the number of shutdowns and restarts are executed.
8. A motor control device, characterized in that: The motor control device comprises: A determination module, used to obtain constraint parameters and determine whether the motor monitoring function is activated according to the constraint parameters; An acquisition module is used to obtain the motor target speed and current actual speed when the motor monitoring function is activated; The determination module is further used to determine the motor stall condition according to the target speed and the current actual speed; A control module is used to control the motor according to the motor stall condition.
9. A motor control device, characterized in that: The motor control device comprises: a memory, a processor, and a motor control program stored in the memory and executable on the processor, wherein the motor control program is configured to implement the motor control method according to any one of claims 1 to 7.
10. A storage medium, characterized in that: The storage medium stores a motor control program, and when the motor control program is executed by the processor, the motor control method according to any one of claims 1 to 7 is implemented.
Citation Information
Cited By
Brushless blower fault storage and recovery method and system, electronic equipment, storage medium and program product
CN121205971A
