Motor overcurrent protection method, device, equipment, storage medium and product
By obtaining the target torque and speed and adjusting the duty cycle of the motor switch tube, the motor overcurrent problem caused by the time difference between the hardware and software layers is solved, and overcurrent protection without hardware changes is achieved, which improves versatility and application range.
Patent Information
- Application Number
- CN202411136866.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-19
- Publication Date
- 2024-12-17
AI Technical Summary
There is a time difference between opening and closing of hardware switch tubes and software algorithm layers, which makes the motor easily reach an overcurrent state at high speeds. The existing solutions are poor in versatility and require hardware changes.
By obtaining the target torque and motor speed, determine the target duty cycle of the drive command of the switch tube to be adjusted, and adjust the drive command from the fixed duty cycle to the target duty cycle during the on-off state of the switch tube to reduce the hardware Time difference between the software layer.
It effectively avoids the motor from reaching the overcurrent state, does not need to change the hardware, and improves the application range and versatility.
Smart Images

Figure CN119154221A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of motor overcurrent protection, and in particular to a motor overcurrent protection method, device, equipment, storage medium and product. Background Art
[0002] When the vehicle is accelerating or decelerating, it will trigger zero torque opening and closing. During the opening and closing process, overcurrent is likely to occur, so a reasonable switching strategy needs to be formulated to avoid it. When switching the tube, the motor controller application layer needs to calculate the duty cycle, and the IGBT hardware needs to execute the duty cycle. In this process, there is a timing problem, that is, there is a time difference between the hardware opening and closing and the software algorithm layer opening and closing. This time difference will cause the motor to increase the back electromotive force pressure difference at high speeds, and the higher the speed, the faster the current changes when the inductance and resistance are constant, and it is easy to reach an overcurrent state.
[0003] The traditional solution is to reduce the speed of current change by increasing inductance and resistance to prevent the motor from reaching an overcurrent state. However, this solution has poor versatility and requires hardware changes.
[0004] The above contents are only used to assist in understanding the technical solution of the present invention and do not constitute an admission that the above contents are prior art. Summary of the invention
[0005] The main purpose of the present invention is to provide a motor overcurrent protection method, device, equipment, storage medium and product, aiming to solve the technical problem that the motor is easily in an overcurrent state due to the time difference between hardware opening and closing and the opening and closing of the software algorithm layer.
[0006] To achieve the above object, the present invention proposes a motor overcurrent protection method, the motor overcurrent protection method comprising:
[0007] Obtain target torque and target motor speed;
[0008] Determining a target duty cycle of the drive instruction of the switch tube to be adjusted according to the target torque and the target motor speed;
[0009] In the process of adjusting the on-off state of the switch tube, the driving instruction of the switch tube to be adjusted is adjusted from the fixed duty cycle to the target duty cycle to complete the on-off operation of the switch tube.
[0010] In one embodiment, the target duty cycle instruction includes a first duty cycle, and the step of determining the target duty cycle of the drive instruction of the switch tube to be adjusted according to the target torque and the target motor speed includes:
[0011] When the target torque is zero and the motor speed is less than a first preset threshold, a first duty cycle is obtained;
[0012] Accordingly, in the process of adjusting the on-off state of the switch tube, the step of adjusting the driving instruction of the switch tube to be adjusted from the fixed duty cycle to the target duty cycle to complete the on-off operation of the switch tube includes:
[0013] In the process of adjusting the on-off state of the switch tube, the driving instruction of the switch tube to be adjusted is adjusted from the fixed duty cycle to the first duty cycle to complete the switch tube off operation.
[0014] In one embodiment, the target duty cycle instruction further includes a second duty cycle, and the step of determining the target duty cycle of the drive instruction of the switch tube to be adjusted according to the target torque and the target motor speed includes:
[0015] When the target torque is greater than zero and the motor speed is greater than a second preset threshold, a second duty cycle is obtained, wherein the first preset threshold is less than the second preset threshold;
[0016] Correspondingly, in the process of adjusting the on-off state of the switch tube, the step of adjusting the driving instruction of the switch tube to be adjusted from the fixed duty cycle to the target duty cycle to complete the on-off operation of the switch tube also includes:
[0017] In the process of adjusting the on-off state of the switch tube, the driving instruction of the switch tube to be adjusted is adjusted from the fixed duty cycle to the second duty cycle to complete the on-state operation of the switch tube.
[0018] In one embodiment, in the process of adjusting the on-off state of the switch tube, after the step of adjusting the driving instruction of the switch tube to be adjusted from the fixed duty cycle to the target duty cycle to complete the on-off operation of the switch tube, the method includes:
[0019] When it is detected that the phase current in the motor is greater than the preset current threshold for a time period reaching a first preset time threshold, the motor is determined to be in an overcurrent fault state, and the switch to be adjusted is controlled to perform a shutdown operation according to the driving instruction of the first duty cycle;
[0020] When the switch tube to be regulated is turned off, the time during which the switch tube is in the off state is counted to obtain the overcurrent turn-off duration;
[0021] When the overcurrent shutdown duration is greater than a second preset time threshold, the switch tube to be adjusted is controlled to perform a conduction operation according to the driving instruction of the second duty cycle.
[0022] In one embodiment, when the time for which the switch tube is in the off state is greater than the second preset time threshold, after the step of controlling the switch tube to be adjusted to perform a conduction operation according to the driving instruction of the second duty cycle, the method includes:
[0023] When the motor is in an overcurrent fault, the conduction operation of the switch tube to be adjusted is counted to obtain the number of fault conduction times;
[0024] When the fault conduction times exceed a preset times threshold, the switch to be adjusted is controlled to be turned off according to the driving instruction of the first duty cycle;
[0025] When the switch tube to be adjusted is turned off, detecting the power-on state of the motor;
[0026] When the motor is powered on again, the step of obtaining the target torque and the target motor speed is performed.
[0027] In one embodiment, in the process of adjusting the on-off state of the switch tube, before the step of adjusting the driving instruction of the switch tube to be adjusted from the fixed duty cycle to the target duty cycle to complete the on-off operation of the switch tube, the method further includes:
[0028] Acquiring the fixed duty cycle of the switch tube driving instruction to be adjusted;
[0029] Before the driving instruction of the switch tube to be adjusted is adjusted, the switch tube to be adjusted is controlled to work according to the driving instruction with the fixed duty cycle.
[0030] In addition, to achieve the above object, the present invention also provides a motor overcurrent protection device, the device comprising:
[0031] An acquisition module, used to obtain a target torque and a target motor speed;
[0032] A calculation module, used to determine a target duty cycle of a drive instruction of a switch tube to be adjusted according to the target torque and the target motor speed;
[0033] The execution module is used to adjust the driving instruction of the switch tube to be adjusted from a fixed duty cycle to a target duty cycle to complete the on-off operation of the switch tube during the process of adjusting the on-off state of the switch tube.
[0034] In addition, to achieve the above-mentioned purpose, the present invention also proposes a motor overcurrent protection device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, and the computer program is configured to implement the steps of the motor overcurrent protection method as described above.
[0035] In addition, to achieve the above-mentioned purpose, the present invention 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 overcurrent protection method described above are implemented.
[0036] In addition, to achieve the above-mentioned purpose, the present invention 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 overcurrent protection method as described above are implemented.
[0037] One or more technical solutions proposed in the present invention have at least the following technical effects:
[0038] The present invention obtains the target torque and the target motor speed; then determines the target duty cycle of the drive instruction of the switch tube to be adjusted according to the target torque and the target motor speed; in the process of adjusting the on-off state of the switch tube, the drive instruction of the switch tube to be adjusted is adjusted from the fixed duty cycle to the target duty cycle to complete the on-off operation of the switch tube. Since the present invention completes the on-off operation of the switch tube by adjusting from the fixed duty cycle to the target duty cycle, the time difference between the hardware opening and closing of the tube and the opening and closing of the software algorithm layer is reduced, thereby avoiding the motor from reaching an overcurrent state. Compared with the existing technology of increasing inductance and resistance to reduce the current change speed, the present invention does not require changes in hardware, and has a better application range and versatility. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0040] In order to more clearly illustrate the embodiments of the present invention 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.
[0041] Figure 1 A schematic diagram of a flow chart of a first embodiment of a motor overcurrent protection method according to the present invention;
[0042] Figure 2 A schematic diagram of a flow chart of a second embodiment of a motor overcurrent protection method according to the present invention;
[0043] Figure 3 A schematic diagram of a flow chart of a third embodiment of a motor overcurrent protection method according to the present invention;
[0044] Figure 4 A schematic diagram of a module structure of a motor overcurrent protection method and device according to an embodiment of the present invention;
[0045] Figure 5 Schematic diagram of the device structure of the hardware operating environment involved in the motor overcurrent protection method in an embodiment of the present invention.
[0046] The purpose, features and advantages of the present invention will be further described with reference to the accompanying drawings in conjunction with the embodiments. DETAILED DESCRIPTION
[0047] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present invention and are not used to limit the present invention.
[0048] In order to better understand the technical solution of the present invention, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.
[0049] The main solution of the embodiment of the present invention is: adjusting the driving instruction of the switch tube to be adjusted from a fixed duty cycle to a target duty cycle to complete the operation of turning the switch tube on and off, reducing the time difference between the hardware opening and closing of the tube and the opening and closing of the software algorithm layer, without the need to make changes to the hardware, and having better application scope and versatility.
[0050] In this embodiment, for the convenience of description, the following description is made by taking the identification of the motor controller as the execution subject.
[0051] Since the existing technology cannot reduce the time difference between the hardware opening and closing and the software algorithm layer opening and closing, and the time difference between the hardware responding to the instructions issued by the software will cause the motor to increase the back electromotive force pressure difference at high speeds, and the higher the speed, the faster the current changes when the inductance and resistance are constant, and it is easy to reach an overcurrent state.
[0052] The present invention provides a solution, which completes the on-off operation of the switch tube by adjusting the driving instruction of the switch tube to be adjusted from a fixed duty cycle to a target duty cycle, thereby reducing the time difference between the hardware opening and closing of the tube and the opening and closing of the software algorithm layer, thereby avoiding the motor from reaching an overcurrent state. Compared with the existing technology of increasing inductance and resistance to reduce the current change speed, the present invention does not require hardware changes, and has better application scope and versatility.
[0053] 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 motor overcurrent protection function, etc. The motor controller is taken as an example to illustrate this embodiment and the following embodiments.
[0054] Based on this, the embodiment of the present invention provides a motor overcurrent protection method, referring to Figure 1 , Figure 1 A schematic diagram of a flow chart of a first embodiment of a motor overcurrent protection method according to the present invention.
[0055] In this embodiment, the motor overcurrent protection method includes steps S10 to S30:
[0056] Step S10, obtaining a target torque and a target motor speed.
[0057] It should be noted that the above target torque may be the torque of the switch tube when the vehicle is accelerating or decelerating;
[0058] It should be noted that the above target motor speed may be the speed of the vehicle when accelerating or decelerating.
[0059] It is understandable that different cars need to obtain different target torques and target motor speeds, which can be calibrated according to actual conditions.
[0060] In a specific implementation, when the vehicle is accelerating or decelerating, the motor controller obtains the target torque and the target motor speed in real time.
[0061] Step S20, determining a target duty cycle of the drive instruction of the switch tube to be adjusted according to the target torque and the target motor speed.
[0062] It should be noted that the target duty cycle may be a duty cycle that needs to be applied when the switch tube to be adjusted is turned on or off.
[0063] It is understandable that different cars need to adjust the above target duty cycles differently, and they can be calibrated according to actual conditions.
[0064] In a specific implementation, when the target torque and the target motor speed obtained reach a preset threshold, the IGBT hardware first responds to the demand of the switching tube and feeds back the status of the switching tube as completed. When the switching tube status of the IGBT is monitored to be completed, the motor controller calculates the target duty cycle.
[0065] Step S30, during the process of adjusting the on-off state of the switch tube, adjusting the driving instruction of the switch tube to be adjusted from the fixed duty cycle to the target duty cycle to complete the on-off operation of the switch tube.
[0066] It should be noted that the fixed duty cycle may be a default duty cycle executed when the switch tube is working when the vehicle is accelerating or decelerating, and may be 50% in the present embodiment.
[0067] It is understandable that the fixed duty cycle is different in different cars and can be calibrated according to actual conditions.
[0068] In a specific implementation, when calculating the above-mentioned target duty cycle, the on-off operation of the above-mentioned switch tube is adjusted at the same time. Before the above-mentioned target duty cycle is calculated, the above-mentioned switch tube is adjusted according to the above-mentioned fixed duty cycle. When the above-mentioned target duty cycle is calculated, it is replaced with the above-mentioned fixed duty cycle, and the driving instruction of the above-mentioned switch tube to be adjusted is adjusted from the above-mentioned fixed duty cycle to the above-mentioned target duty cycle to complete the on-off operation of the above-mentioned switch tube.
[0069] The present embodiment provides a motor overcurrent protection method, which obtains the target torque and the target speed in real time to calculate the target duty cycle of the drive instruction of the switch tube to be adjusted. In the calculation process, the switch tube is first adjusted with the fixed duty cycle, and after the target duty cycle is calculated, the drive instruction of the switch tube to be adjusted is adjusted from the fixed duty cycle to the target duty cycle to complete the on-off operation of the switch tube. Therefore, compared with the existing technology of increasing inductance and resistance to reduce the current change speed, the present invention does not require hardware changes, and has better application scope and versatility.
[0070] 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 first embodiment can refer to the above introduction, and will not be repeated in the following. Figure 2 , Figure 2 It is a flowchart diagram of the second embodiment of the screen display method of the present application.
[0071] In this embodiment, the step S20 includes step S201, and the step S30 includes step S301:
[0072] Step S201, when the target torque is obtained to be zero and the motor speed is less than a first preset threshold, a first duty cycle is obtained.
[0073] It should be noted that the first preset threshold may be the motor speed that reaches the motor trigger switch off condition when the vehicle is decelerating, which may be 2000 rpm in this embodiment;
[0074] It should be noted that the first duty cycle may be the duty cycle of turning off the switch tube when the vehicle is decelerating.
[0075] It is understandable that when different cars are decelerating, the first preset threshold and the first duty cycle are different.
[0076] In a specific implementation, when the target torque obtained is zero and the motor speed is less than the first preset threshold, the duty cycle of the switch tube for shutting down is calculated to obtain the first duty cycle.
[0077] Step S301, during the process of adjusting the on-off state of the switch tube, adjusting the driving instruction of the switch tube to be adjusted from the fixed duty cycle to the first duty cycle to complete the switch tube off operation.
[0078] In a specific implementation, before obtaining the above-mentioned first duty cycle, the above-mentioned switch tube is first adjusted according to the above-mentioned fixed duty cycle. When the above-mentioned first duty cycle is obtained, the driving instruction of the above-mentioned switch tube to be adjusted is adjusted from the above-mentioned fixed duty cycle to the above-mentioned first duty cycle to complete the shutdown operation of the above-mentioned switch tube.
[0079] Based on the second embodiment of the present application, in the third embodiment of the present application, the same or similar contents as those of the second embodiment can be referred to the above introduction, and will not be repeated in the following. Figure 3 , Figure 3 It is a flowchart diagram of the third embodiment of the screen display method of the present application.
[0080] In this embodiment, the step S20 includes step S202, and the step S30 includes step S302:
[0081] Step S202, when the target torque is greater than zero and the motor speed is greater than a second preset threshold, a second duty cycle is obtained, wherein the first preset threshold is less than the second preset threshold.
[0082] It should be noted that the second preset threshold may be the motor speed that reaches the condition for the motor triggering the switch tube to turn on when the car is accelerating, which may be 3500 rpm in this embodiment;
[0083] It should be noted that the second duty cycle may be the duty cycle of turning on the switch tube when the car is accelerating.
[0084] It is understandable that when different cars are accelerating, the second preset threshold and the second duty cycle are different.
[0085] In a specific implementation, when the target torque obtained is greater than zero and the motor speed is greater than the second preset threshold, the duty cycle of the switch tube for conducting operation is calculated to obtain the second duty cycle.
[0086] Step S302, during the process of adjusting the on-off state of the switch tube, adjusting the driving instruction of the switch tube to be adjusted from the fixed duty cycle to the second duty cycle to complete the switch tube off operation.
[0087] In a specific implementation, before obtaining the above-mentioned second duty cycle, the above-mentioned switch tube is first adjusted according to the above-mentioned fixed duty cycle. When the above-mentioned second duty cycle is obtained, the driving instruction of the above-mentioned switch tube to be adjusted is adjusted from the above-mentioned fixed duty cycle to the above-mentioned second duty cycle to complete the conduction operation of the above-mentioned switch tube.
[0088] It should be understood that compared to the prior art, in order to prevent the motor from reaching an overcurrent state during acceleration or deceleration of the vehicle, since the target duty cycle is calculated when the motor speed reaches a preset threshold, when the actual speed of the motor reaches a speed that may cause the motor to be in an overcurrent state, the switch tube responds in advance to perform an on-off operation, thereby eliminating the time difference between the hardware opening and closing of the tube and the opening and closing of the software algorithm layer, thereby preventing the motor from reaching an overcurrent state without changing the hardware.
[0089] In a feasible implementation manner, step S30 may further include steps S31' to S33':
[0090] Step S31', when it is detected that the phase current in the motor is greater than the preset current threshold and the time reaches a first preset time threshold, it is determined that the motor is in an overcurrent fault, and the switch to be adjusted is controlled to perform a shutdown operation according to the driving instruction of the first duty cycle.
[0091] It should be noted that the preset current threshold may be a current value for determining that the motor is in an overcurrent fault;
[0092] It should be noted that the first preset time threshold may be the duration for determining that the motor is in an overcurrent fault.
[0093] It is understandable that the above-mentioned preset current threshold and the above-mentioned first preset time threshold are different in different cars, and they can be calibrated according to actual conditions.
[0094] In a specific implementation, when it is detected that the phase current in the above-mentioned motor is greater than the preset current threshold, and the existence time of the above-mentioned current reaches the above-mentioned first preset time threshold, the above-mentioned motor is determined to be in an overcurrent fault, and the switch tube to be adjusted is controlled to perform a shutdown operation according to the driving instruction of the above-mentioned first duty cycle.
[0095] Step S32': when the switch tube to be adjusted is turned off, the time the switch tube is in the off state is counted to obtain the overcurrent turn-off time.
[0096] It should be noted that the over-current shutdown duration may be the duration during which the switch tube is in the off state when the motor is in an over-current fault.
[0097] It is understandable that the above over-current shutdown time is different in different cars and can be calibrated according to actual conditions.
[0098] In a specific implementation, after the motor is in an overcurrent fault, when the switch tube to be adjusted is turned off, the time the switch tube is in the off state is timed to obtain the overcurrent turn-off duration.
[0099] Step S33': when the over-current shutdown duration is greater than a second preset time threshold, the switch tube to be adjusted is controlled to be turned on according to the driving instruction of the second duty cycle.
[0100] It should be noted that the second preset time threshold may be the time required for the switch tube to change from the off state to the on state when the motor is in an overcurrent fault.
[0101] It is understandable that the second preset time threshold mentioned above is different in different cars and can be calibrated according to actual conditions.
[0102] In a specific implementation, after the switch tube reaches the off state, the motor controller is in standby mode. When the overcurrent off time is greater than a second preset time threshold, the switch tube to be adjusted is controlled to perform a turn-on operation according to the driving instruction of the second duty cycle.
[0103] In a feasible implementation manner, step S33' may further include steps S331' to S334':
[0104] Step S331 ′: when the motor is in an overcurrent fault, the conduction operation of the switch to be adjusted is counted to obtain the fault conduction number.
[0105] It should be noted that the above-mentioned fault conduction times may be the number of times the above-mentioned switch tube is turned on when the above-mentioned motor is in an overcurrent fault.
[0106] It is understandable that the number of fault conduction times that can be performed is different in different cars, and it can be calibrated according to actual conditions.
[0107] In a specific implementation, when the motor is in an overcurrent fault, the conduction operations of the switch tube to be adjusted are counted to obtain the fault conduction times.
[0108] Step S332': when the fault conduction times exceed a preset times threshold, the switch to be adjusted is controlled to be turned off according to the driving instruction of the first duty cycle.
[0109] It should be noted that the above-mentioned preset number threshold may be the number of times that the above-mentioned switch tube needs to change from the on state to the off state when the above-mentioned motor is in an overcurrent fault.
[0110] It is understandable that the preset number thresholds are different in different cars and can be calibrated according to actual conditions.
[0111] In a specific implementation, after the motor overcurrent fault is triggered, the fault conduction times are not allowed to exceed the preset times threshold within a driving cycle. When the fault conduction times exceed the preset times threshold, the switch tube to be adjusted is controlled to perform a shutdown operation according to the driving instruction of the first duty cycle.
[0112] Step S333': when the switch to be adjusted is turned off, detecting the power-on state of the motor.
[0113] In the specific implementation, in order to protect the motor in the overcurrent fault state, when the above-mentioned switch tube to be adjusted meets all conditions and is in the off state, it will no longer change. It needs to be powered on again to perform the operation of turning on the above-mentioned switch tube to be adjusted. At this time, it is necessary to detect whether the motor is in the power-on state.
[0114] Step S334', when the motor is powered on again, the step of obtaining the target torque and the target motor speed is executed.
[0115] In a specific implementation, after detecting that the motor is powered on again, it indicates that the motor has escaped from the overcurrent fault state, and at this time, the steps of obtaining the target torque and the target motor speed are re-executed.
[0116] In a feasible implementation manner, before step S30, steps S34' to S35' may be further included:
[0117] Step S34', obtaining the fixed duty cycle of the switch tube driving instruction to be adjusted.
[0118] It should be noted that the fixed duty cycle may be a default duty cycle executed when the switch tube is working when the vehicle is accelerating or decelerating, and may be 50% in the present embodiment.
[0119] It is understandable that the fixed duty cycle is different in different cars and can be calibrated according to actual conditions.
[0120] In a specific implementation, before the switch tube to be regulated needs to be turned on or off, the fixed duty cycle is first obtained.
[0121] Step S35': before the drive instruction of the switch tube to be adjusted is adjusted, the switch tube to be adjusted is controlled to work according to the drive instruction with a fixed duty cycle.
[0122] In a specific implementation, before the driving instruction of the above-mentioned switch tube to be adjusted is adjusted, the IGBT first responds to the demand of turning on or off, and feeds back the on or off state as completed. Before receiving the driving instruction of the above-mentioned target duty cycle, the IGBT works according to the driving instruction of the above-mentioned fixed duty cycle, that is, the above-mentioned switch tube to be adjusted is controlled to work according to the driving instruction of the above-mentioned fixed duty cycle.
[0123] The present invention also provides a motor overcurrent protection device, please refer to Figure 4 , Figure 4 This is a schematic diagram of the module structure of a motor overcurrent protection method and device in an embodiment of the present invention, wherein the motor overcurrent protection device comprises:
[0124] An acquisition module 10 is used to acquire a target torque and a target motor speed;
[0125] A calculation module 20, configured to determine a target duty cycle of a drive instruction of a switch tube to be adjusted according to the target torque and the target motor speed;
[0126] The execution module 30 is used to adjust the driving instruction of the switch tube to be adjusted from a fixed duty cycle to a target duty cycle to complete the on-off operation of the switch tube during the process of adjusting the on-off state of the switch tube.
[0127] The motor overcurrent protection device provided by the present invention adopts the motor overcurrent protection method in the above embodiment, which can solve the technical problem that the motor is easily in an overcurrent state due to the time difference between the hardware opening and closing and the opening and closing of the software algorithm layer. Compared with the prior art, the beneficial effects of the motor overcurrent protection device provided by the present invention are the same as the beneficial effects of the motor overcurrent protection method provided by the above embodiment, and the other technical features in the motor overcurrent protection device are the same as the features disclosed in the above embodiment method, which will not be repeated here.
[0128] The present invention provides a motor overcurrent protection device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable 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 overcurrent protection method in the above-mentioned embodiment one.
[0129] Reference below Figure 5 , Figure 5The figure is a schematic diagram of the device structure of the hardware operating environment involved in the motor overcurrent protection method in the embodiment of the present invention. It shows a schematic diagram of the structure of the motor overcurrent protection device suitable for implementing the embodiment of the present invention. The motor overcurrent protection device in the embodiment of the present invention 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 5 The motor overcurrent protection device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0130] like Figure 5 As shown, the motor overcurrent protection 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 xxx 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 overcurrent protection device to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows a motor overcurrent protection 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.
[0131] In particular, according to the embodiments disclosed in the present invention, 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 invention include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through a communication device, or installed from the storage device 1003, or installed from the 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 invention are executed.
[0132] The motor overcurrent protection device provided by the present invention adopts the motor overcurrent protection method in the above embodiment, which can solve the technical problem of motor overcurrent protection. Compared with the prior art, the beneficial effects of the motor overcurrent protection device provided by the present invention are the same as the beneficial effects of the motor overcurrent protection method provided by the above embodiment, and other technical features in the motor overcurrent protection device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.
[0133] It should be understood that the various parts disclosed in the present invention 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.
[0134] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
[0135] The present invention provides a computer-readable storage medium having computer-readable program instructions (ie, computer program) stored thereon, and the computer-readable program instructions are used to execute the motor overcurrent protection method in the above-mentioned embodiment.
[0136] The computer-readable storage medium provided by the present invention 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 thereof. 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 thereof. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that may 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 suitable medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination thereof.
[0137] The computer-readable storage medium may be included in the motor overcurrent protection device; or may exist independently without being assembled into the motor overcurrent protection device.
[0138] 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 overcurrent protection device, the motor overcurrent protection device: obtains the target torque and the target motor speed; determines the target duty cycle of the drive instruction of the switch tube to be adjusted according to the target torque and the target motor speed; in the process of adjusting the on-off state of the switch tube, adjusts the drive instruction of the switch tube to be adjusted from the fixed duty cycle to the target duty cycle to complete the on-off operation of the switch tube.
[0139] Computer program code for performing the operations of the present invention 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., through the Internet using an Internet service provider).
[0140] 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 invention. 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 the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0141] The modules involved in the embodiments of the present invention may be implemented by software or hardware, wherein the name of the module does not limit the unit itself in some cases.
[0142] The readable storage medium provided by the present invention is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned motor overcurrent protection method, and can solve the technical problem of motor overcurrent protection. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present invention are the same as the beneficial effects of the motor overcurrent protection method provided by the above-mentioned embodiment, and will not be repeated here.
[0143] The present invention 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 overcurrent protection method as described above are implemented.
[0144] The computer program product provided by the present invention can solve the technical problem of motor overcurrent protection. Compared with the prior art, the beneficial effects of the computer program product provided by the present invention are the same as the beneficial effects of the motor overcurrent protection method provided by the above embodiment, which will not be repeated here.
[0145] The above descriptions are only some embodiments of the present invention, and are not intended to limit the patent scope of the present invention. All equivalent structural changes made using the contents of the present invention's specification and drawings under the technical concept of the present invention, or directly / indirectly applied in other related technical fields, are included in the patent protection scope of the present invention.
Claims
1. A motor overcurrent protection method, characterized in that: The motor overcurrent protection method comprises: Obtain target torque and target motor speed; Determining a target duty cycle of a drive instruction of the switch tube to be adjusted according to the target torque and the target motor speed; In the process of adjusting the on-off state of the switch tube, the driving instruction of the switch tube to be adjusted is adjusted from the fixed duty cycle to the target duty cycle to complete the on-off operation of the switch tube.
2. The motor overcurrent protection method according to claim 1, characterized in that: The target duty cycle includes a first duty cycle, and the step of determining the target duty cycle of the drive instruction of the switch tube to be adjusted according to the target torque and the target motor speed includes: When the target torque is zero and the motor speed is less than a first preset threshold, a first duty cycle is obtained; Accordingly, in the process of adjusting the on-off state of the switch tube, the step of adjusting the driving instruction of the switch tube to be adjusted from the fixed duty cycle to the target duty cycle to complete the on-off operation of the switch tube includes: In the process of adjusting the on-off state of the switch tube, the driving instruction of the switch tube to be adjusted is adjusted from the fixed duty cycle to the first duty cycle to complete the switch tube off operation.
3. The motor overcurrent protection method according to claim 2, characterized in that: The target duty cycle also includes a second duty cycle, and the step of determining the target duty cycle of the drive instruction of the switch tube to be adjusted according to the target torque and the target motor speed includes: When the target torque is greater than zero and the motor speed is greater than a second preset threshold, a second duty cycle is obtained, wherein the first preset threshold is less than the second preset threshold; Correspondingly, in the process of adjusting the on-off state of the switch tube, the step of adjusting the driving instruction of the switch tube to be adjusted from the fixed duty cycle to the target duty cycle to complete the on-off operation of the switch tube also includes: In the process of adjusting the on-off state of the switch tube, the driving instruction of the switch tube to be adjusted is adjusted from the fixed duty cycle to the second duty cycle to complete the on-state operation of the switch tube.
4. The motor overcurrent protection method according to claim 3, characterized in that: In the process of adjusting the on-off state of the switch tube, after the step of adjusting the driving instruction of the switch tube to be adjusted from the fixed duty cycle to the target duty cycle to complete the on-off operation of the switch tube, the method includes: When it is detected that the phase current in the motor is greater than the preset current threshold for a time period reaching a first preset time threshold, the motor is determined to be in an overcurrent fault state, and the switch to be adjusted is controlled to perform a shutdown operation according to the driving instruction of the first duty cycle; When the switch tube to be regulated is turned off, the time during which the switch tube is in the off state is counted to obtain the overcurrent turn-off duration; When the overcurrent shutdown duration is greater than a second preset time threshold, the switch tube to be adjusted is controlled to perform a conduction operation according to the driving instruction of the second duty cycle.
5. The motor overcurrent protection method according to claim 4, characterized in that: After the step of controlling the switch tube to be adjusted to perform a conduction operation according to the driving instruction of the second duty cycle when the time for which the switch tube is in the off state is greater than the second preset time threshold, the method includes: When the motor is in an overcurrent fault, the conduction operation of the switch tube to be adjusted is counted to obtain the number of fault conduction times; When the fault conduction times exceed a preset times threshold, the switch to be adjusted is controlled to be turned off according to the driving instruction of the first duty cycle; When the switch tube to be adjusted is turned off, detecting the power-on state of the motor; When the motor is powered on again, the step of obtaining the target torque and the target motor speed is performed.
6. The motor overcurrent protection method according to any one of claims 1 to 5, characterized in that: In the process of adjusting the on-off state of the switch tube, before the step of adjusting the driving instruction of the switch tube to be adjusted from the fixed duty cycle to the target duty cycle to complete the on-off operation of the switch tube, the method further includes: Acquiring the fixed duty cycle of the switch tube driving instruction to be adjusted; Before the driving instruction of the switch tube to be adjusted is adjusted, the switch tube to be adjusted is controlled to work according to the driving instruction with the fixed duty cycle.
7. A motor overcurrent protection device, characterized in that: The device comprises: An acquisition module, used to obtain a target torque and a target motor speed; A calculation module, used to determine a target duty cycle of a drive instruction of a switch tube to be adjusted according to the target torque and the target motor speed; The execution module is used to adjust the driving instruction of the switch tube to be adjusted from a fixed duty cycle to a target duty cycle to complete the on-off operation of the switch tube during the process of adjusting the on-off state of the switch tube.
8. A motor overcurrent protection device, characterized in that: The device comprises: 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 overcurrent protection method according to any one of claims 1 to 6.
9. A storage medium, characterized in that: The storage medium 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 overcurrent protection method according to any one of claims 1 to 6 are implemented.
10. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the motor overcurrent protection method according to any one of claims 1 to 6 are implemented.
