A massage chair dual-mode network adaptive switching control system

CN122802545APending Publication Date: 2026-09-22QIAOSHAN FITNESS EQUIP (SHANGHAI) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611101167.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-07-23
Publication Date
2026-09-22

AI Technical Summary

Technical Problem

[0004]综上所述,现有技术中缺乏一种能够在云端连接与本地控制之间自动切换,并确保切换前后按摩程序连续性和用户状态一致性的按摩椅网络控制系统

Benefits of technology

(1)网络自适应与连续性保障:通过双模切换架构和离线数据同步机制,解决了现有云端方案网络中断即失效、本地方案智能水平不足的两难问题,确保按摩服务在任何网络条件下的连续性。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122802545A_ABST
    Figure CN122802545A_ABST
Patent Text Reader

Abstract

The application provides a massage chair dual-mode network adaptive switching control system, comprising: a massage chair body, a built-in main control MCU, a massage execution mechanism and a sensor array; a dual-mode communication module, a cloud connection channel for establishing a communication link with a cloud server through a wireless network, and a local fallback channel for performing basic voice control in a local embedded environment; a network state monitoring and automatic switching module for detecting the network connectivity of the cloud connection channel at a preset heartbeat interval; an offline data synchronization module for buffering user interaction data and massage execution state, and uploading the buffered data to the cloud server after switching back to the cloud connection channel; and a voiceprint recognition binding module for identifying the identity of a user through voiceprint features and binding the identified user identity with user data in the cloud server. The application has dual-mode network adaptive switching capability, while ensuring the continuity of the massage program and the consistency of the user state before and after switching.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of network communication technology for intelligent massage devices, and in particular to a dual-mode network adaptive switching control system for massage chairs. Background Technology

[0002] With the rapid development of IoT technology, smart massage chairs are gradually integrating cloud-based AI services to achieve advanced functions such as voice interaction and remote control. However, existing massage chairs with cloud-based AI voice interaction generally adopt a purely cloud-dependent architecture. Once the network is interrupted or the signal is unstable, the voice interaction function immediately fails, forcing users to switch back to traditional button control, resulting in a sharp decline in the interactive experience.

[0003] Some solutions employ a fully localized AI architecture, which solves the offline availability problem but sacrifices the intelligence level and continuous learning capabilities of large cloud-based models. Existing technologies fail to effectively integrate the advantages of cloud intelligence and local reliability, lacking a systematic solution for automatically switching when network conditions change and maintaining service continuity during the switching process.

[0004] In summary, the existing technology lacks a massage chair network control system that can automatically switch between cloud connection and local control, and ensure the continuity of the massage program and the consistency of the user's state before and after the switch. Summary of the Invention

[0005] The purpose of this invention is to provide a dual-mode network adaptive switching control system for massage chairs. This system has dual-mode network adaptive switching capability and can automatically switch between cloud online mode and local offline mode to ensure that massage control and voice interaction are uninterrupted under any network condition. At the same time, through an offline data synchronization mechanism, it ensures the continuity of the massage program and the consistency of the user's status before and after switching.

[0006] In a first aspect, the present invention provides a dual-mode network adaptive switching control system for a massage chair, comprising: The massage chair body has a built-in main control MCU, massage actuator and sensor array; The dual-mode communication module includes a cloud connection channel and a local fallback channel. The cloud connection channel is used to establish a communication link with the cloud server via a wireless network, while the local fallback channel is used to perform basic voice control in a local embedded environment. The network status monitoring and automatic switching module is used to detect the network connectivity of the cloud connection channel at a preset heartbeat interval. When the number of consecutive failures reaches the first threshold, the control flow is automatically switched from the cloud connection channel to the local fallback channel. When the number of consecutive recovery reaches the second threshold, the control flow is automatically switched back to the cloud connection channel. The offline data synchronization module is used to cache user interaction data and massage execution status during control flow switching, and upload the cached data to the cloud server after switching back to the cloud connection channel; The voiceprint recognition and binding module is used to identify users' identities through voiceprint features and bind the identified user identities to user data in the cloud server.

[0007] In one possible implementation, the dual-mode communication module further includes a WiFi module, which communicates with the main control MCU via a serial port. The main control MCU is an embedded microcontroller used for actuator low-level drive control, sensor array data acquisition, multi-protocol communication processing, and local security verification.

