Driving method and device of electric component, electric component and storage medium

By designing preset drive curves in electric components such as smart door locks and correcting them based on real-time current and acceleration, the wear problem during the acceleration and deceleration phases of the lock tongue is solved, enabling smooth movement of electric components and obstacle detection, thus extending their service life.

CN114826078BActive Publication Date: 2025-12-12SHENZHEN OURUIBO ELECTRONICS
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210518929.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-12
Publication Date
2025-12-12
Estimated Expiration
2042-05-12

AI Technical Summary

Technical Problem

The sudden acceleration changes of the bolt during acceleration and deceleration phases of smart door locks lead to increased wear, which may be more severe when encountering obstacles, thus reducing their service life.

Method used

A method for driving electric components is designed. By using a preset driving curve, the method makes corrections based on real-time current, stroke, and acceleration to ensure smooth acceleration transition and intelligently identify obstacles to reduce wear.

Benefits of technology

By smoothing acceleration transitions and intelligent obstacle detection, wear on electric components is reduced, extending their service life.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114826078B_ABST
    Figure CN114826078B_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide a driving method and device of an electric component, the electric component and a storage medium. The method is applied to an electric component driven by electricity, and the method comprises the following steps: driving the electric component to operate based on a preset driving curve; acquiring real-time current, real-time stroke and real-time acceleration of the electric component; correcting the driving curve according to the real-time current, the real-time stroke and the real-time acceleration; and continuing to drive the electric component to operate according to the corrected driving curve. According to the technical scheme provided by the embodiments of the present application, the driving curve is designed in advance, and the driving curve is corrected based on the real-time current, the real-time stroke and the real-time acceleration of the electric component during the movement of the electric component, so that the corrected driving curve can ensure that the acceleration of the electric component is smoothly transitioned, thereby reducing the impact on the electric component during the movement of the electric component, reducing the wear degree of the electric component, and further increasing the service life of the electric component.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of mechanical movement, more particularly, to a driving method and device of an electric component, the electric component and a storage medium. BACKGROUND

[0002] The intelligent door lock is a kind of intelligent home equipment which is widely used, and it drives the lock tongue on the intelligent door lock to pop out or retract through electricity.

[0003] In the related art, the movement process of the lock tongue includes an acceleration stage, a uniform speed stage and a deceleration stage to realize the pop-out process or the retraction process, wherein the acceleration of the lock tongue in the acceleration stage is a fixed value, the acceleration of the lock tongue in the deceleration stage is also a fixed value, and the acceleration direction in the acceleration stage is opposite to the acceleration direction in the deceleration stage.

[0004] However, in the process of switching from the acceleration stage to the uniform speed stage and in the process of switching from the uniform speed stage to the deceleration stage, the acceleration of the lock tongue will change suddenly, at this time, the impact on the lock tongue will be larger, the wear degree of the lock tongue will increase, and thus the service life of the intelligent door lock will be reduced, and in the process of the lock tongue running, the lock tongue may encounter an obstacle, at this time, the wear of the lock tongue will also be increased, and the service life of the intelligent door lock will be reduced. SUMMARY

[0005] The present application provides a driving method and device of an electric component, the electric component and a storage medium.

[0006] In a first aspect, the present application provides a driving method of an electric component, the method is applied to an electric component driven by electricity, and the method comprises the following steps: driving the electric component to run based on a preset driving curve; acquiring real-time current, real-time stroke and real-time acceleration of the electric component; correcting the driving curve according to the real-time current, the real-time stroke and the real-time acceleration; and continuing to drive the electric component to run according to the corrected driving curve.

[0007] In some optional embodiments, the step of correcting the driving curve according to the real-time current, the real-time stroke and the real-time acceleration specifically comprises: in the Nth driving cycle of the electric component, wherein N is an integer greater than 1, acquiring historical stroke records of a first target driving cycle and historical acceleration information of the first target driving cycle of the electric component; wherein the first target driving cycle is before the Nth driving cycle; and correcting the driving curve according to the real-time current, the real-time stroke, the real-time acceleration, the historical stroke records and the historical acceleration information.

[0008] In some optional embodiments, the step of correcting the driving curve based on the real-time current, the real-time stroke, the real-time acceleration, the historical stroke record and the historical acceleration information specifically comprises: comparing the real-time acceleration with the historical acceleration information to obtain a comparison result; and adjusting the real-time current according to the comparison result, so as to correct the driving curve.

[0009] In some optional embodiments, the electric component comprises a motor and a movable part connected to the motor, and the method further comprises: obtaining the real-time current and comparing the real-time current with the reference current to determine a difference between the real-time current and the reference current; wherein the reference current represents a current corresponding to a stroke at a position corresponding to the real-time stroke in a first target driving period of the electric component; and if the difference is greater than or equal to a first threshold value, sending first prompt information to an associated device of the electric component, the first prompt information being used to remind that there is an obstacle on a movement path of the movable part.

[0010] In some optional embodiments, the method further comprises: if the difference is greater than or equal to a second threshold value, controlling the motor to move reversely; wherein the second threshold value is greater than the first threshold value.

