Intelligent correction method and device for massager and storage medium

By detecting and adjusting the operating parameters of the motors on both sides of the massager, the problem of position deviation of the massage head under the multi-motor drive is solved, and the user experience and equipment efficiency are improved.

CN118902817APending Publication Date: 2024-11-08SHENZHEN BREO TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311776035.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-12-21
Publication Date
2024-11-08

AI Technical Summary

Technical Problem

When existing massagers use multi-motor drives, the positions of the massage heads on both sides are prone to deviation, resulting in asymmetric user experience, low motor transmission efficiency, increased power consumption, and affect battery life.

Method used

By synchronously detecting the operating parameters of the first motor and the second motor, determining whether it matches. If it doesn't match, the rotation speed of the motor is corrected to ensure that the positions of the massage heads on both sides are symmetrical. The specific method includes calculating the number of rotations and the speed difference value. If the difference exceeds the threshold, adjust the speed to reach a matching state.

Benefits of technology

It realizes accurate correction of the position of the massage heads on both sides of the massager, improves the user experience, improves the transmission efficiency of the motor, reduces power consumption, and extends the battery life of the equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118902817A_ABST
    Figure CN118902817A_ABST
Patent Text Reader

Abstract

The invention provides an intelligent deviation rectifying method and device of a massager and a storage medium, and the method comprises the steps that a first operation parameter of a first motor and a second operation parameter of a second motor of the massager are synchronously detected, the massager comprises a first massage head and a second massage head which are symmetrical to each other, the first massage head is provided with the first motor, and the second massage head is provided with the second motor; the second massage head is provided with a second motor; judging whether the first operation parameter is matched with the second operation parameter or not; if the first operation parameter is not matched with the second operation parameter, the rotating speed of the first motor or the second motor is corrected, so that the positions of the first massage head and the second massage head are kept symmetrical. According to the embodiment of the invention, the technical problem that the massage positions of the massage heads on the two sides of the massager cannot be corrected in the prior art is solved, the positions of the two massage heads of the massager are corrected, the massage heads on the two sides of the massager are kept symmetrical during massage operation, and the massage experience of a user is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of massage equipment, and in particular to an intelligent deviation correction method and device, and a storage medium for a massager. Background Art

[0002] In the related technology, most of the left and right massage heads of the neck, waist and back massagers in the industry are driven by a single brushed / brushless motor, and then the two massage heads and the motor are connected by structural parts to achieve symmetrical movement of the two massage heads. However, the movement paths of both sides are relatively simple and the variability is poor. Using a single motor to drive the structural parts on both sides will greatly reduce the transmission efficiency of the motor, increase power consumption, and affect battery life.

[0003] In the related art, multi-motor combination massagers generally adopt the control method of sliding massage + rotating massage. Due to the different forces on the left and right sides of the user, when the motor is stuck, the actual speed of the motor is less than the speed set in the mode, which will cause the actual speeds of the motors on both sides to be inconsistent. The positions of the massage heads on both sides will deviate, and the cumulative position deviations on both sides will become larger and larger, giving the user the feeling that the massage positions of the massage heads on both sides are asymmetrical, which is a bad experience.

[0004] With respect to the above-mentioned problems existing in the related technologies, no efficient and accurate solutions have been found yet. Summary of the invention

[0005] The present invention provides an intelligent deviation correction method and device, and a storage medium for a massager to solve the above-mentioned technical problems existing in the related art.

[0006] According to one embodiment of the present invention, there is provided an intelligent deviation correction method for a massager, comprising: synchronously detecting a first operating parameter of a first motor and a second operating parameter of a second motor of the massager, wherein the massager comprises a first massage head and a second massage head which are symmetrical to each other, the first massage head being equipped with the first motor, and the second massage head being equipped with the second motor; determining whether the first operating parameter matches the second operating parameter; if the first operating parameter does not match the second operating parameter, correcting the rotation speed of the first motor or the second motor to keep the positions of the first massage head and the second massage head symmetrical.

[0007] Optionally, determining whether the first operating parameter matches the second operating parameter includes: calculating a first difference between the number of rotations of the first motor and the number of rotations of the second motor, wherein the first operating parameter includes the number of rotations of the first motor, and the second operating parameter includes the number of rotations of the second motor; determining whether the first difference is greater than a first threshold; if the first difference is greater than the first threshold, determining that the first operating parameter does not match the second operation; if the first difference is less than or equal to the first threshold, determining that the first operating parameter matches the second operating parameter.

[0008] Optionally, determining whether the first operating parameter matches the second operating parameter includes: calculating a second difference between a first motor speed and a second motor speed, wherein the first operating parameter includes the first motor speed and the second operating parameter includes the second motor speed; determining whether the second difference is greater than a second threshold; if the second difference is greater than the second threshold, determining that the first operating parameter does not match the second operation; if the second difference is less than or equal to the second threshold, determining that the first operating parameter matches the second operating parameter.