[0008] In yet another possible implementation, the local fallback channel includes: An offline wake-up word detection unit is used to detect preset voice wake-up words; A finite instruction word recognition unit is used to recognize pre-stored local control instruction sets; The local pre-stored massage program call unit is used to directly call the standard massage program stored in the local memory.

[0009] In other possible implementations, the network status monitoring and automatic handover module includes: A heartbeat detection mechanism is used to send network probe packets to the cloud server at preset time intervals; The switching decision unit is used to maintain the failure counter and the recovery counter. When the failure counter accumulates to a preset threshold, it triggers a switch to the local fallback channel. When the recovery counter accumulates to a preset threshold, it triggers a switch back to the cloud connection channel. The state freeze unit is used to save the current massage execution state during the switching process to ensure the continuity of the massage program before and after the switch.

[0010] In another possible implementation, the offline data synchronization module includes: A circular buffer is used to store user interaction commands and massage execution status during network anomalies, following a first-in-first-out principle. The breakpoint resume unit is used to upload the cached data in the circular buffer to the cloud server in chronological order after the cloud connection is restored, and compare the local cache status with the cloud status to eliminate data conflicts.

[0011] In another possible implementation, the massage chair body includes a massage actuator comprising a DC motor, an airbag pump and solenoid valve array, a graphene heating unit, and an electric push rod; the sensor array comprises a seat / backrest film pressure sensor array, a Hall effect position sensor, a heating temperature sensor, and an airbag pressure sensor.

[0012] Secondly, the present invention also provides a dual-mode network adaptive switching control method for a massage chair, wherein the dual-mode network switching process includes the following states and transition logic: Online state S201: System initial state; WiFi module is normally connected to cloud MQTT Broker, and all voice interaction and massage control commands are processed through the cloud; Heartbeat detection mechanism sends a probe packet every 5 seconds. If no Broker response is received for 3 consecutive times, the decision unit switches to trigger state transition to detection state S202. Detection State S202: After entering the detection state, the heart rate increases to once every 2 seconds to continuously detect the network recovery status; at the same time, the currently executing massage program continues to run, but new voice interaction commands begin to enter the buffer queue; if the network does not recover after 10 seconds in the detection state, it enters the degraded state S203; if the network recovers within 10 seconds, it returns to the online state S201. Fallback state S203: Control flow switches to the local fallback channel, cloud services are paused, the local embedded voice link is activated, and the offline data synchronization module begins recording user interaction data; Local functions in fallback state include: offline wake word detection, limited command word recognition, and pre-stored massage program invocation; During fallback state, the heartbeat detection mechanism still probes the cloud at 5-second intervals, and when Broker responses are received 3 times consecutively, recovery state S204 is triggered; Recovery State S204: Send a recovery notification to the cloud service, including the interaction logs cached during the offline period; the cloud service quickly restores the user's state based on the logs. If the local massage program being executed conflicts with the program that will be delivered from the cloud, a smooth transition will be made in accordance with the principle of "not interrupting the user experience"; after the recovery is completed, return to the online state S201.

[0013] Thirdly, embodiments of the present invention also provide a computer-readable storage medium comprising a program that, when run on an electronic device, causes the electronic device to perform the methods described in the possible implementations above.

[0014] Fourthly, this invention also provides an electronic device, including a memory and a processor, wherein the memory stores a program that can run on the processor, and when the program is executed by the processor, the electronic device performs the method described above.

[0015] Compared with the prior art, the present invention has the following advantages: (1) Network Adaptability and Continuity Guarantee: Through the dual-mode switching architecture and offline data synchronization mechanism, the dilemma of existing cloud solutions failing when the network is interrupted and local solutions lacking intelligence is solved, ensuring the continuity of massage services under any network conditions.

[0016] (2) Seamless switching: The current massage execution state is saved during the switching process through the state freezing unit, so the user will not feel the interruption or sudden change of the massage program before and after the switch, thus improving the user experience.

[0017] (3) Data integrity: Through the ring buffer and breakpoint resume mechanism, user interaction data and massage execution status will not be lost during network anomalies. After the connection is restored, it will be automatically synchronized to the cloud to ensure the integrity of user data.

[0018] (4) Local security fallback: Even in the extreme case of complete network outage, the local fallback channel can still provide basic functions such as wake word detection, limited command recognition and pre-stored massage program recall to ensure the basic availability of the massage chair.