[0011] In some optional embodiments, the electric component further comprises a counter, and the method further comprises: if the difference is greater than or equal to the second threshold value, accumulating a preset value to a counter value; wherein the second threshold value is greater than the first threshold value; obtaining the counter value; if the counter value is greater than or equal to a value threshold value, sending second prompt information to the associated device of the electric component, the second prompt information being used to remind that there is a potential failure of the electric component; obtaining determination state information sent by the associated device, the determination state information representing a reply of the associated device to the second prompt information and containing an indication of the potential failure; and based on the determination state information, if the determination state information represents that the potential failure is ignored or accepted, correcting the driving curve.

[0012] In some optional embodiments, the method further comprises: saving the corrected driving curve, the corrected driving curve being used to drive the motor in a second target driving period of the electric component; wherein the second target driving period is after the Nth driving period.

[0013] In a second aspect, the embodiments of the present application provide a driving device of an electric component, characterized in that the device comprises: a first driving module configured to drive the electric component to run based on a preset driving curve; an obtaining module configured to obtain a real-time current, a real-time stroke and a real-time acceleration of the electric component; a correction module configured to correct the driving curve based on the real-time current, the real-time stroke and the real-time acceleration; and a second driving module configured to continue to drive the electric component to run according to the corrected driving curve.

[0014] In a third aspect, an embodiment of the present application provides an electric component, comprising a processor and a memory; one or more programs are stored in the memory and configured to be executed by the processor, and the one or more programs are configured to execute the method of the first aspect.

[0015] In a fourth aspect, an embodiment of the present application provides a computer readable storage medium storing processor executable program code, and the computer readable storage medium comprises the stored program code, wherein the method of the first aspect is executed when the program code is running.

[0016] The technical scheme provided by the embodiments of the present application at least has the following technical effects: by pre-designing the driving curve, in the movement process of the electric component, the driving curve is corrected based on the real-time current, real-time stroke and real-time acceleration of the electric component, so that the corrected driving curve can ensure that the acceleration of the electric component is smoothly transitioned, to reduce the impact on the electric component in the movement process, intelligently judge whether there is an obstacle in the operation of the electric component, reduce the wear degree of the electric component, and thus increase the service life of the electric component. BRIEF DESCRIPTION OF DRAWINGS

[0017] In order to more clearly illustrate the technical schemes in the embodiments of the present application, the drawings needed in the embodiment description will be briefly introduced as follows. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor.

[0018] Figure 1 is a schematic diagram of experiment 1 provided by an embodiment of the present application.

[0019] Figure 2 is a schematic diagram of experiment 2 provided by an embodiment of the present application.

[0020] Figure 3 is a speed-time relationship diagram provided by an embodiment of the present application.

[0021] Figure 4 is a speed-time relationship diagram provided by an embodiment of the present application.

[0022] Figure 5 is a schematic diagram of a smart home device provided by an embodiment of the present application.

[0023] Figure 6 is a flowchart of a driving method of an electric component provided by an embodiment of the present application.

[0024] Figure 7 is a flowchart of a driving method of an electric component provided by another embodiment of the present application.

[0025] Figure 8 is a flow chart of a driving method of an electric component provided by another embodiment of the present application.

[0026] Figure 9 is a block diagram of a driving device of an electric component provided by an embodiment of the present application.

[0027] Figure 10 is a structural block diagram of an electric component provided by an embodiment of the present application.

[0028] Figure 11 is a structural block diagram of a computer readable storage medium provided by an embodiment of the present application. DETAILED DESCRIPTION

[0029] The embodiments of the present application will be described in detail below with reference to the drawings, in which the same or similar components have the same reference numerals throughout the several views. The embodiments described below are exemplary only, and are not intended to limit the present application.

[0030] In order to make the technical personnel in the art better understand the scheme of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, not all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work fall within the scope of protection of the present application.

[0031] The inventor designed the following two groups of experiments when studying the movement process of the electric component. The two groups of experiments are described below respectively.

[0032] Figure 1 A schematic diagram of experiment 1 provided by an embodiment of the present application is shown. In experiment 1, a water cup 1 is placed at the starting position of slide rail A, a water cup 2 is placed at the starting position of slide rail B, the length and friction coefficient of slide rail A and slide rail B are the same, and the water amount in water cup 1 and water cup 2 is also the same, the water cup 1 is controlled to move on slide rail A according to the curve in (a) to the end position of slide rail A, the water cup 2 is controlled to move on slide rail B according to the trapezoidal curve in (b) to the end position of slide rail B, and it is found that the shaking degree of water in water cup 2 is much larger than that of water in water cup 1. Figure 1 Figure 1

