Sleep aid device and control method thereof

By integrating processor, H-bridge drive circuit and vibrator into the sleep aid device, and controlling the vibrator for single-point vibration massage using rhythm configuration information, the problem of single-point vibration massage of the existing sleep aid device is solved, and an efficient and safe sleep aid effect is achieved.

CN115869506BActive Publication Date: 2025-06-17GUANGDONG SKG INTELLIGENT TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211706084.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-29
Publication Date
2025-06-17
Estimated Expiration
2042-12-29

AI Technical Summary

Technical Problem

Existing sleep aid devices help sleep through auditory stimulation, with a single effect and long-term use may lead to hearing loss and high hardware costs.

Method used

A sleep aid device is designed, including a processor, an H-bridge driving circuit and a vibrator. The rhythm configuration information of the target file is obtained through the processor, the fundamental wave of the H-bridge driving circuit is adjusted to generate a sleep aid signal, and the vibrator is controlled to perform single-point vibration massage.

Benefits of technology

It effectively reduces the cost of somatosensory vibration hardware, realizes single-point vibration massage, improves sleep aid effect, and avoids hearing damage.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115869506B_ABST
    Figure CN115869506B_ABST
Patent Text Reader

Abstract

An embodiment of the present application discloses a sleep aid device and a control method thereof, which relates to the technical field of sleep aid devices. By setting an oscillator and an H-bridge drive circuit in the sleep aid device, the processor is used to obtain the sleep aid target file of the user, and then the corresponding rhythm configuration information is selected from the preset rhythm library to adjust the fundamental wave of the H-bridge drive circuit to generate a sleep aid signal. The sleep aid signal includes a sleep aid amplitude and a sleep aid frequency, which are respectively used to control the vibration amplitude and vibration frequency of the oscillator, so as to control the H-bridge drive circuit to drive the oscillator to vibrate and pound according to the audio rhythm of the sleep aid target file, realizing the physical sleep aid for the user. The H-bridge drive circuit thus set can drive the oscillator to vibrate according to the rhythm of the sleep aid file, effectively reducing the hardware cost of the sleep aid device, and realizing the vibration pounding massage of a single acupoint through the oscillator, effectively improving the sleep aid effect.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the technical field of sleep aid devices, and particularly to a sleep aid device and a control method thereof. Background Art

[0002] With the continuous acceleration of the modern life rhythm, people's pressure from various aspects such as life, work, and study is constantly increasing, which is likely to cause sleep disorders. Insomnia is a common manifestation of sleep disorders. Insomnia may cause harm such as memory loss, premature aging, and decreased body immunity. Severe insomnia for a long time may also cause mental disorders, hypertension, etc. Therefore, the damage of insomnia to human health is increasing.

[0003] Currently, various sleep aid devices such as sleep aid pillows and sleep aid mattresses have emerged on the market. They mainly directly stimulate the human auditory nerve through sleep aid music to promote human relaxation, achieve sleep aid, and thus improve sleep quality. However, using the auditory method for sleep aid has a single effect. If a low volume is used for a long time, it will also cause hearing loss and damage the user's physical health. Moreover, the structure of this kind of sleep aid device is relatively complex and requires high hardware costs. Summary of the Invention

[0004] This application aims to solve at least one of the technical problems existing in the prior art. To this end, the embodiments of this application provide a sleep aid device and a control method thereof, which can effectively reduce the hardware cost of somatic vibration while realizing single-point vibration, pounding and massaging acupoints for sleep aid.

[0005] In a first aspect, the embodiments of this application provide a sleep aid device, which includes: a processor, an H-bridge drive circuit, and an oscillator;

[0006] The processor is configured to obtain a target file of a user and select rhythm configuration information corresponding to the target file based on a preset rhythm library; the processor is further configured to adjust the fundamental wave of the H-bridge drive circuit according to the rhythm configuration information to generate a sleep aid signal, and the sleep aid signal includes: a sleep aid amplitude and a sleep aid frequency;

[0007] The H-bridge drive circuit is connected to the processor and the oscillator; the H-bridge drive circuit is configured to receive the sleep aid signal and control the oscillator to vibrate according to the sleep aid signal; the sleep aid amplitude is used to control the vibration amplitude of the oscillator, and the sleep aid frequency is used to control the vibration frequency of the oscillator.

[0008] In some embodiments of this application, the rhythm configuration information includes: rhythm peak information and rhythm frequency information; when the processor adjusts the fundamental wave of the H-bridge drive circuit according to the rhythm configuration information to generate a sleep aid signal, it performs:

[0009] Adjust the first frequency of the fundamental wave of the H-bridge drive circuit according to the rhythm peak information;

[0010] Adjust the second frequency of the fundamental wave of the H-bridge drive circuit according to the rhythm frequency information;

[0011] Generate the sleep aid signal according to the adjusted first frequency and the adjusted second frequency, where the first frequency corresponds to the sleep aid amplitude and the second frequency corresponds to the sleep aid frequency.

[0012] In some embodiments of the present application, the adjusting the first frequency of the fundamental wave of the H-bridge drive circuit according to the rhythm peak information includes:

[0013] Generate first duty cycle information according to the rhythm peak information;

[0014] Adjust the duty cycle of the signal in the first frequency signal segment of the fundamental wave of the H-bridge drive circuit according to the first duty cycle information.

[0015] In some embodiments of the present application, the adjusting the second frequency of the fundamental wave of the H-bridge drive circuit according to the rhythm frequency information includes:

[0016] Generate second duty cycle information according to the rhythm frequency information;

[0017] Adjust the second frequency of the fundamental wave of the H-bridge drive circuit according to the second duty cycle information.

[0018] In some embodiments of the present application, before the processor selects the rhythm configuration information corresponding to the target file based on the preset rhythm library, it performs:

[0019] Construct a preset file database, where the preset file database includes: a plurality of sleep aid files;

[0020] Perform data preprocessing on the plurality of sleep aid files respectively to obtain the rhythm configuration information corresponding to the plurality of sleep aid files;

[0021] Construct the preset rhythm library based on the plurality of sleep aid files and the corresponding rhythm configuration information.

[0022] In some embodiments of the present application, the performing data preprocessing on the sleep aid file respectively to obtain the rhythm configuration information of the sleep aid file includes:

[0023] Perform filtering processing on the sleep aid file to obtain the envelope information of the sleep aid file;

[0024] Perform signal sampling on the envelope information to obtain the sampling information of the envelope information;

[0025] Obtain the rhythm configuration information of the sleep aid file based on the sampling information.

[0026] In some embodiments of the present application, the signal sampling of the envelope information to obtain the sampling information of the envelope information includes:

[0027] Traverse the envelope information according to a preset sliding window to obtain the signal energy value within each preset sliding window;

[0028] Calculate the energy mean or energy maximum based on the signal energy value;

[0029] Calculate the peak value of the signal within each preset sliding window according to the energy mean or the energy maximum or the signal energy value at the position of the preset sampling point within the preset sliding window;

[0030] Obtain the sampling information according to the peak value within each preset sliding window.

[0031] In some embodiments of the present application, the signal is a square wave signal; the obtaining of the rhythm configuration information of the sleep aid file based on the sampling information includes:

[0032] Obtain the peak value in the square wave and the duration of each peak value based on the square wave signal;

[0033] Obtain the rhythm peak value information according to each peak value;

[0034] Obtain the rhythm frequency information according to the duration of each peak value.

[0035] In some embodiments of the present application, before filtering the sleep aid file to obtain the envelope information of the sleep aid file, it further includes: performing signal enhancement on the sleep aid file.