[0019] In summary, this invention possesses dual-mode network adaptive switching capability, automatically switching between cloud-based online mode and local offline mode to ensure uninterrupted massage control and voice interaction under any network conditions. Simultaneously, through an offline data synchronization mechanism, it guarantees the continuity of the massage program and the consistency of the user's state before and after switching. This solves the technical problem of existing cloud-based AI voice interaction solutions for massage chairs where service immediately fails when the network is interrupted or the signal is unstable, forcing users to switch back to traditional button control. It achieves the technical effect of uninterrupted massage service under any network conditions and continuity of the massage program before and after switching. Attached Figure Description

[0020] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0021] Figure 1 This is a block diagram of the hardware architecture for dual-mode communication and network switching according to an embodiment of the present invention; Figure 2 This is a block diagram of the dual-mode network switching state machine according to an embodiment of the present invention; Figure 3 This is a block diagram of the hardware interface and communication protocol according to an embodiment of the present invention; Figure 4 This is a schematic diagram of an electronic device structure provided in an embodiment of the present invention. Detailed Implementation

[0022] In the description of embodiments of the present invention, the terminology used in the following embodiments is for the purpose of describing particular embodiments only and is not intended to be a limitation of the invention. As used in the specification and appended claims of the present invention, the singular expressions “a,” “the,” “the,” “the,” and “this” are intended to also include expressions such as “one or more,” unless the context clearly indicates otherwise. It should also be understood that in the following embodiments of the present invention, “at least one” and “one or more” refer to one or more (including two). The term “and / or” is used to describe the relationship between related objects, indicating that three relationships may exist; for example, A and / or B can indicate: A alone, A and B simultaneously, or B alone, where A and B can be singular or plural. The character “ / ” generally indicates that the preceding and following related objects are in an “or” relationship.

[0023] References to "one embodiment" or "some embodiments" as used in this specification mean that a particular feature, structure, or characteristic described in connection with that embodiment is included in one or more embodiments of the invention. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including, but not limited to," unless otherwise specifically emphasized. The term "connection" includes both direct and indirect connections, unless otherwise stated. "First" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features.

[0024] Reference Figures 1 to 3 As shown, this invention relates to the field of network communication technology for intelligent massage devices, and more particularly to a massage chair control system with dual-mode network adaptive switching, offline data synchronization, and state continuity assurance. Specifically, it provides a massage chair dual-mode network adaptive switching control system, which includes: The massage chair body has a built-in main control MCU, massage actuator and sensor array; The dual-mode communication module includes a cloud connection channel and a local fallback channel. The cloud connection channel is used to establish a communication link with the cloud server via a wireless network, while the local fallback channel is used to perform basic voice control in a local embedded environment. The network status monitoring and automatic switching module is used to detect the network connectivity of the cloud connection channel at a preset heartbeat interval. That is, it sends network probe packets to the cloud server at a preset heartbeat interval to detect network connectivity. When the number of consecutive failures reaches a first threshold, it automatically switches the control flow from the cloud connection channel to the local fallback channel. When the number of consecutive recovery reaches a second threshold, it automatically switches back to the cloud connection channel. During the switching process, the status freezing unit saves the current massage execution state to ensure the continuity of the massage program before and after the switch. The offline data synchronization module is used to cache user interaction data and massage execution status during control flow switching, and upload the cached data to the cloud server after switching back to the cloud connection channel; The voiceprint recognition and binding module is used to identify users' identities through voiceprint features and bind the identified user identities to user data in the cloud server.

[0025] In one possible implementation, the dual-mode communication module further includes a WiFi module, which communicates with the main control MCU via a serial port. The main control MCU is an embedded microcontroller used for actuator low-level drive control, sensor array data acquisition, multi-protocol communication processing, and local security verification. Specifically, the cloud connection channel establishes an MQTT communication link with the cloud server via a WiFi network; the local fallback channel is a local embedded voice command recognition and actuator control link used to maintain basic voice control functions in the event of network failure.

[0026] In yet another possible implementation, the local fallback channel includes: An offline wake-up word detection unit is used to detect preset voice wake-up words; A finite instruction word recognition unit is used to recognize pre-stored local control instruction sets; The local pre-stored massage program call unit is used to directly call the standard massage program stored in the local memory.

