Method and device for intelligently generating massage mode of massager
The mobile device collects environmental parameters and generates customized massage parameters, and controls the operation of the massager, solving the problem that the massage mode cannot be intelligently set according to specific scenarios in the existing technology, and improving the user experience and the intelligent level of the massager.
Patent Information
- Application Number
- CN202311393813.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-25
- Publication Date
- 2024-11-08
AI Technical Summary
Existing massage devices cannot intelligently set and control the massage mode according to specific scenarios, resulting in poor user experience.
Use mobile devices to collect environmental parameters (such as temperature, light intensity and time) to generate customized massage parameters, and control the massager to run the corresponding mode, including adjustments to the heat compress temperature and massage force.
It realizes efficient control of the massager, simplifies user operations, and automatically adjusts massage parameters according to the actual environment, improving the user's massage experience.
Smart Images

Figure CN118921422A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of intelligent control technology, and in particular to a method and device for intelligently generating massage modes of a massager. Background Art
[0002] With the development of smart phones and smart hardware, more and more apps that can connect to smart hardware have emerged. Devices can connect to and communicate with apps, including massage devices. However, most of them remain at the level of simple control of massage devices by apps, such as turning massage on and off. It is impossible to set the massage mode according to the specific scenario with one click and to control the massage mode of the device efficiently.
[0003] With respect to the above-mentioned problems existing in the related technologies, no efficient and accurate solutions have been found yet. Summary of the invention
[0004] The present invention provides a method and device for intelligently generating massage modes of a massager to solve the above-mentioned technical problems existing in the related art.
[0005] According to one embodiment of the present invention, there is provided a method for intelligently generating a massage mode of a massager, which is characterized by comprising: acquiring environmental parameters of the current time collected by a mobile device, wherein the mobile device is wirelessly connected to the massager; generating a first massage parameter of the massager according to the environmental parameter; generating a custom massage mode using the first massage parameter; sending the custom massage mode to the massager, and controlling the massager to operate using the custom massage mode.
[0006] Optionally, the environmental parameters include ambient temperature, and generating the first massage parameter of the massager according to the environmental parameters includes: determining whether the ambient temperature is less than or equal to a first temperature threshold; if the ambient temperature is less than or equal to the first temperature threshold, setting the hot compress temperature of the massager to a maximum temperature; if the ambient temperature is greater than the first temperature threshold, determining whether the ambient temperature is less than a second temperature threshold, wherein the first temperature threshold is less than the second temperature threshold; if the ambient temperature is less than the second temperature threshold, using the ambient temperature to calculate the hot compress temperature of the massager, and the hot compress temperature is negatively correlated with the ambient temperature; if the ambient temperature is greater than or equal to the second temperature threshold, setting the hot compress temperature of the massager to a minimum temperature, wherein the hot compress temperature is between the minimum temperature and the maximum temperature.
[0007] Optionally, the environmental parameters include light intensity and environmental time, and generating the first massage parameter of the massager according to the environmental parameters includes: determining whether the light intensity is less than or equal to a first intensity threshold, and determining whether the environmental time is within a preset sleep time; if the light intensity is less than or equal to the first intensity threshold, and the environmental time is within the preset sleep time, setting the massage intensity of the massager to a minimum intensity, and the massage duration to a maximum duration; if the light intensity is greater than the first intensity threshold, determining whether the light intensity is less than or equal to a second intensity threshold, and determining whether the environmental time is within a preset wake-up time, wherein the first intensity threshold is less than the second intensity threshold; if the light intensity is less than or equal to the second intensity threshold, and the environmental time is within the preset wake-up time, setting the massage intensity of the massager to a first intensity, and the massage duration to a maximum duration; if the light intensity is greater than the second intensity threshold, and the environmental time is within the preset working time, setting the massage intensity of the massager to a second intensity, and the massage duration to a first duration, wherein the second intensity is greater than the first intensity, and the first duration is less than or equal to the maximum duration.
[0008] Optionally, after the first massage parameter is used to generate a custom massage mode, the method further includes: locally saving the first massage parameter on the mobile device, and adding the custom massage mode to a mode selection list of the massager.
[0009] Optionally, adding the custom massage mode to the mode selection list of the massager includes: in response to a user's selection operation, displaying the mode selection list of the massager, wherein the mode selection list includes a preset mode list or a custom mode list, the preset mode list includes several preset massage modes, and the custom mode list includes several mode controls; adding the custom massage mode to the preset mode list or the custom mode list.
[0010] Optionally, adding the custom massage mode to the preset mode list or the custom mode list includes: detecting a selection instruction for a target preset mode in the preset mode list, reading preset parameters of the target preset mode, and replacing the preset parameters with the first massage parameters of the custom massage mode; or, generating a mode tag for the custom massage mode, adding the mode tag in the custom mode list, and storing the first massage parameter and the mode tag in an associated manner.
[0011] Optionally, the method also includes: receiving a target keyword selected by a user in a preset keyword list, wherein the preset keyword list includes multiple keywords, each keyword corresponds to a physical symptom or massage requirement; searching for a second massage parameter matching the target keyword in a massage parameter library; generating a target massage mode using the second massage parameter; and adding the target massage mode to the preset mode list of the massager.
[0012] According to another embodiment of the present invention, there is provided an intelligent device for generating massage modes of a massager, comprising: an acquisition module for acquiring environmental parameters of the current time collected by a mobile device, wherein the mobile device is wirelessly connected to the massager; a first generation module for generating a first massage parameter of the massager according to the environmental parameters; a second generation module for generating a custom massage mode using the first massage parameter; and a sending module for sending the custom massage mode to the massager and controlling the massager to operate using the custom massage mode.
[0013] Optionally, the first generating module includes: a first judgment unit, used to judge whether the ambient temperature is less than or equal to a first temperature threshold; a first setting unit, used to set the hot compress temperature of the massager to the highest temperature if the ambient temperature is less than or equal to the first temperature threshold; a second judgment unit, used to judge whether the ambient temperature is less than a second temperature threshold if the ambient temperature is greater than the first temperature threshold, wherein the first temperature threshold is less than the second temperature threshold; a calculation unit, used to calculate the hot compress temperature of the massager using the ambient temperature if the ambient temperature is less than the second temperature threshold, and the hot compress temperature is negatively correlated with the ambient temperature; a second setting unit, used to set the hot compress temperature of the massager to the lowest temperature if the ambient temperature is greater than or equal to the second temperature threshold, wherein the hot compress temperature is between the lowest temperature and the highest temperature.
[0014] Optionally, the first generating module further includes: a first judging unit, used to judge whether the light intensity is less than or equal to a first intensity threshold, and whether the environment time is within a preset sleeping time; a first setting unit, used to set the massage intensity of the massager to the minimum intensity and the massage duration to the maximum duration if the light intensity is less than or equal to the first intensity threshold and the environment time is within the preset sleeping time; a second judging unit, used to judge whether the light intensity is less than or equal to a second intensity threshold and whether the environment time is within a preset waking time if the light intensity is greater than the first intensity threshold, and to judge whether the environment time is within a preset waking time, wherein the first intensity threshold is less than the second intensity threshold; a second setting unit, used to set the massage intensity of the massager to the first intensity and the massage duration to the maximum duration if the light intensity is less than or equal to the second intensity threshold and the environment time is within the preset waking time; a third setting unit, used to set the massage intensity of the massager to the second intensity and the massage duration to the first duration if the light intensity is greater than the second intensity threshold and the environment time is within the preset working time, wherein the second intensity is greater than the first intensity and the first duration is less than or equal to the maximum duration.
[0015] Optionally, the device further comprises: a saving module, configured to locally save the first massage parameter in the mobile device, and add the custom massage mode to a mode selection list of the massager.
[0016] Optionally, the saving module includes: a display unit, used to display a mode selection list of the massager in response to a user's selection operation, wherein the mode selection list includes a preset mode list or a custom mode list, the preset mode list includes several preset massage modes, and the custom mode list includes several mode controls; an adding unit, used to add the custom massage mode to the preset mode list or the custom mode list.
[0017] Optionally, the adding unit includes: a replacement subunit, used to detect a selection instruction for a target preset mode in the preset mode list, read the preset parameters of the target preset mode, and replace the preset parameters with the first massage parameters of the custom massage mode; an adding subunit, used to generate a mode tag for the custom massage mode, add the mode tag in the custom mode list, and store the first massage parameter and the mode tag in an associated manner.
[0018] Optionally, the device also includes: a receiving module for receiving a target keyword selected by a user in a preset keyword list, wherein the preset keyword list includes multiple keywords, and each keyword corresponds to a physical symptom or massage requirement; a search module for searching a massage parameter library for a second massage parameter that matches the target keyword; a generation module for generating a target massage mode using the second massage parameter; and an adding module for adding the target massage mode to the preset mode list of the massager.
[0019] According to yet another embodiment of the present invention, a storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above-mentioned device embodiments when running.
[0020] According to yet another embodiment of the present invention, there is provided an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above device embodiments.
[0021] Through the embodiments of the present invention, environmental parameters of the current time collected by a mobile device are obtained, wherein the mobile device is wirelessly connected to a massager; a first massage parameter of the massager is generated according to the environmental parameter; a custom massage mode is generated using the first massage parameter; the custom massage mode is sent to the massager, and the massager is controlled to operate using the custom massage mode. By generating a custom massage mode according to the massage parameters, sending the generated massage mode to the massager, and controlling the massager to operate using the custom massage mode, user operations are simplified while efficient control of the massager is achieved, thereby solving the problem that the related art cannot control the massager according to the actual environment, and improving the user's massage experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0023] Figure 1 is a hardware structure block diagram of a mobile phone according to an embodiment of the present invention;
[0024] Figure 2 is a flow chart of a method for intelligently generating massage modes of a massager according to an embodiment of the present invention;
[0025] Figure 3 is an overall flow chart of a method for intelligently generating massage modes of a massager according to an embodiment of the present invention;
[0026] Figure 4 It is a structural block diagram of an intelligent generation device of massage mode of a massager according to an embodiment of the present invention. DETAILED DESCRIPTION
[0027] In order to enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work should fall within the scope of protection of the present application. It should be noted that the embodiments in the present application and the features in the embodiments can be combined with each other without conflict.
[0028] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0029] Example 1
[0030] The method embodiment provided in the first embodiment of the present application can be executed in a mobile phone, a computer, a massager controller or a similar computing device. Taking running on a mobile phone as an example, Figure 1 FIG. 1 is a hardware structure diagram of a mobile phone according to an embodiment of the present invention. Figure 1 As shown, the mobile phone may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data. Optionally, the mobile phone may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is for illustration only and does not limit the structure of the mobile phone. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations shown.
[0031] The memory 104 can be used to store mobile phone programs, for example, software programs and modules of application software, such as a mobile phone program corresponding to a method for intelligently generating massage modes of a massager in an embodiment of the present invention. The processor 102 executes various functional applications and data processing by running the mobile phone program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the mobile phone via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0032] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the mobile phone. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0033] In this embodiment, a method for intelligently generating massage modes of a massager is provided. Figure 2 is a flow chart of a method for intelligently generating massage modes for a massager according to an embodiment of the present invention. Figure 2 As shown, the process includes the following steps:
[0034] Step S202, obtaining environmental parameters of the current time collected by a mobile device, wherein the mobile device is wirelessly connected to the massager;
[0035] Optionally, the environmental parameters may be, but are not limited to, light intensity, ambient temperature, humidity, weather, time, season, longitude and latitude, altitude, and space (such as in a car, indoors, outdoors, underground, etc.). The mobile device and the massager are connected and communicated via wireless communications such as Bluetooth protocol. The mobile device is the control end of the massager, and the massager is the controlled end of the mobile device. The mobile device may be a smart device such as a mobile phone, computer, or tablet. The massager may be an eye protector, a neck massager, a massage chair, a neck mask gun, a moxibustion device, or other health equipment. When the massager is successfully connected to the APP of the mobile device, the device control page is entered, and environmental parameters such as the current light intensity and ambient temperature are obtained by using the photosensors and temperature sensors built into the mobile device.
[0036] Step S204, generating a first massage parameter of the massager according to the environmental parameter;
[0037] Optionally, the first massage parameters are operating parameters of the massager during massage, including hot compress temperature, pressing force and massage duration, etc. Different massage parameters are adapted and generated according to environmental parameters.
[0038] Step S206, generating a custom massage mode using the first massage parameters;
[0039] Step S208, sending the custom massage mode to the massager, and controlling the massager to operate in the custom massage mode.
[0040] Optionally, a Bluetooth connection is established between the massager and a mobile device to transmit data, and the first massage parameter of the custom massage mode is packaged and sent to the massager.
[0041] Through the above steps, the environmental parameters of the current time collected by the mobile device are obtained, wherein the mobile device is wirelessly connected to the massager; a first massage parameter of the massager is generated according to the environmental parameter; a custom massage mode is generated using the first massage parameter; the custom massage mode is sent to the massager, and the massager is controlled to operate using the custom massage mode. By generating a custom massage mode according to the massage parameters, sending the generated massage mode to the massager, and controlling the massager to operate using the custom massage mode, the user operation is simplified while achieving efficient control of the massager, thereby solving the problem that the related technology cannot control the massager according to the actual environment and improving the user's massage experience.
[0042] In this embodiment, the environmental parameters include ambient temperature, and generating the first massage parameter of the massager according to the environmental parameters includes: determining whether the ambient temperature is less than or equal to a first temperature threshold; if the ambient temperature is less than or equal to the first temperature threshold, setting the hot compress temperature of the massager to the highest temperature; if the ambient temperature is greater than the first temperature threshold, determining whether the ambient temperature is less than a second temperature threshold, wherein the first temperature threshold is less than the second temperature threshold; if the ambient temperature is less than the second temperature threshold, using the ambient temperature to calculate the hot compress temperature of the massager, and the hot compress temperature is negatively correlated with the ambient temperature; if the ambient temperature is greater than or equal to the second temperature threshold, setting the hot compress temperature of the massager to the lowest temperature, wherein the hot compress temperature is between the lowest temperature and the highest temperature.
[0043] Optionally, the first temperature threshold is 0 degrees. When the current ambient temperature is less than or equal to 0 degrees, the hot compress temperature of the massager is automatically set to a maximum temperature of 60 degrees. The second temperature threshold is 42 degrees. When the current temperature is greater than or equal to 30 degrees, the hot compress temperature of the massager is automatically set to a minimum temperature of 42 degrees. When the current temperature is between 0 degrees and 30 degrees, the set hot compress temperature decreases from 60 degrees to 42 degrees. The higher the current ambient temperature, the lower the hot compress temperature.
[0044] In this embodiment, the environmental parameters include light intensity and environmental time, and generating the first massage parameter of the massager according to the environmental parameters includes: determining whether the light intensity is less than or equal to a first intensity threshold, and determining whether the environmental time is within a preset sleep time; if the light intensity is less than or equal to the first intensity threshold, and the environmental time is within the preset sleep time, setting the massage intensity of the massager to the lowest intensity, and the massage duration to the maximum duration; if the light intensity is greater than the first intensity threshold, determining whether the light intensity is less than or equal to a second intensity threshold, and determining whether the environmental time is within a preset wake-up time, wherein the first intensity threshold is less than the second intensity threshold; if the light intensity is less than or equal to the second intensity threshold, and the environmental time is within the preset wake-up time, setting the massage intensity of the massager to the first intensity, and the massage duration to the maximum duration; if the light intensity is greater than the second intensity threshold, and the environmental time is within the preset working time, setting the massage intensity of the massager to the second intensity, and the massage duration to the first duration, wherein the second intensity is greater than the first intensity, and the first duration is less than or equal to the maximum duration.
[0045] The ambient time of this embodiment can be obtained from the clock of the mobile device by reading the system time of the mobile device as the ambient time. Optionally, the best time to perform eye massage is after getting up in the morning and before going to bed at night. The massage device can adjust the pressing force to three strength levels: low, medium and high, and the pressing time can be adjusted to 2 to 20 minutes. When the APP is connected to the massager, the APP senses the surrounding light intensity through the light sensor of the mobile phone. When the light intensity is sensed to be 0, combined with the current time obtained by the APP, it is judged that the user wants to enter a sleep state. At this time, the APP automatically adjusts the pressing force to low and the pressing time to a maximum value of 20 minutes. When the light intensity is low and the current time obtained by the APP is morning, it can be judged that the user has just got up in the morning. At this time, the APP automatically adjusts the pressing force to low and the pressing time to a maximum value of 20 minutes. At other times and light intensities, the massage time is automatically adjusted to 10 minutes and the pressing force is medium.
[0046] In this embodiment, after the first massage parameter is used to generate a custom massage mode, the method further includes: saving the first massage parameter locally on the mobile device, and adding the custom massage mode to a mode selection list of the massager.
[0047] Optionally, the user can save the name of the custom generated mode according to his or her own preferences, and the next time the user enters the APP, he or she can directly select the custom mode saved last time for massage.
[0048] In this embodiment, adding the custom massage mode to the mode selection list of the massager includes: in response to a user's selection operation, displaying the mode selection list of the massager, wherein the mode selection list includes a preset mode list or a custom mode list, the preset mode list includes several preset massage modes, and the custom mode list includes several mode controls; adding the custom massage mode to the preset mode list or the custom mode list.
[0049] Optionally, the preset massage modes include six preset scene modes: relaxation before bed, relaxation after meeting, left headache, right headache, tension headache and eye SPA, and the mode control includes a custom massage mode, massage time control, pressure control and hot compress temperature control. Different preset massage modes correspond to different symptoms or needs, so the corresponding massage positions, hot compress temperatures of the eyes, air pressure intensity and massage duration are all different. Users can set the massage mode with one click according to their current scene.
[0050] In this embodiment, adding the custom massage mode to the preset mode list or the custom mode list includes: detecting a selection instruction for a target preset mode in the preset mode list, reading preset parameters of the target preset mode, and replacing the preset parameters with the first massage parameters of the custom massage mode; or, generating a mode tag for the custom massage mode, adding the mode tag in the custom mode list, and storing the first massage parameter and the mode tag in association.
[0051] In this embodiment, it also includes: receiving a target keyword selected by a user in a preset keyword list, wherein the preset keyword list includes multiple keywords, each keyword corresponds to a physical symptom or massage demand; searching for a second massage parameter matching the target keyword in a massage parameter library; generating a target massage mode using the second massage parameter; and adding the target massage mode to the preset mode list of the massager.
[0052] Optionally, a list containing multiple keywords is established, each keyword corresponds to a physical symptom or massage demand, and the keywords include: headache, relaxation, massage scene; a database is established, which contains various massage parameters and corresponding massage modes, and a search relationship between keywords and corresponding massage modes; a target keyword selected by a user is received, and the corresponding keyword is matched from a preset keyword list; a second massage parameter matching the target keyword is searched from a massage parameter library; a target massage mode is generated using the found second massage parameter; a target massage mode is added: the generated massage mode is added to a preset mode list of the massager so that the user can select and use the mode; a specific preset massage mode is generated according to the keyword selected by the user with one click, and sent to the massage device, thereby simplifying the user operation while achieving efficient control of the device.
[0053] Figure 3 FIG. 1 is an overall flow chart of a method for intelligently generating massage modes for a massager according to an embodiment of the present invention. Figure 3 As shown, the process includes the following steps:
[0054] The APP connects to the device; automatically sets the hot compress temperature, massage time and pressure of the device according to the temperature and light sensors; determines whether to select the preset mode tab; if the preset mode tab is selected, the APP displays the preset modes for different scenarios, and the user can click to enter the detail page of different modes, and then control to start or pause the massage; if the preset mode tab is not selected, the APP displays the custom mode, and the user selects the set custom mode or adds other custom modes.
[0055] When the device is successfully connected to the APP, the device control page is entered. The APP uses the light sensor and temperature sensor built into the mobile phone to obtain the light intensity and temperature of the current environment, and automatically adjusts the hot compress temperature, air pressure intensity and massage time to generate an optimal massage mode that directly acts on the massager, giving the user the current optimal massage experience. Users can also use the APP interface to independently adjust the hot compress temperature, air pressure intensity and massage time of the left and right temples and eyes to generate a custom massage mode, and can set a name for the custom mode and save it. The next time you enter the APP, you can directly select the last saved custom mode for massage.
[0056] The solution of this embodiment is adopted, by generating massage parameters of the massager according to the preset environmental parameter threshold; using the first massage parameter to generate a custom massage mode; sending the custom massage mode to the massager, and controlling the massager to operate in the custom massage mode, by generating a custom massage mode according to the massage parameters, sending the generated massage mode to the massager, and controlling the massager to operate in the custom massage mode, after the APP is connected to the massage device, the device's hot compress temperature, air pressure intensity and massage time are automatically adjusted in combination with the mobile phone sensor, and at the same time, a specific preset massage mode is generated in one click according to the keywords selected by the user, and sent to the massager, thereby simplifying the user's operation and achieving efficient control of the device. It solves the problem that the current massage APP cannot set the massage mode in one click according to the specific scene, improves the user's massage experience, and generates a custom massage mode through keyword search, innovatively improves the intelligence level of the massager APP, and greatly improves the user's satisfaction with the massager.
[0057] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), including a number of instructions for a terminal device (which can be a mobile phone, computer, mobile phone, or network device, etc.) to execute the methods described in each embodiment of the present invention.
[0058] Example 2
[0059] In this embodiment, a massage mode intelligent generation device for a massager is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made are not repeated. As used below, the term "module" can implement a combination of software and hardware for the predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, can also be conceived.
[0060] Figure 4 is a structural block diagram of an intelligent generation device for massage mode of a massager according to an embodiment of the present invention, such as Figure 4 As shown, the device comprises:
[0061] An acquisition module 40 is used to acquire the environmental parameters of the current time collected by a mobile device, wherein the mobile device is wirelessly connected to the massager;
[0062] A first generating module 42, used to generate a first massage parameter of the massager according to the environmental parameter;
[0063] A second generating module 44, configured to generate a custom massage mode using the first massage parameters;
[0064] The sending module 46 is used to send the custom massage mode to the massager and control the massager to operate in the custom massage mode.
[0065] Optionally, the first generating module includes: a first judgment unit, used to judge whether the ambient temperature is less than or equal to a first temperature threshold; a first setting unit, used to set the hot compress temperature of the massager to the highest temperature if the ambient temperature is less than or equal to the first temperature threshold; a second judgment unit, used to judge whether the ambient temperature is less than a second temperature threshold if the ambient temperature is greater than the first temperature threshold, wherein the first temperature threshold is less than the second temperature threshold; a calculation unit, used to calculate the hot compress temperature of the massager using the ambient temperature if the ambient temperature is less than the second temperature threshold, and the hot compress temperature is negatively correlated with the ambient temperature; a second setting unit, used to set the hot compress temperature of the massager to the lowest temperature if the ambient temperature is greater than or equal to the second temperature threshold, wherein the hot compress temperature is between the lowest temperature and the highest temperature.
[0066] Optionally, the first generating module further includes: a first judging unit, used to judge whether the light intensity is less than or equal to a first intensity threshold, and whether the environment time is within a preset sleeping time; a first setting unit, used to set the massage intensity of the massager to the minimum intensity and the massage duration to the maximum duration if the light intensity is less than or equal to the first intensity threshold and the environment time is within the preset sleeping time; a second judging unit, used to judge whether the light intensity is less than or equal to a second intensity threshold and whether the environment time is within a preset waking time if the light intensity is greater than the first intensity threshold, and to judge whether the environment time is within a preset waking time, wherein the first intensity threshold is less than the second intensity threshold; a second setting unit, used to set the massage intensity of the massager to the first intensity and the massage duration to the maximum duration if the light intensity is less than or equal to the second intensity threshold and the environment time is within the preset waking time; a third setting unit, used to set the massage intensity of the massager to the second intensity and the massage duration to the first duration if the light intensity is greater than the second intensity threshold and the environment time is within the preset working time, wherein the second intensity is greater than the first intensity and the first duration is less than or equal to the maximum duration.
[0067] Optionally, the device further comprises: a saving module, configured to locally save the first massage parameter in the mobile device, and add the custom massage mode to a mode selection list of the massager.
[0068] Optionally, the saving module includes: a display unit, used to display a mode selection list of the massager in response to a user's selection operation, wherein the mode selection list includes a preset mode list or a custom mode list, the preset mode list includes several preset massage modes, and the custom mode list includes several mode controls; an adding unit, used to add the custom massage mode to the preset mode list or the custom mode list.
[0069] Optionally, the adding unit includes: a replacement subunit, used to detect a selection instruction for a target preset mode in the preset mode list, read the preset parameters of the target preset mode, and replace the preset parameters with the first massage parameters of the custom massage mode; an adding subunit, used to generate a mode tag for the custom massage mode, add the mode tag in the custom mode list, and store the first massage parameter and the mode tag in an associated manner.
[0070] Optionally, the device also includes: a receiving module for receiving a target keyword selected by a user in a preset keyword list, wherein the preset keyword list includes multiple keywords, and each keyword corresponds to a physical symptom or massage requirement; a search module for searching a massage parameter library for a second massage parameter that matches the target keyword; a generation module for generating a target massage mode using the second massage parameter; and an adding module for adding the target massage mode to the preset mode list of the massager.
[0071] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.
[0072] Example 3
[0073] An embodiment of the present invention further provides a storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.
[0074] Optionally, in this embodiment, the above storage medium may be configured to store a computer program for executing:
[0075] S1, obtaining environmental parameters of the current time collected by a mobile device, wherein the mobile device is wirelessly connected to the massager;
[0076] S2, generating a first massage parameter of the massager according to the environmental parameter;
[0077] S3, generating a custom massage mode using the first massage parameters;
[0078] S4, sending the custom massage mode to the massager, and controlling the massager to operate in the custom massage mode.
[0079] Optionally, in this embodiment, the above-mentioned storage medium may include but is not limited to: a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk, and other media that can store computer programs.
[0080] An embodiment of the present invention further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0081] Optionally, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.
[0082] Optionally, in this embodiment, the processor may be configured to perform the following steps through a computer program:
[0083] S1, obtaining environmental parameters of the current time collected by a mobile device, wherein the mobile device is wirelessly connected to the massager;
[0084] S2, generating a first massage parameter of the massager according to the environmental parameter;
[0085] S3, using the first massage parameters to generate a custom massage mode;
[0086] S4, sending the custom massage mode to the massager, and controlling the massager to operate in the custom massage mode.
[0087] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation modes, and this embodiment will not be described in detail here.
[0088] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0089] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.
[0090] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic, for example, the division of units is only a logical function division, and there may be other division methods in actual implementation, for example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0091] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0092] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0093] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, 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, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a mobile phone or a network device, etc.) to execute all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or optical disk, etc., which can store program code.
[0094] The above are only preferred implementations of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A method for intelligently generating massage modes of a massager, characterized in that: include: Acquiring environmental parameters at the current time collected by a mobile device, wherein the mobile device is wirelessly connected to the massager; generating a first massage parameter of the massager according to the environmental parameter; generating a custom massage mode using the first massage parameter; The customized massage mode is sent to the massager, and the massager is controlled to operate in the customized massage mode.
2. The method according to claim 1, characterized in that The environmental parameter includes the ambient temperature, and generating the first massage parameter of the massager according to the environmental parameter includes: Determining whether the ambient temperature is less than or equal to a first temperature threshold; If the ambient temperature is less than or equal to a first temperature threshold, the hot compress temperature of the massager is set to the highest temperature; if the ambient temperature is greater than the first temperature threshold, it is determined whether the ambient temperature is less than a second temperature threshold, wherein the first temperature threshold is less than the second temperature threshold; If the ambient temperature is lower than a second temperature threshold, the ambient temperature is used to calculate the hot compress temperature of the massager, and the hot compress temperature is negatively correlated with the ambient temperature; if the ambient temperature is greater than or equal to the second temperature threshold, the hot compress temperature of the massager is set to a minimum temperature, wherein the hot compress temperature is between the minimum temperature and the maximum temperature.
3. The method according to claim 1, characterized in that The environmental parameters include light intensity and environmental time, and generating the first massage parameter of the massager according to the environmental parameters includes: Determining whether the light intensity is less than or equal to a first intensity threshold, and determining whether the environment time is within a preset sleep time; If the light intensity is less than or equal to the first intensity threshold, and the environment time is within the preset sleeping time, the massage intensity of the massager is set to the lowest intensity and the massage duration is set to the maximum duration; if the light intensity is greater than the first intensity threshold, it is determined whether the light intensity is less than or equal to the second intensity threshold, and whether the environment time is within the preset waking time, wherein the first intensity threshold is less than the second intensity threshold; If the light intensity is less than or equal to a second intensity threshold and the ambient time is within the preset waking time, the massage intensity of the massager is set to a first intensity and the massage duration is set to a maximum duration; if the light intensity is greater than the second intensity threshold and the ambient time is within the preset working time, the massage intensity of the massager is set to a second intensity and the massage duration is set to a first duration, wherein the second intensity is greater than the first intensity and the first duration is less than or equal to the maximum duration.
4. The method according to claim 1, characterized in that: After generating a custom massage mode using the first massage parameter, the method further includes: The first massage parameter is locally saved in the mobile device, and the custom massage mode is added to the mode selection list of the massager.
5. The method according to claim 4, characterized in that Adding the custom massage mode to the mode selection list of the massager includes: In response to a user's selection operation, displaying a mode selection list of the massager, wherein the mode selection list includes a preset mode list or a custom mode list, the preset mode list includes a plurality of preset massage modes, and the custom mode list includes a plurality of mode controls; The customized massage mode is added to the preset mode list or the customized mode list.
6. The method according to claim 5, characterized in that Adding the custom massage mode to the preset mode list or the custom mode list includes: Detecting a selection instruction for a target preset mode in the preset mode list, reading preset parameters of the target preset mode, and replacing the preset parameters with the first massage parameters of the custom massage mode; or, A mode tag of the custom massage mode is generated, the mode tag is added to the custom mode list, and the first massage parameter and the mode tag are stored in association.
7. The method according to claim 1, characterized in that The method further comprises: Receiving a target keyword selected by a user in a preset keyword list, wherein the preset keyword list includes a plurality of keywords, each keyword corresponding to a physical symptom or massage demand; Searching for a second massage parameter matching the target keyword in a massage parameter library; generating a target massage mode using the second massage parameter; The target massage mode is added to the preset mode list of the massager.
8. A device for generating a massage pattern, characterized in that: include: An acquisition module, used to acquire environmental parameters of the current time collected by a mobile device, wherein the mobile device is wirelessly connected to the massager; A first generating module, used for generating a first massage parameter of the massager according to the environmental parameter; A second generating module, configured to generate a custom massage mode using the first massage parameters; The sending module is used to send the custom massage mode to the massager and control the massager to operate in the custom massage mode.
9. A storage medium, characterized in that: A computer program is stored in the storage medium, wherein the computer program is configured to execute the method according to any one of claims 1 to 7 when executed.
10. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to run the computer program to perform the method according to any one of claims 1 to 7.