[0033] Figure 2 ​​A schematic diagram of experiment 1 provided by an embodiment of the present application is shown. In experiment 2, a water cup 1 is placed at the end position of slide rail A, and a water cup 2 is placed at the end position of slide rail B. The length and friction coefficient of slide rail A and slide rail B are the same, and the water amount in the water cup 1 and the water cup 2 is also the same. The water cup 1 is controlled to move on the slide rail A according to the curve in (a) to the start position of the slide rail A, and the water cup 2 is controlled to move on the slide rail B according to the trapezoidal curve in (b) to the start position of the slide rail B. It is found from the observation of the experimental results that the water in the water cup 2 is shaken more greatly than the water in the water cup 1. Figure 1 Figure 1

[0034] Based on the results of experiment 1 and experiment 2, the inventors analyze and obtain the following conclusions: when the electric component is in a moving state, if the relationship between the speed and the time of the electric component forms a trapezoidal curve as shown in (a), the acceleration is not smooth, that is, the acceleration at the connection position between the acceleration stage and the uniform speed stage, and the connection position between the uniform speed stage and the deceleration stage is suddenly changed, thus resulting in a larger impact on the electric component, and further resulting in an increased wear degree of the electric component and a reduced service life of the electric component. On the contrary, when the relationship between the speed and the time of the electric component forms a curve as shown in (b), in the acceleration stage, the acceleration of the electric component gradually decays to zero, and the acceleration at the connection position between the acceleration stage and the uniform speed stage will not suddenly change, and in the deceleration stage, the acceleration in the opposite direction gradually increases, and the acceleration at the connection position between the uniform speed stage and the deceleration stage will not suddenly change, which can reduce the impact on the electric component, reduce the wear degree of the electric component, and further increase the service life of the electric component. Figure 3 Figure 4

[0035] Based on the above conclusions, the inventors design a new driving method of the electric component, pre-design a driving curve, and correct the driving curve based on the real-time current, real-time stroke and real-time acceleration of the electric component during the movement of the electric component, so that the corrected driving curve can ensure that the acceleration of the electric component is smoothly transitioned, so as to reduce the impact on the electric component during the movement of the electric component, intelligently judge whether there is an obstacle in the movement of the electric component, reduce the wear degree of the electric component, and further increase the service life of the electric component.

[0036] Referring to FIG. 1, a schematic diagram of a smart home device provided by an embodiment of the present application is shown. The smart home device can be a smart door lock, an electric curtain, an electric roller shutter door, an electric sliding door, an electric window, etc. Figure 5

[0037] The smart home device includes an electric component. The electric component includes a power driving module and a mechanical movement module. The power driving module and the mechanical movement module are electrically connected.

[0038] ​​​​​The power driving module is used to provide power support for the mechanical movement performed by the mechanical movement module. The power driving module can be a motor. In the embodiments of the present application, the size of the driving force provided by the driving module can be dynamically adjusted according to the acceleration requirement of the mechanical movement module, that is, the motor is a variable speed motor, to adapt to the power adjustment requirement of the mechanical movement module.

[0039] The mechanical movement module is used to perform mechanical movement, which can be extension and retraction movement, rotation movement, etc. In the case of the smart home device being a smart door lock, the mechanical movement module can be a lock tongue in the smart door lock; in the case of the smart home device being an electric roller shutter door, the mechanical movement module can be a rotating shaft for controlling the rolling or extension of the electric roller shutter door; in the case of the smart home device being an electric sliding door, the mechanical movement module can be a mechanical structure for controlling the opening or closing of the electric sliding door; in the case of the smart home device being an electric sliding door, the mechanical movement module can be a mechanical structure for controlling the opening or closing of the electric window; in the case of the smart home device being an electric sliding door, the mechanical movement module can be a mechanical structure for controlling the opening or closing of the electric curtain, etc.

[0040] Reference Figure 6 which shows a flowchart of the control method of the electric component provided by an embodiment of the present application. The method is applied to an electric component driven by power, and the method comprises the following steps S601-S604.

[0041] Step S601, driving the electric component to run based on a preset driving curve.

[0042] The preset driving curve comprises a corresponding relationship between the size of the driving force provided by the power driving module and the time. The driving force can be current or voltage.

[0043] In some embodiments, the preset driving curve can be obtained from the cloud, or read from the local. In the case of the first movement of the electric component, the communication module electrically connected with the electric module can send a driving curve obtaining request to the cloud server, and the driving curve obtaining request carries the model of the electric component. After receiving the driving curve returned by the cloud server and matching the model of the electric component, the communication module sends the received driving curve to the electric component. In the case of the i th movement, the driving curve of the (i-1) th movement can be read from the preset storage position in the local as the preset driving curve, i is an integer greater than 2.

[0044] In some embodiments, the preset driving curve is determined according to a desired motion curve of the electric component. The desired motion curve can be a relationship between the speed of the electric component and time, or a relationship between the required current of the electric component and time. According to the desired motion curve, an acceleration curve of the electric component (i.e., a corresponding relationship between acceleration and time) can be obtained. The power driver can determine the driving force (i.e., the current) required at each moment according to the acceleration curve, and then determine the preset driving curve. It should be noted that the process of determining the driving curve based on the desired motion curve can be determined by the power driver, or can be determined by the cloud server and then sent to the smart home device including the electric component.