[0036] In some embodiments of the present application, the H-bridge drive circuit further includes: a first-direction triode group and a second-direction triode group;

[0037] If the first-direction triode group is turned on, the oscillator vibrates in the first direction;

[0038] If the second-direction triode group is turned on, the oscillator vibrates in the second direction, and the first direction and the second direction are opposite.

[0039] In some embodiments of the present application, the first-direction triode group includes: a first triode and a fourth triode. The collectors of the first triode and the fourth triode are connected to the oscillator, the emitters of the first triode and the fourth triode are connected to the power supply, and the bases of the first triode and the fourth triode are used to receive the sleep aid signal.

[0040] In some embodiments of the present application, the second-direction triode group includes: a second triode and a third triode. The collectors of the second triode and the third triode are connected to the oscillator, the emitters of the second triode and the third triode are connected to a power source, and the bases of the second triode and the third triode are used to receive the sleep-aid signal.

[0041] Second, embodiments of the present application further provide a control method for a sleep-aid device, which is applied to the sleep-aid device described in the embodiments of the first aspect. The method includes:

[0042] Obtain a target file of a user of the sleep-aid device;

[0043] Select rhythm configuration information corresponding to the target file based on a preset rhythm library;

[0044] Adjust the fundamental wave of the H-bridge drive circuit according to the rhythm configuration information to generate a sleep-aid signal for controlling the oscillator to vibrate. The sleep-aid signal includes: a sleep-aid amplitude and a sleep-aid frequency. The sleep-aid amplitude is used to control the vibration amplitude of the oscillator, and the sleep-aid frequency is used to control the vibration frequency of the oscillator.

[0045] In some embodiments of the present application, the adjusting the fundamental wave of the H-bridge drive circuit according to the rhythm configuration information to generate a sleep-aid signal includes:

[0046] Adjust the first frequency of the fundamental wave of the H-bridge drive circuit according to the rhythm peak information;

[0047] Adjust the second frequency of the fundamental wave of the H-bridge drive circuit according to the rhythm frequency information;

[0048] Generate the sleep-aid signal according to the adjusted first frequency and the adjusted second frequency. The first frequency corresponds to the sleep-aid amplitude, and the second frequency corresponds to the sleep-aid frequency.

[0049] In some embodiments of the present application, the adjusting the first frequency of the fundamental wave of the H-bridge drive circuit according to the rhythm peak information includes:

[0050] Generate first duty ratio information according to the rhythm peak information;

[0051] Adjust the duty ratio of the signals in the signal segment of the first frequency of the fundamental wave of the H-bridge drive circuit according to the first duty ratio information.

[0052] In some embodiments of the present application, the adjusting the second frequency of the fundamental wave of the H-bridge drive circuit according to the rhythm frequency information includes:

[0053] Generate second duty ratio information according to the rhythm frequency information;

[0054] Adjust the second frequency of the fundamental wave of the H-bridge drive circuit according to the second duty ratio information.

[0055] The embodiments of the present application at least include the following beneficial effects:

[0056] The embodiments of the present application provide a sleep aid device and a control method for the sleep aid device. By setting an oscillator and an H-bridge drive circuit in the sleep aid device, the oscillator is controlled to perform vibrating massage on a single acupuncture point of the human body for sleep aid. First, the processor is used to obtain the target file of the user of the sleep aid device, and then the corresponding rhythm configuration information is selected to adjust the fundamental wave of the H-bridge drive circuit to generate a sleep aid signal. The sleep aid signal includes a sleep aid amplitude and a sleep aid frequency, which are used to control the vibration amplitude and vibration frequency of the oscillator respectively. Thus, the sleep aid device is controlled to aid the user in sleeping. By setting the H-bridge drive circuit, the oscillator can be driven to vibrate and massage, effectively reducing the hardware cost of the sleep aid device. At the same time, the amplitude and frequency of the single-point hammering vibration of the oscillator are controlled by the sleep aid signal generated according to the rhythm configuration information of the user's target file, effectively improving the sleep aid effect.

[0057] The additional aspects and advantages of the present application will be partially given in the following description, partially become obvious from the following description, or be understood through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0058] The above and / or additional aspects and advantages of the present application will become obvious and easy to understand from the description of the embodiments in conjunction with the following drawings, where:

[0059] Figure 1 is an application environment diagram of a sleep aid device provided by an embodiment of the present application;

[0060] Figure 2 is a schematic diagram of a sleep aid device provided by an embodiment of the present application;

[0061] Figure 3 is a flowchart of a sleep aid device provided by an embodiment of the present application;

[0062] Figure 4 is Figure 3 a flowchart of step S103 in

[0063] Figure 5 is Figure 3 a flowchart of step S201 in

[0064] Figure 6 is a first duty ratio information diagram provided by an embodiment of the present application;

[0065] Figure 7 is Figure 4Schematic diagram of the process in step S202;

[0066] Figure 8 It is the second duty cycle information and the second frequency waveform diagram provided by an embodiment of the present application;

[0067] Figure 9 is Figure 3 Schematic diagram of the process before step S102 in

[0068] Figure 10 is Figure 9 Schematic diagram of the process in step S502 in

[0069] Figure 11 It is the audio envelope diagram provided by an embodiment of the present application;

[0070] Figure 12 It is the audio sampling diagram provided by an embodiment of the present application;

[0071] Figure 13 is Figure 10 Schematic diagram of the process in step S602 in

[0072] Figure 14 is Figure 10 Schematic diagram of the process in step S603 in

[0073] Figure 15 is Figure 2 Schematic diagram of the H-bridge drive circuit structure shown;

[0074] Reference numerals: terminal device 100, sleep aid device 200, processor 210, H-bridge drive circuit 220, oscillator 230, first triode 221, second triode 222, third triode 223, fourth triode 224. Detailed implementation manners

[0075] In order to make the objectives, technical solutions and advantages of the present application clearer, the present application will be further described in detail below with reference to the drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0076] The embodiments of the present application will be described in detail below. The examples of the embodiments are shown in the drawings, where the same or similar reference numerals denote the same or similar elements or elements with the same or similar functions throughout. The embodiments described below by referring to the drawings are exemplary and are only used to explain the present application and should not be construed as a limitation of the present application.

[0077] In the description of this application, it should be understood that for the orientation description, such as the orientation or positional relationship indicated by up, down, front, back, left, right, etc., it is based on the orientation or positional relationship shown in the drawings. It is only for the convenience of describing this application and simplifying the description, rather than indicating or implying that the device or component referred to must have a specific orientation, be constructed and operated in a specific orientation. Therefore, it should not be construed as a limitation to this application.

[0078] In the description of this application, the meaning of several is one or more, the meaning of multiple is more than two, greater than, less than, exceeding, etc. are understood as not including the original number, above, below, within, etc. are understood as including the original number. If the first and second are described only for the purpose of distinguishing technical features, they should not be understood as indicating or implying relative importance or implicitly indicating the quantity of the indicated technical features or the sequence relationship of the indicated technical features.

[0079] In the description of this application, unless otherwise clearly defined, terms such as setting, installing, connecting, etc. should be understood in a broad sense, and those skilled in the art can reasonably determine the specific meanings of the above terms in this application in combination with the specific content of the technical solution.

[0080] To better understand the technical solution provided by this application, the terms appearing herein are correspondingly explained as follows:

[0081] Somatosensation: Also known as somatic sensation, it is the general term for tactile sensation, pressure sensation, temperature sensation, pain sensation, and proprioception (sensation regarding the position and movement of muscles and joints, body posture and movement, and facial expressions).

[0082] Bone conduction: A way of sound wave conduction to the inner ear. Sound waves directly cause corresponding fluctuations in the perilymph through the skull route and stimulate the spiral organ of the cochlea to produce hearing.

[0083] Vibrator: In this application, it refers to a component that has a vibration massage effect on a single acupuncture point of the human body and is composed of adding other hardware massage blocks such as small iron columns to an empty coil.

[0084] H-bridge: An electronic circuit. The circuit shape resembles the letter H and is composed of 4 triodes forming the 4 vertical legs of the H. It can reverse the voltage across the connected load or output terminals / current direction, and is commonly used in inverters (DC-AC conversion, that is, converting direct current to alternating current). By opening and closing the switches, it inverses direct current into alternating current of a certain frequency or variable frequency to drive an AC motor.

[0085] Fundamental wave: The lowest frequency component of a complex wave, referring to the sine wave component in a complex periodic oscillation that is equal to the longest period of the oscillation. The frequency corresponding to this period is called the fundamental frequency.

[0086] Duty cycle: It refers to the proportion of the energized time relative to the total time within a pulse cycle. Its basic meaning is the ratio of the time occupied by the pulse to the total time during a continuous working period, or in a periodic phenomenon, the ratio of the duration after a certain phenomenon occurs to the total time.

[0087] Filtering: The operation of filtering out specific frequency bands in a signal, which is an important measure to suppress and prevent interference.

[0088] Triode: Also known as a semiconductor triode, bipolar transistor, or crystal triode, it is a semiconductor device that controls current. Its function is to amplify weak signals into electrical signals with a larger amplitude value and also serves as a non-contact switch. The triode is one of the basic semiconductor components, with current amplification function and is the core component of electronic circuits. The triode is made by fabricating two PN junctions that are very close to each other on a semiconductor substrate. The two PN junctions divide the whole semiconductor into three parts. The middle part is the base region, and the two side parts are the emitter region and the collector region. The arrangement methods are PNP and NPN.

[0089] Envelope: An envelope is a graph formed by the interweaving of many elliptical curves, which looks like it is wrapped up. In this application, it specifically refers to the envelope graph obtained by processing an audio signal.

[0090] At present, the body-sensing music sleep aid therapy in the market is considered an effective sleep aid means. However, the body-sensing transducers used in the body-sensing music of related technologies are usually based on bone conduction modules, which are similar to audio speakers in the principle of body-sensing transduction. By changing the current to generate a magnetic field, the coil vibrates in the magnetic field to drive the eardrum or the shell to vibrate or emit sound. Therefore, it mostly uses traditional audio systems and usually requires audio decoding. After decoding, it is output to the transducer or speaker through an amplifier circuit and a digital-to-analog converter. Although this method can achieve related basic functions, it results in an overflow and waste phenomenon in the structural design of related hardware for responding to audio, music effects, and sound quality improvement. While the hardware cost is high, the body-sensing vibration is mostly in the form of surface vibration, so the vibration of a single acupuncture point is weak, resulting in a general body-sensing vibration sleep aid effect.

[0091] Based on this, the embodiments of this application provide a sleep aid device and a control method for the sleep aid device, which can effectively reduce the hardware cost of body-sensing vibration while achieving single-point vibration, and perform sleep aid by pounding and massaging acupuncture points.

[0092] The sleep aid device provided by the embodiments of this application can be applied to, for example Figure 1In the application environment shown. Among them, the terminal device 100 communicates and exchanges data with the sleep aid device 200 through a network. The way for the terminal device 100 to establish a communication connection with the sleep aid device 200 can be a wireless connection (such as a Bluetooth connection, a Wi-Fi connection, etc.). In this regard, the embodiments of the present application do not make any limitations. The user can select a corresponding target file through the control of the terminal device 100 for sleep aid, or the built-in processor (not shown in the figure) in the sleep aid device 200 can perform sleep aid according to the user's default target file, or the sleep aid device 200 can adaptively select the target file for sleep aid based on different times and scenarios it recognizes. Among them, the terminal device 100 can be, but is not limited to, various personal computers, laptop computers, smartphones, tablet computers, and portable wearable devices, and the sleep aid device 200 can be a pillow, a mattress, a chair, and various types of massagers, etc.

[0093] Referring to Figure 2 As shown in the schematic diagram of the sleep aid device, in some embodiments of the present application, the sleep aid device 200 includes a processor 210, an H-bridge drive circuit 220, and an oscillator 230. The H-bridge drive circuit 220 is connected to the processor 210 and the oscillator 230. Specifically, the processor 210 is used to obtain the user's target file, select the configuration information corresponding to the target file based on the speech rhythm library, and then adjust the fundamental wave of the H-bridge drive circuit 220 according to the rhythm configuration information to generate a sleep aid signal including a sleep aid amplitude and a sleep aid frequency. The H-bridge drive circuit 220 is used to receive the sleep aid signal and control the oscillator 230 to vibrate according to the sleep aid signal. Specifically, the sleep aid amplitude is used to control the vibration amplitude of the oscillator, and the sleep aid frequency is used to control the vibration frequency of the oscillator, so as to realize the synchronous vibration beating of the oscillator with the sleep aid file and achieve tactile sleep aid.

[0094] Specifically, referring to Figure 3 As shown, the process of using the processor 210 to control the sleep aid device 200 to achieve tactile sleep aid includes, but is not limited to, the following steps S101 to S103.

[0095] Step S101, obtain the target file of the user of the sleep aid device.

[0096] In some embodiments, the sleep aid device 200 is internally configured with default sleep aid files. Providing appropriate sleep aid files for users of different sleep aid scenario types, times, and ages can effectively improve the sleep aid effect. For example, in scenarios such as weekday lunch breaks, non-working day scenarios, or home scenarios, there will be different sleep aid needs for different users and different scenarios, and thus different types of sleep aid files are required.

[0097] It should be understood that the target file is a sleep aid file selected by the user. The user of the sleep aid device 200 can add different sleep aid files according to their own preferences or needs, such as music, white noise, natural sounds, or other audio and video files, etc. Specifically, when the user uses the sleep aid device 200, within a preset time, such as setting ten seconds or thirty seconds, the target file can be selected through the control terminal device 100 or the internal controller of the sleep aid device 200 to start the sleep aid process. If the preset time is exceeded, the sleep aid device 200 adaptively selects the target file according to the user's historical selection information or by statistically analyzing the selection information of multiple different users. For example, it can be the default sleep aid file preset by the user, the sleep aid file with the most usage times, or the sleep aid file with the best sleep aid effect identified according to different time scenarios, so as to obtain the target file of the user of the sleep aid device 200. This application does not limit this, and those skilled in the art can set it according to the specific scenario.

[0098] Step S102: Select the rhythm configuration information corresponding to the target file based on the preset rhythm library.

[0099] In some embodiments, different sleep aid files are analyzed and extracted to generate a corresponding series of rhythm configuration information, which is stored in the preset rhythm library. It can be understood that whenever the user adds or deletes a sleep aid file in the sleep aid device 200, the relevant information in the preset rhythm library will also be added or deleted accordingly, and is dynamically updated synchronously with the sleep aid file.

