Massage data processing method and device, electronic equipment and storage medium
By receiving trigger signals input by the user, generating waveform data and massage parameters, the problem of limited massage parameter settings in massage devices is solved, enabling flexible control of massage parameters and high adaptability of the equipment.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- GUANGDONG SKG INTELLIGENT TECH CO LTD
- Filing Date
- 2021-09-17
- Publication Date
- 2026-07-21
AI Technical Summary
Existing massage devices have limited settings for massage parameters, resulting in poor massage flexibility and making it difficult for users to adjust them according to their own needs.
By receiving the trigger signal input by the user, waveform data representing the changes in the trigger signal is generated, and massage parameters, including the total massage duration and the massage intensity corresponding to each time point, are generated based on the waveform data and sent to the massage device to control its operation.
It enables flexible setting of massage parameters, improves the adaptability of massage equipment, and allows users to customize massage modes and intensity according to their own needs, thereby enhancing the adaptability of massage equipment and user experience.
Smart Images

Figure CN113893123B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of data processing technology, and in particular to a method, apparatus, electronic device, and storage medium for processing massage data. Background Technology
[0002] With the advancement of science and technology, people are paying more and more attention to their health in daily life. Users can use massage devices (such as massagers) to relax their muscles and achieve effects such as physical and mental relaxation and disease treatment.
[0003] Currently, in controlling massage devices, users typically establish a communication connection with the device using electronic devices and send control commands to ensure its proper functioning. These control commands are used to operate the massage device. For example, the electronic device can be a terminal or a remote control. Users can use the remote control to set corresponding massage parameters, such as massage time, intensity, and mode, thereby controlling the device to perform the desired massage effect.
[0004] In the above solution, the massage device is controlled by setting fixed massage parameters through a terminal or remote control. The method of setting massage parameters is relatively simple, and the generated control commands cannot flexibly control the massage device, resulting in poor flexibility in the massage device's operation. Summary of the Invention
[0005] This application provides a method, apparatus, electronic device, and storage medium for processing massage data, which can improve the flexibility of massage devices in performing massage.
[0006] On one hand, embodiments of this application provide a method for processing massage data, the method being applied to an electronic device, the method comprising:
[0007] Receive trigger signals input by the user;
[0008] Based on the trigger signal, waveform data characterizing the changes in the trigger signal is generated;
[0009] Based on the waveform data, massage parameters are generated, including the total massage duration and the massage intensity corresponding to each time point.
[0010] The massage parameters are sent to the massage device so that the massage device can perform massage according to the massage parameters.
[0011] Optionally, the electronic device includes a display screen, and before receiving the trigger signal input by the user, it further includes:
[0012] The target application interface is displayed on the display screen. 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.
[0013] The receiving of the trigger signal input by the user includes:
[0014] The trigger signal detected by the touch area is used to generate waveform data characterizing the changes in the trigger signal.
[0015] Optionally, after generating waveform data characterizing the changes in the trigger signal detected through the touch area, the method further includes:
[0016] Determine the target waveform structure;
[0017] The waveform data displayed in the waveform data display area is fitted and corrected so that the waveform data has the same structure as the target waveform.
[0018] Optionally, the trigger signal is a voiceprint signal, and generating waveform data characterizing the changes in the trigger signal based on the trigger signal includes:
[0019] Receive the voiceprint signal;
[0020] Based on the voiceprint signal, waveform data characterizing the changes in the voiceprint signal is generated.
[0021] Optionally, generating massage parameters based on the waveform data includes:
[0022] The total massage duration is calculated based on the waveform width of the waveform data, where the waveform width is the length of the waveform data on the horizontal axis.
[0023] Based on the waveform amplitude of the waveform data, the massage intensity corresponding to each time node is calculated, where the waveform amplitude is the height of the waveform data on the vertical axis.
[0024] Optionally, before calculating the massage intensity corresponding to each time point based on the waveform amplitude of the waveform data, the method further includes:
[0025] Based on the waveform data, determine each massage cycle; based on the duration of each massage cycle, determine each time point in the waveform data corresponding to each massage cycle; or,
[0026] Get each time node in the preset time period.
[0027] Optionally, sending the massage parameters to the massage device so that the massage device can perform massage operations according to the massage parameters includes:
[0028] Based on the massage parameters, a control command is generated, which is used to control the massage device that has a communication connection with the electronic device to operate according to the massage parameters;
[0029] The control command is sent to the massage device through the communication connection, so that the massage device can parse the control command and operate according to the massage parameters.
[0030] Optionally, after generating the massage parameters based on the waveform data, the method further includes:
[0031] Identify the target user account, which is an account logged in on another massage device or another electronic device;
[0032] The massage parameters and the target user account are sent to the target server so that the target server can establish a binding relationship between the target user account and the massage parameters. The target server contains the binding relationship between each user account and its corresponding massage parameters.
[0033] Optionally, the method further includes:
[0034] A target transmission signal is sent to the target server, which instructs 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 can operate according to the massage parameters.
[0035] On one hand, embodiments of this application provide a massage data processing apparatus, which is applied to an electronic device, and the apparatus includes:
[0036] The signal receiving module is used to receive trigger signals input by the user;
[0037] The data generation module is used to generate waveform data representing the changes in the trigger signal based on the trigger signal;
[0038] The parameter generation module is used to generate massage parameters based on the waveform data. The massage parameters include the total massage duration and the massage intensity corresponding to each time point.
[0039] The parameter sending module is used to send the massage parameters to the massage device so that the massage device can perform massage according to the massage parameters.
[0040] On the other hand, embodiments of this application provide an electronic device, including a memory and a processor. The memory stores a computer program, and when the computer program is executed by the processor, the processor enables the processor to implement the massage data processing method as described in one aspect above.
[0041] On the other hand, embodiments of this application provide a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the massage data processing method as described in one aspect above.
[0042] On the other hand, embodiments of this application provide a computer program product that, when run on a computer, causes the computer to perform the massage data processing method as described in one aspect above.
[0043] On the other hand, embodiments of this application provide an application publishing platform for publishing computer program products, wherein when the computer program product is run on a computer, the computer performs the massage data processing method as described in one aspect above.
[0044] The technical solutions provided in this application embodiment may include at least the following beneficial effects:
[0045] The electronic device provided in this application can receive trigger signals input by a user; generate waveform data representing changes in the trigger signals based on the trigger signals; generate massage parameters based on the waveform data, including the total massage duration and the massage intensity corresponding to each time point; and send the massage parameters to the massage device so that the massage device can perform massage operations according to the massage parameters. By receiving trigger signals input by the user, generating waveform data corresponding to changes in the trigger signals, and generating massage parameters to control the operation of the massage device based on the waveform data corresponding to the user-input signals, the parameter settings for controlling the operation of the massage device are based on the waveform data corresponding to the user-input signals. This allows the user to flexibly control the massage parameters of the massage device, improving the adaptability of the massage device. Attached Figure Description
[0046] Figure 1 This is a schematic diagram of a massage parameter setting interface according to an exemplary embodiment of this application;
[0047] Figure 2 This is a flowchart of a massage data processing method provided in an exemplary embodiment of this application;
[0048] Figure 3 This is a flowchart of a massage data processing method provided in an exemplary embodiment of this application;
[0049] Figure 4This is a schematic diagram of a target application interface according to an exemplary embodiment of this application;
[0050] Figure 5 This is a schematic diagram of the setting interface of a target waveform structure according to an exemplary embodiment of this application;
[0051] Figure 6 This is a schematic diagram of a waveform image according to an exemplary embodiment of this application;
[0052] Figure 7 This is a schematic diagram of a massage parameter sending interface according to an exemplary embodiment of this application;
[0053] Figure 8 This is a flowchart of a massage data processing method provided in an exemplary embodiment of this application;
[0054] Figure 9 This is a structural block diagram of a massage data processing apparatus provided in an exemplary embodiment of this application;
[0055] Figure 10 This is a schematic diagram of the structure of an electronic device disclosed in an exemplary embodiment of this application. Detailed Implementation
[0056] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.
[0057] In this article, "multiple" refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone. The character " / " generally indicates that the preceding and following related objects have an "or" relationship.
[0058] The solution provided in this application can be used in real-world scenarios where people use massage devices in their daily lives, and establish a short-range wireless communication connection with the massage device through an electronic device or terminal to control the massage device to perform massage, or where the user can directly control the massage device to perform massage. For ease of understanding, some terms and application scenarios involved in the embodiments of this application will be briefly introduced below.
[0059] With the development of science and technology, various electronic devices have appeared in people's daily lives. People can use these devices for work, entertainment, and study. When people are physically tired, they can often relax their bodies using health care devices. For example, massage devices with massage functions are considered health care devices and have significant effects on relieving stress and fatigue, making them very popular with consumers. People are increasingly using massage devices for massage and relaxation in their daily lives.
[0060] Before using a massage device, the user typically needs to set fixed massage parameters. For example, the user might set the massage mode to mode A, the massage intensity to intensity B, and the duration to 10 minutes. After the user sets the massage parameters, the massage device operates according to those parameters.
[0061] Please refer to Figure 1 This illustration shows a schematic diagram of a massage parameter setting interface according to an exemplary embodiment of this application. Figure 1 As shown, the control includes device name 101, massage mode control 102, massage intensity control 103, massage duration control 104, confirmation control 105, and cancellation control 106. Users can select different massage parameters by triggering the corresponding massage mode control 102, massage intensity control 103, and massage duration control 104, and then click the confirmation control 105 to complete the setting of the massage parameters, thereby controlling the massage device.
[0062] Optionally, the massage parameter setting interface can be displayed on the screen of the massage device or on the screen of an electronic device that has established a communication connection with the massage device. The electronic device can be a mobile phone, tablet computer, e-book reader, smart glasses, smartwatch, MP3 player (Moving Picture Experts Group Audio Layer III), MP4 player (Moving Picture Experts Group Audio Layer IV), laptop computer, desktop computer, etc. Alternatively, the terminal can be a smart home device, which can include, but is not limited to, smart TVs, smart robots, smart speakers, smart Bluetooth headsets, massage devices, smart refrigerators, smart air conditioners, smart rice cookers, smart sensors (such as infrared sensors, light sensors, vibration sensors, and sound sensors), smart water purifiers, and other fixed or small-range mobile devices.
[0063] Optionally, the communication connection between the aforementioned electronic device and the massage device is a wired network or a wireless network.
[0064] Optionally, the aforementioned wireless or wired networks use standard communication technologies and / or protocols. The network is typically the Internet, but can also be any network, including but not limited to Local Area Networks (LANs), Metropolitan Area Networks (MANs), Wide Area Networks (WANs), mobile, wired or wireless networks, private networks, or any combination of virtual private networks. In some embodiments, technologies and / or formats, including Hyper Text Markup Language (HTML), Extensible Markup Language (XML), etc., are used to represent data exchanged over the network. Furthermore, conventional encryption technologies such as Secure Socket Layer (SSL), Transport Layer Security (TLS), Virtual Private Networks (VPNs), and Internet Protocol Security (IPsec) can be used to encrypt all or some links. In other embodiments, custom and / or dedicated data communication technologies can be used to replace or supplement the aforementioned data communication technologies.
[0065] Optionally, the communication connection between the electronic device and the massage device can also be relayed through a server. That is, the device components in the communication connection can also include a server, which includes at least one of a single server, multiple servers, a cloud computing platform, and a virtualization center. The server is used to provide backend services for supporting applications in the electronic device (such as applications developed by the manufacturer of the terminal).
[0066] Similarly, in some massage devices equipped with remote controls, users set parameters using the remote. During development, developers program several common modes, such as a 30-minute cycle. The first 5 minutes use physical hammering, the second 5 minutes use EMS pulses, the third 5 minutes use infrared light, and so on, cycling until the last 5 minutes to complete the massage. The remote control can select the corresponding mode, allowing the massage device to perform the massage according to the preset method.
[0067] In the above solutions, the massage mode or massage parameters are set by the user based on the preset parameters in the massage device by the developers. When the user needs to adjust the massage parameters according to their own condition after long-term use of the massage device, and wants to set the massage parameters according to their own usage habits, the development program needs to be rewritten and a new set of massage logic needs to be designed for the user's massage device. The process is cumbersome. Furthermore, when other users want to use the same massage parameters as the user, they need to be reset in their massage devices. This results in a single massage parameter setting method and poor flexibility in massage parameter setting.
[0068] To avoid the problems existing in the above technical solutions and improve the flexibility of massage parameter settings, this application provides a massage data processing method that enables massage to be performed in a user-defined manner and flexibly change massage parameters based on user-defined data, thereby increasing the ways to set massage parameters.
[0069] Please refer to Figure 2 The diagram illustrates a flowchart of a massage data processing method provided in an exemplary embodiment of this application. This method can be used for... Figure 1 In the scenario architecture shown, the actions are performed by electronic devices within that scenario, such as... Figure 2 As shown, the method for processing this massage data may include the following steps.
[0070] Step 201: Receive the trigger signal input by the user.
[0071] The trigger signal can be a signal from touching the electronic device, or it can be a signal that the electronic device can receive, such as a voiceprint signal or a light signal. For example, if the electronic device includes a display screen, the user can touch the screen, causing the electronic device to receive the trigger signal generated by the touch. Alternatively, the electronic device can collect the user's voice through a sound acquisition module; when the user speaks or inputs a voiceprint signal, the electronic device can receive the input voiceprint signal through the sound acquisition module. Or, the electronic device can collect light signals through a light acquisition module; when the user inputs a light signal, the electronic device can receive the input light signal through the light acquisition module.
[0072] Step 202: Generate waveform data representing the changes in the trigger signal based on the trigger signal.
[0073] Optionally, the electronic device can automatically generate waveform data based on the changes in the received trigger signal. The horizontal axis of this waveform data can represent time, and the vertical axis can represent the signal strength of the trigger signal. For example, if the trigger signal is a voiceprint signal, the vertical axis of the generated waveform data can represent the signal strength of the voiceprint signal, and the horizontal axis can represent time. Alternatively, if the trigger signal is a touch signal generated by the user touching the display screen, the horizontal axis of the generated waveform data can represent time, and the vertical axis can represent the touch force or touch amplitude, etc.
[0074] Step 203: Generate massage parameters based on waveform data. The massage parameters include the total massage duration and the massage intensity corresponding to each time point.
[0075] Optionally, the electronic device generates massage parameters based on the waveform data generated above. These parameters include the total massage duration and the massage intensity corresponding to each time point. The total massage duration can be the total duration of the massage performed by the device in this session; for example, if the total massage duration is 10 minutes, then the massage will be performed for 10 minutes. The massage intensity corresponding to each time point can be obtained from the amplitude of each time point in the waveform data. The amplitude of the waveform data can represent or calculate the massage intensity at the corresponding time point.
[0076] Step 204: Send the massage parameters to the massage device so that the massage device can perform massage according to the massage parameters.
[0077] Optionally, the electronic device and the massage device have a communication connection, and the acquired massage parameters are sent to the massage device through the communication connection. For example, the electronic device and the massage device have a Bluetooth connection, and the electronic device can synchronize the massage parameters to the massage device through Bluetooth Low Energy (BLE) or other synchronization custom protocol commands (short-range wireless communication, etc.).
[0078] Optionally, the short-range wireless communication can be any one of Wi-Fi, D2D, Bluetooth, or Zigbee communication. That is, when the short-range wireless communication is Wi-Fi, the pairing request can be a pairing request for establishing a Wi-Fi communication connection; when the short-range wireless communication is D2D, the pairing request can be a pairing request for establishing a D2D communication connection; when the short-range wireless communication is Bluetooth, the pairing request can be a pairing request for establishing a Bluetooth communication connection; and when the short-range wireless communication is Zigbee, the pairing request can be a pairing request for establishing a Zigbee communication connection.
[0079] In summary, the electronic device provided in this application can receive a trigger signal input by a user; generate waveform data representing changes in the trigger signal based on the trigger signal; generate massage parameters based on the waveform data, including the total massage duration and the massage intensity corresponding to each time point; and send the massage parameters to the massage device so that the massage device can perform massage operations according to the massage parameters. By receiving the trigger signal input by the user, generating waveform data corresponding to changes in the trigger signal, and generating massage parameters to control the operation of the massage device based on this waveform data, the parameter settings for controlling the operation of the massage device are based on the waveform data corresponding to the user-input signal. This allows the user to flexibly control the massage parameters of the massage device, improving the adaptability of the massage device.
[0080] In one possible implementation, taking the user touching the display screen as an example, the electronic device receives the user's trigger signal on the display screen, and generates corresponding waveform data based on the trigger signal to obtain massage parameters. This allows the massage parameters to be generated by the user-defined trigger on the display screen, improving the flexibility of massage parameter settings.
[0081] Please refer to Figure 3 The diagram illustrates a flowchart of a massage data processing method provided in an exemplary embodiment of this application. This method can be used for... Figure 1 In the scenario architecture shown, the actions are performed by electronic devices within that scenario, such as... Figure 3 As shown, the method for processing this massage data may include the following steps.
[0082] Step 301: Display the target application interface on the display screen. The target application interface includes a touch area and a waveform data display area.
[0083] The touch area is used to detect trigger signals, and the waveform data display area is used to display the generated waveform data.
[0084] For example, please refer to Figure 4 This illustration shows a schematic diagram of a target application interface according to an exemplary embodiment of this application. Figure 4 As shown, the target application interface 400 includes a touch area 401, a waveform data display area 402, and a waveform image 403. Users can touch and slide in the touch area 401 displayed on the electronic device, and the waveform data display area 402 will display the waveform image 403 in response to the trigger signal detected in the touch area 401.
[0085] Step 302: Generate waveform data characterizing the changes in the trigger signal by detecting the trigger signal in the touch area.
[0086] Optionally, the user touches the touch area with their finger and slides within the touch area. In this case, the trigger signal is the sliding signal detected by the electronic device through the touch area. The electronic device can generate waveform data representing the changes in the trigger signal based on the user's sliding.
[0087] In one possible implementation, the electronic device can determine the target waveform structure and perform fitting correction on the waveform data displayed in the waveform data display area to make the waveform data identical to the target waveform structure. For example, please refer to... Figure 5 This illustrates a schematic diagram of the settings interface for a target waveform structure according to an exemplary embodiment of this application. Figure 5 As shown, the settings interface 500 includes a waveform selection control 501, a confirmation control 502, and a cancellation control 503. The user can display the settings interface 500 on the electronic device, trigger the waveform selection control 501, select the target waveform, and then trigger the confirmation control 502. This allows the electronic device to determine the waveform structure the user wants to generate. It then performs fitting and correction on the waveform data generated after detecting the trigger signal, ensuring that the waveform structure of the user's hand-drawn waveform data is the same as the target waveform structure. Optionally, the target waveform structure can be any waveform structure selected from sine waves, square waves, toothed waves, triangular waves, etc.
[0088] Among them, the above Figure 4 The waveform image in the example uses a sine wave. When a user touches and slides the device in the form of a sine wave in the touch area, the device will respond to the trigger signal detected in the touch area and display a fitted and corrected waveform image.
[0089] In one possible implementation, during the acquisition of waveform data, the trigger signal can also be a voiceprint signal. The electronic device generates waveform data representing changes in the trigger signal based on the trigger signal in the following way: receiving the voiceprint signal; generating waveform data representing changes in the voiceprint signal based on the voiceprint signal. For example, the electronic device receives a voiceprint signal emitted by a user through a microphone, generates waveform data representing changes in the voiceprint signal based on the voiceprint signal, and then executes subsequent steps. Alternatively, during the acquisition of waveform data, the trigger signal can also be an optical signal. The electronic device generates waveform data representing changes in the trigger signal based on the trigger signal in the following way: receiving the optical signal; generating waveform data representing changes in the optical signal based on the optical signal. For example, the electronic device acquires the ambient light intensity through a light sensor, generates waveform data representing changes in the light signal intensity based on the optical signal, and then executes subsequent steps.
[0090] Step 303: Generate massage parameters based on waveform data. The massage parameters include the total massage duration and the massage intensity corresponding to each time point.
[0091] Optionally, the electronic device generates massage parameters corresponding to the acquired waveform data. These massage parameters include the total massage duration and the massage intensity at each time point. During operation, the massage device typically sets the total massage duration and operates according to it, adjusting the massage intensity at each time point to complete the massage.
[0092] In one possible implementation, the electronic device can calculate the total massage duration based on the waveform width (the length of the waveform data on the horizontal axis) and the massage intensity corresponding to each time point based on the waveform amplitude (the height of the waveform data on the vertical axis). For example, in the above... Figure 4 In the process, after the waveform image is displayed, the electronic device calculates the total massage duration based on the length of each waveform data point on the horizontal axis of the waveform coordinate system. If 2 horizontal axis units correspond to 1 millisecond, and the waveform data occupies 2000 horizontal axis units, then the total massage duration calculated above is 1000 milliseconds.
[0093] Optionally, the electronic device can pre-store a calculation formula to calculate the total massage duration. For example, the pre-stored formula in the electronic device might be: T = X / 60 (seconds); where T represents the total massage duration, and X represents the total length of the waveform data on the horizontal axis. If the waveform data occupies 1800 horizontal axis units, then the total massage duration calculated using the above formula would be 30 seconds. Alternatively, the electronic device can calculate the total massage duration according to a pre-stored ratio H. For example, if ratio H represents the length of the horizontal axis corresponding to a unit of time (e.g., 100 millimeters of horizontal axis length corresponds to 60 seconds), then the electronic device can also calculate the total massage duration by dividing the total length of the waveform data on the horizontal axis by ratio H.
[0094] Optionally, the electronic device also calculates the massage intensity corresponding to each time point based on the waveform amplitude of the waveform data. Each time point can be the time point corresponding to the horizontal coordinate value of each waveform data point. For example, in the waveform image, the waveform amplitude corresponding to the first horizontal coordinate value is A. Based on the total massage duration calculated above, the time point corresponding to the first horizontal coordinate value is 0.1 seconds. Then, at this time point of 0.1 seconds, the electronic device multiplies the waveform amplitude A by N to obtain the massage intensity corresponding to that time point. Here, N represents the waveform amplitude corresponding to a unit massage intensity. For example, N = 30, meaning that the waveform amplitude corresponding to each unit massage intensity is 30. Therefore, if the waveform amplitude A = 300, based on the waveform amplitude A / N, the massage intensity corresponding to that time point is calculated to be 10. The method for obtaining the massage intensity is similar to the method for obtaining the total massage duration, and will not be elaborated here.
[0095] Optionally, the total massage duration and massage intensity obtained by the electronic device can be recorded in the form of an array. For example, taking JSON as the data format, the recorded massage parameters can be as follows: {Y, [array elements]}, where Y represents the calculated total massage duration, and each element in [array elements] corresponds to the massage intensity at each time point.
[0096] In one possible implementation, before calculating the massage intensity corresponding to each time point based on the waveform amplitude of the waveform data, the electronic device can determine each massage cycle based on the waveform data; and determine each time point in the waveform data corresponding to each massage cycle based on the duration of each massage cycle. That is, the electronic device can also determine each massage cycle based on the waveform data. For example, when generating the corresponding waveform data, the electronic device can also record the pressure duration for each waveform data, and select waveform data whose pressure duration is greater than a duration threshold, and determine each massage cycle based on adjacent waveform data.
[0097] For example, please refer to Figure 6 This illustrates a schematic diagram of a waveform image according to an exemplary embodiment of this application. Figure 6As shown, 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 electronic device records press durations of 1 second, 2 seconds, and 3 seconds for the first node 601, second node 602, and third node 603, respectively. If the duration threshold set in the electronic device is 1 second, the electronic device can filter out the first node 601, second node 602, and third node 603 based on the duration threshold. The time between the start point 604 and the first node 601 is determined as the first massage cycle, the time between the first node 601 and the second node 602 is determined as the second massage cycle, the time between the second node 602 and the third node 603 is determined as the third massage cycle, and the time between the third node 603 and the end point 605 is determined as the fourth massage cycle. The electronic device determines each time node in the waveform data corresponding to each massage cycle based on the duration of each massage cycle.
[0098] Optionally, in the above scheme, the electronic device can also obtain the corresponding massage mode based on the pressing duration of each node, and include the obtained massage mode as one of the contents of the massage parameters. For example, the electronic device contains a correspondence table between pressing duration and massage mode. After obtaining the pressing duration of each node, the electronic device can determine the massage mode corresponding to the pressing duration by querying the correspondence table.
[0099] Please refer to Table 1, which shows the correspondence between pressing duration and massage mode according to an exemplary embodiment of this application.
[0100] Pressing time Massage mode Press duration 1 Massage Mode 1 Pressing time 2 Massage Mode Two Press duration three Massage Mode 3 …… ……
[0101] Table 1
[0102] As shown in Table 1, different pressing durations correspond to different massage modes. If the above... Figure 6 The first node 601 is the first press duration, the second node 602 is the second press duration, and the third node 603 is the third press duration. The electronic device can obtain the massage mode corresponding to each time node through the above table 1, and switch to the corresponding massage mode when the time node is reached during the subsequent massage control process.
[0103] In one possible implementation, the electronic device can also directly acquire each time point within a preset time period. That is, after calculating the total massage duration, each time point within the total duration is used as a time point.
[0104] Step 304: Generate control instructions based on massage parameters. The control instructions are used to control the massage device that has a communication connection with the electronic device to work according to the massage parameters.
[0105] Optionally, the electronic device generates control instructions based on the massage parameters obtained above. These control instructions can control the massage device, which has a communication connection with the electronic device, to operate according to the massage parameters. The control instructions can be generated by a processor within the electronic device, and the massage parameters can be transmitted via these instructions.
[0106] Step 305: The control command is sent to the massage device via the communication connection so that the massage device can parse the control command and operate according to the massage parameters.
[0107] For example, the aforementioned electronic device could be a mobile phone, and the massage device could be a neck massager connected to the phone via Bluetooth. Based on the waveform image hand-drawn by the user, the electronic device generates control commands and sends them to the neck massager via Bluetooth, instructing the neck massager to operate according to the massage parameters. Alternatively, the communication connection could be a BLE connection, allowing the electronic device to synchronize the massage parameters to the massager via BLE-synchronized custom protocol commands.
[0108] In one possible implementation, the electronic device can further identify a target user account, which is an account logged into another massage device or another electronic device. Massage parameters and the target user account are sent to a target server, enabling the target server to establish a binding relationship between the target user account and the massage parameters. The target server contains the binding relationships between each user account and its corresponding massage parameters. Optionally, in this application, a first user account is logged into the electronic device. This first user account can be a user account corresponding to a massage device with a communication connection to the electronic device. By logging into the first user account on the electronic device, the user can be identified, thus revealing the user's usage habits of the massage device (e.g., when the user uses the massage device most frequently and for how long each time). Each user account also corresponds to massage parameters, and the target server can store the binding relationships between each user account and its corresponding massage parameters.
[0109] For example, please refer to Table 2, which shows a correspondence between user accounts and massage parameters according to an exemplary embodiment of this application.
[0110] User account Massage parameters User Account 1 Massage parameter 1 User Account Two Massage parameter two User Account 3 Massage parameter three …… ……
[0111] Table 2
[0112] For example, if the electronic device is logged into user account one, the electronic device can query the massage parameter one corresponding to user account one according to Table 2 above.
[0113] Please refer to Figure 7The diagram illustrates a schematic representation of a massage parameter sending interface according to an exemplary embodiment of this application. Figure 7 As shown, the sending interface 700 includes a first input box 701, a sending control 702, and a cancel control 703. The user can enter the target user account in the first input box 701 and click the sending control 702 to send the obtained massage parameters and the target user account to the target server. The target server establishes a binding relationship between the target user account and the massage parameters based on the received massage parameters and the corresponding target user account. The first input box 701 can also contain the device identifier of another massage device or another electronic device. The target server uses this device identifier to find the corresponding target user account; however, this embodiment does not limit this approach.
[0114] Optionally, if the target user account has a pre-stored binding relationship in the target server, the target server can update that binding relationship.
[0115] Optionally, the electronic device sends a target transmission signal to the target server. This signal instructs the target server to send massage parameters to the massage device logged into the target user account, causing the device to operate according to these parameters. In other words, by sending the target transmission signal, the electronic device instructs the target server to send massage parameters to the massage device logged into the target user account, enabling it to operate accordingly. This eliminates the need for the user of the massage device to reset the massage parameters, improving the efficiency of setting and synchronizing massage parameters. Correspondingly, the massage device logged into the target user account operates according to the massage parameters sent by the target server.
[0116] In summary, the electronic device provided in this application can receive a trigger signal input by a user; generate waveform data representing changes in the trigger signal based on the trigger signal; generate massage parameters based on the waveform data, including the total massage duration and the massage intensity corresponding to each time point; and send the massage parameters to the massage device so that the massage device can perform massage operations according to the massage parameters. By receiving the trigger signal input by the user, generating waveform data corresponding to changes in the trigger signal, and generating massage parameters to control the operation of the massage device based on this waveform data, the parameter settings for controlling the operation of the massage device are based on the waveform data corresponding to the user-input signal. This allows the user to flexibly control the massage parameters of the massage device, improving the adaptability of the massage device.
[0117] In addition, this application improves the synchronization efficiency of massage parameters between different massage devices by sending the generated massage parameters to the target server and controlling other massage devices based on the target server, without requiring users to make separate settings.
[0118] Below, using a mobile phone as the electronic device and a neck massager as the massage device, the interaction between the mobile phone and the server will be used to analyze the above-mentioned... Figure 2 and Figure 3 The embodiments shown are described below.
[0119] Please refer to Figure 8 The diagram illustrates a flowchart of a massage data processing method provided in an exemplary embodiment of this application. This method can be used for... Figure 1 In the scenario architecture shown, the actions are performed by electronic devices within that scenario, such as... Figure 8 As shown, the method for processing this massage data may include the following steps.
[0120] Step 801: The mobile phone generates waveform data by drawing custom trigger data.
[0121] Step 802: The mobile phone obtains the massage parameters corresponding to the waveform image based on the waveform data.
[0122] The descriptions in steps 801 to 802 can be referred to the descriptions in steps 301 to 303 above.
[0123] Step 803: The mobile phone sends the massage parameters to the server.
[0124] Step 804: The server receives the massage parameters sent by the mobile phone.
[0125] Step 805: The server associates the massage parameters.
[0126] Step 806: The server sends the massage data to other mobile phones.
[0127] In step 807, other mobile phones receive the massage data and operate according to the massage parameters.
[0128] The descriptions in steps 803 to 807 can be referred to the descriptions in steps 304 to 305 above.
[0129] In summary, the electronic device provided in this application can receive a trigger signal input by a user; generate waveform data representing changes in the trigger signal based on the trigger signal; generate massage parameters based on the waveform data, including the total massage duration and the massage intensity corresponding to each time point; and send the massage parameters to the massage device so that the massage device can perform massage operations according to the massage parameters. By receiving the trigger signal input by the user, generating waveform data corresponding to changes in the trigger signal, and generating massage parameters to control the operation of the massage device based on this waveform data, the parameter settings for controlling the operation of the massage device are based on the waveform data corresponding to the user-input signal. This allows the user to flexibly control the massage parameters of the massage device, improving the adaptability of the massage device.
[0130] The following are embodiments of the apparatus described in this application, which can be used to execute the embodiments of the method described in this application. For details not disclosed in the apparatus embodiments of this application, please refer to the embodiments of the method described in this application.
[0131] Please refer to Figure 9 This diagram illustrates a structural block diagram of a massage data processing apparatus provided in an exemplary embodiment of this application. This massage data processing apparatus can be used in a massage device to perform… Figure 2 , Figure 3 ,or Figure 8 The steps in the method provided in the illustrated embodiment are all or part of the steps performed by an electronic device. The massage data processing device 900 may include the following modules:
[0132] The signal receiving module 901 is used to receive trigger signals input by the user;
[0133] The data generation module 902 is used to generate waveform data representing the changes in the trigger signal based on the trigger signal;
[0134] The parameter generation module 903 is used to generate massage parameters based on the waveform data. The massage parameters include the total massage duration and the massage intensity corresponding to each time point.
[0135] The parameter sending module 904 is used to send the massage parameters to the massage device so that the massage device can perform massage according to the massage parameters.
[0136] In summary, the electronic device provided in this application can receive a trigger signal input by a user; generate waveform data representing changes in the trigger signal based on the trigger signal; generate massage parameters based on the waveform data, including the total massage duration and the massage intensity corresponding to each time point; and send the massage parameters to the massage device so that the massage device can perform massage operations according to the massage parameters. By receiving the trigger signal input by the user, generating waveform data corresponding to changes in the trigger signal, and generating massage parameters to control the operation of the massage device based on this waveform data, the parameter settings for controlling the operation of the massage device are based on the waveform data corresponding to the user-input signal. This allows the user to flexibly control the massage parameters of the massage device, improving the adaptability of the massage device.
[0137] Optionally, the electronic device includes a display screen, and the device further includes:
[0138] The interface display module is used to display a target application interface on the display screen before the signal receiving module 901 receives the trigger signal input by the user. 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.
[0139] The signal receiving module 901 is used to generate waveform data characterizing the changes in the trigger signal detected by the touch area.
[0140] Optionally, the device further includes:
[0141] The structure determination module is used to determine the target waveform structure after generating waveform data characterizing the changes of the trigger signal detected through the touch area;
[0142] The structure correction module is used to fit and correct the waveform data displayed in the waveform data display area so that the waveform data is the same as the target waveform structure.
[0143] Optionally, the trigger signal is a voiceprint signal, and the data generation module is used for...
[0144] Receive the voiceprint signal;
[0145] Based on the voiceprint signal, waveform data characterizing the changes in the voiceprint signal is generated.
[0146] Optionally, the parameter generation module includes: a first calculation unit and a second calculation unit;
[0147] The first calculation unit is used to calculate the total massage duration based on the waveform width of the waveform data, wherein the waveform width is the length of the waveform data on the horizontal axis.
[0148] The second calculation unit is used to calculate the massage intensity corresponding to each time node based on the waveform amplitude of the waveform data, wherein the waveform amplitude is the height of the waveform data on the vertical axis.
[0149] Optionally, the device further includes: a period determination module or a time acquisition module;
[0150] The cycle determination module is used to determine each massage cycle based on the waveform data before calculating the massage intensity corresponding to each time point based on the waveform amplitude of the waveform data; and to determine each time point in the waveform data corresponding to each massage cycle based on the duration of each massage cycle; or...
[0151] The time acquisition module is used to acquire each time node in a preset time period.
[0152] Optionally, the parameter sending module 904 includes: an instruction generation unit and an instruction sending unit;
[0153] The instruction generation unit is used to generate control instructions based on the massage parameters, and the control instructions are used to control the massage device that has a communication connection with the electronic device to work according to the massage parameters;
[0154] The instruction sending unit is used to send the control instruction to the massage device through the communication connection, so that the massage device can parse the control instruction and operate according to the massage parameters.
[0155] Optionally, the device further includes:
[0156] The account determination module is used to determine the target user account after the parameter generation module 904 generates massage parameters based on the waveform data. The target user account is an account logged in on another massage device or another electronic device.
[0157] The parameter sending module is used to send the massage parameters and the target user account to the target server, so that the target server can establish a binding relationship between the target user account and the massage parameters. The target server contains the binding relationship between each user account and its corresponding massage parameters.
[0158] Optionally, the device further includes:
[0159] A signal sending module is used to send a target sending signal to the target server. 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 can work according to the massage parameters.
[0160] Please refer to Figure 10 This illustrates a schematic diagram of the structure of an electronic device disclosed in an exemplary embodiment of this application. Figure 10 As shown, the device may include components such as a radio frequency (RF) circuit 1010, a memory 1020, an input unit 1030, a display unit 1040, a sensor 1050, an audio circuit 1060, a WiFi module 1070, a processor 1080, and a power supply 1090. In the above embodiment, this electronic device can be used as a massage device or as an electronic device. Those skilled in the art will understand that... Figure 10 The electronic device structure shown does not constitute a limitation on the electronic device and may include more or fewer components than shown, or combine certain components, or have different component arrangements.
[0161] The following is combined with Figure 10 An introduction to the various components of an electronic device:
[0162] The RF circuit 1010 can be used for receiving and transmitting signals during information transmission or calls. Specifically, it receives downlink information from the base station and processes it with the processor 1080; additionally, it transmits uplink data to the base station. Typically, the 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, etc. Furthermore, the RF circuit 1010 can also communicate wirelessly with networks and other devices. The aforementioned wireless communication can 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, and Short Messaging Service (SMS).
[0163] The memory 1020 can be used to store software programs and modules. The processor 1080 executes various functional applications and data processing of the electronic device by running the software programs and modules stored in the memory 1020. The memory 1020 may mainly include a program storage area and a data storage area. The program storage area may store the operating system, application programs required for at least one function (such as sound playback function, image playback function, etc.), etc.; the data storage area may store data created according to the use of the electronic device (such as audio data, telephone directory, etc.). In addition, the memory 1020 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device.
[0164] The input unit 1030 can be used to receive input digital or character information, and to 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 known as a touch screen, can collect touch operations performed by the user on or near it (such as operations performed by the user using a finger, stylus, or any suitable object or accessory on or near the touch panel 1031), and drive the corresponding connection devices according to a pre-set program. Optionally, the touch panel 1031 may include two parts: a touch detection device and a touch controller. The touch detection device detects the user's touch position and the signal generated by the touch operation, and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device, converts it into touch point coordinates, and sends it to the processor 1080, and can also receive and execute commands sent by the processor 1080. In addition, the touch panel 1031 can be implemented using various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 1031, the input unit 1030 may also include other input devices 1032. Specifically, other input devices 1032 may include, but are not limited to, one or more of the following: physical keyboard, function keys (such as volume control buttons, power buttons, etc.), trackball, mouse, joystick, etc.
[0165] The display unit 1040 can be used to display information input by the user or information provided to the user, as well as various menus of the electronic device. The display unit 1040 may include a display panel 1041, optionally configured as a Liquid Crystal Display (LCD), Organic Light-Emitting Diode (OLED), or similar display panel 1041. Further, a touch panel 1031 may cover the display panel 1041. When the touch panel 1031 detects a touch operation on or near it, it transmits the information to the processor 1080 to determine the type of touch event. Subsequently, the processor 1080 provides corresponding visual output on the display panel 1041 based on the type of touch event. Although in Figure 10 In this embodiment, the touch panel 1031 and the display panel 1041 are two separate components to realize the input and output functions of the electronic device. However, in some embodiments, the touch panel 1031 and the display panel 1041 can be integrated to realize the input and output functions of the electronic device.
[0166] The electronic device may also include at least one sensor 1050, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 1041 according to the ambient light level, and the proximity sensor can turn off the display panel 1041 and / or the backlight when the electronic device is moved to the ear. As a type of motion sensor, an accelerometer sensor can detect the magnitude of acceleration in various directions (generally three axes), and can detect the magnitude and direction of gravity when stationary. It can be used for applications that identify the posture of the electronic device (such as landscape / portrait switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometers, taps), etc. Other sensors that may be configured in the electronic device, such as gyroscopes, barometers, hygrometers, thermometers, and infrared sensors, will not be described in detail here.
[0167] Audio circuit 1060, speaker 1061, and microphone 1062 provide an audio interface between the user and the electronic device. Audio circuit 1050 converts received audio data into electrical signals and transmits them to speaker 1061, where speaker 1061 converts them into sound signals for output. On the other hand, microphone 1062 converts collected sound signals into electrical signals, which are received by audio circuit 1060, converted into audio data, and then processed by processor 1080 before being transmitted via RF circuit 1010 to, for example, another electronic device, or the audio data can be output to memory 1020 for further processing.
[0168] WiFi is a short-range wireless transmission technology. Electronic devices using the WiFi module 1070 can help users send and receive emails, browse web pages, and access streaming media, providing users with wireless broadband internet access. Although Figure 10 WiFi module 1070 is shown, but it is understood that it is not a necessary component of an electronic device and can be omitted as needed without changing the nature of the invention.
[0169] The processor 1080 is the control center of the electronic device. It connects various parts of the electronic device via various interfaces and lines. By running or executing software programs and / or modules stored in the memory 1020, and by calling data stored in the memory 1020, it performs various functions and processes data, thereby providing overall monitoring of the electronic device. Optionally, the processor 1080 may include one or more processing units; preferably, the processor 1080 may integrate an application processor and a modem processor. The application processor mainly handles the operating system, user interface, and applications, while the modem processor mainly handles wireless communication. It is understood that the modem processor may not be integrated into the processor 1080.
[0170] The electronic device also includes a power supply 1090 (such as a battery) that supplies power to various components. Preferably, the power supply can be logically connected to the processor 1080 through a power management system, thereby enabling functions such as managing charging, discharging, and power consumption through the power management system.
[0171] Although not shown, electronic devices may also include cameras, Bluetooth modules, etc., which will not be described in detail here.
[0172] This application discloses a computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the method described in the above method embodiments.
[0173] This application discloses a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to perform the methods described in the above method embodiments.
[0174] This application discloses an application publishing platform, which is used to publish computer program products. When the computer program products are run on a computer, the computer executes the methods described in the above method embodiments.
[0175] It should be understood that the phrase "one embodiment" or "an embodiment" throughout the specification means that a specific feature, structure, or characteristic related to the embodiment is included in at least one embodiment of this application. Therefore, "in one embodiment" or "in an embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. Furthermore, these specific features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. Those skilled in the art should also recognize that the embodiments described in the specification are optional embodiments, and the actions and modules involved are not necessarily essential to this application.
[0176] In the various embodiments of this application, it should be understood that the sequence number of each process does not necessarily imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.
[0177] The units described above as separate components may or may not be physically separate. The components shown as units may or may not be physical units; they can be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0178] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0179] If the aforementioned integrated units are implemented as software functional units and sold or used as independent products, they can be stored in a computer-accessible memory. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a memory and includes several requests to cause a computer device (which can be a personal computer, server, or network device, specifically a processor in the computer device) to execute some or all of the steps of the methods described in the various embodiments of this application.
[0180] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage medium, including 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 optical disc storage, disk storage, magnetic tape storage, or any other computer-readable medium capable of carrying or storing data.
[0181] The above description provides examples of a massage data processing method, apparatus, massage device, and storage medium disclosed in the embodiments of this application. These examples illustrate the principles and implementation methods of this application. The descriptions of the above embodiments are merely for the purpose of helping to understand the method and core ideas of this application. Furthermore, those skilled in the art will recognize that, based on the ideas of this application, there will be changes in the implementation methods and application scope. Therefore, the content of this specification should not be construed as a limitation of this application.
Claims
1. A method for processing massage data, characterized in that, The method is applied to an electronic device, and the method includes: Before use, the massage device receives a trigger signal input by the user. Based on the trigger signal, waveform data characterizing the changes in the trigger signal is generated; Based on the waveform data, massage parameters are generated, including the total massage duration and the massage intensity corresponding to each time point. The massage parameters are sent to the massage device so that the massage device can perform massage according to the massage parameters.
2. The method according to claim 1, characterized in that, The electronic device includes a display screen and, prior to receiving a trigger signal input by the user, further includes: The target application interface is displayed on the display screen. 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 receiving of the trigger signal input by the user includes: The trigger signal detected by the touch area is used to generate waveform data characterizing the changes in the trigger signal.
3. The method according to claim 2, characterized in that, After generating waveform data characterizing the changes in the trigger signal detected through the touch area, the method further includes: Determine the target waveform structure; The waveform data displayed in the waveform data display area is fitted and corrected so that the waveform data has the same structure as the target waveform.
4. The method according to claim 1, characterized in that, The trigger signal is a voiceprint signal, and the step of generating waveform data characterizing the changes in the trigger signal includes: Receive the voiceprint signal; Based on the voiceprint signal, waveform data characterizing the changes in the voiceprint signal is generated.
5. The method according to claim 1, characterized in that, The step of generating massage parameters based on the waveform data includes: The total massage duration is calculated based on the waveform width of the waveform data, where the waveform width is the length of the waveform data on the horizontal axis. Based on the waveform amplitude of the waveform data, the massage intensity corresponding to each time node is calculated, where the waveform amplitude is the height of the waveform data on the vertical axis.
6. The method according to claim 5, characterized in that, Before calculating the massage intensity corresponding to each time node based on the waveform amplitude of the waveform data, the method further includes: Based on the waveform data, determine each massage cycle; based on the duration of each massage cycle, determine each time point in the waveform data corresponding to each massage cycle; or, Get each time node in the preset time period.
7. The method according to any one of claims 1 to 5, characterized in that, Sending the massage parameters to the massage device so that the massage device can perform massage operations according to the massage parameters includes: Based on the massage parameters, a control command is generated, which is used to control the massage device that has a communication connection with the electronic device to operate according to the massage parameters; The control command is sent to the massage device through the communication connection, so that the massage device can parse the control command and operate according to the massage parameters.
8. The method according to any one of claims 1 to 5, characterized in that, After generating massage parameters based on the waveform data, the method further includes: Identify the target user account, which is an account logged in on another massage device or another electronic device; The massage parameters and the target user account are sent to the target server so that the target server can establish a binding relationship between the target user account and the massage parameters. The target server contains the binding relationship between each user account and its corresponding massage parameters.
9. The method according to claim 8, characterized in that, The method further includes: A target transmission signal is sent to the target server, which instructs 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 can operate according to the massage parameters.
10. A massage data processing device, characterized in that, The device is used in an electronic device, and the device includes: The signal receiving module is used to receive user-defined trigger signals before the massage device is used. The data generation module is used to generate waveform data representing the changes in the trigger signal based on the trigger signal; The parameter generation module is used to generate massage parameters based on the waveform data. The massage parameters include the total massage duration and the massage intensity corresponding to each time point. The massage intensity corresponding to each time point is obtained based on the amplitude corresponding to each time point in the waveform data. The parameter sending module is used to send the massage parameters to the massage device through synchronous custom protocol instructions, so that the massage device can perform massage work according to the massage parameters.
11. An electronic device, characterized in that, The device includes a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor causes the processor to implement the massage data processing method as described in any one of claims 1 to 9.
12. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the massage data processing method as described in any one of claims 1 to 9.