[0045] The power driver provides driving force to the electric component according to the preset driving curve, so that the electric component can perform mechanical movement.

[0046] In step S602, the real-time current, real-time stroke, and real-time acceleration of the electric component are obtained.

[0047] In some embodiments, a current detection device is installed on the electric component to detect the real-time current of the electric component. The current detection device can be a current sensor, which can be a shunt, an electromagnetic current transformer, an electronic current transformer, etc.

[0048] In some embodiments, the electric component can determine the distance between the electric component and the starting position through the distance sensor, and then determine the real-time stroke of the electric component.

[0049] In some embodiments, an acceleration sensor is arranged on the electric component to obtain the real-time acceleration of the electric component through the acceleration sensor.

[0050] In step S603, the driving curve is corrected according to the real-time current, real-time stroke, and real-time acceleration.

[0051] In the case of normal movement of the electric component, the current of the electric component when moving to a specified position should be substantially the same. If the electric component encounters resistance during movement, the motor will be blocked (i.e., the motor still outputs torque when the speed is zero), and the real-time current will also increase accordingly. At this time, the driving curve needs to be corrected according to the real-time acceleration, so that the speed parameter and the acceleration parameter of the electric component during movement are smoothly transitioned, thereby reducing the impact on the electric component during movement, reducing the wear degree of the electric component, and thereby increasing the service life of the electric component.

[0052] In some embodiments, step 603 can be replaced by the following sub-steps: obtaining the historical travel record of the electric component in the first target driving period and the historical acceleration information of the electric component in the first target driving period in the Nth driving period of the electric component; correcting the driving curve according to the real-time current, the real-time travel, the real-time acceleration, the historical travel record and the historical acceleration information; wherein the first target driving period is before the Nth driving period. The first target driving period can be one or more.

[0053] The historical travel record includes the relationship between the travel and the current of the electric component in the historical movement. In the case that the first target driving period is multiple, the electric component can obtain the relationship between the travel and the current in the multiple driving periods before the current driving period, and then statistically analyze it to obtain the historical travel record of the electric component in the first target driving period. Alternatively, the electric component statistically analyzes by the following steps: for each travel, the electric component obtains the average value of the current corresponding to the travel in the multiple driving periods as the historical travel record of the electric component in the target driving period. In the case that the first target driving period is one, the electric component can obtain the relationship between the travel and the current in the last driving period as the historical travel record of the first target driving period.

[0054] The historical acceleration information includes the relationship between the travel and the acceleration of the electric component in the historical movement. In the case that the first target driving period is multiple, the electric component can obtain the relationship between the travel and the acceleration in the multiple driving periods before the current driving period, and then statistically analyze it to obtain the historical acceleration information of the electric component in the target driving period. In the case that the first target driving period is one, the electric component can obtain the relationship between the travel and the acceleration in the last driving period as the historical acceleration information of the electric component in the first target driving period. And an acceleration sensor is arranged on one side of the latch bolt, and the current of the motor is driven by the measurement value of the acceleration sensor. Thus, the historical current information in different periods can be obtained.

[0055] Optionally, the driving curve is corrected according to the real-time current, the real-time stroke, the real-time acceleration, the historical stroke record and the historical acceleration information. Specifically, the real-time acceleration is compared with the historical acceleration information to obtain a comparison result; the real-time current corresponding to the real-time acceleration is compared with the historical current under the same stroke state, and the real-time current and the historical current are compared under the same stroke state. Whether there is an obstacle or a door or other deformation in the running process of the lock tongue is determined. If the real-time current and the historical current are greatly different, i.e., the real-time current is greater than the historical current by more than 20 mA under the same stroke state, it is indicated that there is an obstacle or the door is deformed. If the obstacle or the deformation is acceptable, the driving curve is corrected, and the lock tongue is driven according to the changed current curve in the next cycle. If the new driving curve is not acceptable, the obstacle is cleaned or the deformed door or other objects are replaced, so that the lock tongue can be driven according to the original normal driving curve in the historical cycle. The speed parameter and the acceleration parameter of the electric component in the movement process are smoothly transitioned.

[0056] In other possible implementations, the electric component can also correct the driving curve according to the real-time current, the real-time stroke, the real-time speed, the historical stroke record and the historical speed information. Specifically, the real-time speed is compared with the historical speed information to obtain a comparison result; and the real-time current is adjusted according to the comparison result, so as to correct the driving curve. If the real-time speed is inconsistent with the historical speed, it is indicated that the acceleration of the electric component in the movement process is too large or too small. At this time, the electric component adjusts the acceleration to match the speed curve, and then the real-time current of the electric component is adjusted to the driving current corresponding to the adjusted acceleration, so as to correct the driving curve.

[0057] In step S604, the electric component is continuously driven to run according to the corrected driving curve.

[0058] The electric power drive provides driving force according to the corrected driving curve to drive the electric component to continue running.