[0009] Optionally, determining whether the first operating parameter matches the second operating parameter includes: calculating a first difference between the number of rotations of the first motor and the number of rotations of the second motor, and calculating a second difference between the speed of the first motor and the speed of the second motor, wherein the first operating parameter includes the number of rotations of the first motor and the speed of the first motor, and the second operating parameter includes the number of rotations of the second motor and the speed of the second motor; determining whether the first difference is greater than a first threshold, and determining whether the second difference is greater than a second threshold; if the first difference is greater than the first threshold or the second difference is greater than the second threshold, determining that the first operating parameter does not match the second operation; if the first difference is less than or equal to the first threshold, and the second difference is less than or equal to the second threshold, determining that the first operating parameter matches the second operating parameter.

[0010] Optionally, correcting the rotation speed of the first motor or the second motor includes: obtaining a first difference between the number of rotations of the first motor and the number of rotations of the second motor, and obtaining a second difference between the speed of the first motor and the speed of the second motor, wherein the first operating parameter includes the number of rotations of the first motor and the speed of the first motor, and the second operating parameter includes the number of rotations of the second motor and the speed of the second motor; if the first difference is greater than 0, and the second difference is greater than 0, increase the speed of the second motor, or decrease the speed of the first motor; if the first difference is greater than 0, and the second difference is less than 0, increase the speed of the second motor, or decrease the speed of the first motor; if the first difference is less than 0, and the second difference is less than 0, decrease the speed of the second motor, or increase the speed of the first motor; if the first difference is less than 0, and the second difference is less than 0, decrease the speed of the second motor, or increase the speed of the first motor.

[0011] Optionally, before synchronously detecting the first operating parameters of the first motor and the second operating parameters of the second motor of the massager, the method further includes: after the massager is started, controlling the first massage head to move toward a first reset position, and controlling the second massage head to move toward a second reset position, wherein the first reset position and the second reset position are symmetrical to each other; after detecting that the first massage head moves to the first reset position and the second massage moves to the second reset position, synchronously controlling the first motor and the second motor to perform massage movements from the first reset position and the second reset position, respectively, and determining the first operating parameters of the first motor and the second operating parameters of the synchronously detected massager.

[0012] Optionally, synchronously detecting the first operating parameters of the first motor and the second operating parameters of the second motor of the massager includes: detecting a first frequency generator FG signal fed back by the first motor, and detecting a second FG signal fed back by the second motor; calculating the first motor rotation number of the first motor based on the feedback number of the first FG signal, and calculating the second motor rotation number of the second motor based on the feedback number of the second FG signal; obtaining a first interval time between two consecutive first FG signals, and obtaining a second interval time between two consecutive second FG signals; calculating a first motor speed of the first motor based on the first interval time, and calculating a second motor speed of the second motor based on the second interval time.

[0013] Optionally, before determining whether the first difference is greater than a first threshold, the method also includes: detecting the movement direction of the first motor and the second motor; if the movement direction is horizontal, configuring the first threshold to be a first value; if the movement direction is vertical, configuring the first threshold to be a second value, wherein the first value is smaller than the second value.

[0014] According to another embodiment of the present invention, there is provided an intelligent deviation correction device for a massager, comprising: a detection module, for synchronously detecting a first operating parameter of a first motor and a second operating parameter of a second motor of the massager, wherein the massager comprises a first massage head and a second massage head symmetrical to each other, the first massage head being equipped with the first motor, and the second massage head being equipped with the second motor; a judgment module, for judging whether the first operating parameter matches the second operating parameter; and a deviation correction module, for correcting the rotation speed of the first motor or the second motor if the first operating parameter does not match the second operating parameter, so as to keep the positions of the first massage head and the second massage head symmetrical.

[0015] Optionally, the judgment module includes: a first calculation unit, used to calculate a first difference between the number of rotations of the first motor and the number of rotations of the second motor, wherein the first operating parameter includes the number of rotations of the first motor, and the second operating parameter includes the number of rotations of the second motor; a first judgment unit, used to determine whether the first difference is greater than a first threshold; a first determination unit, used to determine that the first operating parameter does not match the second operating parameter if the first difference is greater than the first threshold; if the first difference is less than or equal to the first threshold, determine that the first operating parameter matches the second operating parameter.

[0016] Optionally, the judgment module includes: a second calculation unit, used to calculate a second difference between the first motor speed and the second motor speed, wherein the first operating parameter includes the first motor speed and the second operating parameter includes the second motor speed; a second judgment unit, used to determine whether the second difference is greater than a second threshold; a second determination unit, used to determine that the first operating parameter does not match the second operation if the second difference is greater than the second threshold; and determine that the first operating parameter matches the second operating parameter if the second difference is less than or equal to the second threshold.

[0017] Optionally, the judgment module includes: a third calculation unit, used to calculate a first difference between the number of rotations of the first motor and the number of rotations of the second motor, and to calculate a second difference between the speed of the first motor and the speed of the second motor, wherein the first operating parameter includes the number of rotations of the first motor and the speed of the first motor, and the second operating parameter includes the number of rotations of the second motor and the speed of the second motor; a third judgment unit, used to judge whether the first difference is greater than a first threshold, and to judge whether the second difference is greater than a second threshold; a third determination unit, used to determine that the first operating parameter does not match the second operation if the first difference is greater than the first threshold or the second difference is greater than the second threshold; if the first difference is less than or equal to the first threshold, and the second difference is less than or equal to the second threshold, determine that the first operating parameter matches the second operating parameter.

