CN113893123A - Massage data processing method and device, electronic equipment and storage medium - Google Patents

Massage data processing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN113893123A
CN113893123A CN202111092814.9A CN202111092814A CN113893123A CN 113893123 A CN113893123 A CN 113893123A CN 202111092814 A CN202111092814 A CN 202111092814A CN 113893123 A CN113893123 A CN 113893123A
Authority
CN
China
Prior art keywords
massage
waveform data
parameters
trigger signal
waveform
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111092814.9A
Other languages
Chinese (zh)
Inventor
李宗帅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
SKG Health Technologies Co Ltd.
Original Assignee
SKG Health Technologies Co Ltd.
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by SKG Health Technologies Co Ltd. filed Critical SKG Health Technologies Co Ltd.
Priority to CN202111092814.9A priority Critical patent/CN113893123A/en
Publication of CN113893123A publication Critical patent/CN113893123A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61HPHYSICAL THERAPY APPARATUS, e.g. DEVICES FOR LOCATING OR STIMULATING REFLEX POINTS IN THE BODY; ARTIFICIAL RESPIRATION; MASSAGE; BATHING DEVICES FOR SPECIAL THERAPEUTIC OR HYGIENIC PURPOSES OR SPECIFIC PARTS OF THE BODY
    • A61H1/00Apparatus for passive exercising; Vibrating apparatus ; Chiropractic devices, e.g. body impacting devices, external devices for briefly extending or aligning unbroken bones
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61HPHYSICAL THERAPY APPARATUS, e.g. DEVICES FOR LOCATING OR STIMULATING REFLEX POINTS IN THE BODY; ARTIFICIAL RESPIRATION; MASSAGE; BATHING DEVICES FOR SPECIAL THERAPEUTIC OR HYGIENIC PURPOSES OR SPECIFIC PARTS OF THE BODY
    • A61H2201/00Characteristics of apparatus not provided for in the preceding codes
    • A61H2201/50Control means thereof
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61HPHYSICAL THERAPY APPARATUS, e.g. DEVICES FOR LOCATING OR STIMULATING REFLEX POINTS IN THE BODY; ARTIFICIAL RESPIRATION; MASSAGE; BATHING DEVICES FOR SPECIAL THERAPEUTIC OR HYGIENIC PURPOSES OR SPECIFIC PARTS OF THE BODY
    • A61H2201/00Characteristics of apparatus not provided for in the preceding codes
    • A61H2201/50Control means thereof
    • A61H2201/5023Interfaces to the user
    • A61H2201/5038Interfaces to the user freely programmable by the user
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61HPHYSICAL THERAPY APPARATUS, e.g. DEVICES FOR LOCATING OR STIMULATING REFLEX POINTS IN THE BODY; ARTIFICIAL RESPIRATION; MASSAGE; BATHING DEVICES FOR SPECIAL THERAPEUTIC OR HYGIENIC PURPOSES OR SPECIFIC PARTS OF THE BODY
    • A61H2201/00Characteristics of apparatus not provided for in the preceding codes
    • A61H2201/50Control means thereof
    • A61H2201/5097Control means thereof wireless

Abstract

The application discloses a massage data processing method and device, electronic equipment and a storage medium, and belongs to the technical field of data processing. Applied to an electronic device, the method comprises the following steps: receiving a trigger signal input by a user; generating waveform data representing the change condition of the trigger signal according to the trigger signal; generating massage parameters according to the waveform data, wherein the massage parameters comprise the total massage duration and the massage strength corresponding to each time node; and sending the massage parameters to the massage equipment so that the massage equipment can perform massage work according to the massage parameters. The waveform data corresponding to the change condition of the trigger signal is generated by receiving the trigger signal input by the user, and the massage parameter for controlling the work of the massage equipment is generated based on the waveform data, so that the parameter setting mode for controlling the work of the massage equipment is realized according to the waveform data corresponding to the signal input by the user, the user can flexibly control the massage parameter of the massage equipment, and the adaptability of the massage equipment is improved.

Description