[0059] In some embodiments, the electric component saves the corrected driving curve, and the corrected driving curve is used to drive the motor in a second target driving period of the electric component. The second target driving period is after the Nth driving period. The second target driving period can be one or more. Optionally, the electric component saves the corrected driving curve after the current driving period ends, and the storage location is not limited in the embodiments of the application.

[0060] In summary, the technical scheme provided by the embodiments of the present application, the driving curve is designed in advance, and during the movement of the electric component, the driving curve is corrected based on the real-time current, real-time stroke and real-time acceleration of the electric component, so that the corrected driving curve can ensure that the acceleration of the electric component is smoothly transitioned, so as to reduce the impact on the electric component during movement, reduce the wear degree of the electric component, and further increase the service life of the electric component.

[0061] In some embodiments, if the real-time current of the moving part in the electric component running to a certain position is significantly increased compared with the current corresponding to the position in the historical stroke record, it indicates that there is probably an obstacle on the movement path of the moving part, at this time the electric component reminds the user through its associated device to remove the obstacle in time, so as to avoid the influence of the obstacle on the subsequent movement process of the electric component, and also avoid the damage of the electric component caused by the impact with the obstacle.

[0062] Please refer to Figure 7 which shows a flowchart of a control method of an electric component provided by an embodiment of the present application. The method comprises the following steps.

[0063] Step S701, driving the electric component to run based on the preset driving curve.

[0064] Step S702, obtaining the real-time current, real-time stroke and real-time acceleration of the electric component.

[0065] Step S703, comparing the real-time current with the reference current to determine the difference between the real-time current and the reference current.

[0066] The reference current represents the current corresponding to the stroke at the corresponding position in the N-1th driving period of the electric component. N is an integer greater than 2, and the electric component can perform complete mechanical movement in the N-1th period. For example, the lock tongue of the intelligent door lock performs two movement processes of pop-up and retraction in the N-1th driving period.

[0067] Step S704, if the difference is greater than or equal to the first threshold value, sending the first prompt information to the associated device of the electric component.

[0068] The first threshold value is set according to experiments or experience. Optionally, in an experimental environment, an obstacle is placed on the movement path of the moving part or there is a door deformation or other related object deformation, and the real-time current when the moving part collides with the obstacle is detected when the moving part is controlled to move, and the first threshold value is determined according to the comparison result between the real-time current and the reference current corresponding to the position where the moving part collides with the obstacle in the N-1th driving period. Exemplarily, the first threshold value is 5mA.

[0069] The associated device of the electric component can be a smart phone, a tablet computer, a personal computer, a smart gateway, etc., or an electronic device for controlling a smart home device provided with the electric component, for example, the electric component is a lock tongue in a smart door lock, and the associated device of the lock tongue can be a smart remote controller for controlling the smart door lock.

[0070] The first prompt information is used to remind that there is an obstacle on the movement path of the movable member. The first prompt information can be in the form of voice, text, or light, which is not limited in the embodiments of the present application. The user can clean the obstacle on the movement path of the movable member according to the first prompt information, so that the subsequent movement process of the movable member will not be hindered.

[0071] In the embodiments of the present application, if the current at a certain position of the electric component is significantly increased compared with the current at the position in the normal driving cycle, it means that there is probably an obstacle or a deformation of the related member at the position, and at this time, the user is reminded by the associated device of the electric component to clean the obstacle in time, so as to avoid the influence of the obstacle on the subsequent movement process of the electric component, and also to avoid the damage of the electric component caused by the impact with the obstacle.

[0072] In some embodiments, the electric component can set a first counter to accumulate a first preset value, and then obtain the counter value of the first counter. If the counter value of the first counter is greater than or equal to a first value threshold, the first prompt information is sent to the associated device of the electric component, the first determination state information sent by the associated device is obtained, the first determination state information represents the reply of the associated device to the first prompt information, and contains the indication of the obstacle; based on the first determination state information, if the first determination state information represents to ignore or accept the obstacle, the driving curve is modified.

[0073] The preset value is set by the technician in advance. For example, the preset value is 1.

[0074] The counter value of the first counter is the number of times that the difference between the real-time current and the reference current is greater than or equal to the first threshold. The first value threshold is set by the designer of the electric component according to experiments or experience. For example, the first value threshold is 5.

[0075] In the embodiments of the present application, the number of times that the difference between the real-time current and the reference current is greater than the first threshold is counted. If the number of times exceeds the first value threshold, the user is reminded by the associated device of the electric component that there is probably an obstacle on the movement path of the movable member of the electric component. The user can provide maintenance service for the electric component according to the reminder information, so as to avoid serious damage of the electric component and prolong the service life of the electric component.

[0076] It should be noted that the associated device also displays at least one interactive control when displaying the first prompt information, and the interactive control is used to trigger the processing indication of the obstacle.

[0077] In a specific example, the first prompt information is also displayed below the "ignore" control and the "processing" interactive control. If a trigger signal for the "ignore" control is received, the associated device sends an ignore indication (i.e., the first determination state information) to the electric component. At this time, the electric component corrects the driving curve according to the real-time current, real-time acceleration, and real-time stroke information, and continues to control the electric component to operate according to the corrected driving curve.