[0018] Optionally, the correction module includes: an acquisition unit, used to acquire a first difference between the number of rotations of the first motor and the number of rotations of the second motor, and to acquire a second difference between the speed of the first motor and the speed of the second motor, wherein the first operating parameter includes the number of rotations of the first motor and the speed of the first motor, and the second operating parameter includes the number of rotations of the second motor and the speed of the second motor; a correction unit, used to increase the speed of the second motor or decrease the speed of the first motor if the first difference is greater than 0 and the second difference is greater than 0; increase the speed of the second motor or decrease the speed of the first motor if the first difference is greater than 0 and the second difference is less than 0; decrease the speed of the second motor or increase the speed of the first motor if the first difference is less than 0 and the second difference is less than 0; decrease the speed of the second motor or increase the speed of the first motor if the first difference is less than 0 and the second difference is less than 0.

[0019] Optionally, the device also includes: a control module, used to control the first massage head to move toward a first reset position and control the second massage head to move toward a second reset position after the massager is started, before the detection module synchronously detects the first operating parameters of the first motor and the second operating parameters of the second motor of the massager, wherein the first reset position and the second reset position are symmetrical to each other; a determination module, used to synchronously control the first motor and the second motor to perform massage movements from the first reset position and the second reset position respectively after detecting that the first massage head moves to the first reset position and the second massage moves to the second reset position, and determine the first operating parameters of the first motor and the second operating parameters of the synchronously detected massager.

[0020] Optionally, the detection module includes: a detection unit, used to detect a first frequency generator FG signal fed back by the first motor, and to detect a second FG signal fed back by the second motor; a first calculation unit, used to calculate the first motor rotation number of the first motor based on the feedback number of the first FG signal, and to calculate the second motor rotation number of the second motor based on the feedback number of the second FG signal; an acquisition unit, used to acquire a first interval time between two consecutive first FG signals, and to acquire a second interval time between two consecutive second FG signals; a second calculation unit, used to calculate a first motor speed of the first motor based on the first interval time, and to calculate a second motor speed of the second motor based on the second interval time.

[0021] Optionally, the judgment module also includes: a detection unit, used to detect the movement direction of the first motor and the second motor before the first judgment unit determines whether the first difference is greater than a first threshold; a configuration unit, used to configure the first threshold to a first value if the movement direction is a horizontal direction; if the movement direction is a vertical direction, configure the first threshold to a second value, wherein the first value is smaller than the second value.

[0022] According to yet another embodiment of the present invention, a storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above-mentioned device embodiments when running.

[0023] According to another embodiment of the present invention, there is provided an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above-mentioned device embodiments.

[0024] Through the embodiment of the present invention, a first operating parameter of a first motor and a second operating parameter of a second motor of a massager are synchronously detected, wherein the massager comprises a first massage head and a second massage head symmetrical to each other, the first massage head is equipped with a first motor, and the second massage head is equipped with a second motor; it is determined whether the first operating parameter matches the second operating parameter; if the first operating parameter does not match the second operating parameter, the rotation speed of the first motor or the second motor is corrected to keep the positions of the first massage head and the second massage head symmetrical, by determining whether the operating parameters of the two massage head motors match, when there is a deviation, the two motors are corrected, thereby correcting the position deviation between the two massage heads, solving the technical problem in the related art that the massager cannot correct the massage positions of the massage heads on both sides, realizing the position correction of the two massage heads of the massager, making the massage heads on both sides of the massager keep symmetry during massage operation, and improving the massage experience of the user. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0026] Figure 1 is a hardware structure block diagram of a massager according to an embodiment of the present invention;

[0027] Figure 2 is a flow chart of an intelligent deviation correction method for a massager according to an embodiment of the present invention;

[0028] Figure 3 is a schematic diagram of a massager according to an embodiment of the present invention;

[0029] Figure 4 is an overall flow chart of an embodiment of the present invention;

[0030] Figure 5 The present invention is a structural block diagram of an intelligent deviation-correcting device for a massager according to an embodiment of the present invention. DETAILED DESCRIPTION

[0031] In order to enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only embodiments of a part of the present application, not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work should fall within the scope of protection of the present application. It should be noted that the embodiments in the present application and the features in the embodiments can be combined with each other without conflict.

[0032] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0033] Example 1

[0034] The method embodiment provided in the first embodiment of the present application can be executed in a massager, a mobile phone, a computer, a tablet, a health device, or a similar display device. Taking running on a massager as an example, Figure 1 1 is a hardware structure block diagram of a massager according to an embodiment of the present invention. Figure 1 As shown, the massager may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data. Optionally, the massager may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above massager. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.

[0035] The memory 104 can be used to store massager programs, for example, software programs and modules of application software, such as a massager program corresponding to the intelligent deviation correction method of a massager in an embodiment of the present invention. The processor 102 executes various functional applications and data processing by running the massager program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the massager via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0036] The transmission device 106 is used to receive or send data via a network. A specific example of the above network may include a wireless network provided by a communication provider of the massager. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0037] In this embodiment, a smart deviation correction method for a massager is provided. Figure 2 is a flow chart of an intelligent deviation correction method for a massager according to an embodiment of the present invention. Figure 2As shown, the process includes the following steps:

