Shared massage service migration method oriented to multi-device cooperation
Through the shared massage service migration method for multi-device collaboration, the problem of insufficient convenience of equipment failure handling and replacement in the prior art is solved, and the continuity of user experience and the stability of massage services are achieved.
Patent Information
- Application Number
- CN202510205587.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-24
- Publication Date
- 2025-05-23
AI Technical Summary
The existing massage chair technology has poor performance in equipment failure handling, ease of equipment replacement and coherence of personalized services, resulting in interruption of user experience and the inability to retain massage parameters.
Scan the QR code of the new massage chair through the mobile phone, send the device replacement request to the cloud server, the cloud server querys the status information of the new massage chair and returns it to the mobile phone. After the user confirms the replacement of the machine, the cloud server sends a replacement request to the current massage chair, obtains the current running parameters and terminates the operation, sends the current running parameters to the new massage chair, starts the service and adjusts the parameters.
It enables users to continue to enjoy continuous massage services when replacing equipment, improve user experience and satisfaction, and promptly detect and deal with the failure of massage chairs through fault detection and fault type identification algorithms, ensuring the normal operation of the equipment and the safety of users.
Smart Images

Figure CN120034573A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of shared massage equipment, and in particular to a shared massage service migration method for multi-device collaboration. Background Art
[0002] In recent years, with the improvement of people's living standards and the enhancement of health awareness, massage chairs have gradually become a common leisure equipment in homes and public places. Smart massage chairs integrate sensors, communication modules and cloud servers to achieve a more convenient user experience and more intelligent management. Users can interact with massage chairs through mobile applications, QR code scanning, etc. to realize functions such as appointment, payment, and massage mode selection.
[0003] Traditional massage chair control systems, such as the Chinese invention patent with publication number CN108922049A, disclose a massage chair intelligent control method, including: step S01, the current massage chair senses the contact status of the user with the massage chair, and uploads the massage chair contact status information to the control system; step S02, the user uploads the use request to the massage chair control system; step S03, the massage chair control system receives the user's use request, records the time the user uses the massage chair, and when the user leaves the massage chair, the massage chair control system records the remaining time the user uses the massage chair; step S04, after the user contacts the massage chair and uploads the use request to the massage chair control system again, the control system extracts the recorded remaining time information of the user using the massage chair, and the cloud server of the massage chair can record the time the user uses the massage chair, so that after the user changes to other massage chairs, the saved time can be retrieved through the cloud server, and then the massage work can be continued, solving the problem that the user cannot perform massage operations on other massage chairs after temporarily leaving the massage chair. Although the invention realizes the intelligent interaction between the user and the massage chair, it performs poorly in terms of equipment fault handling, equipment replacement convenience and personalized service consistency. For example, after discovering a malfunction in the massage chair, users cannot easily replace the device. They need to re-scan the code and reset the massage mode, which interrupts the user experience. In addition, personalized parameters such as massage mode and strength cannot be retained when the device is replaced, further weakening the user experience. Summary of the invention
[0004] In order to solve the above-mentioned problems existing in the prior art, the present application provides a shared massage service migration method for multi-device collaboration.
[0005] The technical solution of this application is as follows:
[0006] A shared massage service migration method for multi-device collaboration, the method comprising:
[0007] The user scans the QR code of the new massage chair through the mobile phone to send a device replacement request to the cloud server. The QR code contains the unique device identifier corresponding to the new massage chair;
[0008] The cloud server receives the device replacement request, queries the database for the corresponding new massage chair status information according to the unique device identifier, and returns the information to the mobile phone;
[0009] The mobile phone receives the new massage chair status information, and the interface displays a prompt to confirm the device change. The user confirms the device change through the mobile phone, and the mobile phone sends the device change confirmation information to the cloud server;
[0010] The cloud server receives the machine change confirmation information and sends a machine change request to the current massage chair, wherein the machine change request includes a current operation parameter acquisition request and an operation termination request. The current massage chair receives the machine change request, returns the current operation parameters to the cloud server, and terminates the operation.
[0011] The cloud server sends the current operating parameters to the new massage chair and requests the new massage chair to start the service; the new massage chair receives the service start request and starts up, adjusts the parameters according to the current operating parameters, and returns a successful startup message;
[0012] The cloud server receives the successful startup information of the new massage chair and sends the successful device replacement information to the mobile phone. The mobile phone interface prompts the user that the device replacement is successful.
[0013] As a preferred implementation of the present invention, the new massage chair status information includes whether it is idle and whether there is a fault, wherein whether there is a fault is determined by a massage chair fault detection algorithm and a fault type identification algorithm.
[0014] As a preferred embodiment of the present invention, the massage chair fault detection algorithm includes running speed detection, motor state detection and motion component detection, wherein:
[0015] The running speed detection is specifically to start the motor, collect real-time speed data using a speed sensor and compare it with a dynamically adjusted speed threshold. If the real-time speed data meets the speed threshold range, the motor is normal, otherwise the motor is faulty; if no speed sensor data is received within a preset time interval, the speed sensor is faulty;
[0016] The motor state detection includes motor over-temperature, over-voltage and over-current detection, and real-time temperature data, voltage data and current data are obtained through temperature sensors, voltage sensors and current sensors, and compared with preset temperature thresholds, voltage thresholds and current thresholds respectively. If the preset threshold range is exceeded, an over-temperature, over-voltage or over-current fault exists;
[0017] The motion component detection includes kneading mechanism detection, knocking mechanism detection and guide rail mechanism detection:
[0018] The kneading mechanism detection specifically monitors the wide, medium and narrow position signals corresponding to the motion components connected to the kneading motor in real time. If the wide, medium and narrow position signals are completely detected within the specified maximum time, the kneading mechanism is normal, otherwise the kneading mechanism is determined to be stuck; if the wide, medium and narrow position signals are not detected, and the number of kneading motor speed pulses exceeds the theoretical maximum value of a single tapping cycle within the set maximum time, the position sensor is determined to be faulty;
[0019] The knocking mechanism detection specifically monitors the high, medium and low position signals corresponding to the motion components connected to the knocking motor in real time. If the high, medium and low position signals are completely detected within a limited maximum time, the knocking mechanism is normal, otherwise the knocking mechanism is determined to be stuck; if the high, medium and low position signals are not detected, and the number of knocking motor speed pulses exceeds the theoretical maximum value of a single knocking cycle within the set maximum time, the position sensor is determined to be faulty;
[0020] The guide rail mechanism detection specifically monitors the top dead center, mid-range point and bottom dead center position signals corresponding to the moving components connected to the up and down travel motors in real time. If the top dead center, mid-range point and bottom dead center position signals are not triggered within a preset time during the walking process, the guide rail mechanism is determined to be derailed; when the top dead center, mid-range point and bottom dead center position signals are continuously missing, if the encoder pulse number of the up and down travel motors exceeds the full stroke theoretical value, the limit switch is determined to be faulty.
[0021] As a preferred implementation of the present invention, the speed threshold is dynamically adjusted according to the frequency of use of the massage chair and the ambient temperature. Specifically:
[0022] Set the basic speed threshold range, usage frequency influence coefficient and ambient temperature influence coefficient;
[0023] Obtain the current usage frequency and ambient temperature of the massage chair to be determined;
[0024] Calculate the frequency adjustment value △F, expressed as:
[0025] △F=K f *F;
[0026] In the formula, K f is the frequency of use influence coefficient, F is the current frequency of use of the massage chair to be determined;
[0027] Calculate the ambient temperature adjustment value △T, expressed as:
[0028] △T=K t *(T-25);
[0029] In the formula, K tis the environmental temperature influence coefficient, T is the current usage frequency of the massage chair to be determined;
[0030] The speed threshold is adjusted based on the frequency adjustment value △F and the ambient temperature adjustment value △T, and is expressed as follows:
[0031] L' 0 =L 0 *(1+△F+△T);
[0032] L' 1 =L 1 *(1+△F+△T);
[0033] Where L' 0 is the lower limit of the speed threshold after adjustment, L 0 is the lower limit of the basic speed threshold, L' 1 is the upper limit of the speed threshold after adjustment, L 1 The upper limit of the basic speed threshold.
[0034] As a preferred implementation of the present invention, the fault type identification algorithm uses a three-order timer and a six-order timer to classify fault data, wherein:
[0035] Set the timing of the three-stage timer. If the same fault data is received within the timing period, the counter will increase by one. If the counter increases to three and the timer does not time out, it is determined to be an emergency fault. If the timer times out, it is determined to be a general fault.
[0036] Set the timing time and execution times of the sixth-order timer. If the same fault data is received within the timing time, the fault counter will increase by one. If the timer times out and the fault counter is not zero, the execution times will decrease by one, the fault counter will be cleared, and the timing time of the sixth-order timer will be reset. If the execution times are zero, it will be judged as a continuous fault.
[0037] As a preferred embodiment of the present invention, the current operating parameters include the user's body parameters, massage parameters and remaining massage time, wherein the user's body parameters include the height measured by a laser sensor and the weight measured by a pressure sensor; the massage mode includes full body massage and local massage, the massage position corresponds to the massage mode, the massage intensity is preset with multiple levels, the massage mode, massage position and massage intensity are all set by the user, and are obtained by real-time recording of the current massage chair; the lying angle of the massage chair is detected and recorded by the lying mechanism of the current massage chair.
[0038] As a preferred embodiment of the present invention, the method also includes determining whether the current massage chair has a fault when the cloud server receives a device replacement request. If there is a fault, the cloud server queries the database for the corresponding new massage chair status information based on the unique device identifier and returns it to the mobile phone.
[0039] As a preferred implementation of the present invention, the method uses HTTPS for data transmission between the mobile phone and the cloud server, and uses MQTT for data communication between the cloud server and the massage chair.
[0040] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, a shared massage service migration method for multi-device collaboration as described in any embodiment of the present invention is implemented.
[0041] The present invention also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements a shared massage service migration method for multi-device collaboration as described in any embodiment of the present invention.
[0042] Compared with the prior art, the present invention has the following beneficial effects:
[0043] 1) The present invention provides a shared massage service migration method for multi-device collaboration. The mobile phone scans the QR code of the new massage chair and sends a device replacement request to the cloud server. The cloud server queries the status information of the new massage chair and returns it to the mobile phone. After the user confirms the device replacement, the cloud server sends a device replacement request to the current massage chair, obtains the current operating parameters and terminates the operation, sends the current operating parameters to the new massage chair, starts the service and adjusts the parameters. The whole process ensures that the user can continue to enjoy continuous massage services when changing the device, thereby improving the user experience and satisfaction.
[0044] 2) The present invention provides a shared massage service migration method for multi-device collaboration, which can timely discover and handle massage chair faults through fault detection and fault type identification algorithms to ensure the normal operation of the equipment and the safety of users;
[0045] 3) The present invention provides a shared massage service migration method for multi-device collaboration, which uses HTTPS and MQTT for data transmission, ensuring data security and communication efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] Figure 1 It is a method flow chart of an embodiment of the present invention. DETAILED DESCRIPTION
[0047] The specific implementation modes of the present invention are described below so that those skilled in the art can understand the present invention. However, it should be clear that the present invention is not limited to the scope of the specific implementation modes. For those of ordinary skill in the art, as long as various changes are within the spirit and scope of the present invention as defined and determined by the attached claims, these changes are obvious, and all inventions and creations utilizing the concept of the present invention are protected.
[0048] The present invention provides the following technical solution: a shared massage service migration method for multi-device collaboration.
[0049] Embodiment 1:
[0050] like Figure 1 As shown, this embodiment provides a shared massage service migration method for multi-device collaboration, the method comprising:
[0051] S1. When the user completes the payment by scanning the QR code and finds that the current massage chair has a fault (such as a fault in a massage unit in a certain part of the massage chair) or wants to replace the massage chair due to other needs during the normal use of the massage chair, the user can select a new idle massage chair, scan the QR code on the new massage chair through the mobile phone, send the above unique device identification information to the cloud server, and request to query the status of the new massage chair, wherein the QR code contains the unique device identification information of the new massage chair;
[0052] S2. After receiving the request, the cloud server queries the status of the massage chair in the database according to the unique device identification information of the new massage chair, including whether it is idle and whether there is a fault; if the new massage chair is idle and has no fault, the new massage chair replies to the cloud server with idle information, and the cloud server replies to the mobile terminal that the new massage chair is idle;
[0053] S21. Determine whether there is a fault by using a massage chair fault detection algorithm and a fault type identification algorithm:
[0054] S211, the massage chair fault detection algorithm includes running speed detection, motor state detection and motion component detection;
[0055] The running speed detection ensures the normal operation of the motor and avoids poor massage effect or equipment damage caused by abnormal speed, specifically:
[0056] Start the motor, collect real-time speed data using the speed sensor and compare it with the dynamically adjusted speed threshold. If the real-time speed data meets the speed threshold range, the motor is normal; if no speed sensor data is received within a preset time interval, report a speed sensor failure. Preferably, the preset time interval is adjusted according to the actual application situation, for example, 5 seconds;
[0057] The speed threshold range is determined based on the design parameters of the motor and the use environment, ensuring that the motor will not cause unnecessary wear due to excessive speed, nor will it affect the massage effect due to excessive slowness. Preferably, in this embodiment, the speed threshold is dynamically adjusted according to the use frequency and ambient temperature of the massage chair, specifically:
[0058] Set the basic speed threshold range, usage frequency influence coefficient and ambient temperature influence coefficient;
[0059] Obtain the current usage frequency and ambient temperature of the massage chair to be determined;
[0060] Calculate the frequency adjustment value △F, expressed as:
[0061] △F=K f *F;
[0062] In the formula, K f is the frequency of use influence coefficient, F is the current frequency of use of the massage chair to be determined;
[0063] Calculate the ambient temperature adjustment value △T, expressed as:
[0064] △T=K t *(T-25);
[0065] In the formula, K t is the environmental temperature influence coefficient, T is the current usage frequency of the massage chair to be determined;
[0066] The speed threshold is adjusted based on the frequency adjustment value △F and the ambient temperature adjustment value △T, and is expressed as follows:
[0067] L' 0 =L 0 *(1+△F+△T);
[0068] L' 1 =L 1 *(1+△F+△T);
[0069] Where L' 0 is the lower limit of the speed threshold after adjustment, L 0 is the lower limit of the basic speed threshold, L' 1 is the upper limit of the speed threshold after adjustment, L 1 is the upper limit of the basic speed threshold;
[0070] The motor state detection includes motor over-temperature, over-voltage and over-current detection, and real-time temperature data, voltage data and current data are obtained through temperature sensors, voltage sensors and current sensors, and compared with preset temperature thresholds, voltage thresholds and current thresholds respectively. If the preset threshold range is exceeded, an over-temperature, over-voltage or over-current fault exists;
[0071] Furthermore, temperature sensors are installed at key heating parts of the motor (such as motor windings, motor housing, etc.), and the temperature sensors collect temperature data of the motor in real time; a safe temperature threshold range is pre-set, and the range is determined based on the rated operating temperature of the motor and the temperature fluctuations that may occur during its normal operation. When the real-time temperature data collected by the temperature sensor exceeds the upper limit of the temperature threshold range, it is determined that the motor has an over-temperature fault, which may be caused by abnormal conditions such as long-term high-load operation of the motor, failure of the cooling system (such as damage to the cooling fan, blockage of the air duct, etc.), or a short circuit inside the motor. Once an over-temperature fault is detected, an alarm signal is immediately issued, and measures such as reducing the motor power and suspending the motor operation are taken at the same time to avoid damage to the motor due to high temperature;
[0072] Connect the voltage sensor to the power supply circuit of the motor, monitor the voltage value at both ends of the motor in real time, and set a reasonable voltage threshold range based on the rated voltage of the motor, taking into account the normal fluctuation of the power supply voltage and the maximum and minimum voltage values that the motor can withstand. When the real-time voltage value collected by the voltage sensor exceeds the upper limit of the voltage threshold range, it is determined that the motor has an overvoltage fault. Overvoltage may be caused by unstable power supply, voltage regulator failure and other reasons. Overvoltage will damage the insulation layer of the motor winding, increase the power consumption of the motor, and may even cause serious consequences such as motor burning. Therefore, when an overvoltage fault is detected, measures such as cutting off the power supply or adjusting the power supply will be taken quickly to protect the motor from damage;
[0073] The current sensor is used to monitor the current of the motor in real time when it is running, and a suitable current threshold range is determined based on the rated power and rated current of the motor. During the normal operation of the motor, its current value should fluctuate within this threshold range. When the real-time current value collected by the current sensor exceeds the upper limit of the current threshold range, the motor is determined to have an overcurrent fault. Overcurrent may be caused by excessive motor load (such as the massage components of the massage chair being stuck by foreign objects), short circuit of the motor winding, drive circuit failure, etc. Overcurrent will increase the heating of the motor and shorten the service life of the motor. In severe cases, it may cause damage to the motor. Once an overcurrent fault is detected, an alarm will be issued immediately and corresponding protective measures will be taken, such as reducing the motor load and cutting off the power supply.
[0074] The motion component detection ensures that the motion component connected to the motor can correctly move to the predetermined position to avoid inaccurate massage effect or equipment jamming due to position failure, including kneading mechanism detection, knocking mechanism detection and guide rail mechanism detection, wherein:
[0075] The kneading mechanism detection specifically monitors the wide, medium and narrow position signals corresponding to the motion components connected to the kneading motor in real time. If the wide, medium and narrow position signals are completely detected within a limited maximum time (e.g., 10 seconds), the kneading mechanism is normal, otherwise the kneading mechanism is determined to be stuck; if the wide, medium and narrow position signals are not detected, and the number of kneading motor speed pulses exceeds the theoretical maximum value of a single tapping cycle within the set maximum time, the position sensor is determined to be faulty;
[0076] The knocking mechanism detection specifically monitors the high, medium and low position signals corresponding to the motion components connected to the knocking motor in real time. If the high, medium and low position signals are completely detected within a limited maximum time, the knocking mechanism is normal, otherwise the knocking mechanism is determined to be stuck; if the high, medium and low position signals are not detected, and the number of knocking motor speed pulses exceeds the theoretical maximum value of a single knocking cycle within the set maximum time, the position sensor is determined to be faulty;
[0077] The guide rail mechanism detection is specifically to monitor the top dead center, mid-range point and bottom dead center position signals corresponding to the motion components connected to the up and down travel motors in real time. If the top dead center, mid-range point and bottom dead center position signals are not triggered within a preset time during the walking process, the guide rail mechanism is determined to be derailed; when the top dead center, mid-range point and bottom dead center position signals are continuously missing, if the encoder pulse number of the up and down travel motors exceeds the full stroke theoretical value, the limit switch is determined to be faulty;
[0078] S212, the fault type identification algorithm uses a three-order timer and a six-order timer to classify the fault data, wherein:
[0079] The third-order timer is used to determine general and emergency faults, and the sixth-order timer is used to determine continuous and non-continuous faults. Specifically:
[0080] The three-stage timer is set to 5 minutes. If the same fault data is received within the time limit, the counter will increase by one. If the counter increases to three and the timer has not timed out, it is considered an emergency fault. If the timer times out, it is considered a general fault. For example, if the same motor fault report is received three times within 5 minutes, the system will determine it as an emergency fault, immediately stop the current massage service, and the cloud server will notify the user and arrange for the replacement of the equipment.
[0081] Preferably, when the detection result is a general fault, the cloud server will record the fault and store it in the database. The cloud server will continue to monitor the fault to observe whether it will recur in the subsequent time; if the general fault does not immediately affect the user experience, the cloud server will not notify the user immediately, but will prompt a routine inspection the next time the device is used. If the general fault recurs multiple times within a certain period of time (for example, 24 hours), the cloud server will notify the maintenance personnel to conduct further inspections;
[0082] The six-stage timer is set to a 30-minute timing time and executed six times. If the same fault data is received within the timing time, the fault counter will increase by one; if the timer times out and the fault counter is not zero, the execution count will decrease by one, the fault counter will be cleared, and the timer timing will be reset; if the execution count is zero, it is determined to be a continuous fault; for example, if the same motion component fault report is received six times in a row within 30 minutes, the system will determine it as a continuous fault, and the cloud server will record it and arrange for technicians to conduct detailed inspection and repair;
[0083] S3, the mobile terminal receives the idle information, guides the user to confirm, and asks the user whether to confirm the change to the new massage chair: the user can choose to confirm or cancel the change. If the user confirms the change, the mobile terminal sends a confirmation change message to the cloud server; if the user cancels, the change process ends;
[0084] S4. After receiving the user's confirmation message for changing the device, the cloud server requests the current massage chair for the current operating parameters, including the user's body parameters, massage parameters, and remaining massage time, where:
[0085] S41. The current massage chair collects the user's body parameters, including height and weight, through built-in sensors when the user is using it. Furthermore, the massage chair has a pair of infrared emission tubes on the backrest massage head to detect the highest position of the user's shoulders. When the user scans the code to start the massage, the massage head on the backrest will move up and down. When it reaches the highest position of the shoulder, the angle at which the massage head is pressed suddenly changes, and the infrared tube will change the shoulder height level to the main control board. The main control board program can then know the corresponding position of the user's shoulder on the backrest. Below this position is the instep, and above this position is the human neck and head. Targeted massage will be performed according to this position later.
[0086] The massage chair also includes pressure sensors for measuring the weight of the user, and the pressure sensors are distributed in different areas of the seat to sense the weight distribution of the user's body;
[0087] S42, the massage parameters include massage mode, massage position, massage intensity and massage chair lying angle, and further:
[0088] The massage modes include full body massage and local massage. Full body massage is designed to systematically massage multiple parts of the body or the whole body, allowing users to relax muscles throughout the body and relieve overall fatigue and stress during one massage. Local massage focuses on specific parts of the body, such as the waist, neck, shoulders, etc. When a user feels uncomfortable or tired in a specific part of the body, the local massage mode can be selected to focus on alleviating the problem in that part.
[0089] The massage positions are closely related to the massage modes. In the full body massage mode, the massage positions involve multiple parts of the body, and the massage chair massages different parts in sequence according to the preset program; while in the local massage mode, the massage positions focus on specific areas specified by the user, such as massaging specific acupuncture points or areas on the waist;
[0090] A set of massage techniques (i.e. massage mode) is composed of a series of different positions and different techniques. The massage chair performs these techniques in a pre-set order to achieve a specific massage effect. For example, the waist may be kneaded first, and then the legs may be tapped.
[0091] It is worth noting that, in this embodiment, by presetting the sequence, when the user needs to change the massage device, by recording the sequence number of the massage technique currently being executed, the massage can be continued directly from the step corresponding to the sequence number on the new massage device, thereby ensuring the continuity of the massage process and avoiding interruption of the massage process due to changing the device, providing the user with a more convenient and comfortable experience;
[0092] The massage intensity is divided into multiple levels, and the user can flexibly set the massage intensity according to his or her own tolerance and needs through the mini program equipped with the current massage chair;
[0093] The current massage chair records the massage mode, massage position and massage intensity set by the user in real time; the reclining angle of the massage chair is detected and recorded by the reclining mechanism of the current massage chair;
[0094] Preferably, in this embodiment, the multiple levels of massage intensity are specifically:
[0095] Level 1 - Gentle: Minimum force, 10% to 30% of maximum force;
[0096] Level 2 - Standard: Medium force, 40% to 60% of maximum force;
[0097] Level 3 - Strong: Greater force, 70% to 90% of the maximum force;
[0098] Level 4 - Extreme: Maximum force, 100% of the maximum force;
[0099] Preferably, in this embodiment, the reclining mechanism of the massage chair includes a motor, a gear set, a connecting rod and a reclining bracket, which are used to adjust the supine angle of the massage chair; this embodiment uses a high-precision Hall sensor or a rotary encoder as an angle sensor, collects multiple data points per second, and records the change of the reclining angle in real time, wherein the measurement range of the angle sensor is 0°-180°, and the resolution is ±0.1°. Specifically, the current angle θ is calculated by the pulse signal of the angle sensor, which is expressed as:
[0100]
[0101] In the formula, n is the number of pulses, and N is the total number of pulses;
[0102] S43, the remaining massage time is obtained through the built-in timer of the massage chair. Before starting the massage, the user selects the total massage time, such as 10 minutes, 20 minutes or 30 minutes, etc. After the massage starts, the built-in timer starts counting down and updates the remaining time in real time;
[0103] S44. At the same time, the cloud server requests the current massage chair to end the service; after receiving the end service request, the current massage chair replies with the current operating parameters to the cloud server and terminates the operation;
[0104] S5. The cloud server sends the acquired current operating parameters to the new massage chair and requests the new massage chair to start the massage service. After receiving the current operating parameters and the start-up request, the new massage chair adjusts its own massage mode, massage position, massage intensity and lying angle according to the current operating parameters, continues to provide massage services to the user according to the remaining time, and replies to the cloud server that the new device has been successfully started.
[0105] S6. After receiving the successful power-on information, the cloud server replies to the mobile phone with a successful device change information. The mobile phone interface prompts the user that the device change is successful, and the user can continue to enjoy the massage service with the same parameters and remaining duration as the old massage chair (i.e., the current massage chair) on the new massage chair;
[0106] S7. Preferably, HTTPS encrypts data through SSL / TLS, protects the privacy and integrity of user data during transmission, prevents data from being stolen or tampered with, uses a certificate authority (CA) to authenticate the server, and establishes a trust relationship between the user and the server. HTTPS is a Web standard that is supported by almost all modern browsers and development platforms and is easy to implement and maintain. Therefore, in this embodiment, HTTPS is used for data transmission between the mobile phone and the cloud server;
[0107] MQTT is designed as a lightweight protocol that occupies little bandwidth and is suitable for resource-constrained devices and network environments. Considering that the massage chair may work in different network environments and requires low bandwidth and low latency, in this embodiment, MQTT is used for data communication between the cloud server and the massage chair;
[0108] It is worth noting that the present embodiment does not limit the data transmission between the mobile phone and the cloud server to only HTTPS. In addition to HTTPS, the HTTP / 3 protocol can also be used. HTTP / 3 is built on the QUIC protocol, which solves the head-of-line blocking problem existing in HTTP / 2 and can provide faster and more stable data transmission in a network environment with a high packet loss rate. For example, in some outdoor scenarios where the network signal is unstable, the mobile phone uses HTTP / 3 to communicate with the cloud server, which can significantly reduce the delay in data transmission and improve the response speed of the user when operating the massage chair application. It also supports encrypted transmission to ensure the security of user data.
[0109] In terms of data communication between the cloud server and the massage chair, in addition to MQTT, the CoAP (Constrained Application Protocol) protocol is also a good choice. CoAP is an application layer protocol designed specifically for constrained nodes and networks, and is suitable for resource-constrained IoT devices such as massage chairs. It uses UDP as the transport layer protocol and has the characteristics of low overhead and low latency. Unlike MQTT, CoAP is based on the RESTful architectural style and provides a request-response model similar to HTTP, which is easy to integrate with existing Web services. If the massage chair needs to interact with other Web-based smart home systems, using the CoAP protocol can more easily achieve data sharing and interoperability, while also ensuring efficient communication in a low-bandwidth network environment.
[0110] In addition, for some scenarios that require extremely high real-time data transmission, such as real-time monitoring of the operating status of a massage chair and precise control, the WebSocket protocol can also be used as a supplement to the communication between the cloud server and the massage chair. WebSocket is a protocol for full-duplex communication on a single TCP connection. Once the connection is established, the server and client can send data to each other at any time without frequently establishing and disconnecting the connection, which greatly reduces communication overhead and latency. It can establish a real-time two-way communication channel between the cloud server and the massage chair, ensuring that the various status data of the massage chair can be fed back to the cloud server in a timely and accurate manner. At the same time, the cloud server can also quickly convey control instructions to the massage chair, providing users with a smoother and more accurate massage experience. As long as the security and low latency of data transmission can be guaranteed and adapt to different network environments, these protocols can be flexibly selected according to specific application scenarios.
[0111] Embodiment 2:
[0112] The present embodiment provides a shared massage service migration method for multi-device collaboration. The difference between the method and implementation 1 is that when the cloud server receives a device replacement request, the present embodiment uses a massage chair fault detection algorithm and a fault type identification algorithm to determine whether the current massage chair has a fault. If there is a fault, the cloud server queries the database for the corresponding new massage chair status information based on the unique device identifier and returns it to the mobile phone. The method of the present embodiment only supports replacement of the device when the device fails, so as to avoid users frequently changing the device for no reason.
[0113] Embodiment 3:
[0114] The present invention further provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, a shared massage service migration method for multi-device collaboration as described in any embodiment of the present invention is implemented;
[0115] Embodiment 4:
[0116] The present invention also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements a shared massage service migration method for multi-device collaboration as described in any embodiment of the present invention.
[0117] It is worth noting that the electronic device and computer-readable storage medium described in the present invention are based on the same inventive concept as the method described in the present invention, and will not be described in detail herein.
[0118] The above descriptions are merely embodiments of the present invention and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A shared massage service migration method for multi-device collaboration, characterized in that: The method comprises: The user scans the QR code of the new massage chair through the mobile phone to send a device replacement request to the cloud server. The QR code contains the unique device identifier corresponding to the new massage chair; The cloud server receives the device replacement request, queries the database for the corresponding new massage chair status information according to the unique device identifier, and returns the information to the mobile phone; The mobile phone receives the new massage chair status information, and the interface displays a prompt to confirm the device change. The user confirms the device change through the mobile phone, and the mobile phone sends the device change confirmation information to the cloud server; The cloud server receives the machine change confirmation information and sends a machine change request to the current massage chair, wherein the machine change request includes a current operation parameter acquisition request and an operation termination request. The current massage chair receives the machine change request, returns the current operation parameters to the cloud server, and terminates the operation. The cloud server sends the current operating parameters to the new massage chair and requests the new massage chair to start the service; the new massage chair receives the service start request and starts up, adjusts the parameters according to the current operating parameters, and returns a successful startup message; The cloud server receives the successful startup information of the new massage chair and sends the successful device replacement information to the mobile phone. The mobile phone interface prompts the user that the device replacement is successful.
2. A shared massage service migration method for multi-device collaboration according to claim 1, characterized in that: The new massage chair status information includes whether it is idle and whether there is a fault, wherein whether there is a fault is determined by a massage chair fault detection algorithm and a fault type identification algorithm.
3. A shared massage service migration method for multi-device collaboration according to claim 2, characterized in that: The massage chair fault detection algorithm includes running speed detection, motor state detection and motion component detection, wherein: The running speed detection is specifically to start the motor, collect real-time speed data using a speed sensor and compare it with a dynamically adjusted speed threshold. If the real-time speed data meets the speed threshold range, the motor is normal, otherwise the motor is faulty; if no speed sensor data is received within a preset time interval, the speed sensor is faulty; The motor state detection includes motor over-temperature, over-voltage and over-current detection, and real-time temperature data, voltage data and current data are obtained through temperature sensors, voltage sensors and current sensors, and compared with preset temperature thresholds, voltage thresholds and current thresholds respectively. If the preset threshold range is exceeded, an over-temperature, over-voltage or over-current fault exists; The motion component detection includes kneading mechanism detection, knocking mechanism detection and guide rail mechanism detection: The kneading mechanism detection specifically monitors the wide, medium and narrow position signals corresponding to the motion components connected to the kneading motor in real time. If the wide, medium and narrow position signals are completely detected within the specified maximum time, the kneading mechanism is normal, otherwise the kneading mechanism is determined to be stuck; if the wide, medium and narrow position signals are not detected, and the number of kneading motor speed pulses exceeds the theoretical maximum value of a single tapping cycle within the set maximum time, the position sensor is determined to be faulty; The knocking mechanism detection specifically monitors the high, medium and low position signals corresponding to the motion components connected to the knocking motor in real time. If the high, medium and low position signals are completely detected within a limited maximum time, the knocking mechanism is normal, otherwise the knocking mechanism is determined to be stuck; if the high, medium and low position signals are not detected, and the number of knocking motor speed pulses exceeds the theoretical maximum value of a single knocking cycle within the set maximum time, the position sensor is determined to be faulty; The guide rail mechanism detection specifically monitors the top dead center, mid-range point and bottom dead center position signals corresponding to the moving components connected to the up and down travel motors in real time. If the top dead center, mid-range point and bottom dead center position signals are not triggered within a preset time during the walking process, the guide rail mechanism is determined to be derailed; when the top dead center, mid-range point and bottom dead center position signals are continuously missing, if the encoder pulse number of the up and down travel motors exceeds the full stroke theoretical value, the limit switch is determined to be faulty.
4. A shared massage service migration method for multi-device collaboration according to claim 3, characterized in that: The speed threshold is dynamically adjusted according to the frequency of use of the massage chair and the ambient temperature, specifically: Set the basic speed threshold range, usage frequency influence coefficient and ambient temperature influence coefficient; Obtain the current usage frequency and ambient temperature of the massage chair to be determined; Calculate the frequency adjustment value △F, expressed as: △F=K f *F; In the formula, K f is the frequency of use influence coefficient, F is the current frequency of use of the massage chair to be determined; Calculate the ambient temperature adjustment value △T, expressed as: △T=K t *(T-25); In the formula, K t is the environmental temperature influence coefficient, T is the current usage frequency of the massage chair to be determined; The speed threshold is adjusted based on the frequency adjustment value △F and the ambient temperature adjustment value △T, and is expressed as follows: L'0 = L0*(1+△F+△T); L'1 = L1*(1+△F+△T); Wherein, L'0 is the lower limit of the speed threshold after adjustment, L0 is the lower limit of the basic speed threshold, L'1 is the upper limit of the speed threshold after adjustment, and L1 is the upper limit of the basic speed threshold.
5. The method for migrating a shared massage service for multi-device collaboration according to claim 2, characterized in that: The fault type identification algorithm uses a three-order timer and a six-order timer to classify fault data, where: Set the timing of the three-stage timer. If the same fault data is received within the timing period, the counter will increase by one. If the counter increases to three and the timer does not time out, it is determined to be an emergency fault. If the timer times out, it is determined to be a general fault. Set the timing time and execution times of the sixth-order timer. If the same fault data is received within the timing time, the fault counter will increase by one. If the timer times out and the fault counter is not zero, the execution times will decrease by one, the fault counter will be cleared, and the timing time of the sixth-order timer will be reset. If the execution times are zero, it will be judged as a continuous fault.
6. The method for migrating a shared massage service for multi-device collaboration according to claim 1, characterized in that: The current operating parameters include the user's body parameters, massage parameters and remaining massage time, wherein the user's body parameters include the height measured by a laser sensor and the weight measured by a pressure sensor; the massage modes include full body massage and local massage, the massage positions correspond to the massage modes, the massage intensity is preset with multiple levels, the massage mode, massage position and massage intensity are all set by the user, and are recorded in real time by the current massage chair; the lying angle of the massage chair is detected and recorded by the lying mechanism of the current massage chair.
7. The method for migrating a shared massage service for multi-device collaboration according to claim 1, characterized in that: The method also includes determining whether the current massage chair has a fault when the cloud server receives a device replacement request. If a fault exists, the cloud server queries the database for corresponding new massage chair status information based on the unique device identifier and returns the information to the mobile phone.
8. The method for migrating a shared massage service for multi-device collaboration according to claim 1, characterized in that: The method uses HTTPS for data transmission between the mobile phone and the cloud server, and uses MQTT for data communication between the cloud server and the massage chair.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, a shared massage service migration method for multi-device collaboration is implemented as described in any one of claims 1 to 8.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, a shared massage service migration method for multi-device collaboration is implemented as described in any one of claims 1 to 8.
Citation Information
Patent Citations
Massage chair intelligent control method
CN108922049A