[0078] If a trigger signal for the "processing" control is received, the control of the electric component is suspended, and the operation is continued after a preset time length or a processing completion indication is received. The preset time length is set according to actual needs, and the processing completion indication is triggered by the user after removing the obstacle on the associated device. In this way, after the user removes the obstacle, the electric component continues to operate, which can ensure the safety of the operation of the electric component and prolong the service life.

[0079] Please refer to Figure 8 which shows a flowchart of a control method of an electric component provided by another embodiment of the application. The method includes the following steps.

[0080] Step S801, driving the electric component to operate based on a preset driving curve.

[0081] Step S802, obtaining real-time current, real-time stroke, and real-time acceleration of the electric component.

[0082] Step S803, comparing the real-time current with the reference current to determine a difference between the real-time current and the reference current.

[0083] Step S804, if the difference is greater than or equal to a second threshold value, controlling the motor to move reversely, and a counter adds a preset value.

[0084] The second threshold value is greater than the first threshold value. The second threshold value is set according to experiments or experience. Exemplarily, the second threshold value is 8 mA.

[0085] In the embodiment of the application, if the current of the electric component at a certain position is significantly increased compared with the current at the position in a normal driving cycle, it can be predicted that the probability of damage to the moving part when the moving part continues to move forward is greatly increased. To avoid this situation, the motor can be controlled to move reversely, so as to control the moving part to move in the opposite direction, reduce the probability of damage to the moving part, and prolong the service life of the electric component.

[0086] The preset value is set by a technician in advance. Exemplarily, the preset value is 1.

[0087] Step S805, obtain the counter value.

[0088] The counter value is the number of times that the difference between the real-time current and the reference current is greater than or equal to the second threshold value.

[0089] Step S806, if the counter value is greater than or equal to the numerical threshold value, send the second prompt information to the associated device of the electric component.

[0090] The numerical threshold value is set by the designer of the electric component according to experiments or experience. For example, the numerical threshold value is 5. The second prompt information is used to remind that the electric component has a potential failure. The second prompt information can be in the form of voice, text, or light, which is not limited in the embodiments of the present application. The user can repair the electric component according to the second prompt information to avoid serious damage to the electric component.

[0091] In the embodiments of the present application, the number of times that the real-time current is greater than the reference current is counted. If the number of times exceeds the numerical threshold value, the user is reminded by the associated device of the electric component that the electric component may have an obstacle. The user can provide repair services for the electric component according to the reminder information to avoid serious damage to the electric component and prolong the service life of the electric component.

[0092] Step S807, obtain the determination state information sent by the associated device.

[0093] The determination state information represents the reply of the associated device to the second prompt information and contains an indication of the potential failure.

[0094] It should be noted that the associated device displays at least one interactive control when displaying the second prompt information. The interactive control is used to trigger the indication of the potential failure. In a specific example, the "Ignore" control and the "Repair" control are displayed below the second prompt information. If a trigger signal for the "Ignore" control is received, the electric component ignores the potential failure and continues to move. If a trigger signal for the "Repair" control is received, the smart home device provided with the electric component sends a repair indication to the cloud server. The technical personnel on the cloud server side can allocate a repair personnel to repair on site according to the repair indication.

[0095] Step S808, based on the determination state information, if the state information represents ignoring or accepting the potential failure, modify the driving curve.

[0096] The process of modifying the driving curve can refer to the explanation of step 603, which is not repeated here.

[0097] Step S809, continue to drive the electric component to operate according to the modified driving curve.

[0098] In the embodiment of the present application, if the user selects to ignore the above-mentioned hidden trouble on the side of the associated device, the electric component continues to move after the driving curve is corrected.

[0099] In summary, the technical scheme provided by the embodiment of the present application, in the case that the difference between the real-time current of the moving part in the electric component running to a certain position and the current corresponding to the position in the historical travel record is greater than the first threshold value, the associated device of the electric component reminds that there is an obstacle in the movement path of the moving part, so that the user can timely remove the obstacle, avoid the influence of the obstacle on the subsequent movement process of the electric component, and also avoid the damage of the electric component caused by the impact with the obstacle. Also, in the case that the difference between the real-time current of the moving part in the electric component running to a certain position and the current corresponding to the position in the historical travel record is greater than the second threshold value, the motor is controlled to move reversely, and the associated device of the electric component reminds that there is a hidden trouble in the electric component, so as to remind the user to handle it in time, which can effectively protect the motor and increase the service life of the electric component.

[0100] Please refer to Figure 9 which shows a structural block diagram of a driving device of an electric component provided by an embodiment of the present application. The device includes a first driving module 910, an acquisition module 920, a correction module 930, and a second driving module 940.

[0101] The first driving module 910 is configured to drive the electric component to run based on a preset driving curve.

[0102] The acquisition module 920 is configured to acquire the real-time current, real-time travel, and real-time acceleration of the electric component.

[0103] The correction module 930 is configured to correct the driving curve according to the real-time current, real-time travel, and real-time acceleration.

[0104] The second driving module 940 is configured to continue to drive the electric component to run according to the corrected driving curve.

[0105] In summary, the technical scheme provided by the embodiment of the present application, the driving curve is designed in advance, and during the movement of the electric component, the driving curve is corrected based on the real-time current, real-time travel, and real-time acceleration of the electric component, so that the corrected driving curve can ensure that the acceleration of the electric component is smoothly transitioned, so as to reduce the impact on the electric component during the movement, reduce the wear degree of the electric component, and further increase the service life of the electric component.

[0106] In some embodiments, the correction module 930 is specifically configured to, in the Nth driving cycle of the electric component, where N is an integer greater than 1, acquire historical stroke records of a first target driving cycle of the electric component and historical acceleration information of the first target driving cycle; the first target driving cycle is before the Nth driving cycle; and correct the driving curve according to the real-time current, the real-time stroke, the real-time acceleration, the historical stroke records and the historical acceleration information.

[0107] In some embodiments, the correction module 930 is specifically configured to compare the real-time acceleration with the historical acceleration information to obtain a comparison result; and adjust the real-time current according to the comparison result, so as to correct the driving curve.

[0108] In some embodiments, the apparatus further comprises a first comparison module and a first prompt module (not shown). Figure 9 The first comparison module is configured to acquire the real-time current and compare it with a reference current to determine a difference between the real-time current and the reference current; the reference current represents a current corresponding to a stroke at a position corresponding to the real-time stroke in the N-1th driving cycle of the electric component. The first prompt module is configured to, if the difference is greater than or equal to a first threshold value, send first prompt information to an associated device of the electric component, the first prompt information being used to remind that there is an obstacle on a movement path of the electric component.

[0109] In some embodiments, the apparatus further comprises a third driving module (not shown). Figure 9 The third driving module is configured to, if the difference is greater than or equal to a second threshold value, control the motor to move in a reverse direction; the second threshold value is greater than the first threshold value.

[0110] In some embodiments, the apparatus further comprises a counting module, a second prompt module and an information acquisition module (not shown). Figure 9 The counting module is configured to, if the difference is greater than or equal to the second threshold value, accumulate a preset value to a counter value; the second threshold value is greater than the first threshold value; and acquire the counter value. The second prompt module is configured to, if the counter value is greater than or equal to a value threshold value, send second prompt information to the associated device of the electric component, the second prompt information being used to remind that there is a potential fault of the electric component. The information acquisition module is configured to acquire determination state information sent by the associated device, the determination state information representing a reply of the associated device to the second prompt information and containing an indication of the potential fault. The correction module 930 is configured to, based on the determination state information, if the determination state information represents that the potential fault is ignored or accepted, correct the driving curve.

[0111] In some embodiments, the apparatus further comprises a saving module (not shown). Figure 9 The saving module is configured to save the corrected driving curve, the corrected driving curve being used to drive the motor in a second target driving cycle of the electric component.

[0112] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the above-described device and module can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0113] In the several embodiments provided in this application, the coupling between modules can be electrical, mechanical, or other forms of coupling.

[0114] Furthermore, the functional modules in the various embodiments of this application can be integrated into one processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The integrated modules described above can be implemented in hardware or as software functional modules.

[0115] like Figure 10 As shown, this application example also provides an electric component 1000, which includes a processor 1010 and a memory 1020. The memory 1020 stores computer program instructions.

[0116] The processor 1010 may include one or more processing cores. The processor 1010 connects to various parts of the entire battery management system using various interfaces and lines, and performs various functions and processes data of the battery management system by running or executing instructions, programs, code sets, or instruction sets stored in the memory 1020, and by calling data stored in the memory 1020. Optionally, the processor 1010 may be implemented using at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), or Programmable Logic Array (PLA). The processor 1010 may integrate one or a combination of several of the following: Central Processing Unit (CPU), Graphics Processing Unit (GPU), and modem. The CPU primarily handles the operating system, user interface, and applications; the GPU is responsible for rendering and drawing the displayed content; and the modem is used for wireless communication. It is understood that the modem may also not be integrated into the processor 1010 and may be implemented separately through a communication chip.

[0117] The memory 1020 can include a random access memory (RAM) and can also include a read-only memory (ROM). The memory 1020 can be used to store instructions, programs, codes, code sets, or instruction sets. The memory 1020 can include a program storage area and a data storage area, where the program storage area can store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing various method examples described below, etc. The data storage area can also store data created by the vehicle in use (such as a phone book, audio and video data, chat record data), etc.

[0118] Referring to Figure 11 It is shown that the embodiments of the present application further provide a computer readable storage medium 1100, which stores computer program instructions 1110. The computer program instructions 1110 can be invoked by a processor to execute the methods described in the above embodiments.

[0119] The computer readable storage medium 1100 can be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read-only memory), an EPROM, a hard disk, or a ROM. Alternatively, the computer readable storage medium 1100 includes a non-volatile computer readable storage medium. The computer readable storage medium 1100 has a storage space for the computer program instructions 1110 for executing any of the method steps S described above. These computer program instructions 1110 can be read out from or written into one or more computer program products. The computer program instructions 1110 can be compressed in an appropriate form.