Massage data processing method and device, electronic equipment and storage medium
Technical Field
The embodiment of the application relates to the technical field of data processing, in particular to a method and a device for processing massage data, electronic equipment and a storage medium.
Background
With the progress of science and technology, people pay more and more attention to body health in daily life, and a user can relax muscles by using massage equipment (such as a massage instrument) to achieve the effects of relaxing the body and mind, treating diseases and the like.
At present, in the aspect of controlling the massage device, a user can generally adopt the electronic device to establish communication connection with the massage device, and the electronic device sends a control instruction and the like, so that the massage device works normally. Wherein, the control instruction is used for controlling the massage equipment to work. For example, the electronic device may be a terminal, a remote controller, or the like. The user sets corresponding massage parameters for the massage equipment through the remote controller, and the massage parameters can comprise massage time, massage force, massage modes and the like, so that the control device works according to the equipment, and the massage effect for the user is achieved.
In the above scheme, the fixed massage parameters are set through the terminal or the remote controller to control the massage equipment to massage, the setting mode of the massage parameters is single, and the generated control instruction can not flexibly control the massage equipment, so that the massage equipment has poor flexibility.
Disclosure of Invention
The embodiment of the application provides a method and a device for processing massage data, electronic equipment and a storage medium, which can improve the flexibility of massage equipment.
In one aspect, an embodiment of the present application provides a method for processing massage data, where the method is applied to an electronic device, and the method includes:
receiving a trigger signal input by a user;
generating waveform data representing the change condition of the trigger signal according to the trigger signal;
generating massage parameters according to the waveform data, wherein the massage parameters comprise total massage duration and massage strength corresponding to each time node;
and sending the massage parameters to massage equipment so that the massage equipment can perform massage work according to the massage parameters.
Optionally, the electronic device includes a display screen, and before the receiving the trigger signal input by the user, the electronic device further includes:
displaying a target application interface on the display screen, wherein the target application interface comprises a touch area and a waveform data display area, the touch area is used for detecting the trigger signal, and the waveform data display area is used for displaying the generated waveform data;
the receiving of the trigger signal input by the user comprises:
and generating waveform data representing the change condition of the trigger signal through the trigger signal detected by the touch area.
Optionally, after the generating, by the trigger signal detected through the touch area, waveform data representing a change condition of the trigger signal, the method further includes:
determining a target waveform structure;
performing fitting correction on the waveform data shown in the waveform data display region so that the waveform data is identical in structure to the target waveform.
Optionally, the triggering signal is a voiceprint signal, and the generating, according to the triggering signal, waveform data representing a change condition of the triggering signal includes:
receiving the voiceprint signal;
and generating the waveform data representing the change condition of the voiceprint signal according to the voiceprint signal.
Optionally, the generating massage parameters according to the waveform data includes:
calculating the total massage duration according to the waveform diagram width of the waveform data, wherein the waveform diagram width is the length of the waveform data occupying the abscissa axis;
and calculating the massage force corresponding to each time node according to the waveform amplitude of the waveform data, wherein the waveform amplitude is the height of the waveform data occupying the ordinate axis.
Optionally, before the calculating the massage strength corresponding to each time node according to the waveform amplitude of the waveform data, the method further includes;
determining each massage period according to the waveform data; determining each time node corresponding to each massage cycle in the waveform data according to the time length of each massage cycle; alternatively, the first and second electrodes may be,
each time node in a preset time period is obtained.
Optionally, the massage parameter is sent to the massage device, so that the massage device can perform massage according to the massage parameter, including:
generating a control instruction according to the massage parameters, wherein the control instruction is used for controlling massage equipment which is in communication connection with the electronic equipment to work according to the massage parameters;
and sending the control instruction to the massage equipment through the communication connection, so that the massage equipment analyzes the control instruction and works according to the massage parameters.
Optionally, after generating the massage parameters according to the waveform data, the method further includes:
determining a target user account, wherein the target user account is a login account in another massage device or another electronic device;
and sending the massage parameters and the target user account to a target server so that the target server establishes a binding relationship between the target user account and the massage parameters, wherein the target server comprises the binding relationship between each user account and each corresponding massage parameter.
Optionally, the method further includes:
and sending a target sending signal to the target server, wherein the target sending signal is used for indicating the target server to send the massage parameters to the massage equipment logged by the target user account, so that the massage equipment logged by the target user account works according to the massage parameters.
In one aspect, an embodiment of the present application provides an apparatus for processing massage data, where the apparatus is applied to an electronic device, and the apparatus includes:
the signal receiving module is used for receiving a trigger signal input by a user;
the data generation module is used for generating waveform data representing the change condition of the trigger signal according to the trigger signal;
the parameter generation module is used for generating massage parameters according to the waveform data, and the massage parameters comprise the total massage duration and the massage strength corresponding to each time node;
and the parameter sending module is used for sending the massage parameters to massage equipment so that the massage equipment can carry out massage work according to the massage parameters.
In another aspect, an embodiment of the present application provides an electronic device, which includes a memory and a processor, where the memory stores a computer program, and the computer program, when executed by the processor, causes the processor to implement the method for processing massage data according to the above aspect.
In another aspect, the present embodiment provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the processing method of massage data according to the above aspect.
In another aspect, the present embodiments provide a computer program product, which when run on a computer, causes the computer to execute the processing method of massage data according to the above one aspect.
In another aspect, an application publishing platform is provided, and the application publishing platform is configured to publish a computer program product, wherein when the computer program product runs on a computer, the computer is caused to execute the processing method of massage data according to the above aspect.
The technical scheme provided by the embodiment of the application can at least comprise the following beneficial effects:
the electronic equipment provided by the application can receive a trigger signal input by a user; generating waveform data representing the change condition of the trigger signal according to the trigger signal; generating massage parameters according to the waveform data, wherein the massage parameters comprise the total massage duration and the massage strength corresponding to each time node; and sending the massage parameters to the massage equipment so that the massage equipment can perform massage work according to the massage parameters. The waveform data corresponding to the change condition of the trigger signal is generated by receiving the trigger signal input by the user, and the massage parameter for controlling the work of the massage equipment is generated based on the waveform data, so that the parameter setting mode for controlling the work of the massage equipment is realized according to the waveform data corresponding to the signal input by the user, the user can flexibly control the massage parameter of the massage equipment, and the adaptability of the massage equipment is improved.
Drawings
FIG. 1 is a schematic view of a setting interface for massage parameters according to an exemplary embodiment of the present application;
fig. 2 is a flowchart of a method for processing massage data according to an exemplary embodiment of the present application;
FIG. 3 is a flowchart of a method for processing massage data according to an exemplary embodiment of the present application;
FIG. 4 is an interface schematic of a target application interface according to an exemplary embodiment of the present application;
FIG. 5 is a schematic illustration of a setup interface for a target waveform configuration according to an exemplary embodiment of the present application;
FIG. 6 is a schematic illustration of a waveform image to which an exemplary embodiment of the present application relates;
FIG. 7 is an interface schematic of a massage parameter delivery interface according to an exemplary embodiment of the present application;
FIG. 8 is a flowchart illustrating a method for processing massage data according to an exemplary embodiment of the present application;
fig. 9 is a block diagram of a processing device for massage data according to an exemplary embodiment of the present application;
fig. 10 is a schematic structural diagram of an electronic device according to an exemplary embodiment of the present application.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
Reference herein to "a plurality" means two or more. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
The scheme provided by the application can be used for establishing short-distance wireless communication connection with the massage equipment through the electronic equipment or the terminal when people use the massage equipment in daily life, and controlling the massage equipment to massage, or a user can also directly control the massage equipment to massage in a real scene, and for convenience of understanding, a few nouns and application scenes related to the embodiment of the application are firstly and simply introduced below.
With the development of science and technology, various electronic devices are appeared in daily life of people, people can work, entertain, study and the like through terminals, and people can usually relax the body through health care devices when the body is tired. For example, a massage device with a massage function has a remarkable effect in relieving stress and fatigue as a health care device, and is popular with consumers, and people increasingly use the massage device for massage, relaxation, and the like in daily life.
Before the massage device is used, a user is usually required to set fixed massage parameters, for example, the user sets the massage mode to be the a mode, sets the massage strength to be the B strength, and sets the duration to be 10 minutes. After the user sets the massage parameters, the massage apparatus operates according to the massage parameters.
Please refer to fig. 1, which shows a schematic diagram of a setting interface of massage parameters according to an exemplary embodiment of the present application. As shown in fig. 1, the device name 101, the massage mode control 102, the massage strength control 103, the massage duration control 104, the confirmation control 105, and the cancel control 106 are included. The user selects different massage parameters by triggering the corresponding massage mode control 102, massage strength control 103 and massage duration control 104, and clicks the confirmation control 105 to complete the setting of the massage parameters, thereby realizing the control of the massage equipment.
Optionally, the setting interface of the massage parameter may be displayed on a display screen included in the massage device, or may be displayed on a display screen of an electronic device that establishes a communication connection with the massage device. The electronic device may be a mobile phone, a tablet computer, an e-book reader, smart glasses, a smart watch, an MP3 player (Moving Picture Experts Group Audio Layer III, motion Picture Experts compression standard Audio Layer 3), an MP4 player (Moving Picture Experts Group Audio Layer IV, motion Picture Experts compression standard Audio Layer 4), a notebook computer, a laptop computer, a desktop computer, or the like. Or, the terminal may also be an intelligent home device, where the intelligent home device may include, but is not limited to, a smart television, an intelligent robot, an intelligent sound box, an intelligent bluetooth headset, a massage device, an intelligent refrigerator, an intelligent air conditioner, an intelligent electric rice cooker, an intelligent sensor (such as an infrared sensor, a light sensor, a vibration sensor, a sound sensor, and the like), an intelligent water purifier, and other devices that are fixedly installed or move in a small range.
Optionally, the communication connection between the electronic device and the massage device is a wired network or a wireless network.
Optionally, the wireless network or wired network described above uses standard communication techniques and/or protocols. The Network is typically the Internet, but may be any Network including, but not limited to, a Local Area Network (LAN), a Metropolitan Area Network (MAN), a Wide Area Network (WAN), a mobile, wireline or wireless Network, a private Network, or any combination of virtual private networks. In some embodiments, data exchanged over a network is represented using techniques and/or formats including Hypertext Mark-up Language (HTML), Extensible Markup Language (XML), and the like. All or some of the links may also be encrypted using conventional encryption techniques such as Secure Socket Layer (SSL), Transport Layer Security (TLS), Virtual Private Network (VPN), Internet Protocol Security (IPsec). In other embodiments, custom and/or dedicated data communication techniques may also be used in place of, or in addition to, the data communication techniques described above.
Optionally, in the communication connection between the electronic device and the massage device, the communication connection may be switched through a server, that is, the device in the communication connection may further include a server, and the server includes at least one of a server, a plurality of servers, a cloud computing platform, and a virtualization center. The server is used to provide background services for supporting applications in the electronic device, such as applications developed by the manufacturer of the terminal.
Similarly, in some massage apparatuses equipped with a remote controller, the user sets parameters of the massage apparatus via the remote controller, and the massage apparatus is developed by programming several common modes, for example, a 30-minute cycle in which the first 5 minutes is hammered physically, the second 5 minutes is pulsed with EMS, the third 5 minutes is pulsed with infrared light, and so on, and the cycle is repeated to the last 5 minutes to complete the massage. The remote controller can select the corresponding mode, so that the massage equipment can massage according to the preset mode.
In the above scheme, the setting of the massage mode or the massage parameter is selected by the user based on the parameters preset in the massage device by the developer, when the user uses the massage device for a long time, the massage parameter is required to be adjusted according to the self condition, and the massage parameter of the massage device is required to be set according to the self use habit, at this time, the development program needs to be rewritten, a set of massage logic needs to be redesigned for the massage device of the user, the process is complicated, and when other users want to use the same massage parameter as the user, the massage parameter needs to be reset in the massage devices of other users, and the problems that the setting mode of the massage parameter of the massage device is single and the flexibility of the setting of the massage parameter is poor exist.
In order to avoid the problems in the technical scheme, the flexibility of setting the massage parameters is improved. The application provides a processing method of massage data, which can realize massage according to a user-defined mode, flexibly change massage parameters according to the user-defined data and increase the setting mode of the massage parameters.
Referring to fig. 2, a method flowchart of a processing method of massage data according to an exemplary embodiment of the present application is shown. The method can be used in the scenario architecture shown in fig. 1, and executed by the electronic device in the scenario, as shown in fig. 2, the processing method of the massage data may include the following steps.
Step 201, receiving a trigger signal input by a user.
The trigger signal may be a signal for touching the electronic device, or may be a voiceprint signal, an optical signal, or the like that can be received by the electronic device. For example, the electronic device includes a display screen, and a user may touch the display screen, so that the electronic device receives a trigger signal generated by the user in the display screen due to the touch. Or the electronic device collects the voice of the user through the voice collection module, and when the user speaks or inputs the voiceprint signal, the electronic device receives the voiceprint signal input by the user through the voice collection module. Or, the electronic device collects the optical signal through the light collection module, and when the user inputs the optical signal to the electronic device, the electronic device receives the optical signal input by the user through the light collection module.
Step 202, generating waveform data representing the change condition of the trigger signal according to the trigger signal.
Optionally, the electronic device automatically generates waveform data according to a change condition of the trigger signal by the received trigger signal, where an abscissa of the waveform data may represent time, and an ordinate of the waveform data may represent signal strength of the trigger signal. For example, the trigger signal is a voiceprint signal, the ordinate of the generated waveform data may represent the signal intensity of the voiceprint signal, and the abscissa represents time. Or, the trigger signal is a touch signal generated by a user touching the display screen, and the abscissa of the generated waveform data represents time, and the ordinate represents touch strength or touch amplitude.
And 203, generating massage parameters according to the waveform data, wherein the massage parameters comprise the total massage duration and the massage strength corresponding to each time node.
Optionally, the electronic device generates massage parameters according to the generated waveform data, where the massage parameters include a total massage duration and a massage strength corresponding to each time node. The total massage duration may be the total massage duration of the massage device, for example, the total massage duration is 10 minutes, and then the time for controlling the massage device to massage is 10 minutes. The massage force corresponding to each time node can be obtained according to the amplitude corresponding to each time node in the waveform data, and the amplitude of the waveform data can represent or calculate the massage force of the corresponding time node.
And 204, sending the massage parameters to the massage equipment so that the massage equipment can perform massage work according to the massage parameters.
Optionally, the electronic device is in communication connection with the massage device, and the obtained massage parameters are sent to the massage device in a communication connection manner. For example, the electronic device and the massage device are connected through Bluetooth, and the electronic device may synchronize the massage parameter to the massage device through other synchronous customized protocol instructions (short-distance wireless communication, etc.) such as Bluetooth Low Energy (BLE).
Optionally, the short-range wireless communication may be any one of WiFi communication, peer-to-peer D2D communication, bluetooth communication, or Zigbee communication. That is, when the short-range wireless communication is WiFi communication, the pairing request may be a pairing request for establishing a WiFi communication connection, when the short-range wireless communication is D2D communication, the pairing request may be a pairing request for establishing a D2D communication connection, when the short-range wireless communication is bluetooth communication, the pairing request may be a pairing request for establishing a bluetooth communication connection, and when the short-range wireless communication is Zigbee communication, the pairing request may be a pairing request for establishing a Zigbee communication connection.
In summary, the electronic device provided by the present application can receive a trigger signal input by a user; generating waveform data representing the change condition of the trigger signal according to the trigger signal; generating massage parameters according to the waveform data, wherein the massage parameters comprise the total massage duration and the massage strength corresponding to each time node; and sending the massage parameters to the massage equipment so that the massage equipment can perform massage work according to the massage parameters. The waveform data corresponding to the change condition of the trigger signal is generated by receiving the trigger signal input by the user, and the massage parameter for controlling the work of the massage equipment is generated based on the waveform data, so that the parameter setting mode for controlling the work of the massage equipment is realized according to the waveform data corresponding to the signal input by the user, the user can flexibly control the massage parameter of the massage equipment, and the adaptability of the massage equipment is improved.
In a possible implementation manner, for example, a user touches the display screen, the electronic device receives a trigger signal of the user in the display screen, and the electronic device generates corresponding waveform data according to the trigger signal, so as to obtain the massage parameters, so that the massage parameters can be generated by the user by triggering the display screen in a self-defined manner, and the flexibility of setting the massage parameters is improved.
Referring to fig. 3, a method flowchart of a processing method of massage data according to an exemplary embodiment of the present application is shown. The method can be used in the scenario architecture shown in fig. 1, and executed by the electronic device in the scenario, as shown in fig. 3, the processing method of the massage data may include the following steps.
Step 301, displaying a target application interface on a display screen, where the target application interface includes a touch area and a waveform data display area.
The touch area is used for detecting a trigger signal, and the waveform data display area is used for displaying generated waveform data.
For example, please refer to fig. 4, which illustrates an interface diagram of a target application interface according to an exemplary embodiment of the present application. As shown in fig. 4, the target application interface 400 includes a touch area 401, a waveform data display area 402, and a waveform image 403. A user can touch and slide in a touch area 401 displayed on the electronic device, and a waveform image 403 is displayed in a waveform data display area 402 in response to a trigger signal detected in the touch area 401.
Step 302, generating waveform data representing the variation condition of the trigger signal according to the trigger signal detected by the touch area.
Optionally, the user touches the touch area with a finger and slides in the touch area, at this time, the trigger signal is a slide signal detected by the electronic device through the touch area, and the electronic device may generate waveform data representing a change condition of the trigger signal based on the slide of the user.
In one possible implementation, the electronic device may determine a target waveform structure; and performing fitting correction on the waveform data displayed in the waveform data display area so that the waveform data has the same structure as the target waveform. For example, please refer to fig. 5, which illustrates a schematic setting interface diagram of a target waveform structure according to an exemplary embodiment of the present application. As shown in fig. 5, the setting interface 500 includes a waveform selection control 501, a confirmation control 502, and a cancel control 503. The user can show the setting interface 500 in the electronic device, and after triggering the waveform selection control 501 and selecting the target waveform contained therein, the confirmation control 502 is triggered, so that the electronic device knows which waveform structure the user wants to generate subsequently, and performs fitting correction on the waveform data generated by detecting the trigger signal subsequently, so that the waveform structure of the waveform data hand-drawn by the user is the same as the target waveform structure. Alternatively, the target waveform structure may be any one of a sine wave, a square wave, a sawtooth wave, a triangular wave, and the like.
The waveform image in fig. 4 is a sine wave as an example, a user touches and slides in a sine wave manner in a touch area displayed by the electronic device, and the electronic device displays a waveform image subjected to fitting correction in response to a trigger signal detected in the touch area.
In a possible implementation manner, in the process of acquiring the waveform data, the trigger signal may also be a voiceprint signal, and the manner in which the electronic device generates the waveform data representing the change condition of the trigger signal according to the trigger signal may be as follows: receiving a voiceprint signal; and generating waveform data representing the change condition of the voiceprint signal according to the voiceprint signal. For example, the electronic device receives a voiceprint signal sent by a user through a microphone, and generates waveform data representing the change condition of the voiceprint signal based on the voiceprint signal, so as to execute the subsequent steps. Or, in the process of acquiring the waveform data, the trigger signal may also be an optical signal, and the manner of generating, by the electronic device, the waveform data representing the change condition of the trigger signal according to the trigger signal may be as follows: receiving an optical signal; and generating waveform data representing the change condition of the optical signal according to the optical signal. For example, the electronic device obtains the intensity of ambient light through a light sensor, and generates waveform data representing the intensity variation of the light signal based on the light signal, thereby performing the subsequent steps.
And 303, generating massage parameters according to the waveform data, wherein the massage parameters comprise the total massage duration and the massage strength corresponding to each time node.
Optionally, the electronic device generates a massage parameter corresponding to the waveform data based on the acquired waveform data. Wherein, the massage parameters comprise the total massage duration and the massage strength corresponding to each time node. When the massage equipment is used for massaging, the total massage duration is usually set, the massage equipment works according to the total massage duration, and the massage force is correspondingly adjusted on each time node to complete the massage.
In one possible implementation manner, the electronic device may calculate the total massage duration according to a waveform diagram width of the waveform data, the waveform diagram width being a length of the waveform data occupying an abscissa axis; and calculating the massage force corresponding to each time node according to the waveform amplitude of the waveform data, wherein the waveform amplitude is the height of the waveform data occupying the ordinate axis. For example, in fig. 4 described above, after the waveform image is displayed, the electronic apparatus calculates the total massage time period based on the length of the waveform data in the waveform image occupying the abscissa axis in the waveform coordinate. If the length of time occupied by the waveform data in 2 abscissa units corresponds to 1 msec and the length of the abscissa occupied by the waveform data is 2000 abscissa units, the total massage time period obtained by the above calculation is 1000 msec.
Optionally, the electronic device may pre-store a calculation formula, and calculate the total massage duration according to the pre-stored calculation formula. For example, the calculation formula pre-stored in the electronic device is as follows: t ═ X/60 (sec); wherein T represents the total massage time length, X represents the total length of the waveform data occupying the abscissa axis, and if the length of the waveform data occupying the abscissa axis is 1800 abscissa units, the total massage time length calculated by the above formula is 30 seconds. Or, the electronic device calculates the total massage duration according to a prestored ratio H, for example, the ratio H represents the length of the abscissa axis corresponding to the unit time (for example, the length of the abscissa axis of 100 mm corresponds to the time length of 60 seconds), and then, the electronic device may also calculate the total massage duration by dividing the total length of the abscissa axis occupied by the waveform data by the ratio H.
Optionally, the electronic device further calculates the massage force corresponding to each time node according to the waveform amplitude of the waveform data. Wherein each time node may be a time point corresponding to an abscissa value of each waveform data. For example, in the waveform image, the waveform amplitude corresponding to the first abscissa value is a, and the time point corresponding to the first abscissa value is calculated according to the total massage duration to be 0.1 second, so that at the time node of 0.1 second, the electronic device multiplies N by the waveform amplitude a to obtain the corresponding massage strength at the time node. Wherein, N represents the waveform amplitude corresponding to the unit massage force. For example, if N is 30, which indicates that the waveform amplitude corresponding to each unit massage force is 30, then if the waveform amplitude a is 300, the corresponding massage force at the time node is 10 according to the waveform amplitude a/N. The obtaining mode of the massage strength is similar to the obtaining mode of the total massage duration, and the details are not repeated here.
Optionally, the electronic device may record the obtained total massage duration and the obtained massage strength in an array form, for example, in a json manner, the recorded massage parameters may be as follows: { Y, [ array element ] }, wherein Y represents the calculated total massage duration, and each element in [ array element ] corresponds to the massage strength of each time node.
In a possible implementation manner, the electronic device may determine each massage cycle according to the waveform data before calculating the massage strength corresponding to each time node according to the waveform amplitude of the waveform data; and determining each time node corresponding to each massage period in the waveform data according to the time length of each massage period. That is, the electronic device may also determine individual massage periods from the waveform data. For example, when generating corresponding waveform data, the electronic device may further record a pressing duration for each of the waveform data, select the waveform data in which the pressing duration is greater than a duration threshold, and determine each massage cycle according to the adjacent waveform data.
For example, please refer to fig. 6, which illustrates a schematic diagram of a waveform image according to an exemplary embodiment of the present application. As shown in fig. 6, the waveform image 600 includes a first node 601, a second node 602, a third node 603, a start point 604 and an end point 605. The pressing time lengths recorded by the electronic device for the first node 601, the second node 602, and the third node 603 are 1 second, 2 seconds, and 3 seconds, respectively. If the time length threshold set in the electronic device is 1 second, the electronic device can screen out the first node 601, the second node 602, and the third node 603 according to the time length threshold, determine the time between the starting point 604 and the first node 601 as a first massage cycle, determine the time between the first node 601 and the second node 602 as a second massage cycle, determine the time between the second node 602 and the third node 603 as a third massage cycle, and determine the time between the third node 603 and the end point 605 as a fourth massage cycle. The electronic device determines each time node in the waveform data corresponding to each massage cycle based on the time length of each massage cycle.
Optionally, in the above scheme, the electronic device may further obtain a corresponding massage mode based on the pressing duration corresponding to each node, and use the obtained massage mode as one of contents included in the massage parameter. For example, the electronic device includes a correspondence table between the pressing duration and the massage mode, and after the electronic device obtains the pressing duration corresponding to each node, the electronic device may determine the massage mode corresponding to the pressing duration by querying the correspondence table.
Please refer to table 1, which shows a table of correspondence between pressing time and massage mode according to an exemplary embodiment of the present application.
Duration of press Massage mode
Duration of pressing is one Massage mode one
Duration of pressing two Massage mode two
Pressing time length three Massage mode three
…… ……
TABLE 1
As shown in table 1, different pressing durations may correspond to different massage modes, and if the first node 601 in fig. 6 is a first pressing duration, the second node 602 is a second pressing duration, and the third node 603 is a third pressing duration, the electronic device may obtain, through the table 1, a massage mode corresponding to each time node, and switch to a corresponding massage mode for massage when the time node is reached in a subsequent control massage process.
In a possible implementation manner, the electronic device may also directly acquire each time node in the preset time period. That is, after the total massage time length is calculated as described above, each time point in the total massage time length is taken as each time node.
And 304, generating a control instruction according to the massage parameters, wherein the control instruction is used for controlling the massage equipment which is in communication connection with the electronic equipment to work according to the massage parameters.
Optionally, the electronic device generates a control instruction according to the obtained massage parameters, and the control instruction can control the massage device in communication connection with the electronic device to operate according to the massage parameters. Wherein, the control instruction can be generated by a processor in the electronic equipment, and the massage parameter is transmitted through the control instruction.
And 305, sending the control command to the massage equipment through the communication connection, so that the massage equipment analyzes the control command and works according to the massage parameters.
For example, the electronic device is a mobile phone, the massage device may be a neck massage apparatus connected to the mobile phone via bluetooth, the electronic device generates a control command based on the waveform image generated by the hand drawing of the user, and the control command is sent to the neck massage apparatus via the bluetooth connection, so that the neck massage apparatus operates according to the massage parameters. Alternatively, the communication connection may be a BLE connection, and the electronic device may synchronize the massage parameters to the massage device by means of BLE synchronization customized protocol instructions.
In one possible implementation manner, the electronic device may further determine a target user account, where the target user account is an account logged in by another massage device or another electronic device; and sending the massage parameters and the target user account to a target server so that the target server establishes a binding relationship between the target user account and the massage parameters, wherein the target server comprises the binding relationship between each user account and the corresponding massage parameter. Optionally, in this application, a first user account is logged in the electronic device, where the first user account may be a user account corresponding to a massage device in communication connection with the electronic device, and a user may determine, by logging in the first user account in the electronic device, a corresponding user through the logged first user account, so as to know a habit of using the massage device by the user (for example, when the user uses the massage device for a plurality of times, for a plurality of times each time, and the like). Each user account also corresponds to a massage parameter, and the target server can store the binding relationship between each user account and the corresponding massage parameter.
For example, please refer to table 2, which shows a table of correspondence between user accounts and massage parameters according to an exemplary embodiment of the present application.
User account Parameters of massage
User account number one Massage parameter one
User account number two Massage parameter two
User account number three Massage parameter three
…… ……
TABLE 2
For example, the electronic device logs in a first user account, and the electronic device may query a first massage parameter corresponding to the first user account according to the table 2.
Please refer to fig. 7, which illustrates an interface diagram of a massage parameter sending interface according to an exemplary embodiment of the present application. As shown in fig. 7, the transmission interface 700 includes a first input box 701, a transmission control 702, and a cancellation control 703, where a user may input a target user account in the first input box 701, click the transmission control 702, transmit the acquired massage parameter and the target user account to a target server, and the target server establishes a binding relationship between the target user account and the massage parameter through the received massage parameter and a corresponding target user account. In the first input box 701, an equipment identifier of another massage equipment or another electronic equipment may also be input, and the target server finds the corresponding target user account through the equipment identifier, which is not limited in the embodiment of the present application.
Optionally, if the target user account pre-stores the binding relationship in the target server, the target server may update the binding relationship.
Optionally, the electronic device sends a target sending signal to the target server, where the target sending signal is used to instruct the target server to send the massage parameters to the massage device logged in by the target user account, so that the massage device logged in by the target user account operates according to the massage parameters. The electronic equipment sends the target sending signal to the target server, so that the target server is instructed to send the massage parameters to the massage equipment logged in by the target user account, the massage equipment logged in by the target user account works according to the massage parameters, the user of the massage equipment is not required to reset the massage parameters again, and the setting and synchronization efficiency of the massage parameters is improved. Correspondingly, the massage equipment logged with the target user account works according to the massage parameters after receiving the massage parameters sent by the target server.
In summary, the electronic device provided by the present application can receive a trigger signal input by a user; generating waveform data representing the change condition of the trigger signal according to the trigger signal; generating massage parameters according to the waveform data, wherein the massage parameters comprise the total massage duration and the massage strength corresponding to each time node; and sending the massage parameters to the massage equipment so that the massage equipment can perform massage work according to the massage parameters. The waveform data corresponding to the change condition of the trigger signal is generated by receiving the trigger signal input by the user, and the massage parameter for controlling the work of the massage equipment is generated based on the waveform data, so that the parameter setting mode for controlling the work of the massage equipment is realized according to the waveform data corresponding to the signal input by the user, the user can flexibly control the massage parameter of the massage equipment, and the adaptability of the massage equipment is improved.
In addition, the generated massage parameters are sent to the target server, other massage equipment is controlled based on the target server, and the user does not need to set the massage parameters respectively, so that the synchronization efficiency of the massage parameters among different massage equipment is improved.
The embodiment shown in fig. 2 and 3 is described below with the electronic device being a mobile phone and the massage device being a neck massager, by interaction between the mobile phone and the server.
Referring to fig. 8, a flowchart of a method for processing massage data according to an exemplary embodiment of the present application is shown. The method can be used in the scenario architecture shown in fig. 1, and executed by the electronic device in the scenario, as shown in fig. 8, the processing method of the massage data may include the following steps.
Step 801, the mobile phone generates waveform data by drawing custom trigger data.
And step 802, the mobile phone acquires massage parameters corresponding to the waveform image according to the waveform data.
The description in steps 801 to 802 may refer to the description in steps 301 to 303.
Step 803, the mobile phone sends the massage parameter to the server.
And step 804, the server receives the massage parameters sent by the mobile phone.
Step 805, the server correlates the massage parameters.
In step 806, the server sends the massage data to other mobile phones.
In step 807, the other mobile phones receive the massage data and operate according to the massage parameters.
The description of step 803 to step 807 can refer to the description of step 304 to step 305.
In summary, the electronic device provided by the present application can receive a trigger signal input by a user; generating waveform data representing the change condition of the trigger signal according to the trigger signal; generating massage parameters according to the waveform data, wherein the massage parameters comprise the total massage duration and the massage strength corresponding to each time node; and sending the massage parameters to the massage equipment so that the massage equipment can perform massage work according to the massage parameters. The waveform data corresponding to the change condition of the trigger signal is generated by receiving the trigger signal input by the user, and the massage parameter for controlling the work of the massage equipment is generated based on the waveform data, so that the parameter setting mode for controlling the work of the massage equipment is realized according to the waveform data corresponding to the signal input by the user, the user can flexibly control the massage parameter of the massage equipment, and the adaptability of the massage equipment is improved.
The following are embodiments of the apparatus of the present application that may be used to perform embodiments of the method of the present application. For details which are not disclosed in the embodiments of the apparatus of the present application, reference is made to the embodiments of the method of the present application.
Referring to fig. 9, a block diagram of a processing device for massage data according to an exemplary embodiment of the present application is shown. The processing device of the massage data can be used in the massage apparatus to execute all or part of the steps executed by the electronic device in the method provided by the embodiment shown in fig. 2, fig. 3 or fig. 8. The processing device 900 for massage data may include the following modules:
a signal receiving module 901, configured to receive a trigger signal input by a user;
a data generating module 902, configured to generate, according to the trigger signal, waveform data representing a change condition of the trigger signal;
a parameter generating module 903, configured to generate massage parameters according to the waveform data, where the massage parameters include a total massage duration and a massage strength corresponding to each time node;
a parameter sending module 904, configured to send the massage parameter to a massage device, so that the massage device can perform a massage operation according to the massage parameter.
In summary, the electronic device provided by the present application can receive a trigger signal input by a user; generating waveform data representing the change condition of the trigger signal according to the trigger signal; generating massage parameters according to the waveform data, wherein the massage parameters comprise the total massage duration and the massage strength corresponding to each time node; and sending the massage parameters to the massage equipment so that the massage equipment can perform massage work according to the massage parameters. The waveform data corresponding to the change condition of the trigger signal is generated by receiving the trigger signal input by the user, and the massage parameter for controlling the work of the massage equipment is generated based on the waveform data, so that the parameter setting mode for controlling the work of the massage equipment is realized according to the waveform data corresponding to the signal input by the user, the user can flexibly control the massage parameter of the massage equipment, and the adaptability of the massage equipment is improved.
Optionally, the electronic device includes a display screen, and the apparatus further includes:
an interface display module, configured to display a target application interface on the display screen before the signal receiving module 901 receives a trigger signal input by a user, where the target application interface includes a touch area and a waveform data display area, the touch area is used to detect the trigger signal, and the waveform data display area is used to display the generated waveform data;
the signal receiving module 901 is configured to generate waveform data representing a change condition of the trigger signal according to the trigger signal detected by the touch area.
Optionally, the apparatus further comprises:
the structure determining module is used for determining a target waveform structure after the trigger signal detected through the touch area generates waveform data representing the change condition of the trigger signal;
and the structure correction module is used for performing fitting correction on the waveform data displayed in the waveform data display area so as to enable the waveform data to be the same as the target waveform structure.
Optionally, the trigger signal is a voiceprint signal, and the data generating module is configured to generate the voiceprint signal
Receiving the voiceprint signal;
and generating the waveform data representing the change condition of the voiceprint signal according to the voiceprint signal.
Optionally, the parameter generating module includes: a first calculation unit and a second calculation unit;
the first calculating unit is used for calculating the total massage duration according to the waveform diagram width of the waveform data, wherein the waveform diagram width is the length of the waveform data occupying the abscissa axis;
and the second calculating unit is used for calculating the massage force corresponding to each time node according to the waveform amplitude of the waveform data, wherein the waveform amplitude is the height of the waveform data occupying the ordinate axis.
Optionally, the apparatus further comprises; a period determining module or a time obtaining module;
the period determining module is configured to determine each massage period according to the waveform data before the massage strength corresponding to each time node is calculated according to the waveform amplitude of the waveform data; determining each time node corresponding to each massage cycle in the waveform data according to the time length of each massage cycle; alternatively, the first and second electrodes may be,
the time acquisition module is used for acquiring each time node in a preset time period.
Optionally, the parameter sending module 904 includes: an instruction generating unit and an instruction transmitting unit;
the instruction generating unit is used for generating a control instruction according to the massage parameters, and the control instruction is used for controlling the massage equipment which is in communication connection with the electronic equipment to work according to the massage parameters;
the instruction sending unit is used for sending the control instruction to the massage equipment through the communication connection, so that the massage equipment analyzes the control instruction and works according to the massage parameters.
Optionally, the apparatus further comprises:
an account determination module, configured to determine a target user account after the parameter generation module 904 generates the massage parameters according to the waveform data, where the target user account is an account logged in by another massage device or another electronic device;
and the parameter sending module is used for sending the massage parameters and the target user account to a target server so that the target server establishes a binding relationship between the target user account and the massage parameters, and the target server comprises the binding relationship between each user account and the corresponding massage parameter.
Optionally, the apparatus further comprises:
and the signal sending module is used for sending a target sending signal to the target server, wherein the target sending signal is used for indicating the target server to send the massage parameters to the massage equipment logged by the target user account so as to enable the massage equipment logged by the target user account to work according to the massage parameters.
Referring to fig. 10, a schematic structural diagram of an electronic device disclosed in an exemplary embodiment of the present application is shown. As shown in fig. 10, may include: radio Frequency (RF) circuitry 1010, memory 1020, input unit 1030, display unit 1040, sensor 1050, audio circuitry 1060, WiFi module 1070, processor 1080, and power supply 1090. In the above embodiments, the electronic device may be a massage device or an electronic device. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 10 does not constitute a limitation of the electronic device and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The respective constituent components of the electronic apparatus will be described below with reference to fig. 10:
RF circuit 1010 may be used for receiving and transmitting signals during information transmission and reception or during a call, and in particular, for processing downlink information of a base station after receiving the downlink information to processor 1080; in addition, the data for designing uplink is transmitted to the base station. In general, RF circuit 1010 includes, but is not limited to, an antenna, at least one Amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuitry 1010 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to Global System for Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), and the like.
The memory 1020 may be used to store software programs and modules, and the processor 1080 executes various functional applications and data processing of the electronic device by operating the software programs and modules stored in the memory 1020. The memory 1020 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the electronic device, and the like. Further, the memory 1020 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The input unit 1030 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic device. Specifically, the input unit 1030 may include a touch panel 1031 and other input devices 1032. The touch panel 1031, also referred to as a touch screen, may collect touch operations by a user (e.g., operations by a user on or near the touch panel 1031 using any suitable object or accessory such as a finger, a stylus, etc.) and drive corresponding connection devices according to a preset program. Alternatively, the touch panel 1031 may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 1080, and can receive and execute commands sent by the processor 1080. In addition, the touch panel 1031 may be implemented by various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The input unit 1030 may include other input devices 1032 in addition to the touch panel 1031. In particular, other input devices 1032 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a track ball, a mouse, a joystick, or the like.
The display unit 1040 may be used to display information input by a user or information provided to a user and various menus of the electronic device. The Display unit 1040 may include a Display panel 1041, and optionally, the Display panel 1041 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch panel 1031 can cover the display panel 1041, and when the touch panel 1031 detects a touch operation on or near the touch panel 1031, the touch operation is transmitted to the processor 1080 to determine the type of the touch event, and then the processor 1080 provides a corresponding visual output on the display panel 1041 according to the type of the touch event. Although in fig. 10, the touch panel 1031 and the display panel 1041 are two separate components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 1031 and the display panel 1041 may be integrated to implement the input and output functions of the electronic device.
The electronic device may also include at least one sensor 1050, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that adjusts the brightness of the display panel 1041 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 1041 and/or the backlight when the electronic device is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), detect the magnitude and direction of gravity when stationary, and can be used for applications (such as horizontal and vertical screen switching, related games, magnetometer attitude calibration) for recognizing the attitude of the electronic device, vibration recognition related functions (such as pedometer, tapping) and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which may be further configured to the electronic device, detailed descriptions thereof are omitted.
Audio circuitry 1060, speaker 1061, microphone 1062 may provide an audio interface between a user and an electronic device. The audio circuit 1050 may transmit the electrical signal converted from the received audio data to the speaker 1061, and convert the electrical signal into a sound signal for output by the speaker 1061; on the other hand, the microphone 1062 converts the collected sound signals into electrical signals, which are received by the audio circuit 1060 and converted into audio data, which are then processed by the audio data output processor 1080 and then transmitted to, for example, another electronic device via the RF circuit 1010, or output to the memory 1020 for further processing.
WiFi belongs to short-range wireless transmission technology, and the electronic device can help the user send and receive e-mails, browse web pages, access streaming media, etc. through the WiFi module 1070, which provides the user with wireless broadband internet access. Although fig. 10 shows the WiFi module 1070, it is understood that it does not belong to the essential constitution of the electronic device, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 1080 is a control center of the electronic device, connects various parts of the whole electronic device by using various interfaces and lines, executes various functions of the electronic device and processes data by operating or executing software programs and/or modules stored in the memory 1020 and calling data stored in the memory 1020, thereby monitoring the whole electronic device. Optionally, processor 1080 may include one or more processing units; preferably, the processor 1080 may integrate an application processor, which handles primarily the operating system, user interfaces, applications, etc., and a modem processor, which handles primarily the wireless communications. It is to be appreciated that the modem processor described above may not be integrated into processor 1080.
The electronic device also includes a power source 1090 (e.g., a battery) for powering the various components, which may preferably be logically coupled to the processor 1080 via a power management system that may be configured to manage charging, discharging, and power consumption.
Although not shown, the electronic device may further include a camera, a bluetooth module, and the like, which are not described in detail herein.
The embodiment of the application discloses a computer readable storage medium, which stores a computer program, wherein the computer program is executed by a processor to realize the method in the embodiment of the method.
The embodiment of the application discloses a computer program product, which comprises a non-transitory computer readable storage medium storing a computer program, and the computer program is operable to make a computer execute the method in the embodiment of the method.
The embodiment of the application discloses an application publishing platform, wherein the application publishing platform is used for publishing a computer program product, and when the computer program product runs on a computer, the computer is enabled to execute the method in the method embodiment.
It should be appreciated that reference throughout this specification to "one embodiment" or "an embodiment" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present application. Thus, the appearances of the phrases "in one embodiment" or "in an embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. Those skilled in the art should also appreciate that the embodiments described in this specification are all alternative embodiments and that the acts and modules involved are not necessarily required for this application.
In various embodiments of the present application, it should be understood that the size of the serial number of each process described above does not mean that the execution sequence is necessarily sequential, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated units, if implemented as software functional units and sold or used as a stand-alone product, may be stored in a computer accessible memory. Based on such understanding, the technical solution of the present application, which is a part of or contributes to the prior art in essence, or all or part of the technical solution, may be embodied in the form of a software product, stored in a memory, including several requests for causing a computer device (which may be a personal computer, a server, a network device, or the like, and may specifically be a processor in the computer device) to execute part or all of the steps of the above-described method of the embodiments of the present application.
It will be understood by those skilled in the art that all or part of the steps in the methods of the embodiments described above may be implemented by hardware instructions of a program, and the program may be stored in a computer-readable storage medium, where the storage medium includes Read-Only Memory (ROM), Random Access Memory (RAM), Programmable Read-Only Memory (PROM), Erasable Programmable Read-Only Memory (EPROM), One-time Programmable Read-Only Memory (OTPROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Compact Disc Read-Only Memory (CD-ROM), or other Memory, such as a magnetic disk, or a combination thereof, A tape memory, or any other medium readable by a computer that can be used to carry or store data.
The foregoing describes a method, an apparatus, a massage device and a storage medium for processing massage data disclosed in the embodiments of the present application by way of example, and a principle and an implementation of the present application are described herein by way of example, and the description of the foregoing embodiments is only used to help understand the method and the core idea of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (12)

1. A processing method of massage data is applied to an electronic device, and the method comprises the following steps:
receiving a trigger signal input by a user;
generating waveform data representing the change condition of the trigger signal according to the trigger signal;
generating massage parameters according to the waveform data, wherein the massage parameters comprise total massage duration and massage strength corresponding to each time node;
and sending the massage parameters to massage equipment so that the massage equipment can perform massage work according to the massage parameters.
2. The method of claim 1, wherein the electronic device comprises a display screen, and prior to the receiving the user-input trigger signal, further comprising:
displaying a target application interface on the display screen, wherein the target application interface comprises a touch area and a waveform data display area, the touch area is used for detecting the trigger signal, and the waveform data display area is used for displaying the generated waveform data;
the receiving of the trigger signal input by the user comprises:
and generating waveform data representing the change condition of the trigger signal through the trigger signal detected by the touch area.
3. The method according to claim 2, wherein after the trigger signal detected by the touch area generates waveform data representing a change of the trigger signal, the method further comprises:
determining a target waveform structure;
performing fitting correction on the waveform data shown in the waveform data display region so that the waveform data is identical in structure to the target waveform.
4. The method of claim 1, wherein the trigger signal is a voiceprint signal, and wherein generating waveform data characterizing changes in the trigger signal based on the trigger signal comprises:
receiving the voiceprint signal;
and generating the waveform data representing the change condition of the voiceprint signal according to the voiceprint signal.
5. The method of claim 1, wherein generating massage parameters from the waveform data comprises:
calculating the total massage duration according to the waveform diagram width of the waveform data, wherein the waveform diagram width is the length of the waveform data occupying the abscissa axis;
and calculating the massage force corresponding to each time node according to the waveform amplitude of the waveform data, wherein the waveform amplitude is the height of the waveform data occupying the ordinate axis.
6. The method according to claim 5, further comprising, before said calculating a massage force corresponding to each of said time nodes according to the waveform amplitude of said waveform data;
determining each massage period according to the waveform data; determining each time node corresponding to each massage cycle in the waveform data according to the time length of each massage cycle; or, each time node in a preset time period is acquired.
7. The method according to any one of claims 1 to 5, wherein the sending the massage parameters to a massage device to enable the massage device to perform massage work according to the massage parameters comprises:
generating a control instruction according to the massage parameters, wherein the control instruction is used for controlling massage equipment which is in communication connection with the electronic equipment to work according to the massage parameters;
and sending the control instruction to the massage equipment through the communication connection, so that the massage equipment analyzes the control instruction and works according to the massage parameters.
8. The method of any of claims 1 to 5, further comprising, after said generating massage parameters from said waveform data:
determining a target user account, wherein the target user account is a login account in another massage device or another electronic device;
and sending the massage parameters and the target user account to a target server so that the target server establishes a binding relationship between the target user account and the massage parameters, wherein the target server comprises the binding relationship between each user account and each corresponding massage parameter.
9. The method of claim 8, further comprising:
and sending a target sending signal to the target server, wherein the target sending signal is used for indicating the target server to send the massage parameters to the massage equipment logged by the target user account, so that the massage equipment logged by the target user account works according to the massage parameters.
10. An apparatus for processing massage data, the apparatus being applied to an electronic device, the apparatus comprising:
the signal receiving module is used for receiving a trigger signal input by a user;
the data generation module is used for generating waveform data representing the change condition of the trigger signal according to the trigger signal;
the parameter generation module is used for generating massage parameters according to the waveform data, and the massage parameters comprise the total massage duration and the massage strength corresponding to each time node;
and the parameter sending module is used for sending the massage parameters to massage equipment so that the massage equipment can carry out massage work according to the massage parameters.
11. An electronic device comprising a memory and a processor, wherein the memory stores a computer program, and the computer program, when executed by the processor, causes the processor to implement the method of processing massage data according to any one of claims 1 to 9.
12. A computer-readable storage medium, on which a computer program is stored, the computer program, when being executed by a processor, implementing a method of processing massage data according to any one of claims 1 to 9.
CN202111092814.9A 2021-09-17 2021-09-17 Massage data processing method and device, electronic equipment and storage medium Pending CN113893123A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111092814.9A CN113893123A (en) 2021-09-17 2021-09-17 Massage data processing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111092814.9A CN113893123A (en) 2021-09-17 2021-09-17 Massage data processing method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113893123A true CN113893123A (en) 2022-01-07

Family

ID=79028548

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111092814.9A Pending CN113893123A (en) 2021-09-17 2021-09-17 Massage data processing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113893123A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115104874A (en) * 2022-07-26 2022-09-27 深圳市西昊智能家具有限公司 Control method and device of intelligent chair, computer equipment and storage medium
CN115336880A (en) * 2022-08-23 2022-11-15 慕思健康睡眠股份有限公司 Massage method based on intelligent mattress and related product
CN115336880B (en) * 2022-08-23 2024-04-30 慕思健康睡眠股份有限公司 Massage method based on intelligent mattress and related products

Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4884228A (en) * 1986-10-14 1989-11-28 Tektronix, Inc. Flexible instrument control system
CN101458269A (en) * 2007-12-14 2009-06-17 李刚 Digital oscillography signal display device
CN101693136A (en) * 2009-10-20 2010-04-14 王志忠 Method and system of electric wave massage
CN103176010A (en) * 2013-02-01 2013-06-26 华中科技大学 System and method for oscilloscope remote touch method
CN103431985A (en) * 2013-09-07 2013-12-11 刘庆 Intelligent massage device
CN104398373A (en) * 2014-12-02 2015-03-11 山东科技大学 Variable frequency type body massaging device and frequency modulating method thereof
WO2015074300A1 (en) * 2013-11-19 2015-05-28 深圳麦科信仪器有限公司 Full-touch tablet oscilloscope
CN106540374A (en) * 2015-09-16 2017-03-29 赵光正 System capable of generating qi-blood resonance corresponding to channels and collaterals of human body in traditional Chinese medicine
CN108107771A (en) * 2017-11-03 2018-06-01 内蒙古银安科技开发有限责任公司 A kind of apparatus and method for generating specific waveforms
US20190247273A1 (en) * 2018-02-13 2019-08-15 Hoi Ming Michael HO Electrotherapy device capable of gradually increasing stimulation intensity
CN111399645A (en) * 2020-03-13 2020-07-10 Oppo广东移动通信有限公司 Wearable device, tactile feedback method and device, and storage medium
CN111588616A (en) * 2020-04-30 2020-08-28 广东艾诗凯奇智能科技有限公司 Method and device for controlling massage equipment, mobile terminal and massage equipment
CN112256742A (en) * 2020-09-22 2021-01-22 未来穿戴技术有限公司 Massage mode control method, related device and computer storage medium
CN112353676A (en) * 2020-09-22 2021-02-12 未来穿戴技术有限公司 Vibration massage method and device, massage equipment and storage medium
CN112842806A (en) * 2020-12-28 2021-05-28 未来穿戴技术有限公司 Output control method and device for massage equipment, massage equipment and storage medium
CN112992330A (en) * 2021-02-25 2021-06-18 未来穿戴技术有限公司 Signal processing method, massager, mobile terminal and display device
CN113317970A (en) * 2021-04-19 2021-08-31 未来穿戴技术有限公司 Massage control method, massage instrument and computer readable storage medium

Patent Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4884228A (en) * 1986-10-14 1989-11-28 Tektronix, Inc. Flexible instrument control system
CN101458269A (en) * 2007-12-14 2009-06-17 李刚 Digital oscillography signal display device
CN101693136A (en) * 2009-10-20 2010-04-14 王志忠 Method and system of electric wave massage
CN103176010A (en) * 2013-02-01 2013-06-26 华中科技大学 System and method for oscilloscope remote touch method
CN103431985A (en) * 2013-09-07 2013-12-11 刘庆 Intelligent massage device
WO2015074300A1 (en) * 2013-11-19 2015-05-28 深圳麦科信仪器有限公司 Full-touch tablet oscilloscope
CN104398373A (en) * 2014-12-02 2015-03-11 山东科技大学 Variable frequency type body massaging device and frequency modulating method thereof
CN106540374A (en) * 2015-09-16 2017-03-29 赵光正 System capable of generating qi-blood resonance corresponding to channels and collaterals of human body in traditional Chinese medicine
CN108107771A (en) * 2017-11-03 2018-06-01 内蒙古银安科技开发有限责任公司 A kind of apparatus and method for generating specific waveforms
US20190247273A1 (en) * 2018-02-13 2019-08-15 Hoi Ming Michael HO Electrotherapy device capable of gradually increasing stimulation intensity
CN111399645A (en) * 2020-03-13 2020-07-10 Oppo广东移动通信有限公司 Wearable device, tactile feedback method and device, and storage medium
CN111588616A (en) * 2020-04-30 2020-08-28 广东艾诗凯奇智能科技有限公司 Method and device for controlling massage equipment, mobile terminal and massage equipment
CN112256742A (en) * 2020-09-22 2021-01-22 未来穿戴技术有限公司 Massage mode control method, related device and computer storage medium
CN112353676A (en) * 2020-09-22 2021-02-12 未来穿戴技术有限公司 Vibration massage method and device, massage equipment and storage medium
CN112842806A (en) * 2020-12-28 2021-05-28 未来穿戴技术有限公司 Output control method and device for massage equipment, massage equipment and storage medium
CN112992330A (en) * 2021-02-25 2021-06-18 未来穿戴技术有限公司 Signal processing method, massager, mobile terminal and display device
CN113317970A (en) * 2021-04-19 2021-08-31 未来穿戴技术有限公司 Massage control method, massage instrument and computer readable storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115104874A (en) * 2022-07-26 2022-09-27 深圳市西昊智能家具有限公司 Control method and device of intelligent chair, computer equipment and storage medium
CN115336880A (en) * 2022-08-23 2022-11-15 慕思健康睡眠股份有限公司 Massage method based on intelligent mattress and related product
CN115336880B (en) * 2022-08-23 2024-04-30 慕思健康睡眠股份有限公司 Massage method based on intelligent mattress and related products

Similar Documents

Publication Publication Date Title
CN108600059B (en) Equipment control method and related product
WO2016107501A1 (en) Intelligent device control method and device
CN106534072B (en) user information authorization method, device, equipment and system
CN111294638B (en) Method, device, terminal and storage medium for realizing video interaction
KR102517610B1 (en) Electronic device
CN108888955B (en) Method and device for controlling visual angle in game
CN107332976B (en) Karaoke method, device, equipment and system
CN108668009B (en) Input operation control method, device, terminal, earphone and readable storage medium
CN106803993B (en) Method and device for realizing video branch selection playing
CN111083755B (en) Equipment switching method and related equipment
CN109521684B (en) Household equipment control method and terminal equipment
TW201515682A (en) Methods and terminal for data acquisition
WO2020133350A1 (en) Interface display method and control terminal
CN109831578A (en) A kind of application sharing method and terminal
CN107566909B (en) Barrage-based video content searching method and user terminal
CN113050863A (en) Page switching method and device, storage medium and electronic equipment
CN113893123A (en) Massage data processing method and device, electronic equipment and storage medium
CN109582820B (en) Song playing method, terminal equipment and server
US9621674B2 (en) Method and apparatus for associating online accounts
CN105320532B (en) Method, device and terminal for displaying interactive interface
CN111599148A (en) Electronic equipment and connection method thereof
CN113593602B (en) Audio processing method and device, electronic equipment and storage medium
CN106791037B (en) Operation triggering method and system, mobile terminal and electromagnetic field generating equipment
KR102263977B1 (en) Methods, devices, and systems for performing information provision
CN109286723A (en) A kind of replacing options and terminal of wallpaper

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination