Control method and device of massage chair and massage chair
By responding to the massage intensity setting operation in the massage chair, an air pump drive signal is generated to control the airflow output of the air pump, solving the problem of the difficulty in accurately adjusting the intensity of existing massage chairs and achieving personalized and precise massage effects.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- SHANGHAI RONGTAI HEALTH TECHNOLOGY CORPORATION LIMITED
- Filing Date
- 2026-06-12
- Publication Date
- 2026-07-24
AI Technical Summary
Existing massage chairs struggle to precisely adjust massage intensity, resulting in a poor user experience.
By responding to the massage intensity setting operation, the target parameters are extracted, a drive signal for the massage air pump is generated, and the air pump is controlled to output the corresponding airflow to the airbag, thereby achieving precise control of the massage intensity.
It enables precise control and personalized adjustment of massage intensity, enhancing the user experience.
Smart Images

Figure CN122440451A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of intelligent control technology, and in particular to a control method, device and massage chair for a massage chair. Background Technology
[0002] With increasing emphasis on health and a comfortable lifestyle, massage chairs, as a common health and wellness device, have gradually become an indispensable part of modern homes. Traditional massage chairs typically use mechanical structures and preset massage modes, which can alleviate fatigue and aches to some extent, but their functions are relatively limited and cannot be personalized according to the user's physical characteristics and needs. In recent years, the emergence of intelligent massage chairs has broken through the limitations of traditional massage chairs, combining multiple functions such as air pressure massage, heat therapy, and music therapy, providing users with a more comprehensive and personalized comfort experience.
[0003] Currently, common massage chairs typically use airbags to achieve massage. However, most related technologies use adjusting the inflation time to control the airbags and thus achieve different massage intensities. Since the airbags are often connected, it is difficult to achieve precise control of the massage intensity, which reduces the user experience. Summary of the Invention
[0004] In view of this, the purpose of the present invention is to provide a control method, device and massage chair for a massage chair, so as to alleviate the defects of the related technology in that it is difficult to accurately adjust the massage intensity, thereby improving the user experience.
[0005] In a first aspect, embodiments of the present invention provide a control method for a massage chair, the method comprising: responding to a setting operation of a massage intensity applied to the massage chair; extracting the massage intensity corresponding to the setting operation; determining a target parameter corresponding to the massage intensity, wherein the target parameter is a control parameter for controlling a massage air pump of the massage chair; generating a drive signal for the massage air pump based on the target parameter; and driving the massage air pump based on the drive signal, so that the massage air pump outputs a corresponding airflow to a corresponding massage airbag, and produces a massage effect matching the massage intensity.
[0006] In conjunction with the first aspect, the present invention provides a first possible implementation of the first aspect, wherein the step of determining the target parameter corresponding to the massage intensity includes: determining the target parameter corresponding to the massage intensity according to a pre-configured mapping table; wherein the mapping table records the correspondence between different massage intensities and control parameters; and the control parameters include the power supply frequency and power supply voltage acting on the massage air pump.
[0007] In conjunction with the first aspect, this embodiment of the invention provides a second possible implementation of the first aspect, wherein the step of determining the target parameter corresponding to the massage intensity according to a pre-configured mapping table includes: whether the massage intensity is found in the mapping table; if so, determining the control parameter corresponding to the found massage intensity as the target parameter; if the massage intensity is not found in the mapping table, searching for the adjacent massage intensity in the mapping table; and performing interpolation calculation based on the control parameter corresponding to the adjacent massage intensity to obtain the target parameter corresponding to the massage intensity.
[0008] In conjunction with the second possible implementation of the first aspect, this embodiment of the invention provides a third possible implementation of the first aspect, wherein the step of interpolating the control parameters corresponding to the adjacent massage intensities to obtain the target parameters corresponding to the massage intensities includes: extracting the power supply frequency corresponding to the adjacent massage intensities, interpolating the power supply frequency to obtain an interpolated frequency; and extracting the power supply voltage corresponding to the adjacent massage intensities, interpolating the power supply voltage to obtain an interpolated voltage; and determining the interpolated frequency and the interpolated voltage as the target parameters.
[0009] In conjunction with the second possible implementation of the first aspect, this embodiment of the invention provides a fourth possible implementation of the first aspect, wherein the massage air pump is driven by the main controller of the massage chair, wherein the main controller outputs a drive signal for the massage air pump through a PWM port, and the drive signal is a PWM signal; the step of generating the drive signal for the massage air pump according to the target parameters includes: calculating a switching time parameter based on the power supply frequency in the target parameters, and calculating a duty cycle parameter for the drive signal based on the power supply voltage in the target parameters; and determining the switching time parameter and the duty cycle parameter as parameters of the drive signal.
[0010] In conjunction with the fourth possible implementation of the first aspect, this embodiment of the invention provides a fifth possible implementation of the first aspect, wherein the above-mentioned step of driving the massage air pump based on the driving signal includes: switching the driving direction of the massage air pump according to the switching time parameter; and controlling the PWM port to output a PWM signal according to the duty cycle parameter within each time interval corresponding to the switching time parameter, so as to drive the massage air pump.
[0011] In conjunction with the first aspect, the present invention provides a sixth possible implementation of the first aspect, wherein the above method further includes: displaying an operation interface through a graphical user interface, the operation interface being configured with a massage area selection control and a massage intensity selection control; determining a massage area in response to a touch operation applied to the massage area selection control; and driving the massage air pump based on the driving signal, the step of which includes: driving the massage air pump corresponding to the massage area based on the driving signal.
[0012] In conjunction with the sixth possible implementation of the first aspect, this embodiment of the invention provides a seventh possible implementation of the first aspect, wherein the step of extracting the massage intensity corresponding to the setting operation in response to the massage intensity setting operation applied to the massage chair includes: responding to the setting operation applied to the massage intensity selection control; if the setting operation is a level selection operation applied to the massage intensity selection control, then extracting the massage level corresponding to the level selection operation; searching for the massage intensity corresponding to the massage level in a pre-determined level intensity table; if the setting operation is a massage intensity input operation applied to the massage intensity selection control, then determining the intensity parameter input by the massage intensity input operation as the massage intensity.
[0013] Secondly, embodiments of the present invention also provide a control device for a massage chair, the device comprising: an extraction module, configured to extract the massage intensity corresponding to the setting operation in response to a massage intensity setting operation applied to the massage chair; a determination module, configured to determine a target parameter corresponding to the massage intensity, wherein the target parameter is a control parameter for controlling the massage air pump of the massage chair; a generation module, configured to generate a drive signal for the massage air pump based on the target parameter; and a control module, configured to drive the massage air pump based on the drive signal, so that the massage air pump outputs a corresponding airflow to the corresponding massage airbag and produces a massage effect matching the massage intensity.
[0014] Thirdly, embodiments of the present invention also provide a massage chair, wherein the controller of the massage chair is configured with the control device of the massage chair in the first aspect.
[0015] The embodiments of the present invention bring the following beneficial effects: This invention provides a control method, device, and massage chair for a massage chair. The method responds to a massage intensity setting operation applied to the massage chair, extracts the massage intensity corresponding to the setting operation, determines a target parameter corresponding to the massage intensity (where the target parameter is a control parameter for controlling the massage air pump of the massage chair), generates a drive signal for the massage air pump based on the target parameter, and drives the massage air pump based on the drive signal to output corresponding airflow to the corresponding massage airbags, producing a massage effect matching the massage intensity. Since the target parameter can be directly used to control the massage air pump, precise control of the massage intensity can be achieved. It also allows users to flexibly adjust the massage intensity, thereby providing a personalized and precise massage effect and enhancing the user experience.
[0016] Other features and advantages of the invention will be set forth in the description which follows, and will be apparent in part from the description, or may be learned by practicing the invention. The objects and other advantages of the invention are realized and obtained in accordance with the structures particularly pointed out in the description, claims and drawings.
[0017] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, preferred embodiments are described below in detail with reference to the accompanying drawings. Attached Figure Description
[0018] To more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0019] Figure 1 A flowchart of a control method for a massage chair provided in an embodiment of the present invention; Figure 2 A flowchart illustrating another control method for a massage chair provided in an embodiment of the present invention; Figure 3 This is a schematic diagram of the structure of a control device for a massage chair provided in an embodiment of the present invention; Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. Detailed Implementation
[0020] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0021] Currently, massage chairs typically employ the following methods for air pressure control: (1) Control the inflation time of the airbag, that is, control the massage pressure of the airbag by adjusting the inflation time. When multiple airbags are inflated at the same time, the air passages between the airbags are connected, which makes it impossible for a single airbag to achieve precise target pressure control. When the airbag inflation volume reaches its maximum volume threshold, it is no longer possible to adjust the inflation time to achieve the purpose of adjusting the massage intensity, because the pressure and flow rate output by the air pump are fixed. Therefore, it is difficult to meet the personalized needs of different users for the massage intensity of the airbag.
[0022] (2) Airbag support coordination control, that is, improving the user experience by coordinating the movement of the support airbag and the massage head. However, this method has the problem of dynamically adjusting the air pressure value of the support airbag according to users of different body types.
[0023] (3) Airbag inflation detection and control method: the airbag is inflated after the mechanism moves it to the upper limit position, and the shoulder position is determined by the displacement of the massage ball head under force. This method focuses more on the application of airbag in body shape detection and does not involve the precise control of the air pump output.
[0024] (4) Adaptive inflation control, that is, using the circuit board to generate the target air pressure value, starting inflation with the preset drive current frequency and duty cycle, detecting the current air pressure value in the airbag in real time and calculating the growth rate, increasing the duty cycle when the growth rate reaches an inflection point and has not reached the target, and decreasing the duty cycle to maintain pressure after reaching the target. Although this method can control the air pump output by adjusting the frequency and duty cycle, it adopts a closed-loop adaptive control architecture, that is, it must rely on the pressure sensor to detect the air pressure in real time and calculate the inflection point of the growth rate in order to dynamically adjust the output parameters. This scheme has the following shortcomings: High hardware cost: Each airbag needs to be equipped with an independent pressure sensor and ADC acquisition circuit; Large control delay: It is necessary to wait for the air pressure growth rate to reach an inflection point before it can determine whether to adjust, resulting in a response lag; Complex multi-airbag scenario: When multiple airbags work at the same time, an independent closed-loop control loop needs to be established for each airbag; Failure after airbag saturation: When the airbag is inflated to the maximum volume, the air pressure growth rate tends to zero, the inflection point detection algorithm fails, and it cannot continue to adjust.
[0025] Therefore, existing massage chair air pressure control solutions generally adopt a fixed output air pump + time / on / off control mode. Once the air pump is started, it operates at a constant frequency and voltage, outputting constant air pressure and flow. This architecture fundamentally limits the accuracy and flexibility of air pressure control, the need for personalized intensity adjustment, and the requirement for continuous adjustment after the airbag volume is saturated.
[0026] Based on this, the present invention provides a control method, device and massage chair for a massage chair, which can be used to control the air pressure and flow rate of the massage chair. By adjusting the target parameters output by the drive circuit, continuous, precise and independent control of the output air pressure and flow rate of the air pump can be achieved.
[0027] To facilitate understanding of this embodiment, a control method for a massage chair disclosed in this embodiment of the invention will first be described in detail.
[0028] In one possible implementation, this invention provides a control method for a massage chair. The massage chair in this embodiment is equipped with a pneumatic control function, specifically including a main control board, and a drive circuit, AC air pump, airbags, and air valves connected to the main control board. These structures collectively implement the control method for the massage chair in this embodiment. The main control board is equipped with a main controller, which can be located in the electrical control cabinet of the massage chair. The main controller can be implemented using a microcontroller (MCU) and is used to receive user-input parameters such as massage intensity, execute the control method for the massage chair in this embodiment, and output corresponding drive signals to the drive circuit to drive the airbags. The driving circuit refers to the driving circuit of the airbag, which is usually implemented using an H-bridge driver chip. It receives the driving signal from the MCU and converts it into an AC signal to drive the air pump. The AC air pump, also known as a massage air pump or simply an air pump, is connected to the supporting airbag assembly through a pipeline. It works under the drive of the AC signal output by the driving circuit and outputs an adjustable airflow. The air valve is used to control which airbag is inflated. The airbag refers to the massage airbag in this embodiment of the invention, which is a gas volume device used to ultimately apply a massage effect to the user.
[0029] Specifically, such as Figure 1 The flowchart shown illustrates a control method for a massage chair, which includes the following steps: Step S102: In response to the setting operation of the massage intensity applied to the massage chair, extract the massage intensity corresponding to the setting operation; For example, a graphical user interface can be provided at a preset position on the massage chair to interact with the user. After the massage chair is powered on, an operation interface can be provided through the graphical user interface, where the user can set the massage intensity required for this massage.
[0030] Step S104: Determine the target parameters corresponding to the massage intensity; The target parameter is the control parameter for the massage air pump of the massage chair; Step S106: Generate the drive signal for the massage air pump based on the target parameters; Step S108: Drive the massage air pump based on the drive signal so that the massage air pump outputs the corresponding airflow to the corresponding massage airbag and produces a massage effect that matches the massage intensity.
[0031] This invention provides a control method for a massage chair that responds to a setting operation of the massage intensity applied to the massage chair, extracts the massage intensity corresponding to the setting operation, determines a target parameter corresponding to the massage intensity, wherein the target parameter is a control parameter for controlling the massage air pump of the massage chair, generates a drive signal for the massage air pump based on the target parameter, and drives the massage air pump based on the drive signal so that the massage air pump outputs the corresponding airflow to the corresponding massage airbag and produces a massage effect that matches the massage intensity. Since the target parameter can be directly used to control the massage air pump, precise control of the massage intensity can be achieved, and users can also flexibly adjust the massage intensity, thereby providing a personalized and precise massage effect to improve the user experience.
[0032] In specific implementation, when determining the target parameters in step S104 above, it can be based on a pre-generated mapping table. That is, the target parameters corresponding to the massage intensity are determined according to the pre-configured mapping table. The mapping table records the correspondence between different massage intensities and control parameters. Furthermore, the control parameters include the power supply frequency and voltage acting on the massage air pump. Further, the mapping table can also record formulas or function calculation formulas between massage intensity and control parameters, such as the calculation formula for massage intensity and power supply frequency and / or power supply voltage, etc., which can also realize the conversion of the correspondence between massage intensity and control parameters. The specific mapping table can be set according to the actual usage, and this embodiment of the invention does not impose any limitations on it.
[0033] In this embodiment of the invention, the mapping table is preferably a record of the correspondence between different massage intensities and control parameters. When the main controller of the massage chair obtains the massage intensity set by the user, it determines the target parameter corresponding to the massage intensity based on the mapping table, and generates a corresponding drive signal based on the target parameter. The drive signal is used to drive the air pump to run, generate airflow to inflate the massage airbag, and thus achieve the massage effect required by the massage intensity.
[0034] In actual use, the correspondence between different massage intensities and control parameters is recorded in the above-mentioned radiation relationship table; and, in this embodiment of the invention, the control parameters include the power supply frequency and power supply voltage acting on the massage air pump. Therefore, in this embodiment of the invention, the power supply frequency and power supply voltage of the massage air pump can be adjusted based on the massage intensity, so that after the airflow generated by the massage air pump inflates the massage airbag, it can achieve the massage effect corresponding to the massage intensity.
[0035] In practical implementation, the correspondence between the massage intensity of the massage air pump and the control parameters can be established under experimental conditions. Since the control parameters include the power supply frequency and voltage acting on the massage air pump, the mapping table in this embodiment typically records the correspondence between the power supply frequency and voltage and the massage intensity. For ease of understanding, Table 1 below shows an example of a mapping table, as shown in Table 1: Table 1:
[0036] Since the pressure value provided by the air pump is characterized by other parameters and flow rate, Table 1 above also shows the air pressure and flow rate of the massage air pump corresponding to each massage intensity. Specifically, the numbers 10 to 200 in the first column of Table 1, representing massage intensity, are codes for massage intensity, used to characterize the intensity provided by the massage air pump under different air pressures and flow rates. As the numbers increase, the massage intensity gradually increases. In actual use, the pressure value corresponding to a specific intensity can be measured using a pressure gauge under experimental conditions.
[0037] For example, experimental equipment can be prepared under experimental conditions, including an AC air pump, namely, the massage air pump in this embodiment of the invention, a digital pressure gauge (accuracy ±0.1 KPa), a flow meter (accuracy ±0.1 L / min), a programmable DC power supply (for simulating MCU output voltage), and a frequency generator (for setting the power supply frequency); then, a test environment can be established, such as setting the ambient temperature to 25°C ± 2°C, setting up the air circuit connection so that the outlet of the AC air pump is directly connected to the pressure gauge and flow meter, without load (no air bag connected); and setting a stabilization time, that is, waiting 30 seconds before testing each parameter combination, and taking the reading after the output stabilizes. To start the test process, the frequency can be set to 30Hz, and the voltage can be increased from 12V to 24V in 2V increments. For each combination of (frequency, voltage) parameters, the air pressure and flow rate values are recorded after waiting for 30 seconds. The frequency is then adjusted to 40Hz, 50Hz, and 60Hz, and the test is repeated starting from 12V. Each parameter combination is tested 3 times, and the average value is taken. Furthermore, based on the pressure value obtained from the pressure gauge, the massage intensity code can be set. Finally, Table 1 above can be obtained, which is the mapping relationship table in this embodiment of the invention.
[0038] Furthermore, based on Table 1 above, the output characteristics of the massage air pump in terms of air pressure and flow rate under different power supply frequencies and voltages can be obtained. That is, different control parameters have the following relationship with the output characteristics of the massage air pump: Air pressure is positively correlated with power supply voltage; that is, under the same power supply frequency, the higher the power supply voltage, the greater the output air pressure. Air pressure is positively correlated with power supply frequency; that is, under the same power supply voltage, the higher the power supply frequency, the greater the output air pressure. The flow rate is positively correlated with the supply voltage; that is, at the same supply frequency, the higher the supply voltage, the greater the flow rate. The flow rate is positively correlated with the power supply frequency; that is, under the same power supply voltage, the higher the power supply frequency, the greater the flow rate.
[0039] Furthermore, based on practical applications, the adjustable air pressure range of a massage air pump is typically 14.4 kPa ~ 32.1 kPa; the adjustable flow rate range is 10.2 L / min ~ 23.4 L / min.
[0040] In actual use, the main controller of the massage chair also pre-stores a massage intensity table. This table records the correspondence between different massage intensities and massage levels. For example, the massage intensity corresponding to different massage levels establishes a correspondence between the massage levels and the first column in Table 1. Therefore, the user can select the corresponding massage level, and the massage chair can then determine the corresponding massage intensity and use Table 1 to determine the target parameters. Furthermore, this embodiment of the invention also supports users directly inputting the massage intensity to provide a more personalized and precise massage experience.
[0041] For ease of understanding, Figure 1 On this basis, Figure 2 A flowchart of another massage chair control method is also shown, further illustrating the process of determining massage intensity and target parameters. Specifically, such as... Figure 2 As shown, it includes the following steps: Step S202: Display the operation interface through a graphical user interface, which is configured with massage area selection controls and massage intensity selection controls; Step S204: In response to a touch operation applied to the massage area selection control, the massage area is determined; Furthermore, for the massage area determined in this step, when driving the massage air pump in subsequent steps, the massage air pump corresponding to that massage area can be driven based on the drive signal to achieve precise massage.
[0042] Step S206: In response to the setting operation applied to the massage intensity selection control, extract the massage intensity corresponding to the setting operation; Specifically, if the setting operation at this time is a gear selection operation applied to the massage intensity selection control, then the massage intensity corresponding to the gear selection operation is extracted, and the massage intensity corresponding to the current massage intensity is found in the pre-determined gear intensity table; if the setting operation is a massage intensity input operation applied to the massage intensity selection control, then the intensity parameter input by the massage intensity input operation is determined as the massage intensity.
[0043] In other words, users can directly select the massage level, such as level three. At this time, the main controller of the massage chair can find the corresponding massage intensity in the intensity table. Users can also set the massage intensity according to their own needs, that is, directly input the intensity parameter of the massage intensity, such as directly inputting any number from 10 to 200 that represents the massage intensity, so as to achieve a personalized massage experience.
[0044] Step S208: Determine the target parameters corresponding to the massage intensity according to the pre-configured mapping table; For example, once the massage intensity is determined, the massage chair's main controller can execute the following logic: Get the input: target_force (massage intensity) Algorithm logic: The MCU reads the mapping table from the built-in Flash / EEPROM and looks up the target parameter corresponding to target_force (massage intensity). At this time, the target parameter is a pair of data, namely the power supply parameter pair, including the power supply frequency and the power supply voltage.
[0045] Furthermore, as shown in Table 1 above, the parameters in the mapping table of this embodiment are discrete parameters, and the control parameters and the output characteristics of the massage air pump have a certain positive correlation. This positive correlation is not a strictly linear relationship. Therefore, when determining the target parameter, if the massage intensity can be found in the mapping table, the target parameter can be directly determined. However, if the massage intensity is not recorded in the mapping table, it needs to be determined by an interpolation algorithm. Specifically, the steps include: checking if the massage intensity is found in the mapping table; if so, determining the control parameter corresponding to the found massage intensity as the target parameter; if the massage intensity is not found in the mapping table, searching for the adjacent massage intensity in the mapping table; and performing interpolation calculation based on the control parameters corresponding to the adjacent massage intensity to obtain the target parameter corresponding to the massage intensity.
[0046] Specifically, since the control parameters in this embodiment of the invention include the power supply frequency and power supply voltage acting on the massage air pump, during interpolation calculation, it is necessary to extract the power supply frequency corresponding to adjacent massage intensities, perform interpolation calculation on the power supply frequency to obtain the interpolation frequency; and extract the power supply voltage corresponding to adjacent massage intensities, perform interpolation calculation on the power supply voltage to obtain the interpolation voltage; and then determine the interpolation frequency and interpolation voltage as target parameters.
[0047] To facilitate understanding, the interpolation calculation process is illustrated below with an example. Assume that Table 1 above pre-records the following mapping relationships: massage intensity 50 corresponds to 30Hz / 22V; and massage intensity 60 corresponds to 40Hz / 12V. When the user sets the massage intensity to 55, the target parameter corresponding to massage intensity 55 cannot be found in the mapping relationship table shown in Table 1. Therefore, interpolation calculation is required. The specific calculation process is as follows: (1) Determine the adjacent massage intensity of the user-set massage intensity 55: that is, find massage intensity 50 and massage intensity 60 in Table 1 above.
[0048] (2) Calculate the interpolation frequency: First, calculate the position ratio of the current massage intensity of 55 in Table 1. Assuming that the upper and lower limits of the massage intensity are 50 and 60 respectively, the position ratio can be expressed as: Position ratio = (Current strength - Lower limit) / (Upper limit - Lower limit) = (55 - 50) / (60 - 50) = 0.5; Let η represent the position ratio, and let the power supply frequencies corresponding to massage intensity 50 and massage intensity 60 be the upper limit frequency F1 and lower limit frequency F2, respectively. Based on the above position ratio, the interpolation frequency F0 is calculated, and the formula is expressed as: F0 = F1 + η × (F2 - F1) = 30 + 0.5 × (40 - 30) = 35, the unit is Hz; (3) Similarly, calculate the interpolated voltage: Using the supply voltages corresponding to massage intensity 50 and massage intensity 60 as the upper limit voltage V1 and lower limit voltage V2 respectively, the interpolation voltage V0 is calculated based on the above position ratio, expressed by the formula: V0 = V1 + η × (V2 - V1) = 24 + 0.5 × (12 - 24) = 18, the unit is V; At this point, the target parameter of the massage intensity of 55 set by the user can be determined as 35Hz / 18V through interpolation calculation. This target parameter can also be used to drive the massage air pump.
[0049] Furthermore, the interpolation calculation process described above does not require storing all possible massage intensity values in the mapping table, which helps save MCU storage space. It also enables stepless and smooth transitions in massage intensity adjustment, so users cannot perceive the jumps in intensity levels. The interpolation calculation process is computationally intensive, and the MCU can complete the interpolation calculation in microseconds, without affecting real-time control. Furthermore, the interpolation calculation can also handle interpolation boundaries. For example, when the massage intensity set by the user is less than the minimum massage intensity in the mapping table, the control parameter corresponding to the minimum massage intensity in the mapping table is taken as the target parameter; when the massage intensity set by the user is greater than the maximum massage intensity in the mapping table, the control parameter corresponding to the maximum massage intensity in the mapping table is taken as the target parameter. Specific boundary handling can be set according to actual usage conditions, and this embodiment of the invention does not impose any limitations on this.
[0050] Step S210: Generate a drive signal for the massage air pump based on the target parameters; Specifically, in this embodiment of the invention, the massage air pump is driven by the main controller of the massage chair. The main controller outputs a drive signal for the massage air pump through a PWM port, and the drive signal is a PWM signal. Since the massage air pump is usually an AC air pump, when calculating the drive signal in this step, it is necessary to calculate the switching time parameter based on the power supply frequency in the target parameters, and calculate the duty cycle parameter of the drive signal based on the power supply voltage in the target parameters. The switching time parameter and the duty cycle parameter are determined as the parameters of the drive signal.
[0051] Step S212: Drive the massage air pump based on the drive signal so that the massage air pump outputs the corresponding airflow to the corresponding massage airbag and produces a massage effect that matches the massage intensity.
[0052] Specifically, in this process, the driving direction of the massage air pump needs to be switched according to the switching time parameter; then, within the time interval corresponding to each switching time parameter, the PWM port is controlled to output a PWM signal according to the duty cycle parameter to drive the massage air pump.
[0053] In practical applications, the PWM port of an MCU typically outputs a corresponding PWM signal at a fixed frequency (e.g., 20kHz). Since the air pump is driven by AC voltage, the voltage output direction needs to be switched according to the frequency. Within each cycle, the voltage rises from low to high, reaches its highest value, and then falls back to its lowest. During this period, the PWM duty cycle needs to be adjusted according to the voltage magnitude. Because the output frequency is 20kHz, using interrupts would result in excessive overhead for the MCU. Therefore, a pre-generated PWM duty cycle table is used for driving the pump, with a timer bound to DMA (Direct Memory Access). After each direction switch, the DMA retrieves half a cycle's duty cycle data. The PWM duty cycle data table is pre-generated based on user input requirements and stored in memory. In this embodiment, the switching time parameter can be calculated based on the power supply frequency in the target parameters mentioned above. Within each time interval corresponding to the switching time parameter, i.e., within the switching time cycle, the output voltage value is controlled by adjusting the duty cycle of the PWM signal. Specifically, the formula for calculating the switching time parameter can be expressed as: switch_time = 1000 (time in 1 second, unit ms) / F0 (frequency) / 2 (a complete AC cycle has 2 half cycles, namely the upper cycle and the lower cycle); where F0 represents the power supply frequency; Example: The power supply frequency is 60Hz. According to the formula above, 1000 / 60 / 2=8.3ms. That is, the duration of one switching (half a cycle) is 8.3ms, and the full cycle is 16.6ms. Formula for the number of data points in a half-cycle data_size = 1000 / 2 (meaning half-cycle is 1000 / 2=500ms) / F0 (frequency)×20 (20000Hz / 1000ms); Example: With a power supply frequency of 60Hz, data_size = 1000 / 2 / 60*20 = 166.6 data points / ms. Formula for filling the left half of the data table with the duty cycle of the half-cycle. dutyLeft[x] = maximum counter value × user-defined intensity conversion value / maximum number of half-cycles / 2 (the left half of a half-cycle is from low to high, and the right half is from high to low); Formula for filling the right half of the data table with the duty cycle of the half-cycle. Since the left and right sides of the half-cycle are symmetrical, the filling of the right half can be copied from the highest point to the lowest point of the half-cycle, which can be represented by the following cyclic method.
[0054] for(int16_t i=data_size / 2; i>=0; i--) { dutyRight[x] = dutyLeft[data_size-i]; } For ease of understanding, let's take a power supply frequency F0 = 60Hz and a power supply voltage V0 = 20V, determined according to the mapping table, as an example, with the MCU's PWM port outputting a PWM signal at a fixed frequency of 20kHz. For illustration, and assuming the user inputs three massage intensity levels, the switching time parameter switch_time = 16.66 ms can be calculated using the aforementioned "time parameter calculation formula," meaning the massage air pump's drive circuit switches its output direction every 16.66ms. According to the "half-cycle data count formula," the number of data points per half-cycle is 166.6 duty cycle data points, which is rounded down to 166 data points. The value of each of these 166 duty cycle data points can be calculated using the "half-cycle duty cycle left and right half data table filling formula." This generates a 60Hz, 20V AC signal to drive the air pump. At this point, the air pump outputs an air pressure of ≈23.0KPa and a flow rate of ≈19.2 L / min, achieving the user's desired three massage intensity levels.
[0055] Furthermore, once the massage airbags are inflated to their maximum volume, if the user feels the pressure is too high, the massage intensity or level can be reduced. At this point, the MCU can re-execute the massage chair control method of this embodiment, re-determining the new drive signal, such as reducing the target parameter from 50Hz / 24V to 40Hz / 20V. The corresponding air pump output pressure decreases from 32.0 kPa to 23.0 kPa, reducing the pressure within the airbags; and through the exhaust valve, precise pressure adjustment is achieved.
[0056] In summary, the control method for the massage chair in this embodiment of the invention has the following beneficial effects: (1) Precise control: By simultaneously adjusting the power supply frequency and power supply voltage of the AC air pump, two-dimensional independent adjustment of air pressure and flow rate is achieved, overcoming the crude method of traditional massage chairs that only control through inflation time, and significantly improving control precision; (2) Adjustable even when the volume threshold is exceeded: Even if the airbag inflation volume has reached its maximum volume, the air pressure can still be reduced by lowering the air pump output frequency and voltage, breaking through the technical bottleneck of traditional methods that cannot continue to adjust after the airbag is saturated; (3) Personalized adaptation: The air pump output parameters can be flexibly adjusted according to the user's body characteristics and strength preferences to provide a personalized and precise massage experience; (4) Low hardware cost: It can be implemented based on existing PWM drive chips. There is no need to add an extra precision air pump or proportional valve, nor is it necessary to set up sensors in the massage chair or determine the inflection point of the sensor. The drive signal can be directly output, which effectively improves the response speed of the massage chair. During the execution process, since there is no need to set up additional sensors and acquisition circuits, the design cost of the massage chair can also be reduced.
[0057] (5) Overcoming technical bias: In traditional technology, it is generally believed that the massage air pump of a massage chair only needs to provide a fixed air source, and the pressure adjustment should be achieved through the inflation time of the airbag or the air valve. In the embodiment of the present invention, the frequency and voltage are directly adjusted from the output end of the air pump, breaking through the traditional mindset.
[0058] Furthermore, based on the technology of the above embodiments, this invention also provides a control device for a massage chair, such as... Figure 3 The diagram shows a structural schematic of a control device for a massage chair, which includes: Extraction module 30 is used to extract the massage intensity corresponding to the setting operation in response to the massage intensity setting operation of the massage chair. The determining module 32 is used to determine the target parameter corresponding to the massage intensity, wherein the target parameter is the control parameter for controlling the massage air pump of the massage chair; The generation module 34 is used to generate the drive signal of the massage air pump according to the target parameters; The control module 36 is used to drive the massage air pump based on the drive signal, so that the massage air pump outputs the corresponding airflow to the corresponding massage airbag and produces a massage effect that matches the massage intensity.
[0059] Furthermore, this embodiment of the invention also provides a massage chair, the controller of which is equipped with the aforementioned control device for the massage chair.
[0060] The control device for the massage chair provided in this embodiment of the invention has the same technical features as the control method for the massage chair provided in the above embodiments, so it can also solve the same technical problems and achieve the same technical effects.
[0061] Furthermore, embodiments of the present invention also provide an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the above method.
[0062] This invention also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, performs the steps of the above-described method.
[0063] Furthermore, embodiments of the present invention also provide a schematic diagram of the structure of an electronic device, such as... Figure 4 The diagram shows the structure of the electronic device, which includes a processor 41 and a memory 40. The memory 40 stores computer-executable instructions that can be executed by the processor 41, and the processor 41 executes the computer-executable instructions to implement the above-described method.
[0064] exist Figure 4 In the illustrated embodiment, the electronic device further includes a bus 42 and a communication interface 43, wherein the processor 41, the communication interface 43, and the memory 40 are connected via the bus 42.
[0065] The memory 40 may include high-speed random access memory (RAM) and may also include non-volatile memory, such as at least one disk storage device. Communication between this system network element and at least one other network element is achieved through at least one communication interface 43 (which can be wired or wireless), such as the Internet, wide area network, local area network, metropolitan area network, etc. The bus 42 may be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus, or an EISA (Extended Industry Standard Architecture) bus, etc. The bus 42 can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 4 The symbol is represented by a single double-headed arrow, but this does not mean that there is only one bus or one type of bus.
[0066] Processor 41 may be an integrated circuit chip with signal processing capabilities. In implementation, each step of the above method can be completed by the integrated logic circuitry in the hardware of processor 41 or by software instructions. Processor 41 can be a general-purpose processor, including a Central Processing Unit (CPU), a Network Processor (NP), etc.; it can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in the embodiments of this invention can be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software modules can reside in random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, or other mature storage media in the art. The storage medium is located in the memory, and the processor 41 reads the information in the memory and uses its hardware to complete the aforementioned method.
[0067] The present invention provides a control method, device, and computer program product for a massage chair, including a computer-readable storage medium storing program code. The instructions included in the program code can be used to execute the methods described in the preceding method embodiments. For specific implementation details, please refer to the method embodiments, which will not be repeated here.
[0068] Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working process of the device and massage chair described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0069] Furthermore, in the description of the embodiments of the present invention, unless otherwise explicitly specified and limited, the terms "installation," "connection," and "linking" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; and they can refer to the internal connection of two components. Those skilled in the art can understand the specific meaning of the above terms in the present invention based on the specific circumstances.
[0070] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, essentially, or the part that contributes to the prior art, or a portion 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.) to execute all or part of the steps of the methods described in the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0071] In the description of this invention, it should be noted that the terms "center," "upper," "lower," "left," "right," "vertical," "horizontal," "inner," and "outer," etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. They are used only for the convenience of describing the invention and for simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on the invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and should not be construed as indicating or implying relative importance.
[0072] Finally, it should be noted that the above embodiments are merely specific implementations of the present invention, used to illustrate the technical solutions of the present invention, and not to limit it. The scope of protection of the present invention is not limited thereto. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that any person skilled in the art can still modify or easily conceive of changes to the technical solutions described in the foregoing embodiments within the technical scope disclosed in the present invention, or make equivalent substitutions for some of the technical features; and these modifications, changes, or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be covered within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.
Claims
1. A control method for a massage chair, characterized in that, The method includes: In response to a setting operation on the massage intensity of the massage chair, the massage intensity corresponding to the setting operation is extracted; Determine the target parameter corresponding to the massage intensity, wherein the target parameter is the control parameter for controlling the massage air pump of the massage chair; The drive signal for the massage air pump is generated based on the target parameters; The massage air pump is driven by the driving signal so that it outputs the corresponding airflow to the corresponding massage airbag and produces a massage effect that matches the massage intensity.
2. The method according to claim 1, characterized in that, The step of determining the target parameter corresponding to the massage intensity includes: The target parameters corresponding to the massage intensity are determined according to a pre-configured mapping table; wherein the mapping table records the correspondence between different massage intensities and control parameters; and the control parameters include the power supply frequency and power supply voltage acting on the massage air pump.
3. The method according to claim 2, characterized in that, The step of determining the target parameter corresponding to the massage intensity according to a pre-configured mapping table includes: Does the massage intensity match the mapping table? If so, the control parameter corresponding to the massage intensity found is determined as the target parameter; If the massage intensity is not found in the mapping table, then the adjacent massage intensity is searched in the mapping table. Interpolation calculations are performed based on the control parameters corresponding to the adjacent massage intensities to obtain the target parameters corresponding to the massage intensities.
4. The method according to claim 3, characterized in that, The step of interpolating the control parameters corresponding to the adjacent massage intensities to obtain the target parameters corresponding to the massage intensities includes: Extract the power supply frequency corresponding to the adjacent massage intensity, and perform interpolation calculation on the power supply frequency to obtain the interpolated frequency; and extract the power supply voltage corresponding to the adjacent massage intensity, and perform interpolation calculation on the power supply voltage to obtain the interpolated voltage; The interpolation frequency and the interpolation voltage are determined as the target parameters.
5. The method according to claim 3, characterized in that, The massage air pump is driven by the main controller of the massage chair. The main controller outputs the drive signal of the massage air pump through the PWM port, and the drive signal is a PWM signal. The step of generating the drive signal for the massage air pump based on the target parameters includes: The switching time parameter is calculated based on the power supply frequency in the target parameters, and the duty cycle parameter of the drive signal is calculated based on the power supply voltage in the target parameters. The switching time parameter and the duty cycle parameter are determined as the parameters of the drive signal.
6. The method according to claim 5, characterized in that, The step of driving the massage air pump based on the drive signal includes: The driving direction of the massage air pump is switched according to the switching time parameter; Within the time interval corresponding to each of the switching time parameters, the PWM port is controlled to output a PWM signal according to the duty cycle parameter to drive the massage air pump.
7. The method according to claim 1, characterized in that, The method further includes: The operation interface is displayed through a graphical user interface, which is configured with controls for selecting massage areas and massage intensity. In response to a touch operation applied to the massage area selection control, the massage area is determined; The step of driving the massage air pump based on the drive signal includes: The massage air pump corresponding to the massage area is driven based on the drive signal.
8. The method according to claim 7, characterized in that, The step of retrieving the massage intensity setting operation in response to the massage chair includes: Responding to the setting operation applied to the massage intensity selection control; If the setting operation is a gear selection operation applied to the massage intensity selection control, then the massage intensity corresponding to the gear selection operation is extracted, and the massage intensity corresponding to the massage intensity is searched in a pre-determined gear intensity table. If the setting operation is a massage intensity input operation applied to the massage intensity selection control, then the intensity parameter input by the massage intensity input operation is determined as the massage intensity.
9. A control device for a massage chair, characterized in that, The device includes: An extraction module is used to extract the massage intensity corresponding to the setting operation applied to the massage chair in response to the setting operation. A determining module is used to determine the target parameters corresponding to the massage intensity, wherein the target parameters are control parameters for controlling the massage air pump of the massage chair; A generation module is used to generate a drive signal for the massage air pump based on the target parameters; The control module is used to drive the massage air pump based on the drive signal, so that the massage air pump outputs the corresponding airflow to the corresponding massage airbag and produces a massage effect that matches the massage intensity.
10. A massage chair, characterized in that, The controller of the massage chair is equipped with the control device of the massage chair as described in claim 9.