[0038] Step S202, synchronously detecting a first operating parameter of a first motor and a second operating parameter of a second motor of a massager, wherein the massager comprises a first massage head and a second massage head symmetrical to each other, the first massage head is equipped with a first motor, and the second massage head is equipped with a second motor;

[0039] The massager of this embodiment is a health device or wearable device that acts on living bodies such as human bodies and animals. The health device may be a neck massager, a facial massager, a shoulder massager, a leg massager, a massage chair, a back massager, etc. The massager includes two massage heads, left and right or upper and lower, which are driven by two motors (a first motor and a second motor) respectively. During massage, two parts (such as left and right shoulders) are massaged at the same time.

[0040] In one example, the massager includes a main chip board, two brushless DC three-phase motors, four Hall induction sensors, structural parts, connecting wires, batteries and other hardware.

[0041] Optionally, the operating parameters may be parameters such as the number of rotations, speed, cycle, frequency, etc. of the motor that affect the displacement or position of the corresponding massage head.

[0042] Step S204, determining whether the first operating parameter matches the second operating parameter;

[0043] In this embodiment, the first operating parameter and the second operating parameter are parameters of the same type. When the first operating parameter and the second operating parameter are the same or within a preset error, indicating that there is no deviation between the first operating parameter and the second operating parameter, the two match, otherwise they do not match.

[0044] Step S206: If the first operating parameter does not match the second operating parameter, the rotation speed of the first motor or the second motor is corrected to keep the positions of the first massage head and the second massage head symmetrical.

[0045] Optionally, when adjusting the motor speed, the speed regulation can be achieved by setting the PWM of the motor.

[0046] Through the above steps, the first operating parameters of the first motor and the second operating parameters of the second motor of the massager are synchronously detected, wherein the massager includes a first massage head and a second massage head that are symmetrical to each other, the first massage head is equipped with a first motor, and the second massage head is equipped with a second motor; it is determined whether the first operating parameter matches the second operating parameter; if the first operating parameter does not match the second operating parameter, the rotation speed of the first motor or the second motor is corrected to keep the positions of the first massage head and the second massage head symmetrical, by determining whether the operating parameters of the two massage head motors match, when there is a deviation, the two motors are corrected, thereby correcting the position deviation between the two massage heads, solving the technical problem that the massager cannot correct the massage position of the massage heads on both sides in the related art, realizing the position correction of the two massage heads of the massager, making the massage heads on both sides of the massager remain symmetrical during massage operation, and improving the massage experience of the user.

[0047] In the present embodiment, synchronously detecting the first operating parameter of the first motor and the second operating parameter of the second motor of the massager includes: detecting the first FG (Frequency Generator) signal fed back by the first motor, and detecting the second FG signal fed back by the second motor; calculating the first motor rotation number of the first motor based on the feedback number of the first FG signal, and calculating the second motor rotation number of the second motor based on the feedback number of the second FG signal; obtaining the first interval time between two consecutive first FG signals, and obtaining the second interval time between two consecutive second FG signals; calculating the first motor speed of the first motor based on the first interval time, and calculating the second motor speed of the second motor based on the second interval time.

[0048] In one example, the motor (the first motor and the second motor) in this embodiment adopts a brushless DC three-phase motor, which is composed of a motor drive board, a magnet, a coil slot, a winding and a metal part (such as a motor shaft). The main control chip collects motor signals through pins such as VCC, GND, PWM, FG, and FR. VCC and GND are power pins, FR controls the direction of motor movement, PWM is pulse width modulation, controls the motor speed, and the FG signal is a motor feedback signal. The motor outputs a square wave to the main control chip. If the motor magnet has 5 pairs of poles, the motor will feedback 5 square waves (FG signals) for one revolution. The counter can be used to calculate the actual number of revolutions of the motor after reset (hereinafter referred to as Cm). On the other hand, the interval time between the rising edge / falling edge of each two consecutive square waves is collected, which is the actual period of one revolution of the motor. The inverse of the interval time can be calculated to calculate the speed of the motor (hereinafter referred to as Vm). Each rotation of the motor will move the outer shell of the massage head a fixed distance, thereby moving the massage head to the massage position on the surface of the human body.

[0049] In one implementation of the present embodiment, the operating parameter is the number of rotations of the motor, and the number of rotations can represent the cumulative displacement of the massage head. The larger the number of rotations, the larger the cumulative displacement. Determining whether the first operating parameter matches the second operating parameter includes: calculating a first difference between the number of rotations of the first motor and the number of rotations of the second motor, wherein the first operating parameter includes the number of rotations of the first motor, and the second operating parameter includes the number of rotations of the second motor; determining whether the first difference is greater than a first threshold; if the first difference is greater than the first threshold, determining that the first operating parameter does not match the second operating parameter; if the first difference is less than or equal to the first threshold, determining that the first operating parameter matches the second operating parameter.

[0050] In another implementation of this embodiment, the operating parameter is the motor speed, and the motor speed can represent the real-time moving speed of the massage head. The greater the motor speed, the greater the real-time moving speed (real-time displacement change). Determining whether the first operating parameter matches the second operating parameter includes: calculating the second difference between the first motor speed and the second motor speed, wherein the first operating parameter includes the first motor speed, and the second operating parameter includes the second motor speed; determining whether the second difference is greater than a second threshold; if the second difference is greater than the second threshold, determining that the first operating parameter does not match the second operating parameter; if the second difference is less than or equal to the second threshold, determining that the first operating parameter matches the second operating parameter.