[0100] In the specific application of selecting the rhythm configuration information corresponding to the target file according to the preset rhythm library, the rhythm configuration information can be used to determine the sleep aid parameters corresponding to the target file, such as the sleep aid audio and the corresponding playback parameters, etc. Among them, the sleep aid audio can be various types of audio data, such as gentle ocean waves, bird songs, or lullabies, etc., and the playback parameters are used to control the playback of the sleep aid audio, such as controlling the playback duration and playback volume of the sleep aid audio.

[0101] Step S103: Adjust the fundamental wave of the H-bridge drive circuit 220 according to the rhythm configuration information to generate a sleep aid signal.

[0102] In some embodiments, the fundamental wave of the H-bridge drive circuit 220 is (10 kHz, 3 - 15 Hz), where 10 kHz is used to control the speed of charging the oscillator 230, and the alternating waveform of 3 - 15 Hz generates an alternating magnetic field to drive the oscillator 230 to vibrate and pound, thereby achieving massage and promoting sleep. It can be understood that using 10 kHz to charge the oscillator 230 is to prevent hazards such as damage to the oscillator 230 caused by excessive load during direct charging. Therefore, in order to slow down the charging speed of the oscillator 230, 10 kHz is used as the fundamental wave to control the intensity of the vibration and pounding of the oscillator 230, while using the alternating waveform of 3 - 15 Hz positive and negative controls the speed of the vibration and pounding of the oscillator 230. Further, by controlling the interval time of the 3 - 15 Hz alternating waveform, the frequency of the vibration and pounding of the oscillator 230 can be controlled.

[0103] In some embodiments, the fundamental wave of the H-bridge drive circuit 220 is adjusted according to the rhythm configuration information of the target file, and a sleep-promoting signal is correspondingly generated to control the vibration of the oscillator 230. Specifically, the sleep-promoting signal includes: a sleep-promoting amplitude and a sleep-promoting frequency. The sleep-promoting amplitude is used to control the vibration amplitude of the oscillator 230, that is, to control the first frequency of the fundamental wave of the H-bridge drive circuit 220, thereby controlling the intensity of the vibration and pounding of the oscillator 230; the sleep-promoting frequency is used to control the vibration frequency of the oscillator 230, that is, to control the second frequency of the fundamental wave of the H-bridge drive circuit 220, thereby controlling the speed of the vibration and pounding of the oscillator 230. For example, the rhythm configuration files corresponding to different types of target files are also different. Adjusting the fundamental wave of the H-bridge drive circuit 220 according to different rhythm configuration information may be (5 kHz, 5 - 10 Hz), or may be (15 kHz, 5 - 20 Hz), etc.

[0104] In some embodiments, for the two scenario types of the user of the sleep-promoting device 200 during lunch breaks on weekdays and rest at home on weekends, if the selected target files are different, the sleep-promoting signals generated according to different target files are different. For example, the sleep-promoting target file for the lunch break on weekdays is relatively gentle, and the corresponding sleep-promoting amplitude is also smaller, and the sleep-promoting frequency is lower, allowing the user to fall asleep according to the gentle rhythm of the target file. When resting at home on weekends, if the user is relatively relaxed and wants to enjoy the massage, generally the selected sleep-promoting target file has a relatively lively rhythm, the corresponding sleep-promoting amplitude is larger, controlling a larger vibration amplitude of the oscillator, allowing the user to fully feel the massage of the acupoints, and the sleep-promoting frequency will also be fast and slow according to the rhythm of the target file, allowing the user to relax the body and mind, thereby achieving the effect of massage and promoting sleep.

[0105] During the process of the above-mentioned processor 210 controlling the sleep aid device 200, first, it confirms and obtains the target file for sleep aid, and adjusts the fundamental wave of the H-bridge drive circuit 220 in the sleep aid device 200 according to the rhythm configuration information corresponding to the target file, so as to control the amplitude and frequency of the vibration of the oscillator 230 to assist sleep. Thus, by setting the H-bridge drive circuit 220, the hardware cost is effectively reduced while reasonably setting the sizes of the respective oscillators 230 corresponding to the human body acupoints to provide targeted single-point acupoint massage for sleep aid, enabling the user to obtain a better sleep aid experience.

[0106] Referring to Figure 4 As shown, in some embodiments of the present application, the rhythm configuration information includes rhythm peak information and rhythm frequency information. When the processor 210 executes the above-mentioned step S103, it may also execute steps S201 to S203 including but not limited to the following.

[0107] Step S201, adjust the first frequency of the fundamental wave of the H-bridge drive circuit 220 according to the rhythm peak information in the rhythm configuration information.

[0108] It should be understood that the rhythm peak information refers to the highest volume of the corresponding audio in the sleep aid file. In some embodiments, the first frequency of the fundamental wave of the H-bridge drive circuit 220 is adjusted according to the rhythm peak information. Specifically, the original first frequency in the fundamental wave is 10 kHz. When the rhythm peak information is higher than the original first frequency, the adjusted new first frequency is higher than 10 kHz, such as 15 kHz, 20 kHz. When the rhythm peak information is lower than the original first frequency, the adjusted new first frequency is lower than 10 kHz, such as 5 kHz, 8 kHz, etc. Thus, the amplitude of the vibration of the oscillator 230 is adjusted. When the high pitch of the sleep aid file is played, the amplitude of the vibration of the oscillator 230 correspondingly increases. When the low pitch of the sleep aid file is played, the amplitude of the vibration of the oscillator 230 correspondingly decreases, so as to perform sleep aid massage on the user according to the rhythm peak information of the sleep aid file.

[0109] Step S202, adjust the second frequency of the fundamental wave of the H-bridge drive circuit 220 according to the rhythm frequency information in the rhythm configuration information.

[0110] It can be understood that the rhythm frequency information refers to the number of vibrations per second of the corresponding audio in the sleep aid file. In some embodiments, the second frequency of the fundamental wave of the H-bridge drive circuit 220 is adjusted according to the rhythm frequency information. Specifically, the original second frequency in the fundamental wave is an alternating waveform of 3 - 15 Hz. According to the frequencies in different time periods of the audio in the sleep aid file, the corresponding second frequency is adjusted, so as to adjust the alternating waveform of different frequencies to generate a changing magnetic field, and push the oscillator 230 to vibrate up and down at the corresponding frequency, realizing the synchronous massage sleep aid effect of the vibration of the oscillator 230 and the audio of the sleep aid file.

[0111] Step S203: Generate a sleep aid signal based on the adjusted first frequency and the adjusted second frequency.

[0112] In some embodiments, the sleep aid device 200 aids the user through the sleep aid signal. Specifically, the sleep aid signal includes a sleep aid amplitude and a sleep aid frequency. The sleep aid amplitude corresponding to the above-mentioned first frequency, adjusting the first frequency means adjusting the sleep aid amplitude, while the second frequency corresponds to the sleep aid frequency, adjusting the second frequency means adjusting the sleep aid frequency. Therefore, by adjusting the first frequency and the second frequency of the fundamental wave of the H-bridge drive circuit 220 according to the rhythm configuration information, a sleep aid signal related to the sleep aid file can be generated correspondingly.

[0113] Adjust the fundamental wave of the H-bridge drive circuit 220 in the sleep aid device 200 according to the obtained rhythm configuration information of the target file, so as to drive the oscillator 230 to vibrate and beat according to the audio rhythm of the target file, realizing synchronous somatosensory sleep aid for the user while feeling the music.

[0114] Refer to Figure 5 As shown, in some embodiments of the present application, the above-mentioned step S201 may further include, but is not limited to, the following steps S301 to S302.

[0115] Step S301: Generate first duty cycle information according to the rhythm peak information.