[0027] In other possible implementations, the network status monitoring and automatic handover module includes: A heartbeat detection mechanism is used to send network probe packets to the cloud server at preset time intervals; The switching decision unit is used to maintain the failure counter and the recovery counter. When the failure counter accumulates to a preset threshold, it triggers a switch to the local fallback channel. When the recovery counter accumulates to a preset threshold, it triggers a switch back to the cloud connection channel. The state freeze unit is used to save the current massage execution state during the switching process to ensure the continuity of the massage program before and after the switch.

[0028] In another possible implementation, the offline data synchronization module includes: A circular buffer is used to store user interaction commands and massage execution status during network anomalies, following a first-in-first-out principle. The breakpoint resume unit is used to upload the cached data in the circular buffer to the cloud server in chronological order through the breakpoint resume and consistency verification unit after the cloud connection is restored, and compare the local cache status with the cloud status to eliminate data conflicts.

[0029] In another possible implementation, the massage chair body includes a massage actuator comprising a DC motor, an airbag pump and solenoid valve array, a graphene heating unit, and an electric push rod; the sensor array comprises a seat / backrest film pressure sensor array, a Hall effect position sensor, a heating temperature sensor, and an airbag pressure sensor.

[0030] The invention will be illustrated below with specific examples.

[0031] Example 1: System Hardware Architecture like Figure 1 The diagram shown is a hardware architecture block diagram of the dual-mode communication and network switching of this invention. It illustrates the UART serial port connection between the WiFi module and the main control MCU, the offline voice link of the local fallback channel, the network detection process of the heartbeat detection mechanism, the counter logic of the switching decision unit, the ring buffer structure of the offline data synchronization module, and the registration and binding relationship of the voiceprint recognition binding module. Specifically, the dual-mode network adaptive switching control system for massage chairs described in this invention includes the following core components: (1) The massage chair body, including: Main control MCU: Uses GD32F10x series 32-bit microcontroller, operating frequency 108MHz, responsible for actuator low-level control, sensor data acquisition, and communication protocol processing; Massage actuator: includes a DC motor, airbag pump and solenoid valve array, graphene heating unit, and electric push rod; Sensor array: including seat / backrest film pressure sensor array, mechanism Hall position sensor, heating temperature sensor, and airbag pressure sensor.

[0032] (2) A dual-mode communication module, including: WiFi module: It adopts the ESP32-S3 chip, communicates with the main control MCU through UART1 (TX: PA9, RX: PA10), runs the MQTT client protocol, and connects to the cloud server; Local fallback voice link: includes an offline wake word detection unit (SU-03T module, connected via UART2) and a local command word recognition unit, used for basic voice control in case of network anomalies.

[0033] (3) Network status monitoring and automatic switching module, including: Heartbeat detection mechanism: Send MQTT PINGREQ to the cloud broker at 5-second intervals and wait for PINGRESP; Switching decision unit: Maintains a failure counter (fail_count) and a recovery counter (recover_count). When failure_count ≥ 3, a downgrade is triggered, and when recovery_count ≥ 3, a recovery is triggered. State Freeze Unit: Saves the current massage execution state during the switching process, including the current execution area, remaining time, current physical control parameter values, and massage program execution progress.

[0034] (4) Offline data synchronization module: It adopts a ring buffer structure to store the interaction logs during network anomalies. When the queue is full, the earliest record is overwritten according to the FIFO principle.

[0035] (5) Voiceprint recognition and binding module, used to identify user identity through voiceprint features and bind the identified user identity with cloud user data, so that the same massage chair can support multiple user voiceprint registration.

[0036] Example 2: Dual-mode network switching process like Figure 2 The diagram shown is a block diagram of the dual-mode network switching state machine of this invention. It illustrates the state transition conditions, trigger thresholds (fail_count≥3, recover_count≥3) between the online state, detection state, degraded state, and recovery state, the state freeze mechanism during the switching process, and the caching and uploading process of the offline data synchronization module. Specifically, the dual-mode network switching state machine includes the following states and transition logic: Online State S201: System initial state. The WiFi module is normally connected to the cloud MQTT Broker, and all voice interaction and massage control commands are processed through the cloud. The heartbeat detection mechanism sends a probe packet every 5 seconds. If no response is received from the Broker for 3 consecutive times (fail_count = 3), the decision-making unit is switched to the detection state S202.