[0051] In another implementation of the present embodiment, the operating parameters include the number of rotations and the motor speed, and determining whether the first operating parameter matches the second operating parameter includes: calculating a first difference between the number of rotations of the first motor and the number of rotations of the second motor, and calculating a second difference between the first motor speed and the second motor speed, wherein the first operating parameter includes the number of rotations of the first motor and the first motor speed, and the second operating parameter includes the number of rotations of the second motor and the second motor speed; determining whether the first difference is greater than a first threshold, and determining whether the second difference is greater than a second threshold; if the first difference is greater than the first threshold or the second difference is greater than the second threshold, determining that the first operating parameter does not match the second operating parameter; if the first difference is less than or equal to the first threshold, and the second difference is less than or equal to the second threshold, determining that the first operating parameter matches the second operating parameter.

[0052] In this embodiment, as long as the difference in the number of rotations or the motor speeds is greater than a threshold value, it is determined that the first operating parameter does not match the second operation, and an adaptive adjustment is made to the speeds of the first motor and the second motor. Only when the difference in the number of rotations or the motor speeds is less than a threshold value, a match is determined, and no adaptive adjustment is made to the first motor and the second motor.

[0053] Optionally, before determining whether the first difference is greater than the first threshold, it also includes: detecting the movement direction of the first motor and the second motor; if the movement direction is horizontal, configuring the first threshold to be a first value; if the movement direction is vertical, configuring the first threshold to be a second value, wherein the first value is smaller than the second value.

[0054] In this embodiment, the second threshold can also be adjusted in the same way to detect the movement direction of the first motor and the second motor; if the movement direction is horizontal, the second threshold is configured to be a third value; if the movement direction is vertical, the second threshold is configured to be a fourth value, wherein the third value is smaller than the fourth value.

[0055] In this embodiment, the two-sided motors move inward or outward at the same time in the horizontal direction. The force and movement speed are different for different massage paths. If the massager is designed to rotate, the massage head may also move in the vertical direction, and the force will be different, so multiple difference thresholds can be defined for adaptive adjustment. For example, for a waist massager, when it moves horizontally inward, the overall force will increase, the speed will slow down, and the moving distance per unit time will shorten. The value of the first threshold or the second threshold needs to be lowered to accurately control the speed during massage; when it moves horizontally outward, the overall force will be smaller than that inward, the speed will increase, and the moving distance per unit time will increase. The value of the first threshold or the second threshold needs to be increased to avoid frequent calls to the speed of the adaptive motor, which affects the user experience. If the massager is installed in the vertical direction, the rules for adjusting the difference first threshold or the second threshold are the same.

[0056] In one example, correcting the rotation speed of the first motor or the second motor includes: obtaining a first difference between the number of rotations of the first motor and the number of rotations of the second motor, and obtaining a second difference between the speed of the first motor and the speed of the second motor, wherein the first operating parameter includes the number of rotations of the first motor and the speed of the first motor, and the second operating parameter includes the number of rotations of the second motor and the speed of the second motor; if the first difference is greater than 0 and the second difference is greater than 0, increase the speed of the second motor or decrease the speed of the first motor; if the first difference is greater than 0 and the second difference is less than 0, increase the speed of the second motor or decrease the speed of the first motor; if the first difference is less than 0 and the second difference is less than 0, decrease the speed of the second motor or increase the speed of the first motor; if the first difference is less than 0 and the second difference is greater than 0, decrease the speed of the second motor or increase the speed of the first motor.

[0057] In this embodiment, the first threshold is diff_cm, the second threshold is diff_vm, the number of revolutions of the first motor is Cm1, the number of revolutions of the second motor is Cm2, the speed of the first motor is Vm1, and the speed of the second motor is Vm2. During the operation of the motor, if the calculated differences are all within the range of diff_vm or diff_cm, no adaptive adjustment is made; if the calculated difference exceeds diff_vm or diff_cm, when Vm1 is greater than Vm2, the speed of Vm2 is appropriately increased (adjusted by PWM) according to the preset step size, and the speed of Vm1 is reduced (adjusted by PWM), and when The same applies when Vm1 is smaller than Vm2; when Cm1 is greater than Cm2, the speed of Cm2 is appropriately increased (PWM adjustment) and the speed of Cm1 is decreased (PWM adjustment). The same applies when Cm1 is smaller than Cm2. If it is detected that both Vm and Cm trigger adaptive adjustment and are mutually exclusive when adjusting the speed (such as Cm1 is greater than Cm2, and Vm1 is less than Vm2 at the same time), Cm with higher priority shall prevail. Since the speed is a real-time parameter and the number of revolutions is a cumulative parameter, it can better reflect the actual distance moved by the motor. Therefore, after mutual exclusion, adaptive adjustment based on the number of motor rotation revolutions can better ensure the displacement consistency of the motors on both sides, thereby ensuring the symmetry of the massage head position.