[0116] In some embodiments, the first duty cycle information represents the time parameter information for the oscillator 230 of the H-bridge drive circuit 220 to be energized within one cycle, which changes with the rhythm peak information of the target file and is a numerical information. It can be understood that the larger the rhythm peak information, the larger the first duty cycle information, representing that the time ratio of energizing the oscillator 230 in this cycle is larger, so that the vibration amplitude of the oscillator 230 is larger, and the smaller the rhythm peak information, the smaller the first duty cycle information, representing that the time ratio of energizing the oscillator 230 in this cycle is smaller, so that the vibration amplitude of the oscillator 230 is smaller. Refer to Figure 6 As shown, the distance between the dotted lines represents one cycle. For example, the fundamental wave first frequency of the H-bridge drive circuit 220 is 10 kHz. From this waveform diagram, it can be seen that the first duty cycle information in the first cycle is relatively smaller than the first duty cycle information in the second cycle. Therefore, the rhythm peak information in the first cycle is relatively smaller than the rhythm peak information in the second cycle, so that the vibration amplitude of the H-bridge drive circuit 220 driving the oscillator 230 changes according to the specific rhythm peak information. Specifically, a preset threshold of the rhythm peak information and the maximum value of the vibration amplitude of the oscillator 230 within one cycle can be set. The maximum value of the vibration amplitude of the oscillator 230 can be set by the user through the terminal device 100, or the sleep aid device 200 selects the maximum value within the comfortable range of the vibration amplitude. The present application does not limit this.

[0117] It should be understood that when the rhythm peak information reaches the preset threshold, the corresponding first duty cycle information can be set to 100%. When the rhythm peak information does not reach the preset threshold, the corresponding first duty cycle information is calculated according to the proportion, so that the charging time of the oscillator 230 in each cycle can change with the rhythm peak information, which helps to improve the somatosensory sleep aid effect on the user.

[0118] Step S302, adjust the duty cycle of the signal in the first frequency signal segment of the fundamental wave of the H-bridge drive circuit 220.

[0119] In some embodiments, according to the first duty cycle information, adjusting the duty cycle of the signal in the first frequency signal segment of the fundamental wave of the H-bridge drive circuit 220, it can be understood that the larger the first duty cycle information, the larger the duty cycle of the signal in the first frequency signal segment, indicating that the proportion of the charging time of the oscillator 230 in the cycle is larger. Conversely, the smaller the first duty cycle information, the smaller the duty cycle of the signal in the first frequency signal segment, indicating that the proportion of the charging time of the oscillator 230 in the cycle is smaller. Specifically, the longer the charging time of the oscillator 230, the more sufficient its energy, so the amplitude of the vibration and pounding force is also larger. Correspondingly, the shorter the charging time of the oscillator 230, the weaker its energy, so the amplitude of the vibration and pounding force is also smaller.

[0120] By generating the first duty cycle information corresponding to the rhythm peak information in different cycles of the target file, adjusting the duty cycle of the signal in the first frequency signal segment of the fundamental wave of each H-bridge drive circuit 220 in the sleep aid device 200, and then controlling the vibration and pounding amplitude of the oscillator 230 to change with the rhythm peak information of the target file. For example, when the target file plays a higher pitch, the vibration and pounding amplitude of the oscillator 230 is also larger, and when the target file plays a lower pitch, the vibration and pounding amplitude of the oscillator 230 also decreases accordingly, so that the user can feel the audio and experience massage-assisted sleep along with the rhythm, which is beneficial to improving the sleep aid effect of the sleep aid device 200.

[0121] Refer to Figure 7 As shown, in some embodiments of the present application, the above step S202 may further include but is not limited to the following steps S401 to S402.

[0122] Step S401, generate the second duty cycle information according to the rhythm frequency information.

[0123] In some embodiments, the second duty cycle information represents the frequency parameter information of the oscillator 230 of the H-bridge drive circuit 220 vibrating within one cycle, which changes with the rhythm frequency information of the target file. It can be understood that the larger the rhythm frequency information is, the larger the second duty cycle information is, and the smaller the rhythm frequency information is, the smaller the second duty cycle information is. Specifically, a preset threshold of the rhythm frequency information and the maximum value of the vibration frequency of the oscillator 230 within one cycle can be set. The maximum value of the vibration frequency of the oscillator 230 can be set by the user through the terminal device 100, or the sleep aid device 200 can select the maximum value within the comfortable range of the vibration frequency. This embodiment does not limit this.

[0124] It should be understood that when the rhythm frequency information reaches the preset threshold, the corresponding second duty cycle information is 100%, and when the rhythm frequency information does not reach the preset threshold, the corresponding second duty cycle information is calculated according to the ratio, so that the vibration frequency of the oscillator 230 within each cycle changes with the rhythm frequency information of the target file.

[0125] Step S402, adjust the second frequency of the fundamental wave of the H-bridge drive circuit 220.

[0126] In some embodiments, according to the second duty cycle information, the second frequency of the fundamental wave of the H-bridge drive circuit 220 is correspondingly adjusted. It can be understood that the larger the second duty cycle information is, the faster the alternating waveform of the second frequency changes, and the higher the vibration frequency of the oscillator 230 within one cycle is. On the contrary, the smaller the second duty cycle information is, the slower the alternating waveform of the second frequency changes, and the lower the vibration frequency of the oscillator 230 within one cycle is. Specifically, as shown in Figure 8 shown, the distance between the dotted lines represents one cycle. For example, the second frequency of the fundamental wave of the H-bridge drive circuit 220 is 3 - 15 Hz, where Figure 8 the upper part represents the second duty cycle information generated according to the rhythm frequency information, and the lower part represents the waveform diagram of the second frequency of the fundamental wave corresponding to the second duty cycle information. It can be seen from the figure that the second duty cycle information in the first cycle is relatively smaller than that in the second cycle. Therefore, the rhythm frequency information in the first cycle is relatively smaller than that in the second cycle, so that the vibration frequency of the H-bridge drive circuit 220 driving the oscillator 230 changes according to the specific rhythm frequency information. Specifically, the faster the waveform change of the second frequency alternation is, the faster the alternating magnetic field is generated, and thus the higher the vibration frequency of the oscillator 230 is driven. Therefore, the number of times of the vibration and hammering force is also more. Correspondingly, the slower the waveform change of the second frequency alternation is, the slower the alternating magnetic field is generated, and thus the lower the vibration frequency of the oscillator 230 is driven. Therefore, the number of times of the vibration and hammering force is also less.

[0127] By generating second duty cycle information corresponding to the rhythm frequency information in different cycles of the target file, adjusting the second frequency of the fundamental wave of each H-bridge drive circuit 220 in the sleep aid device 200, and further controlling the vibration and hammering frequency of the oscillator 230 to change with the rhythm frequency information of the target file. When the target file plays at a higher frequency, the number of vibration and hammering times of the oscillator 230 is also more, and when the target file plays at a lower frequency, the vibration and hammering frequency of the oscillator 230 also decreases accordingly. Thus, while the user feels the audio, they can experience massage and sleep aid along with the rhythm, which is beneficial to improving the sleep aid effect of the sleep aid device 200.

[0128] Refer to Figure 9 As shown, in some embodiments of the present application, before the above step S102, it may further include but is not limited to the following steps S501 to S503.

[0129] Step S501, construct a preset file database including multiple sleep aid files.

[0130] In some embodiments, construct a preset file database in the sleep aid device 200. The preset file database includes multiple sleep aid files. It can be understood that the user can perform operations such as deleting and favoriting the sleep aid files in the preset file database through the control terminal device 100 or the controller of the sleep aid device 200.

