Vibration processing method and device for wearable device, wearable device and medium
By acquiring and decoding audio data to adjust motor vibration parameters, it solves the problem of single vibration effect of existing wearable devices, achieves richer and personalized vibration effects, and improves user experience.
Patent Information
- Application Number
- CN202210302297.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-25
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2042-03-25
AI Technical Summary
The vibration effect of existing wearable devices is single and cannot be personalized according to specific business reminder modes and user experience, resulting in poor user experience.
By detecting the reminder service generated by the terminal device, the audio data is obtained and decoded to obtain the waveform data. The vibration parameters of the motor driver are adjusted according to the waveform data, including vibration time, intensity and frequency, to dynamically control the motor vibration to adapt to different reminder modes and environments. audio data.
It improves the user experience of wearable devices, provides richer and more personalized vibration effects, and enhances the user's reminder experience.
Smart Images

Figure CN114613376B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of wearable devices, and in particular to a vibration processing method and device for a wearable device, a wearable device and a medium. Background Art
[0002] User experience is becoming increasingly important in wearable devices. For the reminder function of wearable devices, motor vibration is the core user experience. From the initial simple rotor motor to the current linear motor, the vibration effect of the user experience is becoming richer and more delicate.
[0003] The vibration effect of the motor of current wearable devices is usually controlled by parameters such as vibration intensity and vibration time, and the vibration effect is set in advance according to the different functional services (incoming calls, text messages, etc.) of the connected terminal device. The vibration effect used by existing wearable devices is obtained according to the pre-set settings, thereby controlling the motor to vibrate output, which reduces the user experience.
[0004] Therefore, how to improve the user experience of wearable devices is an urgent problem that technicians in this field need to solve. Summary of the invention
[0005] The purpose of the present invention is to provide a vibration processing method and device for a wearable device, a wearable device and a medium to improve the user experience of the wearable device.
[0006] In order to solve the above technical problems, the present invention provides a vibration processing method for a wearable device, comprising:
[0007] When it is detected that the terminal device generates a service to be reminded, the current audio data is obtained;
[0008] Decode the current audio data to obtain decoded data and obtain the corresponding waveform data;
[0009] The motor driver is controlled according to the waveform data to drive the motor to vibrate.
[0010] Preferably, the reminder mode of the service to be reminded of the terminal device is set to an audio prompt mode, and obtaining the current audio data includes:
[0011] Get the ringtone data corresponding to the audio prompt mode sent by the terminal device.
[0012] Preferably, controlling the motor driver to drive the motor to vibrate according to the waveform data includes:
[0013] The vibration parameters are adjusted according to the waveform data to control the motor driver to drive the motor to vibrate, wherein the waveform data includes waveform length, peak value and audio frequency, and the vibration parameters include vibration time, vibration intensity and vibration frequency.
[0014] Preferably, the reminder mode of the service to be reminded of the terminal device is set to a non-audio reminder mode, and obtaining the current audio data includes:
[0015] Acquire the ambient audio data of the environment collected by the audio collection module of the terminal device and / or acquire the ambient audio data of the environment collected by the audio collection module of the terminal device.
[0016] Preferably, controlling the motor driver to drive the motor to vibrate according to the waveform data includes:
[0017] The vibration parameters are adjusted according to the waveform data to control the motor driver to drive the motor to vibrate, wherein the waveform data includes a peak value and the vibration parameters include a vibration intensity.
[0018] Preferably, the waveform data includes a peak value and an audio frequency. When all peak values of the waveform data are less than a threshold value, after decoding the current audio data to obtain decoded data and acquiring corresponding waveform data, before controlling the motor driver to drive the motor to vibrate according to the waveform data, the method further includes:
[0019] Obtain user vital signs data;
[0020] If the user's vital sign data meets the preset conditions, the corresponding vibration parameters are generated according to the user's vital sign data to control the motor driver to drive the motor to vibrate, wherein the vibration parameters corresponding to the user's vital sign data are greater than the vibration parameters corresponding to the waveform data, and the vibration parameters include vibration intensity and vibration frequency.
[0021] Preferably, when it is detected that the terminal device generates a service to be reminded, before obtaining the current audio data, the method further includes:
[0022] Determine whether the wearable device is in a wearing state;
[0023] If so, the process proceeds to the step of obtaining current audio data when it is detected that the terminal device generates a service to be reminded.
[0024] Preferably, obtaining current audio data includes:
[0025] Acquire the ringtone data transmitted by the terminal device via Bluetooth.
[0026] Preferably, it also includes:
[0027] When it is detected that the terminal device generates a service to be reminded, the service to be reminded is displayed.
[0028] In order to solve the above technical problems, the present invention further provides a vibration processing device for a wearable device, comprising:
[0029] A first acquisition module is used to acquire current audio data when it is detected that a terminal device generates a service to be reminded;
[0030] A second acquisition module is used to decode the current audio data to obtain decoded data and obtain corresponding waveform data;
[0031] The sending module is used to control the motor driver to drive the motor to vibrate according to the waveform data.
[0032] In order to solve the above technical problems, the present invention further provides a wearable device, comprising:
[0033] Memory for storing computer programs;
[0034] A processor is used to implement the steps of the vibration processing method for the wearable device as described above when executing a computer program.
[0035] In order to solve the above technical problems, the present invention also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the vibration processing method of the wearable device as described above are implemented.
[0036] The present invention provides a vibration processing method for a wearable device. When it is detected that a terminal device generates a service to be reminded, the current audio data is obtained; the audio data is decoded to obtain decoded data and corresponding waveform data is obtained; and the motor driver is controlled to drive the motor to vibrate according to the waveform data. The method obtains the current audio data and decodes it to obtain decoded data, and obtains corresponding waveform data according to the decoded data. The specific waveform data obtained according to different audio data forms a corresponding vibration effect, and then drives the motor to vibrate, instead of the existing wearable device driving the motor to vibrate according to the pre-set vibration effect when there is a service to be reminded, resulting in a single vibration effect. The method improves the user experience of the wearable device and further enhances the personalized service of the wearable device.
[0037] In addition, the present invention also provides a vibration processing device for a wearable device, a wearable device, and a medium, which have the same beneficial effects as the vibration processing method for the wearable device described above. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] In order to more clearly illustrate the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0039] Figure 1 A flowchart of a vibration processing method for a wearable device provided by an embodiment of the present invention;
[0040] Figure 2 A structural diagram of a vibration processing device for a wearable device provided by an embodiment of the present invention;
[0041] Figure 3 A structural diagram of a wearable device provided by an embodiment of the present invention;
[0042] Figure 4 A schematic diagram of an application scenario of a vibration processing device for a wearable device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0043] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0044] The core of the present invention is to provide a vibration processing method, device, wearable device and medium for a wearable device to improve the user experience of the wearable device.
[0045] In order to enable those skilled in the art to better understand the solution of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.
[0046] It should be noted that the wearable devices involved in the present invention may be headphones, true wireless stereo (TWS) headphones, smart bracelets, smart glasses, smart sports watches, etc., and the terminal devices involved may be smart phones, tablet computers, laptop computers or desktop computers, etc. The present invention does not make specific limitations and can be set according to specific circumstances.
[0047] Figure 1 A flow chart of a vibration processing method for a wearable device provided by an embodiment of the present invention, such as Figure 1 As shown, the method includes:
[0048] S11: When it is detected that the terminal device generates a service to be reminded, the current audio data is obtained.
[0049] It can be understood that the reminder service is a service generated by the terminal device to remind the user to check the information in time. When the terminal device obtains a specific functional service, such as any information generated during the operation of the application program that needs to remind the user, a reminder service will be generated. The present invention is based on the wearable device needing to establish a connection with the terminal device, and the wearable device detects the reminder service generated by the terminal device. The reminder service can be notification information of the chat software, incoming call information, SMS information, and various information pushed in the application program, etc.
[0050] Specifically, the connection between the wearable device and the terminal device can be through a Wi-Fi connection or a Bluetooth connection, which is not limited here, as long as the service to be reminded generated by the terminal device can be detected by the wearable device in time and the current audio data can be obtained. It should be noted that through Wi-Fi connection, the connection between the wearable device and the terminal device can achieve a many-to-many connection. For example, wearable devices A and B and terminal devices C and D are in the same Wi-Fi wireless local area network. For wearable device A, the service to be reminded generated by the terminal device may come from C and / or D. At this time, wearable device B can also be used as a terminal device, and the service to be reminded detected by it may be acquired and detected according to different terminal device priorities. The method provided by the present invention can also be applied, and it is preferably a one-to-one connection. Through Bluetooth connection, the terminal device can store the Bluetooth addresses of multiple wearable devices, and only provide a one-to-one connection when transmitting data, that is, one terminal device is connected to one wearable device.
[0051] The service to be reminded is displayed in the terminal device through a display interface. While the display page is displayed, the reminder mode set for the service to be reminded can be an audio prompt mode (ringing mode) or a non-audio prompt mode (silent mode or vibration mode). Specifically, when the wearable device detects the service to be reminded of the terminal device, before receiving the service to be reminded, the reminder mode set for the service to be reminded can be sent to the microcontroller unit (MCU) of the wearable device in advance, or after receiving the service to be reminded, the reminder mode set can be sent to the MCU, which is not specifically limited in the present invention. When the wearable device detects that the terminal device generates a service to be reminded, the MCU obtains the audio data corresponding to the service to be reminded according to the reminder mode set for the service to be reminded. It can be understood that when the reminder mode of the service to be reminded of the terminal device is an audio prompt mode, it obtains the ringtone data corresponding to the audio prompt mode as audio data; when the reminder mode of the service to be reminded of the terminal device is a non-audio prompt mode, the current audio data can be obtained by obtaining the ambient audio data of the current environment in which the terminal device is located.
[0052] For obtaining the ambient audio data of the environment in the non-audio prompt mode, when the reminder mode of the terminal device is silent mode, if the audio data corresponding to the terminal device is obtained, the peak value of the corresponding waveform data finally generated is small or even non-existent, and the vibration effect of the wearable device based on the audio data of the terminal device is poor. At this time, the wearable device can obtain reminders for the data obtained in the terminal device according to the ambient audio data of the terminal device; when the reminder mode of the terminal device is vibration mode, the effect of obtaining the audio data of the terminal device itself is weak compared with the ringtone data. Similarly, the ambient audio data can be collected as the current audio data.
[0053] S12: Decode the current audio data to obtain decoded data and acquire corresponding waveform data.
[0054] The current audio data obtained in step S11 is preprocessed to obtain processed audio data by filtering, echo canceling or audio amplifying the current audio data, and the processed audio data is decoded to obtain decoded data.
[0055] Specifically, when the wearable device is connected to the terminal device via Wi-Fi, the decoding process can obtain decoded data according to a specific decoding algorithm. When the wearable device is connected to the terminal device via Bluetooth, the decoding process can obtain decoded data according to a Bluetooth audio Codec or a specific decoding algorithm. The present invention does not make specific requirements, depending on the situation, as long as the decoded data can be obtained.
[0056] The corresponding waveform data is obtained according to the decoded data. It can be understood that the waveform data is obtained and displayed through the waveform generating function according to the decoded data, and the waveform data includes properties such as waveform length, peak value, audio frequency and offset.
[0057] As a preferred embodiment, the Bluetooth audio Codec receives the current audio data and decodes it to obtain decoded data, that is, the current audio data is decoded from an analog signal into a digital signal (decoded data), and the decoded data is transmitted to the MCU through the integrated circuit built-in audio bus (Inter-IC Sound, I2S). The MCU obtains the corresponding waveform data according to the decoded data, and the MCU sends the obtained waveform data to the motor driver through the integrated circuit bus (Inter-Integrated Circuit, I2C) so that the motor driver controls the motor to vibrate.
[0058] S13: Control the motor driver to drive the motor to vibrate according to the waveform data.
[0059] In step S12, the corresponding waveform data is obtained according to the current audio data, the vibration parameters of the waveform data are determined according to the data attributes of the waveform data, and the motor driver is controlled to drive the motor to vibrate according to the vibration parameters. Specifically, sending the waveform data to the motor driver, and the motor driver driving the motor to vibrate according to the waveform data is only a preferred embodiment, as long as the motor driver can be controlled to drive the motor to vibrate according to the waveform data.
[0060] It is understandable that the motor can be a rotor motor or a linear motor, preferably a linear motor. The linear motor is driven by alternating current, and the energized coil is subjected to the Ampere force in the magnetic field, thereby driving the motor to vibrate. Alternating current can generate instantaneous high voltage, making the motor start and stop faster. Changing the frequency of alternating current can achieve different vibrations to match various usage scenarios; the linear vibration kinetic energy of the motor is converted into vibration of the wearable device more directly and has good directionality.
[0061] Linear motors are divided into transverse linear motors and Z-axis linear motors. Compared with Z-axis linear motors, transverse linear motors have two spring coils, which can be connected to alternating currents of different frequencies, thereby achieving a richer and more delicate vibration. The type of motor to be selected is set according to the actual situation. The present invention provides a vibration processing method for wearable devices without making specific requirements.
[0062] The present invention provides a vibration processing method for a wearable device. When it is detected that a terminal device generates a service to be reminded, the current audio data is obtained; the audio data is decoded to obtain decoded data and corresponding waveform data is obtained; and the motor driver is controlled to drive the motor to vibrate according to the waveform data. The method obtains the current audio data and decodes it to obtain decoded data, and obtains corresponding waveform data according to the decoded data. The specific waveform data obtained according to different audio data forms a corresponding vibration effect, and then drives the motor to vibrate, instead of the existing wearable device driving the motor to vibrate according to the pre-set vibration effect when there is a service to be reminded, resulting in a single vibration effect. The method improves the user experience of the wearable device and further enhances the personalized service of the wearable device.
[0063] On the basis of the above embodiment, when the reminder mode of the service to be reminded of the terminal device is set to the audio prompt mode, obtaining the current audio data in step S11 includes:
[0064] Get the ringtone data corresponding to the audio prompt mode sent by the terminal device.
[0065] Specifically, when the reminder mode of the service to be reminded is the audio reminder mode, that is, the ringing mode, the current data to be obtained is the ringing data sent by the terminal device, which corresponds to the audio reminder mode. The way to obtain the ringing data has been described in detail in the above embodiment and will not be repeated here.
[0066] When it is detected that the terminal device has generated a service to be reminded, in order to avoid data congestion during data transmission, the current audio data can be obtained within a preset time. In this embodiment, the ringtone data sent by the terminal device is obtained. There is no specific limitation on the data type and data length of the current audio data, and it can be set according to actual conditions.
[0067] The present embodiment provides that when the reminder mode of the terminal device's to-be-reminded service is set to an audio reminder mode, ringtone data corresponding to the audio reminder mode sent by the terminal device is obtained, so as to facilitate subsequent decoding of the current audio data to obtain corresponding waveform data and control the motor vibration, instead of the existing wearable device driving the motor to vibrate according to the pre-set vibration effect, resulting in a single vibration effect, thereby improving the user experience.
[0068] When the reminder mode of the service to be reminded of the terminal device is set to an audio reminder mode, the ringtone data corresponding to the audio reminder mode sent by the terminal device is obtained as the current audio data, and then the corresponding waveform data is decoded and obtained, and the motor driver is controlled according to the waveform data to drive the motor to vibrate in step S13, including:
[0069] The vibration parameters are adjusted according to the waveform data to control the motor driver to drive the motor to vibrate, wherein the waveform data includes waveform length, peak value and audio frequency, and the vibration parameters include vibration time, vibration intensity and vibration frequency.
[0070] Specifically, after acquiring the ringtone data sent by the terminal device, the corresponding waveform data is decoded, and the waveform data further adjusts the vibration parameters according to the length, peak value and audio frequency of the waveform to achieve a vibration effect according to the specific waveform data, and controls the motor driver to drive the motor to vibrate. It can be understood that the waveform data mentioned in the above embodiment is obtained by decoding the data according to the waveform generation function, and the vibration parameters are adjusted according to the data attributes of the waveform data, the length of the waveform corresponds to the vibration time, the peak value of the waveform data corresponds to the vibration intensity, and the audio frequency of the waveform data corresponds to the vibration frequency.
[0071] It is understandable that the waveform data including the waveform length, peak value and audio frequency is only a preferred embodiment. When the reminder mode of the terminal device is the audio reminder mode, the acquired ringtone data is decoded to obtain the corresponding waveform data, and the data attributes of the waveform data are adapted to adjust the vibration parameters. If the waveform data only includes the waveform length, the vibration time of the vibration parameter is adjusted. The shorter the waveform length, the shorter the vibration time of the wearable device. Similarly, the data attributes of other waveform data correspond to the adjustment of the vibration parameters.
[0072] This embodiment provides a method for adjusting the vibration parameters of vibration time, vibration intensity and vibration frequency according to the waveform length, peak value and audio frequency of the waveform data to control the motor driver to drive the motor to vibrate. The specific waveform data obtained according to different audio data forms a corresponding vibration effect, and then drives the motor to vibrate, solving the problem of a single vibration effect.
[0073] On the basis of the above embodiment, when the reminder mode of the service to be reminded of the terminal device is set to a non-audio reminder mode, obtaining the current audio data in step S11 includes:
[0074] Acquire the ambient audio data of the environment collected by the audio collection module of the terminal device and / or acquire the ambient audio data of the environment collected by the audio collection module of the terminal device.
[0075] Specifically, when the reminder mode of the service to be reminded is a non-audio reminder mode, that is, silent mode or vibration mode, if the ringtone data of the terminal device is obtained at this time, the peak value of the waveform data finally decoded is low or even zero. The vibration intensity of the adjusted vibration parameters is weak. At this time, the vibration effect of the wearable device is far different from the vibration effect in the ringtone mode or even cannot be achieved, which runs counter to the method of the present invention. In order to avoid this phenomenon, when the terminal device is in silent mode or vibration mode, the ambient audio data of the environment in which it is located can be collected according to the audio collection module of the terminal device itself and / or the audio collection module of the wearable device itself can collect the ambient audio data of the environment in which it is located.
[0076] It should be noted that the ambient audio data of the environment in which the audio acquisition module of the terminal device collects can be the environment in which the audio acquisition module is located inside the terminal device, or the environment in which the audio acquisition module is located inside and outside the terminal device. The internal environment can be based on the ambient audio data of the working environment of the parts around the audio acquisition module, such as the audio emitted by the internal parts due to the vibration of the vibration module in vibration mode, and the ambient audio data of the working environment of the internal parts in silent mode. It can also refer to the ambient audio data of the environment outside the terminal device. The collection scope of the audio data collected by the audio acquisition module is limited according to the specific actual situation, and the present invention does not make any requirements here.
[0077] Since the ambient audio data collected by the terminal device's own audio collection module is weak in silent mode or vibration mode, in order to collect more comprehensive data, the current audio data obtained can be the ambient audio data of the environment where the wearable device's own audio collection module is located. The ambient audio data of both can also be referenced.
[0078] For example, the distance between the terminal device and the wearable device is far, and the ambient audio data obtained from the terminal device is susceptible to signal interference due to long-distance transmission. When the data is transmitted to the wearable device, it is weaker than that to the terminal device. At this time, the ambient audio data collected by the wearable device is combined to make the data superimposed on the original basis to generate a higher peak value of the waveform data, and the vibration intensity of the vibration parameters adjusted in this way is stronger.
[0079] The current audio data can be obtained by setting a preset range according to the terminal device and the wearable device. If the terminal device is within the preset distance range of the wearable device, the current audio data can be the ambient audio data of the terminal device. If it exceeds the preset range, the current audio data can be the superposition of the ambient audio data of the terminal device and the wearable device. If it exceeds the critical range, the current audio data can be the ambient audio data of the wearable device. This is only a preferred embodiment and can be set according to actual conditions.
[0080] This embodiment provides the method of obtaining the ambient audio data of the environment collected by the audio collection module of the terminal device and / or obtaining the ambient audio data of the environment collected by the audio collection module of the terminal device. This prevents the wearable device from vibrating according to the ringtone data corresponding to the terminal device when the terminal device is in the silent or vibration mode. By obtaining the ambient audio data, the user is reminded in time, thereby improving the personalized service of the wearable device.
[0081] On the basis of the above embodiment, when the reminder mode of the service to be reminded of the terminal device is set to a non-audio reminder mode, the ambient audio data of the environment collected by the audio collection module of the terminal device and / or the ambient audio data of the environment collected by its own audio collection module are obtained. The current ambient audio data is decoded to obtain corresponding waveform data, and the motor driver is controlled to drive the motor to vibrate according to the waveform data in step S13, including:
[0082] The vibration parameters are adjusted according to the waveform data to control the motor driver to drive the motor to vibrate, wherein the waveform data includes a peak value and the vibration parameters include a vibration intensity.
[0083] It is understandable that when the reminder mode of the terminal device is silent mode or vibration mode, the current audio obtained is the ambient audio data of the environment collected by the audio acquisition module of the terminal device and / or the environment collected by the audio acquisition module of the wearable device. Since the peak value of the waveform data obtained from the ambient audio data is small, the vibration intensity of the corresponding generated vibration parameter is small. Therefore, the vibration intensity of the vibration parameter is adjusted according to the peak value of the waveform data to control the motor driver to drive the motor to vibrate. Vibration intensity is only a preferred embodiment, and the vibration parameters may also include vibration time and vibration frequency. However, the peak value of the ambient audio data obtained in the non-audio prompt mode is small. If the vibration time and vibration frequency of the vibration parameter are adjusted accordingly according to the waveform length of the wavelength data and the audio frequency, the problem of low vibration intensity of the vibration effect of the wearable device still cannot be solved.
[0084] The vibration parameters are adjusted according to the waveform data to control the motor driver to drive the motor to vibrate, and the vibration parameters include vibration intensity. At this time, the vibration intensity can be divided into three levels: high, medium, and low. In the audio prompt mode, the vibration intensity is medium, and in the non-audio prompt mode, the vibration intensity can be adjusted to a high level. The level division of vibration intensity is only a preferred embodiment, and can be divided according to the surrounding environment.
[0085] The embodiment provides a method for adjusting the vibration parameter vibration intensity according to the peak value of the waveform data to control the motor driver to drive the motor to vibrate. The specific waveform data obtained according to different audio data forms a corresponding vibration effect, and then drives the motor to vibrate, solving the problem of a single vibration effect.
[0086] When the reminder mode of the terminal device's service to be reminded is set to a non-audio reminder mode, obtain the ambient audio data of the environment collected by the terminal device's audio acquisition module and / or obtain the ambient audio data of the environment collected by its own audio acquisition module. The ambient audio data is decoded to obtain the corresponding waveform data. At this time, the waveform data includes peak values and audio frequencies. When all peak values of the waveform data are less than the threshold, it indicates that the vibration effect intensity presented by the ambient audio data is relatively small. When the user is in a sports scene, if the vibration effect of the wearable device is small according to the vibration parameters adjusted by the waveform data, it will not have the effect of reminding the user, and it is necessary to obtain the user's vital sign data to generate the corresponding vibration effect.
[0087] After decoding the audio data to obtain decoded data and acquiring corresponding waveform data, and before controlling the motor driver to drive the motor to vibrate according to the waveform data, the method further includes:
[0088] Obtain user vital signs data;
[0089] If the user's vital sign data meets the preset conditions, the corresponding vibration parameters are generated according to the user's vital sign data to control the motor driver to drive the motor to vibrate, wherein the vibration parameters corresponding to the user's vital sign data are greater than the vibration parameters corresponding to the waveform data, and the vibration parameters include vibration intensity and vibration frequency.
[0090] Specifically, the user's vital sign data is obtained, and the user's vital sign data includes at least one of heart rate data, breathing data and temperature data. It can be only one of the three data, or a combination of the three data can be used for reference. When the user's vital sign data meets the preset conditions, the corresponding vibration parameters are generated according to the user's vital sign data to form a corresponding vibration effect to control the motor driver to drive the motor to vibrate.
[0091] It is understandable that the user's vital sign data is used to detect whether the current user is in a sports scene. When the user's vital sign data meets the preset conditions, it means that the user is in a sports scene. If the vibration parameters are adjusted according to the corresponding waveform data generated by the acquired ambient audio data, the vibration intensity is small, and the user may not feel the vibration because he is exercising. The preset condition is that the peak value of a certain type of user's vital sign data in a sports scene or other scenes (quieter scenes such as learning and work) is different. When all the peak values of the data are greater than the preset threshold, it means that the user is in motion.
[0092] It should be noted that, due to the different types of data used in user vital sign data, the preset thresholds are different, and the corresponding preset thresholds need to be adapted according to the type of data used. For example: to obtain the heart rate data of user vital sign data, there is a certain difference between exercise and rest. Generally, the heart rate data during exercise reaches more than 100 times, so the preset range can be set to 100 times converted to the corresponding preset threshold. For users of different age groups who show different user vital sign data in sports scenes, the preset conditions can change the specific preset thresholds of the preset conditions according to the applicability of the user vital sign data of different users stored in advance.
[0093] When the user's vital sign data meets the preset conditions, the corresponding vibration parameters are generated according to the user's vital sign data, wherein the vibration parameters corresponding to the user's vital sign data are greater than the vibration parameters corresponding to the waveform data, and the waveform data here is generated corresponding to the environmental audio data obtained in the non-audio prompt mode. Since the peak value of the waveform data is small, the vibration intensity of the corresponding vibration parameter is small. Therefore, in this case, the user's own environment is taken into consideration. When the acquired user's vital sign data detects that the user is in a sports scene, the corresponding vibration parameter needs to be greater than the vibration parameter corresponding to the waveform data, so as to enhance the vibration intensity and vibration frequency to achieve vibration to remind the user.
[0094] Specifically, the vibration intensity and vibration frequency are increased according to the level of the vibration parameters. As mentioned in the example above, the vibration intensity can be divided into three levels: high, medium and low. It will not be repeated here and can be set according to actual conditions.
[0095] In the non-audio prompt mode, when all peak values of the waveform data are less than the threshold value, the corresponding vibration parameters are generated according to the user's physical sign data to control the motor driver to drive the motor to vibrate. The corresponding vibration effect is generated according to the user's own physical sign data to enrich the user's ability to adjust the vibration parameters for vibration in different scenarios, thereby further improving the user's experience.
[0096] When it is detected that the terminal device generates a service to be reminded, before obtaining the current audio data, the method further includes:
[0097] Determine whether the wearable device is in a wearing state;
[0098] If so, the process proceeds to the step of obtaining current audio data when it is detected that the terminal device generates a service to be reminded.
[0099] Specifically, when the user wears the wearable device, the user is reminded to check in time through vibration. When the wearable device is in a non-wearing state, if the motor vibration is continued to be performed according to the corresponding vibration effect generated according to different audio data in the wearing state of the wearable device, the power consumption problem caused by the vibration module of the wearable device cannot be solved. Therefore, in order to achieve low power consumption of the wearable device, it is necessary to determine whether the wearable device is in a wearing state. When it is in a wearing state, the vibration processing method of the present invention is performed. When it is in a non-wearing state, it is necessary to reduce the level of the vibration parameters, such as reducing the level of vibration intensity, reducing the vibration frequency, etc. to achieve low power consumption.
[0100] When the terminal device generates a service to be reminded, its wearable device generates a corresponding vibration effect based on different audio data to vibrate the motor, and the vibration module of the wearable device vibrates. Since the user is not wearing the device, it is necessary to remind the user to check the service to be reminded in time. The vibration parameter level of the wearable device can be increased, for example, the vibration intensity level can be increased from medium to high or from high to a higher level to remind the user.
[0101] The present invention provides a method for determining whether the wearable device is in a wearing state. If so, the method proceeds to the step of obtaining current audio data when detecting that the terminal device generates a service to be reminded. If not, the level of the vibration parameter is reduced to achieve the purpose of reducing power consumption and extending the working life of the wearable device.
[0102] On the basis of the above embodiment, the current audio data is obtained, specifically including obtaining the ring tone data transmitted by the terminal device via Bluetooth.
[0103] It is understandable that the wearable device obtains the ringtone data transmitted by the terminal device, and the connection between the wearable device and the terminal device can be through a Wi-Fi connection or a Bluetooth connection. Based on the one-to-one characteristic of the Bluetooth connection, the present invention preferably obtains the audio data through Bluetooth. In addition, since the Wi-Fi connection is more suitable for transmitting large data, the power consumption is relatively high. The Bluetooth connection is more suitable for transmitting small data, and the power consumption is relatively low. Since the ringtone data transmitted between the wearable device and the terminal device is relatively small, the Bluetooth connection is preferred. At the same time, it is considered that the Wi-Fi connection needs to ensure that the communication is normal under the wireless network before the ringtone data can be obtained.
[0104] This embodiment provides a method for obtaining ringtone data transmitted by a terminal device via Bluetooth, reducing the power consumption of wearable devices, obtaining current audio data via Bluetooth, and obtaining and vibrating in real time. If connected via Wi-Fi, the current audio data can only be obtained when the network communication is normal, which limits the scene of obtaining the current data.
[0105] On the basis of the above embodiment, when it is detected that the terminal device generates a service to be reminded, the service to be reminded is displayed.
[0106] When it is detected that the terminal device generates a service to be reminded, the current audio data is obtained and the corresponding service to be reminded is displayed on the display page of the wearable device.
[0107] This embodiment provides that when it is detected that a terminal device generates a service to be reminded, the service to be reminded is displayed, thereby improving the user experience, adding a page to display the synchronous service to be reminded, and further improving the humanized service of the wearable device.
[0108] The above describes in detail various embodiments corresponding to the vibration processing method of the wearable device. On this basis, the present invention also discloses a vibration processing device for the wearable device corresponding to the above method. Figure 2 This is a structural diagram of a vibration processing device for a wearable device provided by an embodiment of the present invention. Figure 2 As shown, the vibration processing device of the wearable device includes:
[0109] The first acquisition module 11 is used to acquire current audio data when it is detected that the terminal device generates a service to be reminded;
[0110] A second acquisition module 12 is used to decode the audio data to obtain decoded data and obtain corresponding waveform data;
[0111] The sending module 13 is used to control the motor driver to drive the motor to vibrate according to the waveform data.
[0112] Since the embodiments of the device part correspond to the above embodiments, please refer to the description of the embodiments of the method part for the embodiments of the device part, and will not be repeated here.
[0113] The present invention provides a vibration processing device for a wearable device. When it is detected that a terminal device generates a service to be reminded, the device obtains current audio data; decodes the audio data to obtain decoded data and obtains corresponding waveform data; and controls a motor driver to drive the motor to vibrate according to the waveform data. The device obtains the current audio data and decodes it to obtain decoded data, and obtains corresponding waveform data according to the decoded data. The specific waveform data obtained according to different audio data form a corresponding vibration effect, and then drives the motor to vibrate, instead of the existing wearable device driving the motor to vibrate according to the pre-set vibration effect when there is a service to be reminded, resulting in a single vibration effect. The device improves the user experience of the wearable device and further enhances the personalized service of the wearable device.
[0114] Figure 3 A structural diagram of a wearable device provided by an embodiment of the present invention, such as Figure 3 As shown, the device comprises:
[0115] A memory 21, used for storing computer programs;
[0116] The processor 22 is used to implement the steps of the vibration processing method of the wearable device when executing the computer program.
[0117] The wearable device provided in this embodiment may include but is not limited to headphones, smart bracelets, smart glasses or smart sports watches.
[0118] Among them, the processor 22 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 22 may be implemented in at least one hardware form of a digital signal processor (DSP), a field-programmable gate array (FPGA), and a programmable logic array (PLA). The processor 22 may also include a main processor and a coprocessor. The main processor is a processor for processing data in an awake state, also known as a central processing unit (CPU); the coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 22 may be integrated with a graphics processing unit (GPU), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 22 may also include an artificial intelligence (AI) processor, which is used to process computing operations related to machine learning.
[0119] The memory 21 may include one or more computer-readable storage media, which may be non-transitory. The memory 21 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In this embodiment, the memory 21 is at least used to store the following computer program 211, wherein, after the computer program is loaded and executed by the processor 22, it can implement the relevant steps of the vibration processing method of the wearable device disclosed in any of the aforementioned embodiments. In addition, the resources stored in the memory 21 may also include an operating system 212 and data 213, etc., and the storage method may be temporary storage or permanent storage. Among them, the operating system 212 may include Windows, Unix, Linux, etc. The data 213 may include, but is not limited to, data involved in the vibration processing method of the wearable device, etc.
[0120] In some embodiments, the wearable device may further include a display screen 23 , an input / output interface 24 , a communication interface 25 , a power source 26 , and a communication bus 27 .
[0121] Those skilled in the art can understand that Figure 3 The structure shown in the figure does not constitute a limitation on the wearable device and may include more or fewer components than shown in the figure.
[0122] The processor 22 implements the vibration processing method for the wearable device provided in any of the above embodiments by calling the instructions stored in the memory 21.
[0123] The present invention provides a wearable device, which, when detecting that a terminal device generates a service to be reminded, obtains current audio data; decodes the audio data to obtain decoded data and obtains corresponding waveform data; and controls a motor driver to drive a motor to vibrate according to the waveform data. By obtaining the current audio data and decoding it to obtain decoded data, and obtaining corresponding waveform data according to the decoded data, a corresponding vibration effect is formed according to the specific waveform data obtained according to different audio data, and then the motor is driven to vibrate, instead of the existing wearable device driving the motor to vibrate according to the pre-set vibration effect when there is a service to be reminded, resulting in a single vibration effect, thereby improving the user experience of the wearable device and further enhancing the personalized service of the wearable device.
[0124] Furthermore, the present invention also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by the processor 22, the steps of the vibration processing method for the wearable device as described above are implemented.
[0125] It is understandable that if the method in the above embodiment is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially 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, and the computer software product is stored in a storage medium to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.
[0126] For an introduction to a computer-readable storage medium provided by the present invention, please refer to the above method embodiment, and the present invention will not be repeated here. It has the same beneficial effects as the vibration processing method of the wearable device mentioned above.
[0127] In order to enable those skilled in the art to better understand the technical solution of the present invention, the vibration processing method, device, wearable device and medium of the wearable device provided by the embodiments of the present invention are further described in detail below in conjunction with the accompanying drawings:
[0128] Figure 4 A schematic diagram of an application scenario of a vibration processing device for a wearable device provided by an embodiment of the present invention, such as Figure 4As shown, the application process includes: the terminal device 31 is connected to the wearable device 32 via Bluetooth. When the wearable device 32 detects that the terminal device 31 generates a service to be reminded, it obtains the current audio data and sends it to the Bluetooth audio Codec 33 for decoding to obtain decoded data, and sends the decoded data to the MCU 34 via the I2S bus. The MCU 34 obtains the corresponding waveform data according to the decoded data, and sends the waveform data to the motor driver 35 via the I2C bus. The motor driver 35 controls the linear motor 36 to vibrate according to the waveform data.
[0129] The above describes a schematic diagram of an application scenario of a vibration processing device for a wearable device provided by an embodiment of the present invention, which has the same beneficial effects as the vibration processing method for a wearable device mentioned above.
[0130] The above is a detailed introduction to a vibration processing method, device, wearable device and medium for a wearable device provided by the present invention. The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between the embodiments can refer to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can refer to the method part description. It should be pointed out that for ordinary technicians in this technical field, without departing from the principle of the present invention, the present invention can also be improved and modified in several ways, and these improvements and modifications also fall within the scope of protection of the claims of the present invention.
[0131] It should also be noted that, in this specification, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprises", "comprising" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprising a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.
Claims
1. A vibration processing method for a wearable device, It is characterized in that include: When it is detected that the terminal device generates a service to be reminded, the current audio data is obtained; Decoding the current audio data to obtain decoded data and acquiring corresponding waveform data; According to the waveform data, a motor driver is controlled to drive the motor to vibrate; the motor is a transverse linear motor, and the transverse linear motor has two spring coils, each of which is supplied with alternating current of different frequencies; Wherein, the reminder mode of the service to be reminded of the terminal device is set to a non-audio reminder mode, and the obtaining of the current audio data includes: Acquiring ambient audio data of the environment collected by the audio collection module of the terminal device and / or acquiring ambient audio data of the environment collected by its own audio collection module; Among them, the non-audio prompt mode is silent mode or vibration mode; accordingly, the audio acquisition module inside the terminal device collects the environmental audio data of the part working environment around the audio acquisition module, including: in vibration mode, the audio emitted by the part due to the vibration of the vibration module; in silent mode, the environmental audio data of the part working environment.
2. The vibration processing method for a wearable device according to claim 1, It is characterized in that The reminder mode of the service to be reminded of the terminal device is an audio prompt mode, and the obtaining of current audio data includes: Acquire ringtone data corresponding to the audio prompt mode sent by the terminal device.
3. The vibration processing method for a wearable device according to claim 2, It is characterized in that The step of controlling the motor driver to drive the motor to vibrate according to the waveform data comprises: The vibration parameters are adjusted according to the waveform data to control the motor driver to drive the motor to vibrate, wherein the waveform data includes waveform length, peak value and audio frequency, and the vibration parameters include vibration time, vibration intensity and vibration frequency.
4. The vibration processing method for a wearable device according to claim 1, It is characterized in that The step of controlling the motor driver to drive the motor to vibrate according to the waveform data comprises: The vibration parameters are adjusted according to the waveform data to control the motor driver to drive the motor to vibrate, wherein the waveform data includes a peak value and the vibration parameters include a vibration intensity.
5. The vibration processing method for a wearable device according to claim 1, It is characterized in that The waveform data includes a peak value and an audio frequency. When all the peak values of the waveform data are less than a threshold value, after decoding the current audio data to obtain decoded data and acquiring corresponding waveform data, and before controlling the motor driver to drive the motor to vibrate according to the waveform data, the method further includes: Obtain user vital signs data; If the user vital sign data meets the preset conditions, the corresponding vibration parameters are generated according to the user vital sign data to control the motor driver to drive the motor to vibrate, wherein the vibration parameters corresponding to the user vital sign data are greater than the vibration parameters corresponding to the waveform data, and the vibration parameters include vibration intensity and vibration frequency.
6. The vibration processing method for a wearable device according to claim 1, It is characterized in that Before acquiring the current audio data when it is detected that the terminal device generates a service to be reminded, the method further includes: Determining whether the wearable device is in a wearing state; If so, the process proceeds to the step of acquiring current audio data when it is detected that the terminal device generates a service to be reminded.
7. The vibration processing method for a wearable device according to claim 2, It is characterized in that The obtaining of current audio data includes: The ring tone data transmitted by the terminal device is obtained via Bluetooth.
8. The vibration processing method for a wearable device according to claim 1, It is characterized in that Also includes: When it is detected that the terminal device generates the service to be reminded, the service to be reminded is displayed.
9. A vibration processing device for a wearable device, It is characterized in that include: A first acquisition module is used to acquire current audio data when it is detected that a terminal device generates a service to be reminded; A second acquisition module, used for decoding the current audio data to obtain decoded data and obtain corresponding waveform data; A sending module is used to control a motor driver to drive a motor to vibrate according to the waveform data; the motor is a transverse linear motor, and the transverse linear motor has two spring coils, each of which is supplied with alternating current of different frequencies; Wherein, the reminder mode of the service to be reminded of the terminal device is set to a non-audio reminder mode, and the obtaining of the current audio data includes: obtaining ambient audio data of the environment collected by the audio collection module of the terminal device and / or obtaining ambient audio data of the environment collected by its own audio collection module; Among them, the non-audio prompt mode is silent mode or vibration mode; accordingly, the audio acquisition module inside the terminal device collects the environmental audio data of the part working environment around the audio acquisition module, including: in vibration mode, the audio emitted by the part due to the vibration of the vibration module; in silent mode, the environmental audio data of the part working environment.
10. A wearable device, It is characterized in that include: Memory for storing computer programs; A processor, configured to implement the steps of the vibration processing method for a wearable device as described in any one of claims 1 to 8 when executing the computer program.
11. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by the processor, the steps of the vibration processing method for the wearable device according to any one of claims 1 to 8 are implemented.