[0058] Optionally, before synchronously detecting the first operating parameters of the first motor and the second operating parameters of the second motor of the massager, it also includes: after the massager is started, controlling the first massage head to move toward a first reset position, and controlling the second massage head to move toward a second reset position, wherein the first reset position and the second reset position are symmetrical to each other; after detecting that the first massage head moves to the first reset position and the second massage head moves to the second reset position, synchronously controlling the first motor and the second motor to perform massage movements from the first reset position and the second reset position, respectively, and determining the first operating parameters of the first motor and the second operating parameters of the synchronously detected massager.

[0059] Figure 31 is a schematic diagram of a massager according to an embodiment of the present invention. The massage head can rotate and slide in the horizontal axis. The first reset position is the position of the first Hall sensor (hall1). When performing the massage movement, the first massage head moves from hall1 to the reset position hall2 on the other side. The second reset position is the position of the second Hall sensor (hall3). When performing the massage movement, the second massage head moves from hall3 to the reset position hall4 on the other side. When the massager is turned on, the massage heads on both sides are reset to the positions of hall1 and hall4 respectively according to the mode. When the sensor triggering at the positions of hall1 and hall4 is detected, the massage heads on both sides start to rotate and move inward, and the speed detection Vm1 and Vm2 are turned on, and the difference diff_vm of the motor Vm on both sides is set (which can be adjusted according to the specific product); the motor circle values ​​Cm1 and Cm2 on both sides are reset to zero, and the difference diff_cm of the motor Cm on both sides is set (which can be adjusted according to the specific product). After zeroing, the difference diff_cm is set, and the massage heads on both sides are moved to the positions of hall2 and hall3. If one side arrives first, wait for a while. When the sensors at the hall2 and hall3 positions are detected to be triggered, the massage heads on both sides start to rotate and move outward, Cm1 and Cm2 are reset, and a new round of counting detection begins. By resetting before detection, the displacement error of the massage head in the previous massage cycle can be prevented from affecting the next massage cycle, avoiding error accumulation, so that the motor's operating parameters can truly reflect the actual position of the current massage cycle, and improve the accuracy of the motor's operating parameters.

[0060] Figure 4 It is an overall flow chart of an embodiment of the present invention. After the equipment is started, the motors on both sides reach the outermost / inner side (if one side arrives first, it stops and waits), and the motor revolution count value is set. The motors start to rotate at the same time, and the motor frequency (rotation number) difference detection and motor speed difference detection are turned on at the same time to determine whether the motor frequency difference exceeds the set value (first threshold value) and whether the motor speed difference exceeds the set value (second threshold value). If so, determine whether the motor frequency difference detection and the motor speed difference detection results conflict. If there is a conflict, adjust the speed of the motors on both sides based on the frequency difference.

[0061] The solution of this embodiment is adopted, and the number of revolutions of the motor self-rotation feedback is used to compare the difference between the motors on both sides and make a speed adjustment response. The interval time of the FG signal feedback is used to calculate the real-time speed of the motors on both sides, and the speed difference of the motors on both sides is compared to make a speed adjustment response. There are Hall sensors at the beginning and end of the travel of each massage head, which can accurately locate the position of the massage head, reset the detection, and eliminate the accumulated error. The position correction of the two massage heads of the massager is realized, so that they remain symmetrical during massage operation, which improves the user experience.

[0062] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.

[0063] Example 2

[0064] In this embodiment, a smart deviation correction device for a massager is also provided, which is used to implement the above-mentioned embodiments and preferred implementations, and will not be repeated here. As used below, the term "module" can be a combination of software and / or hardware that implements a predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0065] Figure 5 is a structural block diagram of an intelligent deviation correction device for a massager according to an embodiment of the present invention. Figure 5 As shown, the device comprises:

[0066] a detection module 50, for synchronously detecting a first operating parameter of a first motor and a second operating parameter of a second motor of a massager, wherein the massager comprises a first massage head and a second massage head symmetrical to each other, the first massage head is equipped with the first motor, and the second massage head is equipped with the second motor;

[0067] A judging module 52, configured to judge whether the first operating parameter matches the second operating parameter;

[0068] The correction module 54 is used to correct the rotation speed of the first motor or the second motor if the first operating parameter does not match the second operating parameter, so as to keep the positions of the first massage head and the second massage head symmetrical.

[0069] Optionally, the judgment module includes: a first calculation unit, used to calculate a first difference between the number of rotations of the first motor and the number of rotations of the second motor, wherein the first operating parameter includes the number of rotations of the first motor, and the second operating parameter includes the number of rotations of the second motor; a first judgment unit, used to determine whether the first difference is greater than a first threshold; a first determination unit, used to determine that the first operating parameter does not match the second operating parameter if the first difference is greater than the first threshold; if the first difference is less than or equal to the first threshold, determine that the first operating parameter matches the second operating parameter.

[0070] Optionally, the judgment module includes: a second calculation unit, used to calculate a second difference between the first motor speed and the second motor speed, wherein the first operating parameter includes the first motor speed and the second operating parameter includes the second motor speed; a second judgment unit, used to determine whether the second difference is greater than a second threshold; a second determination unit, used to determine that the first operating parameter does not match the second operation if the second difference is greater than the second threshold; and determine that the first operating parameter matches the second operating parameter if the second difference is less than or equal to the second threshold.

[0071] Optionally, the judgment module includes: a third calculation unit, used to calculate a first difference between the number of rotations of the first motor and the number of rotations of the second motor, and to calculate a second difference between the speed of the first motor and the speed of the second motor, wherein the first operating parameter includes the number of rotations of the first motor and the speed of the first motor, and the second operating parameter includes the number of rotations of the second motor and the speed of the second motor; a third judgment unit, used to judge whether the first difference is greater than a first threshold, and to judge whether the second difference is greater than a second threshold; a third determination unit, used to determine that the first operating parameter does not match the second operation if the first difference is greater than the first threshold or the second difference is greater than the second threshold; if the first difference is less than or equal to the first threshold, and the second difference is less than or equal to the second threshold, determine that the first operating parameter matches the second operating parameter.

[0072] Optionally, the correction module includes: an acquisition unit, used to acquire a first difference between the number of rotations of the first motor and the number of rotations of the second motor, and to acquire a second difference between the speed of the first motor and the speed of the second motor, wherein the first operating parameter includes the number of rotations of the first motor and the speed of the first motor, and the second operating parameter includes the number of rotations of the second motor and the speed of the second motor; a correction unit, used to increase the speed of the second motor or decrease the speed of the first motor if the first difference is greater than 0 and the second difference is greater than 0; increase the speed of the second motor or decrease the speed of the first motor if the first difference is greater than 0 and the second difference is less than 0; decrease the speed of the second motor or increase the speed of the first motor if the first difference is less than 0 and the second difference is less than 0; decrease the speed of the second motor or increase the speed of the first motor if the first difference is less than 0 and the second difference is less than 0.

[0073] Optionally, the device also includes: a control module, used to control the first massage head to move toward a first reset position and control the second massage head to move toward a second reset position after the massager is started, before the detection module synchronously detects the first operating parameters of the first motor and the second operating parameters of the second motor of the massager, wherein the first reset position and the second reset position are symmetrical to each other; a determination module, used to synchronously control the first motor and the second motor to perform massage movements from the first reset position and the second reset position respectively after detecting that the first massage head moves to the first reset position and the second massage moves to the second reset position, and determine the first operating parameters of the first motor and the second operating parameters of the synchronously detected massager.

[0074] Optionally, the detection module includes: a detection unit, used to detect a first frequency generator FG signal fed back by the first motor, and to detect a second FG signal fed back by the second motor; a first calculation unit, used to calculate the first motor rotation number of the first motor based on the feedback number of the first FG signal, and to calculate the second motor rotation number of the second motor based on the feedback number of the second FG signal; an acquisition unit, used to acquire a first interval time between two consecutive first FG signals, and to acquire a second interval time between two consecutive second FG signals; a second calculation unit, used to calculate a first motor speed of the first motor based on the first interval time, and to calculate a second motor speed of the second motor based on the second interval time.

[0075] Optionally, the judgment module also includes: a detection unit, used to detect the movement direction of the first motor and the second motor before the first judgment unit determines whether the first difference is greater than a first threshold; a configuration unit, used to configure the first threshold to a first value if the movement direction is a horizontal direction; if the movement direction is a vertical direction, configure the first threshold to a second value, wherein the first value is smaller than the second value.

[0076] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.

[0077] Example 3

[0078] An embodiment of the present invention further provides a storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.

[0079] Optionally, in this embodiment, the storage medium may be configured to store a computer program for performing the following steps:

[0080] S1, synchronously detecting a first operating parameter of a first motor and a second operating parameter of a second motor of a massager, wherein the massager comprises a first massage head and a second massage head symmetrical to each other, the first massage head is equipped with the first motor, and the second massage head is equipped with the second motor;

[0081] S2, determining whether the first operating parameter matches the second operating parameter;

[0082] S3: If the first operating parameter does not match the second operating parameter, correct the rotation speed of the first motor or the second motor to keep the positions of the first massage head and the second massage head symmetrical.

[0083] Optionally, in this embodiment, the above-mentioned storage medium may include but is not limited to: a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk, and other media that can store computer programs.

[0084] An embodiment of the present invention further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0085] Optionally, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.

[0086] Optionally, in this embodiment, the processor may be configured to perform the following steps through a computer program:

[0087] S1, synchronously detecting a first operating parameter of a first motor and a second operating parameter of a second motor of a massager, wherein the massager comprises a first massage head and a second massage head symmetrical to each other, the first massage head is equipped with the first motor, and the second massage head is equipped with the second motor;

[0088] S2, determining whether the first operating parameter matches the second operating parameter;

[0089] S3: If the first operating parameter does not match the second operating parameter, correct the rotation speed of the first motor or the second motor to keep the positions of the first massage head and the second massage head symmetrical.

[0090] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation modes, and this embodiment will not be described in detail here.

[0091] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0092] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.

[0093] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0094] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0095] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0096] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly or all or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or optical disk, etc., which can store program code.

[0097] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. An intelligent deviation correction method for a massager, characterized in that: include: Synchronously detecting a first operating parameter of a first motor and a second operating parameter of a second motor of a massager, wherein the massager comprises a first massage head and a second massage head symmetrical to each other, the first massage head is equipped with the first motor, and the second massage head is equipped with the second motor; Determining whether the first operating parameter matches the second operating parameter; If the first operating parameter does not match the second operating parameter, the rotation speed of the first motor or the second motor is corrected to keep the positions of the first massage head and the second massage head symmetrical.