[0131] In some embodiments, for different scenario types, multiple preset file databases can be constructed to store the sleep aid files corresponding to the scenarios, or a preset file database can be constructed to store the sleep aid files of different scenarios in a preset order or preset classification. For example, the scenario of home rest is the most commonly used, so the sleep aid files of the home sleep aid type are stored first, which is convenient for searching and improving the user experience. The present application does not limit this.

[0132] Step S502, preprocess multiple sleep aid files to obtain corresponding rhythm configuration information.

[0133] In some embodiments, perform data preprocessing on each sleep aid file in the preset file database respectively to obtain corresponding rhythm configuration information. It can be understood that through the rhythm configuration information of the sleep aid file, and then control each H-bridge drive circuit 220 in the sleep aid device 200 to drive the oscillator 230 to vibrate and hammer, so as to realize the synchronization effect of the massage effect and the sleep aid audio in the somatosensory sleep aid. It is necessary to analyze and extract the rhythm configuration information from the sleep aid file. Specifically, the audio of the sleep aid file can be preprocessed such as sampling, quantization, and noise reduction. The present application does not limit this.

[0134] Step S503, construct a preset rhythm library.

[0135] In some embodiments, a preset rhythm library is constructed based on different sleep aid files and their corresponding rhythm configuration information. It can be understood that when the user selects a target file for sleep aid, the sleep aid device 200 locates the corresponding rhythm configuration information in the preset rhythm library according to the target file, and thus starts the sleep aid work.

[0136] It should be understood that the preset file database is associated with the sleep aid files and the preset rhythm library. Specifically, when the user performs a deletion operation on one of the sleep aid files, the relevant information data of the preset file data and the preset rhythm library regarding the deleted sleep aid file are also deleted accordingly, maintaining dynamic updates. This application does not limit this.

[0137] By constructing a preset file database for storing sleep aid files, performing data preprocessing on each sleep aid file to obtain the corresponding rhythm configuration information, and then storing the sleep aid files and the corresponding rhythm configuration information through constructing a preset rhythm library, it helps the sleep aid device 200 quickly locate and search during the sleep aid work and perform sleep aid according to the target file, facilitating the management and operation of the sleep aid files, and improving efficiency and the user experience.

[0138] Referring to Figure 10 As shown, in some embodiments of the present application, the above step S502 may include but is not limited to the following steps S601 to S603.

[0139] Step S601, performing filtering processing on the sleep aid file to obtain envelope information.

[0140] In some embodiments, referring to Figure 9 the audio envelope diagram shown, the upper figure is the original voice waveform diagram of the sleep aid file when the sleep aid device 200 plays the sleep aid file. By performing filtering operations on it, such as average sliding filtering, the corresponding short-time energy in the lower figure is obtained, thereby obtaining the envelope information diagram. It can be understood that during the somatosensory sleep aid process, it is not necessary to control the oscillator 230 with the fine granularity of the original voice waveform diagram. Controlling the vibration and hammering rhythm of the oscillator 230 with the envelope information obtained through filtering operations can also achieve the same somatosensory sleep aid effect. Specifically, referring to Figure 11 the data corresponding to the horizontal axis coordinate in, it can be seen that the voice waveform in the upper figure and the short-time energy in the lower figure increase or decrease correspondingly. From this, it can be known that the envelope information can approximately replace the voice waveform for controlling the vibration and hammering rhythm of the oscillator 230.

[0141] In some embodiments, before performing filtering processing on the sleep aid file, the audio signal of the sleep aid file is amplified and enhanced proportionally or other preprocessing is performed, which can be implemented by hardware or software. This application does not limit this.

[0142] Step S602: Perform signal sampling on the envelope information to obtain sampling information.

[0143] In some embodiments, referring to Figure 12 the audio sampling diagram shown, for the envelope information corresponding to Figure 9 a certain section of audio, sampling information is obtained by performing signal sampling on the envelope information. Specifically, short-time energy corresponding to the audio envelope information is obtained within a preset time to obtain the sampling information. For example, Figure 10 each square column in represents the short-time energy at each moment. The heights of different square columns are different, and the distances between the square columns also vary with the different envelope information of the sleep aid file. Thus, by sampling the envelope information within a preset time, corresponding sampling information can be obtained.

[0144] Step S603: Obtain rhythm configuration information based on the sampling information.

[0145] In some embodiments, referring to Figure 12 the audio sampling diagram shown, the sampling information is reflected by the different heights of each square column and the distances between the square columns, thereby obtaining the rhythm configuration information. Specifically, Figure 10 the square columns with different heights in represent the amplitude of the vibration of the vibrator 230. The higher the square column, the greater the amplitude of the vibration of the vibrator 230, and the shorter the square column, the smaller the amplitude of the vibration of the vibrator 230. The distance between different square columns represents the frequency of the vibration of the vibrator 230. The closer the square columns are, the higher the frequency of the vibration of the vibrator 230, and the sparser the square columns are, the lower the frequency of the vibration of the vibrator 230. Therefore, the corresponding rhythm configuration information can be obtained based on the sampling information of the sleep aid file envelope information, thereby controlling the amplitude and frequency of the vibration of the vibrator 230 to achieve physical sensation sleep aid.

[0146] By uniformly performing data preprocessing on different sleep aid files, first performing filtering processing to obtain the corresponding envelope information, then performing signal sampling on the envelope information to obtain the corresponding sampling information, and further obtaining the rhythm configuration information corresponding to the sleep aid file according to the short-time energy in the specific sampling information. This process does not require controlling the vibrator 230 through the original voice waveform of the sleep aid file, effectively reducing the requirements for the processing chip of the sleep aid device 200, reducing the hardware cost while achieving the same physical sensation sleep aid effect.

[0147] Referring to Figure 13 shown, in some embodiments of the present application, the above step S602 may include but is not limited to the following steps S701 to S704.

[0148] Step S701: Traverse the envelope information according to a preset sliding window to obtain the signal energy value within each preset sliding window.

[0149] In some embodiments, the envelope information of the sleep aid file is signal-framed, and a preset sliding window is used to traverse the framed envelope information. During the traversal, the signal energy value of the audio in each preset sliding window is calculated. Specifically, the preset sliding window is a preset sliding window. During the audio feature extraction process, a sliding window is usually used to traverse the digital voice signal to extract the data therein. For example, a window with a length of 25 ms is used, and it slides 10 ms each time. If the sampling frequency of the current digital signal is 16 kHz, the 25-ms window will contain 400 sampling points, and each sampling point corresponds to a signal energy value. The present application does not specifically limit the length of the preset window, i.e., the sliding range.

[0150] Step S702, calculate the energy mean value or the energy maximum value.

[0151] In some embodiments, based on the signal energy value, the corresponding energy mean value or energy maximum value in each preset sliding window is further calculated. Specifically, the energy mean value is obtained by summing up and averaging the energy signal values corresponding to each sampling point within the preset sliding window, and the energy maximum value is obtained by comparing the energy signal values corresponding to each sampling point within the preset sliding window and taking the maximum value. It can be understood that the energy mean value can also be calculated by weighting the sampling points at different positions, and the energy maximum value can also be set as the average of some of the higher values among the sampling points as the maximum value. The present application does not limit this.

[0152] Step S703, calculate the peak value of the signal in each preset sliding window according to the calculation result or the signal energy value at the preset sampling point position.