[0120] The above is only a preferred example of the present application, and does not limit the present application in any form. Although the present application has been disclosed as the above preferred example, it is not intended to limit the present application. Any person skilled in the art can make some changes or modifications to the above disclosed technical content without departing from the scope of the present application, and any equivalent examples with equivalent changes or modifications are still within the scope of the present application.

Claims

1. A driving method of an electrically driven component, characterized by, The method is applied to an electric component driven by power, and the method comprises: driving the electric component to operate based on a preset driving curve; acquiring real-time current, real-time stroke and real-time acceleration of the electric component; correcting the driving curve according to the real-time current, the real-time stroke and the real-time acceleration; continuing to drive the electric component to operate according to the corrected driving curve. The step of correcting the driving curve according to the real-time current, the real-time stroke and the real-time acceleration specifically comprises: acquiring historical acceleration information of a first target driving period of the electric component in an Nth driving period of the electric component, wherein N is an integer greater than 1; comparing the real-time acceleration with the historical acceleration information to acquire a comparison result; comparing the real-time current corresponding to the real-time acceleration with historical current under the same stroke state to correct the driving curve; the real-time current and the historical current are compared under the same stroke state; and the first target driving period is before the Nth driving period.

2. The method of claim 1, wherein, The step of correcting the driving curve according to the real-time current, the real-time stroke and the real-time acceleration further comprises: acquiring historical stroke record of a first target driving period of the electric component in an Nth driving period of the electric component, wherein N is an integer greater than 1; correcting the driving curve according to the real-time current, the real-time stroke, the real-time acceleration, the historical stroke record and the historical acceleration information.

3. The method of claim 2, wherein, The step of correcting the driving curve according to the real-time current, the real-time stroke, the real-time acceleration, the historical stroke record and the historical acceleration information further comprises: adjusting the real-time current according to the comparison result, so as to correct the driving curve.

4. The method of claim 3, wherein, The electric component comprises a motor and a movable member connected to the motor, and the method further comprises: comparing the real-time current with a reference current to determine a difference between the real-time current and the reference current; wherein the reference current represents current corresponding to stroke at a position corresponding to the real-time stroke in a first target driving period of the electric component; if the difference is greater than or equal to a first threshold value, sending first prompt information to an associated device of the electric component, the first prompt information being used to remind that there is an obstacle on a movement path of the movable member.

5. The method of claim 4, wherein, The method further comprises: if the difference is greater than or equal to a second threshold value, controlling the motor to move reversely; wherein the second threshold value is greater than the first threshold value.

6. The method of claim 5, wherein, The electric component further comprises a counter; and the method further comprises: if the difference is greater than or equal to a second threshold value, accumulating a preset value to a counter value; wherein the second threshold value is greater than the first threshold value; acquiring the counter value; if the counter value is greater than or equal to a value threshold value, sending second prompt information to an associated device of the electric component, the second prompt information being used to remind that there is a hidden danger of failure in the electric component; acquire determination state information sent by the associated device, the determination state information representing a reply of the associated device to the second prompt information and containing an indication of the fault hidden danger; correct the driving curve based on the determination state information, if the determination state information represents that the fault hidden danger is ignored or accepted.

7. The method of any one of claims 1-6, wherein, The method further includes: saving the corrected driving curve, the corrected driving curve being used to drive the motor in a second target driving period of the electric component; and wherein the second target driving period is after the Nth driving period.

8. A drive device for an electrically driven component, characterized in that The apparatus includes: a first driving module configured to drive the electric component to operate based on a preset driving curve; an acquiring module configured to acquire real-time current, real-time stroke and real-time acceleration of the electric component; a correcting module configured to correct the driving curve according to the real-time current, the real-time stroke and the real-time acceleration; a second driving module configured to continue to drive the electric component to operate according to the corrected driving curve. The correcting module is specifically configured to: acquire historical acceleration information of a first target driving period of the electric component in an Nth driving period of the electric component, wherein N is an integer greater than 1; compare the real-time acceleration with the historical acceleration information to acquire a comparison result; compare real-time current corresponding to the real-time acceleration with historical current in the same stroke state to correct the driving curve; the real-time current and the historical current are compared in the same stroke state; and wherein the first target driving period is before the Nth driving period.

9. An electrically powered component, characterized in that include a processor and a memory; one or more programs are stored in the memory and configured to be executed by the processor, and the one or more programs are configured to perform the method of any one of claims 1-7.

10. A computer readable storage medium storing a program code executable by a processor, the program code comprising instructions for causing a processor to perform the method of any one of claims 1-9. The computer readable storage medium includes stored program code, wherein the method of any one of claims 1-7 is performed when the program code is executed.

Citation Information

Patent Citations

  • Pinch detecting device for power window

    JP2004244956A

  • Apparatus and method for generating acceleration profile for controlling object using optimized waveform shaping

    US20070075670A1