2. The method according to claim 1, characterized in that Determining whether the first operating parameter matches the second operating parameter includes: Calculating a first difference between the number of revolutions of the first motor and the number of revolutions of the second motor, wherein the first operating parameter includes the number of revolutions of the first motor, and the second operating parameter includes the number of revolutions of the second motor; Determining whether the first difference is greater than a first threshold; If the first difference is greater than a first threshold, it is determined that the first operating parameter does not match the second operating parameter; if the first difference is less than or equal to the first threshold, it is determined that the first operating parameter matches the second operating parameter.

3. The method according to claim 1, characterized in that Determining whether the first operating parameter matches the second operating parameter includes: Calculating a second difference between a first motor speed and a second motor speed, wherein the first operating parameter includes the first motor speed and the second operating parameter includes the second motor speed; Determining whether the second difference is greater than a second threshold; If the second difference is greater than a second threshold, it is determined that the first operating parameter does not match the second operating parameter; if the second difference is less than or equal to the second threshold, it is determined that the first operating parameter matches the second operating parameter.

4. The method according to claim 1, characterized in that: Determining whether the first operating parameter matches the second operating parameter includes: Calculating a first difference between the number of revolutions of the first motor and the number of revolutions of the second motor, and calculating a second difference between the speed of the first motor and the speed of the second motor, wherein the first operating parameter includes the number of revolutions of the first motor and the speed of the first motor, and the second operating parameter includes the number of revolutions of the second motor and the speed of the second motor; Determining whether the first difference is greater than a first threshold, and determining whether the second difference is greater than a second threshold; If the first difference is greater than a first threshold or the second difference is greater than a second threshold, it is determined that the first operating parameter does not match the second operation; if the first difference is less than or equal to the first threshold and the second difference is less than or equal to the second threshold, it is determined that the first operating parameter matches the second operating parameter.

5. The method according to claim 1, characterized in that Correcting the rotation speed of the first motor or the second motor includes: Obtaining a first difference between the number of revolutions of the first motor and the number of revolutions of the second motor, and obtaining a second difference between the speed of the first motor and the speed of the second motor, wherein the first operating parameter includes the number of revolutions of the first motor and the speed of the first motor, and the second operating parameter includes the number of revolutions of the second motor and the speed of the second motor; If the first difference is greater than 0 and the second difference is greater than 0, increase the speed of the second motor or decrease the speed of the first motor; if the first difference is greater than 0 and the second difference is less than 0, increase the speed of the second motor or decrease the speed of the first motor; if the first difference is less than 0 and the second difference is less than 0, decrease the speed of the second motor or increase the speed of the first motor; if the first difference is less than 0 and the second difference is greater than 0, decrease the speed of the second motor or increase the speed of the first motor.

6. The method according to claim 1, characterized in that Before synchronously detecting the first operating parameter of the first motor and the second operating parameter of the second motor of the massager, the method further includes: After the massager is started, the first massage head is controlled to move toward a first reset position, and the second massage head is controlled to move toward a second reset position, wherein the first reset position and the second reset position are symmetrical to each other; After detecting that the first massage head moves to the first reset position and the second massage head moves to the second reset position, the first motor and the second motor are synchronously controlled to perform massage movements from the first reset position and the second reset position respectively, and the first operating parameters of the first motor and the second operating parameters of the second motor of the synchronously detected massager are determined.

7. The method according to claim 1, characterized in that Synchronously detecting a first operating parameter of a first motor and a second operating parameter of a second motor of a massager includes: Detecting a first frequency generator FG signal fed back by the first motor, and detecting a second FG signal fed back by the second motor; Calculating a first motor rotation number of the first motor based on a feedback number of the first FG signal, and calculating a second motor rotation number of the second motor based on a feedback number of the second FG signal; Acquire a first interval time between two consecutive first FG signals, and acquire a second interval time between two consecutive second FG signals; A first motor speed of the first motor is calculated based on the first interval time, and a second motor speed of the second motor is calculated based on the second interval time.

8. The method according to claim 2, characterized in that: Before determining whether the first difference is greater than a first threshold, the method further includes: detecting movement directions of the first motor and the second motor; If the movement direction is horizontal, the first threshold is configured as a first value; if the movement direction is vertical, the first threshold is configured as a second value, wherein the first value is smaller than the second value.

9. An intelligent deviation-correcting device for a massager, characterized in that: include: a detection module, for synchronously detecting a first operating parameter of a first motor and a second operating parameter of a second motor of a massager, wherein the massager comprises a first massage head and a second massage head symmetrical to each other, the first massage head is equipped with the first motor, and the second massage head is equipped with the second motor; A judging module, used for judging whether the first operating parameter matches the second operating parameter; The correction module is used to correct the rotation speed of the first motor or the second motor if the first operating parameter does not match the second operating parameter, so as to keep the positions of the first massage head and the second massage head symmetrical.

10. A storage medium, characterized in that: The storage medium stores a computer program, wherein the computer program is configured to execute the method according to any one of claims 1 to 8 when executed.