[0037] Detection State S202: Upon entering the detection state, the heart rate increases to once every 2 seconds to continuously monitor network recovery. Simultaneously, the currently running massage program continues to run (maintained by the local MCU), but new voice interaction commands begin to enter the buffer queue. If recovery does not occur after 10 seconds in the detection state, the system enters the degraded state S203; if recovery occurs within 10 seconds, the system returns to the online state S201.

[0038] Fallback State S203: Control flow switches to the local fallback channel. Cloud services are paused, and the local embedded voice link is activated. The offline data synchronization module begins recording user interaction data. Local functions in fallback state include: offline wake word detection ("Xiao Mo Xiao Mo"), limited command word recognition (20-50 fixed commands), and invocation of pre-stored massage programs. During fallback state, the heartbeat detection mechanism still probes the cloud at 5-second intervals. When three consecutive Broker responses are received (recover_count = 3), recovery state S204 is triggered.

[0039] Recovery State S204: A recovery notification is sent to the cloud service, including the interaction logs cached during the offline period. The cloud service quickly restores the user's state based on the logs. If the currently executing local massage program conflicts with the program about to be delivered from the cloud, a smooth transition will be implemented to "not interrupt the user experience" (switching will occur after the current massage action is completed). After recovery is complete, the system returns to the online state S201.

[0040] Example 3: Hardware Interface and Communication Protocol like Figure 3 The diagram shown is a partial block diagram of the hardware interface and communication protocol of this invention. It illustrates the interface mapping relationship between the main control MCU and the WiFi module via UART1, and the driving of the massage actuator via PWM / GPIO, as well as the layered structure of the communication protocol stack. Specifically, the interface configuration between the main control MCU and the peripheral modules is as follows: (1) Communication with WiFi module: Interface: USART1 (PA9-TX, PA10-RX) Baud rate: 115200 bps Protocol: AT command set + MQTT frame encapsulation Heartbeat detection mechanism: The MCU sends AT+MQTTPING every 5 seconds via USART1, and the WiFi module forwards it to the cloud Broker; (2) Communication with the massage actuator: Mech motor: PWM output (TIMER1 / 2) drives the H-bridge circuit to control the movement of the 3D mechanism. Airbag solenoid valve: GPIO output + driver chip, controls the inflation and deflation of multiple airbags. Heating unit: PWM output controls the graphene heating film, and temperature closed-loop feedback is achieved through NTC thermistor; (3) Communication with the local fallback voice link: Interface: USART2 (local SU-03T offline voice module) Protocol: Custom serial port instruction set, supporting wake word detection and limited instruction recognition.

[0041] In other embodiments of the present invention, an electronic device 400 is disclosed, which can integrate the above-described system, such as... Figure 4 As shown, the hardware components include: one or more processors 401; memory 402; display 403; one or more application programs (not shown); and one or more computer programs 404. These components can be connected via one or more communication buses 405. The one or more computer programs 404 are stored in the memory 402 and configured to be executed by the one or more processors 401. The one or more computer programs 404 include instructions.

[0042] The present invention also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a computer, implements the method described in the above-described method embodiments. Specific beneficial effects can be found in the above-described method embodiments.

[0043] Through the above description of the embodiments, those skilled in the art will clearly understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In practical applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. The specific working process of the system, device, and unit described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0044] In the various embodiments of the present invention, the functional units can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0045] If the integrated unit is implemented as 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 embodiments of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) or processor to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as flash memory, portable hard disk, read-only memory, random access memory, magnetic disk, or optical disk.

[0046] The above description is merely a specific implementation of the embodiments of the present invention, but the protection scope of the embodiments of the present invention is not limited thereto. Any changes or substitutions within the technical scope disclosed in the embodiments of the present invention should be covered within the protection scope of the embodiments of the present invention. Therefore, the protection scope of the embodiments of the present invention should be determined by the protection scope of the claims.

Claims

1. A dual-mode network adaptive switching control system for a massage chair, characterized in that, include: The massage chair body has a built-in main control MCU, massage actuator and sensor array; The dual-mode communication module includes a cloud connection channel and a local fallback channel. The cloud connection channel is used to establish a communication link with the cloud server via a wireless network, while the local fallback channel is used to perform basic voice control in a local embedded environment. The network status monitoring and automatic switching module is used to detect the network connectivity of the cloud connection channel at a preset heartbeat interval. When the number of consecutive failures reaches the first threshold, the control flow is automatically switched from the cloud connection channel to the local fallback channel. When the number of consecutive recovery reaches the second threshold, the control flow is automatically switched back to the cloud connection channel. The offline data synchronization module is used to cache user interaction data and massage execution status during control flow switching, and upload the cached data to the cloud server after switching back to the cloud connection channel; The voiceprint recognition and binding module is used to identify users' identities through voiceprint features and bind the identified user identities to user data in the cloud server.