[0153] In some embodiments, according to the energy mean value or energy maximum value or the signal energy value at the preset sampling point position within the preset sliding window, the signal peak value in each preset window is calculated. It can be understood that the energy mean value of each preset sliding window can be used as the signal peak value, or the energy maximum value of each preset sliding window can be used as the signal peak value, or the signal energy value at the preset sampling point position within the preset sliding window can be used as the signal peak value. For example, the preset sampling point is set as the midpoint / starting point / ending point of the preset sliding window, and thus the corresponding signal energy value is used as the peak value. The present application does not specifically limit this.

[0154] Step S704, obtain the sampling information according to the peak value.

[0155] In some embodiments, the sampling information is obtained according to the peak value in each preset sliding window. Referring to Figure 10 as shown, the peak value of each preset sliding window corresponds to each square column. Through the peak value information, it is convenient to obtain relevant information such as the rhythm of the sleep aid file, and thus the sampling information is formed.

[0156] By setting a preset sliding window to traverse the envelope information signal corresponding to the audio of the sleep aid file, the corresponding energy signal values are obtained, and then the energy mean or energy maximum value of each preset sliding window is calculated according to each energy signal value. According to the calculation result or the signal energy value at the preset sampling point position within the preset sliding window, it is used as the peak value of the signal within the corresponding preset sliding window, thereby obtaining the sampling information of the sleep aid file, which is convenient for obtaining the rhythm configuration information corresponding to the sleep aid file.

[0157] Refer to Figure 14 As shown, in some embodiments of the present application, the signal is specifically a square wave signal, and the above step S603 further includes but is not limited to the following steps S801 to S803.

[0158] Step S801, obtain the peak value in the square wave and the duration of each peak value.

[0159] In some embodiments, according to the square wave signal, the peak value in the square wave and the duration of each peak value can be obtained. Specifically, each square wave signal corresponds to attribute information of peak value and time. Refer to Figure 10 As shown, the square columns in the figure can represent the square wave signal, and the peak values and durations of different square wave signals are different and change with the audio of the sleep aid file.

[0160] Step S802, obtain the rhythm peak value information according to the peak value.

[0161] In some embodiments, the rhythm peak value information of the sleep aid file is determined according to the peak value in the square wave. It can be understood that the peak values in each square wave signal are different, which indicates that the pitch of the audio of the sleep aid file at different moments is different. The rhythm peak value information of the sleep aid file is determined through the peak value in the square wave.

[0162] Step S803, obtain the rhythm frequency information according to the duration of the peak value.

[0163] In some embodiments, the rhythm frequency information is obtained according to the duration of the peak value in the square wave. It can be understood that the durations of the peak values in each square wave signal are different, and thus the distances between each square wave signal are also different. The rhythm frequency information of the sleep aid file can be determined through the duration of the peak value in the square wave.

[0164] In some embodiments, the rhythm peak value information and the rhythm frequency information are stored in an array of a preset rhythm library, and the array composed of the rhythm peak value information and the rhythm frequency information at different moments of the sleep aid file generates the rhythm configuration information.

[0165] By sampling the square wave signal, the peak value in the square wave and the duration of each peak value are obtained. Then, according to the peak value, the rhythm peak value information of the sleep aid file is obtained, and according to the duration of the peak value, the rhythm frequency information of the sleep aid file is obtained, so as to obtain the rhythm configuration information of the vibration beating of the oscillator 230 corresponding to the audio of the sleep aid file, which is beneficial to improving the processing speed.

[0166] In some embodiments of the present application, the H-bridge drive circuit 220 further includes a first-direction triode group and a second-direction triode group. When the first-direction triode group is turned on, the H-bridge drive circuit 220 drives the oscillator to vibrate and beat in the first direction, such as vibrating and beating upward. When the second-direction triode group is turned on, the H-bridge drive circuit 220 drives the oscillator to vibrate and beat in the second direction, such as vibrating and beating downward. It can be understood that the first direction and the second direction are relative, so as to achieve the body-sensing sleep aid effect. By setting the H-bridge drive circuit 220 to drive the oscillator to vibrate, the sleep aid device 200 can achieve the body-sensing sleep aid without additionally setting relevant sound structures, effectively reducing the hardware cost.

[0167] Refer to Figure 15 Referring to the schematic diagram of the H-bridge drive circuit structure shown, in some embodiments of the present application, the oscillator 230 is arranged in the middle of the H-bridge drive circuit 220. The first-direction triode group includes a first triode 221 and a fourth triode 224. The collectors of the first triode 221 and the fourth triode 224 are connected to the oscillator 230. The emitters of the first triode 221 and the fourth triode 224 are connected to the power supply. The bases of the first triode 221 and the fourth triode 224 are used to receive the sleep aid signal. The second-direction triode group includes a second triode 222 and a third triode 223. The collectors of the second triode 222 and the third triode 223 are connected to the oscillator 230. The emitters of the second triode 222 and the third triode 223 are connected to the power supply. The bases of the second triode 222 and the third triode 223 are used to receive the sleep aid signal. By adjusting the fundamental wave and duty cycle of the H-bridge drive circuit 220 through the sleep aid signal, the oscillator 230 is driven to vibrate and beat according to the rhythm configuration information of the sleep aid file, so as to achieve the body-sensing sleep aid for the user.

[0168] It should be understood that to implement the H-bridge drive circuit 220 to drive the oscillator 230 to vibrate and pound, it is necessary to turn on the corresponding triodes on the diagonal. Specifically, when the first triode 221 and the fourth triode 224 are turned on, the second triode 222 and the third triode 223 need to remain cut off. At this time, the current flows from the positive pole of the power supply through the first triode 221 from left to right through the oscillator 230, and then returns to the negative pole of the power supply through the fourth triode 224. The current flowing in this direction will drive the oscillator 230 to vibrate in the first direction. Similarly, when the second triode 222 and the third triode 223 are turned on, the first triode 221 and the fourth triode 224 need to remain cut off. At this time, the current flows from the positive pole of the power supply through the second triode 222 from right to left through the oscillator 230, and then returns to the negative pole of the power supply through the third triode 223. The current flowing in this direction will drive the oscillator 230 to vibrate in the second direction.

[0169] In some embodiments of the present application, other independently controlled switching components such as MOS transistors can also be used to replace the triodes, and the present application does not make specific limitations on this.

[0170] The embodiment of the present invention also provides a control method for a sleep aid device, which is applied to the sleep aid device 200. The specific implementation manner of the control method in this embodiment is basically the same as the specific implementation manner of the above sleep aid device, and will not be described in detail here.

[0171] The sleep aid device and the control method of the sleep aid device provided by the embodiments of the present application set an oscillator and an H-bridge drive circuit in the sleep aid device. First, the processor obtains the sleep aid target file of the user of the sleep aid device, and then selects the rhythm configuration information corresponding to the target file in the preset rhythm library to adjust the fundamental wave of the H-bridge drive circuit to generate a sleep aid signal. The sleep aid signal includes a sleep aid amplitude and a sleep aid frequency, which are used to control the vibration amplitude and vibration frequency of the oscillator respectively. The first frequency duty cycle in the fundamental wave of the H-bridge drive circuit is adjusted through the rhythm peak information in the rhythm configuration information to generate the sleep aid amplitude, and the second frequency duty cycle in the fundamental wave of the H-bridge drive circuit is adjusted according to the rhythm frequency information in the rhythm configuration information to generate the sleep aid frequency, so as to control the H-bridge drive circuit to drive the oscillator to vibrate and pound according to the audio rhythm of the sleep aid target file, and control the sleep aid device to provide tactile sleep aid to the user. In the present application, by setting an H-bridge drive circuit in the sleep aid device, the drive of the oscillator can be realized to generate vibration and pounding massage, effectively reducing the hardware costs of various aspects such as the processing chip and the sound structure of the sleep aid device, and realizing the vibration and pounding massage of a single acupuncture point through the oscillator on the basis of the planar vibration feeling, effectively improving the sleep aid effect.