2. The massage chair dual-mode network adaptive switching control system as described in claim 1, characterized in that: The dual-mode communication module also includes a WiFi module, which communicates with the main control MCU via a serial port. The main control MCU is an embedded microcontroller used for actuator low-level drive control, sensor array data acquisition, multi-protocol communication processing, and local security verification.

3. The massage chair dual-mode network adaptive switching control system as described in claim 1 or 2, characterized in that, The local fallback channel includes: An offline wake-up word detection unit is used to detect preset voice wake-up words; A finite instruction word recognition unit is used to recognize pre-stored local control instruction sets; The local pre-stored massage program call unit is used to directly call the standard massage program stored in the local memory.

4. The massage chair dual-mode network adaptive switching control system as described in claim 1, characterized in that, The network status monitoring and automatic switching module includes: A heartbeat detection mechanism is used to send network probe packets to the cloud server at preset time intervals; The switching decision unit is used to maintain the failure counter and the recovery counter. When the failure counter accumulates to a preset threshold, it triggers a switch to the local fallback channel. When the recovery counter accumulates to a preset threshold, it triggers a switch back to the cloud connection channel. The state freeze unit is used to save the current massage execution state during the switching process to ensure the continuity of the massage program before and after the switch.

5. The massage chair dual-mode network adaptive switching control system as described in claim 1, characterized in that, The offline data synchronization module includes: A circular buffer is used to store user interaction commands and massage execution status during network anomalies, following a first-in-first-out principle. The breakpoint resume unit is used to upload the cached data in the circular buffer to the cloud server in chronological order after the cloud connection is restored, and compare the local cache status with the cloud status to eliminate data conflicts.

6. The massage chair dual-mode network adaptive switching control system as described in claim 1, characterized in that: The massage chair body includes a massage actuator comprising a DC motor, an airbag pump and solenoid valve array, a graphene heating unit, and an electric push rod; the sensor array comprises a seat / backrest film pressure sensor array, a Hall effect position sensor, a heating temperature sensor, and an airbag pressure sensor.

7. A dual-mode network adaptive switching control method for a massage chair, characterized in that, Its dual-mode network switching process includes the following states and transition logic: Online state S201: System initial state; The WiFi module is normally connected to the cloud MQTT Broker, and all voice interaction and massage control commands are processed through the cloud. The heartbeat detection mechanism sends a probe packet every 5 seconds. If no Broker response is received for 3 consecutive times, the decision unit is switched to the detection state S202. Detection State S202: After entering the detection state, the heart rate increases to once every 2 seconds to continuously detect the network recovery status; at the same time, the currently executing massage program continues to run, but new voice interaction commands begin to enter the buffer queue; if the network does not recover after 10 seconds in the detection state, it enters the degraded state S203; if the network recovers within 10 seconds, it returns to the online state S201. S203 in degraded state: Control flow switches to the local fallback channel, cloud services are paused, the local embedded voice link is activated, and the offline data synchronization module begins recording user interaction data; Local functions in degraded state include: offline wake word detection, limited command word recognition, and pre-stored massage program recall; during degraded state, the heartbeat detection mechanism still probes the cloud at 5-second intervals, and when it receives Broker response 3 times in a row, it triggers recovery state S204; Recovery State S204: Send a recovery notification to the cloud service, including the interaction logs cached during the offline period; the cloud service quickly restores the user's state based on the logs. If the local massage program being executed conflicts with the program that will be delivered from the cloud, a smooth transition will be made in accordance with the principle of "not interrupting the user experience"; after the recovery is completed, return to the online state S201.

8. A computer-readable storage medium storing a program therein, characterized in that, When the program is executed by the processor, it implements the method as described in claim 7.

9. An electronic device, characterized in that, The device includes a memory and a processor, wherein the memory stores a program that can run on the processor, and when the program is executed by the processor, causes the electronic device to perform the method as described in claim 7.