[0172] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separated, that is, they may be located in one place or distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0173] Those of ordinary skill in the art can understand that all or some of the steps and systems disclosed in the above methods can be implemented as software, firmware, hardware, and their appropriate combinations. Some physical components or all physical components can be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or implemented as hardware, or implemented as an integrated circuit, such as an application-specific integrated circuit. Such software can be distributed on a computer-readable medium, which can include a computer storage medium (or non-transitory medium) and a communication medium (or transitory medium). As is well known to those of ordinary skill in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information, such as computer-readable instructions, data structures, program modules, or other data. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disk (DVD) or other optical disk storage, magnetic cassette, tape, storage device storage or other magnetic storage devices, or any other medium that can be used to store the desired information and can be accessed by a computer. In addition, as is well known to those of ordinary skill in the art, a communication medium typically includes computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transmission mechanism, and can include any information delivery medium.

[0174] It should also be understood that the various embodiments provided in the embodiments of the present application can be combined arbitrarily to achieve different technical effects. The above is a specific description of the preferred embodiments of the present application, but the present application is not limited to the above embodiments. Those skilled in the art can also make various equivalent deformations or substitutions without departing from the spirit of the present application.

Claims

1. A sleep aid device, characterized in that, The sleep aid device includes: a processor, an H-bridge drive circuit, and an oscillator; The processor is configured to obtain a target file of a user and select rhythm configuration information corresponding to the target file based on a preset rhythm library; the processor is further configured to adjust a fundamental wave of the H-bridge drive circuit according to the rhythm configuration information to generate a sleep aid signal, where the sleep aid signal includes: a sleep aid amplitude and a sleep aid frequency; The H-bridge drive circuit is connected to the processor and the oscillator; the H-bridge drive circuit is configured to receive the sleep aid signal and control the oscillator to vibrate according to the sleep aid signal; the sleep aid amplitude is used to control the vibration amplitude of the oscillator, and the sleep aid frequency is used to control the vibration frequency of the oscillator; The rhythm configuration information includes: rhythm peak information and rhythm frequency information; when the processor adjusts the fundamental wave of the H-bridge drive circuit according to the rhythm configuration information to generate a sleep aid signal, it performs: Generate first duty ratio information according to the rhythm peak information, and adjust the duty ratio of the signal in a signal segment of a first frequency of the fundamental wave of the H-bridge drive circuit according to the first duty ratio information; Generate second duty ratio information according to the rhythm frequency information, and adjust a second frequency of the fundamental wave of the H-bridge drive circuit according to the second duty ratio information; Generate the sleep aid signal according to the adjusted first frequency and the adjusted second frequency, where the first frequency corresponds to the sleep aid amplitude and the second frequency corresponds to the sleep aid frequency.

2. The sleep aid device according to claim 1, characterized in that, Before the processor selects the rhythm configuration information corresponding to the target file based on the preset rhythm library, it performs: Construct a preset file database, where the preset file database includes a plurality of sleep aid files; Perform data preprocessing on the plurality of sleep aid files respectively to obtain rhythm configuration information corresponding to the plurality of sleep aid files; Construct the preset rhythm library based on the plurality of sleep aid files and the corresponding rhythm configuration information.

3. The sleep aid device according to claim 2, characterized in that, The performing data preprocessing on the sleep aid files respectively to obtain the rhythm configuration information of the sleep aid files includes: Perform filtering processing on the sleep aid file to obtain envelope information of the sleep aid file; Perform signal sampling on the envelope information to obtain sampling information of the envelope information; Obtain the rhythm configuration information of the sleep aid file based on the sampling information.

4. The sleep aid device according to claim 3, characterized in that, The performing signal sampling on the envelope information to obtain the sampling information of the envelope information includes: Traverse the envelope information according to a preset sliding window to obtain signal energy values within each preset sliding window; Calculate an energy mean value or an energy maximum value based on the signal energy values; Calculate the peak value of the signal within each preset sliding window according to the energy mean value or the energy maximum value or the signal energy value at a preset sampling point position within the preset sliding window; Obtain the sampling information according to the peak values within each preset sliding window.

5. The sleep aid device according to claim 4, characterized in that, The signal is a square wave signal; the obtaining the rhythm configuration information of the sleep aid file based on the sampling information includes: Obtain the peak values in the square wave and the duration of each peak value based on the square wave signal; Obtain the rhythm peak information according to each peak value; Obtain the rhythm frequency information according to the duration of each peak value.

6. The sleep aid device according to claim 5, characterized in that, Before filtering the sleep aid file to obtain the envelope information of the sleep aid file, it further includes: enhancing the signal of the sleep aid file.

7. The sleep aid device according to any one of claims 1 to 6, characterized in that, The H-bridge drive circuit further includes: a first-direction triode group and a second-direction triode group; If the first-direction triode group conducts, the oscillator vibrates in the first direction; If the second-direction triode group conducts, the oscillator vibrates in the second direction, and the first direction and the second direction are opposite.

8. The sleep aid device according to claim 7, characterized in that, The first-direction triode group includes: a first triode and a fourth triode. The collectors of the first triode and the fourth triode are connected to the oscillator. The emitters of the first triode and the fourth triode are connected to the power supply. The bases of the first triode and the fourth triode are used to receive the sleep aid signal.

9. The sleep aid device according to claim 7, characterized in that, The second-direction triode group includes: a second triode and a third triode. The collectors of the second triode and the third triode are connected to the oscillator. The emitters of the second triode and the third triode are connected to the power supply. The bases of the second triode and the third triode are used to receive the sleep aid signal.

10. A control method for a sleep aid device, characterized in that, Applied to the sleep aid device according to any one of claims 1 to 9, the method includes: Obtaining the target file of the user of the sleep aid device; Selecting the rhythm configuration information corresponding to the target file based on a preset rhythm library; Adjusting the fundamental wave of the H-bridge drive circuit according to the rhythm configuration information to generate a sleep aid signal to control the vibration of the oscillator. The sleep aid signal includes: a sleep aid amplitude and a sleep aid frequency. The sleep aid amplitude is used to control the vibration amplitude of the oscillator, and the sleep aid frequency is used to control the vibration frequency of the oscillator; The rhythm configuration information includes: rhythm peak information and rhythm frequency information; adjusting the fundamental wave of the H-bridge drive circuit according to the rhythm configuration information to generate a sleep aid signal includes: Generating first duty cycle information according to the rhythm peak information, and adjusting the duty cycle of the signal in the signal segment of the first frequency of the fundamental wave of the H-bridge drive circuit according to the first duty cycle information; Generating second duty cycle information according to the rhythm frequency information, and adjusting the second frequency of the fundamental wave of the H-bridge drive circuit according to the second duty cycle information; Generating the sleep aid signal according to the adjusted first frequency and the adjusted second frequency. The first frequency corresponds to the sleep aid amplitude, and the second frequency corresponds to the sleep aid frequency.

Citation Information

Patent Citations

  • Massage instrument control method, device and system, computer equipment and storage medium

    CN113616463A

  • Sleep aiding device and sleep aiding method

    CN115282432A