Sleep monitoring method and related electronic equipment

By integrating ultrasonic transmitting and receiving devices in electronic equipment, non-contact sleeping posture detection and sleep apnea monitoring are realized, which solves the problem of difficulty in effectively monitoring and preventing sleep apnea in daily family life in the existing technology, and provides convenience and A safe sleep monitoring solution.

CN114431891BActive Publication Date: 2024-10-11HUAWEI TECH CO LTD
View PDF 11 Cites 0 Cited by

Patent Information

Application Number
CN202011194226.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-10-30
Publication Date
2024-10-11
Estimated Expiration
2040-10-30

AI Technical Summary

Technical Problem

Existing technology is difficult to effectively monitor and prevent sleep apnea in daily life at home, resulting in potential health risks and hypoxemia problems, especially due to the need for multiple devices for screening and monitoring, and the lack of portable and easy-to-use solutions.

Method used

By using easily available electronic equipment, combined with ultrasonic transmitting and receiving devices, non-contact sleeping posture detection is achieved, and prompt information is output when sleep apnea is detected to remind users to adjust their sleeping posture to protect life safety. The device includes an ultrasonic transmitting device and a receiving device, which determines the sleeping position by analyzing the power of reflected ultrasonic waves and reduces energy consumption when necessary.

Benefits of technology

It realizes convenient, non-contact sleeping posture detection and sleep apnea intervention in daily family life, improves users' life safety, reduces equipment energy consumption, and is suitable for a wide range of terminal electronic devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114431891B_ABST
    Figure CN114431891B_ABST
Patent Text Reader

Abstract

A method for monitoring sleep and related electronic devices are disclosed. The method uses readily available electronic devices to detect whether a user experiences sleep apnea. When sleep apnea is detected, the electronic device emits ultrasonic waves towards the user. Based on the reflected ultrasonic waves, the user's sleeping position is determined. If the user is lying supine, the electronic device outputs a prompt message to encourage the user to adjust their sleeping position. This method enables non-contact sleep position detection by electronic devices, allowing for timely intervention and position adjustment when sleep apnea occurs, thus protecting the user's safety.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of terminal devices, and in particular to a method for monitoring sleep and related electronic devices. Background Art

[0002] Sleep apnea is a serious health hazard. Nearly 1 billion people worldwide have sleep apnea. If apnea lasts too long, it will cause low blood oxygen, which can damage the heart, brain and other organs and affect physical health. Low blood oxygen caused by sleep apnea may trigger malignant cardiovascular events, such as common nocturnal myocardial infarction and death. However, the awareness rate of sleep apnea syndrome is less than 20%, and clinical screening requires monitoring under multiple sets of equipment, which is not suitable for daily home use. Summary of the invention

[0003] The embodiments of the present application provide a method for monitoring sleep and related electronic devices. By using readily available electronic devices to detect the sleeping position of a user when sleep apnea occurs, the electronic device can detect the user's sleeping position non-contactly, and output prompt information to prompt the user to adjust the sleeping position, so as to intervene in time when the user has sleep apnea and protect the user's life safety.

[0004] In a first aspect, an embodiment of the present application provides a method for monitoring sleep, which is applied to an electronic device, wherein the electronic device includes an ultrasonic transmitting device and an ultrasonic receiving device, and the method includes: when it is detected that a user has apnea while sleeping, transmitting a first ultrasonic wave to the user by the ultrasonic transmitting device; receiving a second ultrasonic wave by the ultrasonic receiving device, wherein the second ultrasonic wave is a reflected first ultrasonic wave, and the second ultrasonic wave includes the first ultrasonic wave reflected by the user; determining the sleeping position of the user based on the total power of the first ultrasonic wave reflected by the user; and when the user's sleeping position is supine, outputting a prompt message, wherein the prompt message is used to prompt the user to adjust the sleeping position.

[0005] The method provided in the first aspect can be executed by a terminal electronic device, which is easily available, so the method is suitable for daily use. The electronic device identifies the user's sleeping posture at a certain distance from the user, realizing non-contact sleeping posture detection, and the electronic device outputs a prompt message to remind the user, and timely intervenes when the user has sleep apnea to protect the user's life safety. At the same time, the electronic device continuously monitors the user's sleep, and turns on the sleeping posture detection when it is determined that the user has apnea. Turning on this function when necessary can reduce the energy consumption of the electronic device.

[0006] In combination with the first aspect, in some embodiments, determining the sleeping position of the user based on the total power of the first ultrasonic wave reflected by the user specifically includes: when the total power of the first ultrasonic wave reflected by the user is less than a target threshold, determining that the sleeping position of the user is supine.

[0007] In combination with the first aspect, in some embodiments, when the total power of the first ultrasonic wave reflected by the user is less than a target threshold, before determining that the user's sleeping position is supine, the method further includes: determining the target threshold based on the user's height and the distance between the user and the electronic device; when the distance remains unchanged, the greater the height, the greater the target threshold; when the height remains unchanged, the greater the distance, the smaller the target threshold.

[0008] In combination with the first aspect, in some embodiments, the ultrasonic emitting device includes a plurality of transmitting array elements arranged in an array, and transmitting a first ultrasonic wave to the user through the ultrasonic emitting device includes: obtaining the distance between the electronic device and the user; calculating the length of the upper body of the user according to the height of the user; determining a beam width according to the distance, the length and the position of the transmitting array element; and transmitting a first ultrasonic wave to the user through the ultrasonic emitting device at the distance with the beam width so that the first ultrasonic wave covers the upper body of the user.

[0009] In combination with the first aspect, in some embodiments, obtaining the distance between the electronic device and the user includes: transmitting a third ultrasonic wave to the user through the ultrasonic transmitting device; receiving a fourth ultrasonic wave through the ultrasonic receiving device, wherein the fourth ultrasonic wave is the reflected third ultrasonic wave; and determining the distance based on the time difference between the third ultrasonic wave and the fourth ultrasonic wave and the propagation speed of the third ultrasonic wave.

[0010] In combination with the first aspect, in some embodiments, after receiving the second ultrasonic wave by the ultrasonic receiving device, before determining the sleeping position of the user based on the total power of the first ultrasonic wave reflected by the user, the method also includes: filtering out the power information of the first ultrasonic wave reflected by obstacles other than the user from the power information of the second ultrasonic wave to obtain the power information of the first ultrasonic wave reflected by the user, the second ultrasonic wave including the first ultrasonic wave reflected by the user and the first ultrasonic wave reflected by obstacles other than the user.

[0011] In combination with the first aspect, in some embodiments, the method further includes: when receiving indication information sent by the wearable device, detecting that the user has apnea while sleeping, the indication information is used to indicate that the user has apnea while sleeping.

[0012] In combination with the first aspect, in some embodiments, the method further includes: receiving physiological information sent by a wearable device, the physiological information including blood oxygen saturation; when it is detected that the user is in a sleeping state and the blood oxygen saturation is less than a first blood oxygen threshold, determining that the user has sleep apnea.

[0013] In combination with the first aspect, in some embodiments, the electronic device also includes an audio collection device, and the method also includes: when it is detected that the user is in a sleeping state, acquiring a first sound of the environment through the audio collection device; when the first sound does not include a breathing sound or the breathing rate of the breathing sound included in the first sound is less than a first threshold, the user has sleep apnea.

[0014] In combination with the first aspect, in some embodiments, the electronic device also includes an audio collection device, and the method also includes: acquiring a second sound of the environment through the audio collection device; when a breathing rate of a breathing sound included in the second sound is less than a second threshold, determining that the user is in a sleeping state.

[0015] In combination with the first aspect, in some embodiments, the method also includes: receiving a heart rate sent by a wearable device; when the heart rate is in a first heart rate range, determining that the user is in a sleep state, the first heart rate range being a heart rate range centered on the user's sleep baseline heart rate, and the sleep baseline heart rate being the average heart rate of the user in the sleep state.

[0016] In combination with the first aspect, in some embodiments, the outputting the prompt information includes: sending the prompt information to the wearable device, so that after the wearable device receives the prompt information, the wearable device vibrates and displays the prompt information.

[0017] In a second aspect, an embodiment of the present application provides an electronic device, comprising a processor, a memory, an ultrasonic transmitting device and an ultrasonic receiving device, wherein the processor is respectively coupled to the ultrasonic transmitting device, the ultrasonic receiving device and the one or more memories through a bus; the one or more memories are used to store computer program codes, and the computer program codes include computer instructions; the processor is used to call the computer instructions to perform the following operations: when it is detected that a user has apnea in a sleeping state, a first ultrasonic wave is transmitted to the user through the ultrasonic transmitting device; a second ultrasonic wave is received through the ultrasonic receiving device, the second ultrasonic wave is a reflected first ultrasonic wave, and the second ultrasonic wave includes the first ultrasonic wave reflected by the user; the sleeping position of the user is determined according to the total power of the first ultrasonic wave reflected by the user; when the user's sleeping position is supine, a prompt message is output, and the prompt message is used to prompt the user to adjust the sleeping position.

[0018] In combination with the second aspect, in some embodiments, the processor determines the sleeping position of the user based on the total power of the first ultrasonic wave reflected by the user, including executing: when the total power of the first ultrasonic wave reflected by the user is less than a target threshold, determining that the sleeping position of the user is supine.

[0019] In combination with the second aspect, in some embodiments, when the total power of the first ultrasonic wave reflected by the user is less than the target threshold, the processor determines that the sleeping position of the user is supine before executing: determining the target threshold based on the height of the user and the distance between the user and the electronic device; when the distance remains unchanged, the larger the height, the larger the target threshold; when the height remains unchanged, the larger the distance, the smaller the target threshold.

[0020] In combination with the second aspect, in some embodiments, the ultrasonic emitting device includes a plurality of transmitting array elements arranged in an array, and the processor executes the emission of a first ultrasonic wave to the user through the ultrasonic emitting device, including: obtaining the distance between the electronic device and the user; calculating the length of the upper body of the user according to the height of the user; determining the beam width according to the distance, the length and the position of the transmitting array element; and at the distance, emitting a first ultrasonic wave to the user through the ultrasonic emitting device with the beam width so that the first ultrasonic wave covers the upper body of the user.

[0021] In combination with the second aspect, in some embodiments, the processor executes obtaining the distance between the electronic device and the user, including: transmitting a third ultrasonic wave to the user through the ultrasonic wave transmitting device; receiving a fourth ultrasonic wave through the ultrasonic wave receiving device, wherein the fourth ultrasonic wave is the reflected third ultrasonic wave; and determining the distance based on the time difference between the third ultrasonic wave and the fourth ultrasonic wave and the propagation speed of the third ultrasonic wave.

[0022] In combination with the second aspect, in some embodiments, after receiving the second ultrasonic wave by the ultrasonic receiving device, the processor executes the following steps before determining the sleeping position of the user based on the total power of the first ultrasonic wave reflected by the user: filtering out the power information of the first ultrasonic wave reflected by obstacles other than the user from the power information of the second ultrasonic wave to obtain the power information of the first ultrasonic wave reflected by the user, wherein the second ultrasonic wave includes the first ultrasonic wave reflected by the user and the first ultrasonic wave reflected by obstacles other than the user.

[0023] In combination with the second aspect, in some embodiments, the processor also includes executing: receiving indication information sent by the wearable device through the communication module, and the indication information is used to indicate that the user has apnea in a sleeping state.

[0024] In combination with the second aspect, in some embodiments, the processor also includes executing: receiving physiological information sent by the wearable device through the communication module, the physiological information including blood oxygen saturation; when it is detected that the user is in a sleeping state and the blood oxygen saturation is less than a first blood oxygen threshold, determining that the user has sleep apnea.

[0025] In combination with the second aspect, in some embodiments, the electronic device also includes an audio collection device, and the processor also includes executing: when it is detected that the user is in a sleeping state, acquiring a first sound of the environment through the audio collection device; when the first sound does not include a breathing sound or the breathing rate of the breathing sound included in the first sound is less than a first threshold, the user has sleep apnea.

[0026] In combination with the second aspect, in some embodiments, the electronic device also includes an audio collection device, and the processor also includes executing: acquiring a second sound of the environment through the audio collection device; when the breathing rate of the breathing sound included in the second sound is less than a second threshold, determining that the user is in a sleeping state.

[0027] In combination with the second aspect, in some embodiments, the processor also includes executing: receiving the heart rate sent by the wearable device through the communication module; when the heart rate is in a first heart rate range, determining that the user is in a sleep state, the first heart rate range is a heart rate range centered on the user's sleep baseline heart rate, and the sleep baseline heart rate is the average heart rate of the user in the sleep state.

[0028] In combination with the second aspect, in some embodiments, the processor executes the output prompt information, including: sending the prompt information to the wearable device, so that after the wearable device receives the prompt information, the wearable device vibrates and displays the prompt information.

[0029] In a third aspect, an embodiment of the present application provides a computer storage medium, including computer instructions, which, when executed on an electronic device, enables the electronic device to execute the method for monitoring sleep as described in the first aspect.

[0030] It can be understood that the electronic device provided in the second aspect and the computer-readable storage medium provided in the third aspect are both used to execute the method provided in the first aspect. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method, which will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] Figure 1 is a schematic diagram of a sleep intervention system provided in an embodiment of the present application;

[0032] Figure 2A is a schematic diagram of a hardware architecture of a first electronic device provided in an embodiment of the present application;

[0033] Figure 2B is a schematic diagram of a hardware architecture of a second electronic device provided in an embodiment of the present application;

[0034] Figure 3 is a flowchart of a first method for monitoring sleep provided in an embodiment of the present application;

[0035] Figure 4 is a flow chart of a second method for monitoring sleep provided in an embodiment of the present application;

[0036] Figure 5 It is a flowchart of the third method for monitoring sleep provided in an embodiment of the present application. DETAILED DESCRIPTION

[0037] The terms used in the following embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to be used as limitations to the present application. As used in the specification and appended claims of the present application, the singular expressions "one", "a kind of", "said", "above", "the" and "this" are intended to also include plural expressions, unless there is a clear indication to the contrary in the context. It should also be understood that the term "and / or" used in the present application refers to and includes any or all possible combinations of one or more listed items.

[0038] The following first introduces a schematic diagram of a sleep intervention system provided by an embodiment of the present application, such as Figure 1 As shown, the system may include a first electronic device 11 and a second electronic device 12, wherein the first electronic device 11 may be a mobile phone, a tablet computer or the like, and the second electronic device 12 may be a wearable device such as a smart watch or a smart bracelet that can measure blood oxygen.

[0039] The first electronic device 11 may include an ultrasonic transmitting device and an ultrasonic receiving device, which may be used for transmitting and receiving ultrasonic waves so as to detect the sleeping posture of the user through ultrasonic waves.

[0040] The second electronic device 12 can be connected to the first electronic device 11 in communication, such as Bluetooth connection, WiFi connection, etc. The first electronic device 11 can also send a first instruction for instructing the second electronic device 12 to detect sleep apnea or a second instruction for obtaining physiological information, motion parameters, and sound, etc.

[0041] The second electronic device 12 can respond to the above-mentioned first instruction and detect whether the user has sleep apnea. The second electronic device 12 may include a heart rate sensor, a blood oxygen sensor, a motion sensor, etc. Among them, the heart rate sensor is used to obtain the heart rate and heart rate-related parameters, and the heart rate can be used to detect whether the user has entered a sleep state; the blood oxygen sensor can measure the user's blood oxygen saturation, and the blood oxygen saturation can be used to detect whether the user has sleep apnea; the motion sensor can obtain the user's motion information, and then identify whether the user is in a static state or a moving state. In one implementation, the second electronic device 12 can detect whether the user has sleep apnea, and further, after detecting that the user has sleep apnea or after detecting that severe sleep apnea has occurred, it sends indication information to the first electronic device 11 to indicate that severe sleep apnea has occurred.

[0042] In another implementation, the second electronic device 12 can respond to the above-mentioned second instruction and send the heart rate and heart rate-related parameters obtained by the heart rate sensor, the blood oxygen sensor to measure the user's blood oxygen saturation, the motion sensor to obtain the user's motion information, etc. in real time to the first electronic device 11, and the first electronic device 11 can identify whether the user has sleep apnea based on the above-mentioned physiological information and motion information.

[0043] After detecting that the user has sleep apnea, the first electronic device 11 can transmit a first ultrasonic wave through an ultrasonic wave transmitting device, and the first ultrasonic wave is reflected by obstacles such as the user, bed, and wall, and then received by an ultrasonic wave receiving device. The received transmitted first ultrasonic wave is referred to as the second ultrasonic wave here. Among them, the second ultrasonic wave includes the first ultrasonic wave reflected by the user and the first ultrasonic wave reflected by obstacles other than the user. Further, the first electronic device 11 can determine the sleeping position of the user based on the total power of the first ultrasonic wave reflected by the user, and when the total power is less than the target threshold, it is determined that the sleeping position of the user is supine. When the user's sleeping position is supine, vibration or voice prompts can be performed, and a voice message for instructing the second electronic device to vibrate and / or play a voice message for prompting the user to adjust the sleeping position can also be sent to the second electronic device.

[0044] The above-mentioned method of monitoring sleep determines whether the user has sleep apnea by monitoring the user's breathing status during sleep. When the user has sleep apnea, the ultrasonic wave is turned on to detect the user's sleeping position. When it is detected that the user is sleeping in a supine position, the electronic device can intervene in the user's sleep and send a prompt message to remind the user to adjust the sleeping position, so as to prompt the user to adjust the sleeping position and ensure the user's life safety.

[0045] In the embodiment of the present application, the first electronic device can be a terminal device such as a mobile phone or a tablet computer, which is an electronic device that is commonly used by the public and is suitable for the daily life of the user. When the user is in a sleeping state, the electronic device determines that the user has apnea and turns on the sleeping posture recognition. In this way, turning on this function when necessary can reduce the energy consumption of the electronic device.

[0046] The following first introduces an exemplary first electronic device 100 provided in an embodiment of the present application.

[0047] Figure 2A The schematic diagram of the hardware architecture of the first electronic device 100 is shown. The first electronic device 100 may be an electronic device such as a mobile phone, a tablet computer, or a smart speaker.

[0048] The first electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, an audio collection device 170C, an earphone interface 170D, an ultrasonic transmitting device 170E, an ultrasonic receiving device 170F, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.

[0049] It is to be understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the first electronic device 100. In other embodiments of the present application, the first electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0050] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.

[0051] The controller may be the nerve center and command center of the first electronic device 100. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.

[0052] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0053] In some embodiments, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.

[0054] The I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple groups of I2C buses. The processor 110 may be coupled to the touch sensor 180K, the charger, the flash, the camera 193, etc. through different I2C bus interfaces. For example: the processor 110 may be coupled to the touch sensor 180K through the I2C interface, so that the processor 110 communicates with the touch sensor 180K through the I2C bus interface, thereby realizing the touch function of the first electronic device 100.

[0055] The I2S interface can be used for audio communication. In some embodiments, the processor 110 can include multiple I2S buses. The processor 110 can be coupled to the audio module 170 via the I2S bus to achieve communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 can transmit an audio signal to the wireless communication module 160 via the I2S interface to achieve the function of answering a call through a Bluetooth headset.

[0056] The PCM interface can also be used for audio communication, sampling, quantizing and encoding analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 can be coupled via a PCM bus interface. In some embodiments, the audio module 170 can also transmit audio signals to the wireless communication module 160 via the PCM interface to realize the function of answering calls via a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.

[0057] The UART interface is a universal serial data bus for asynchronous communication. The bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, the UART interface is generally used to connect the processor 110 and the wireless communication module 160. For example, the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to implement the Bluetooth function. In some embodiments, the audio module 170 can transmit an audio signal to the wireless communication module 160 through the UART interface to implement the function of playing music through a Bluetooth headset.

[0058] The MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193. The MIPI interface includes a camera serial interface (CSI), a display serial interface (DSI), etc. In some embodiments, the processor 110 and the camera 193 communicate via the CSI interface to implement the shooting function of the first electronic device 100. The processor 110 and the display screen 194 communicate via the DSI interface to implement the display function of the first electronic device 100.

[0059] The GPIO interface can be configured by software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 with the camera 193, the display 194, the wireless communication module 160, the audio module 170, the sensor module 180, etc. The GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.

[0060] The USB interface 130 is an interface that complies with the USB standard specification, and specifically can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 can be used to connect a charger to charge the first electronic device 100, and can also be used to transfer data between the first electronic device 100 and a peripheral device. It can also be used to connect headphones to play audio through the headphones. The interface can also be used to connect other first electronic devices, such as AR devices, etc.

[0061] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present invention is only a schematic illustration and does not constitute a structural limitation on the first electronic device 100. In other embodiments of the present application, the first electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.

[0062] The charging management module 140 is used to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger through the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive wireless charging input through a wireless charging coil of the first electronic device 100. While the charging management module 140 is charging the battery 142, it may also power the first electronic device through the power management module 141.

[0063] The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the external memory, the display screen 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc. In some other embodiments, the power management module 141 can also be set in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device.

[0064] The wireless communication function of the first electronic device 100 can be implemented by, for example, antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor and baseband processor, etc. The above can be collectively referred to as communication modules.

[0065] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the first electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of the antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.

[0066] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G applied to the first electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.

[0067] The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 170A, a receiver 170B, etc.), or displays an image or video through a display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.

[0068] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., applied on the first electronic device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and filters it, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.

[0069] In some embodiments, the antenna 1 of the first electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the first electronic device 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology, etc. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite based augmentation system (SBAS).

[0070] The first electronic device 100 implements a display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.

[0071] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the first electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.

[0072] The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the first electronic device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.

[0073] The digital signal processor is used to process digital signals, and can process not only digital image signals but also other digital signals. For example, when the first electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.

[0074] The video codec is used to compress or decompress digital video. The first electronic device 100 may support one or more video codecs. In this way, the first electronic device 100 can play or record videos in multiple coding formats, such as moving picture experts group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.

[0075] The NPU is a neural network (NN) computing processor that quickly processes input information by drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain, and can also continuously self-learn. The NPU can realize applications such as intelligent cognition of the first electronic device 100, such as image recognition, face recognition, voice recognition, text understanding, etc.

[0076] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the first electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function, such as storing music, video and other files in the external memory card.

[0077] The internal memory 121 can be used to store computer executable program codes, which include instructions. The processor 110 executes various functional applications and data processing of the first electronic device 100 by running the instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the first electronic device 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.

[0078] The first electronic device 100 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the audio collection device 170C, the earphone interface 170D, and the application processor.

[0079] The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be arranged in the processor 110, or some functional modules of the audio module 170 can be arranged in the processor 110.

[0080] The speaker 170A, also called a "speaker", is used to convert an audio electrical signal into a sound signal. The first electronic device 100 can listen to music or listen to a hands-free call through the speaker 170A.

[0081] The receiver 170B, also called a "earpiece", is used to convert audio electrical signals into sound signals. When the first electronic device 100 receives a call or voice message, the voice can be received by placing the receiver 170B close to the human ear.

[0082] The audio collection device 170C is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can make a sound by approaching the audio collection device 170C with his mouth to input the sound signal into the audio collection device 170C. The first electronic device 100 can be provided with at least one audio collection device 170C. In other embodiments, the first electronic device 100 can be provided with two audio collection devices 170C, which can not only collect sound signals but also realize noise reduction function. In other embodiments, the first electronic device 100 can also be provided with three, four or more audio collection devices 170C to realize the collection of sound signals, noise reduction, identification of sound sources, realization of directional recording function, etc. The audio collection device 170C can be a microphone, also called "microphone" or "microphone".

[0083] The earphone interface 170D is used to connect a wired earphone and can be a USB interface 130 or a 3.5 mm open mobile terminal platform (OMTP) standard interface or a cellular telecommunications industry association of the USA (CTIA) standard interface.

[0084] The ultrasonic emitting device 170E is used to convert the electrical signal into an ultrasonic signal. In some embodiments, the ultrasonic emitting device 170E may also be a speaker 170A. In other embodiments, the ultrasonic emitting device 170E may include a plurality of transmitting array elements arranged in an array, each transmitting array element is used to emit ultrasonic waves. In a specific implementation, ultrasonic waves may be emitted by some or all of the plurality of transmitting array elements.

[0085] The ultrasonic receiving device 170F is used to convert the ultrasonic signal into an electrical signal. In some embodiments, the ultrasonic receiving device 170F may also be a microphone. In other embodiments, the ultrasonic receiving device 170F may include a plurality of receiving array elements arranged in an array, each receiving array element being used to receive ultrasonic waves. In a specific implementation, the ultrasonic wave may be received by some or all of the plurality of receiving array elements.

[0086] The pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A can be set on the display screen 194. There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. The capacitive pressure sensor can be a parallel plate including at least two conductive materials. When a force acts on the pressure sensor 180A, the capacitance between the electrodes changes. The first electronic device 100 determines the intensity of the pressure according to the change in capacitance. When a touch operation acts on the display screen 194, the first electronic device 100 detects the touch operation intensity according to the pressure sensor 180A. The first electronic device 100 can also calculate the touch position according to the detection signal of the pressure sensor 180A. In some embodiments, touch operations acting on the same touch position but with different touch operation intensities can correspond to different operation instructions. For example: when a touch operation with a touch operation intensity less than the first pressure threshold acts on the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, an instruction to create a new short message is executed.

[0087] The gyro sensor 180B can be used to determine the motion posture of the first electronic device 100. In some embodiments, the angular velocity of the first electronic device 100 around three axes (i.e., x, y, and z axes) can be determined by the gyro sensor 180B. The gyro sensor 180B can be used for anti-shake shooting. Exemplarily, when the shutter is pressed, the gyro sensor 180B detects the angle of the shake of the first electronic device 100, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to offset the shake of the first electronic device 100 through reverse movement to achieve anti-shake. The gyro sensor 180B can also be used for navigation and somatosensory game scenes.

[0088] The air pressure sensor 180C is used to measure air pressure. In some embodiments, the first electronic device 100 calculates the altitude through the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.

[0089] The magnetic sensor 180D includes a Hall sensor. The first electronic device 100 can use the magnetic sensor 180D to detect the opening and closing of the flip leather case. In some embodiments, when the first electronic device 100 is a flip phone, the first electronic device 100 can detect the opening and closing of the flip cover according to the magnetic sensor 180D. Then, according to the detected opening and closing state of the leather case or the opening and closing state of the flip cover, the flip cover automatic unlocking and other features are set.

[0090] The acceleration sensor 180E can detect the magnitude of the acceleration of the first electronic device 100 in various directions (generally three axes). When the first electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of the first electronic device, and is applied to applications such as horizontal and vertical screen switching, pedometers, etc.

[0091] The distance sensor 180F is used to measure the distance. The first electronic device 100 can measure the distance by infrared or laser. In some embodiments, in the sleeping posture recognition scenario, the first electronic device 100 can use the distance sensor 180F to measure the distance between the first electronic device and the user's body.

[0092] The proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The first electronic device 100 emits infrared light outward through the light emitting diode. The first electronic device 100 uses a photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the first electronic device 100. When insufficient reflected light is detected, the first electronic device 100 can determine that there is no object near the first electronic device 100. The first electronic device 100 can use the proximity light sensor 180G to detect that the user holds the first electronic device 100 close to the ear to talk, so as to automatically turn off the screen to save power. The proximity light sensor 180G can also be used in leather case mode and pocket mode to automatically unlock and lock the screen.

[0093] The ambient light sensor 180L is used to sense the brightness of the ambient light. The first electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness. The ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures. The ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the first electronic device 100 is in a pocket to prevent accidental touch.

[0094] The fingerprint sensor 180H is used to collect fingerprints. The first electronic device 100 can use the collected fingerprint characteristics to implement fingerprint unlocking, access application locks, fingerprint photography, fingerprint call answering, etc.

[0095] The temperature sensor 180J is used to detect temperature. In some embodiments, the first electronic device 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the first electronic device 100 reduces the performance of a processor located near the temperature sensor 180J to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold, the first electronic device 100 heats the battery 142 to avoid abnormal shutdown of the first electronic device 100 due to low temperature. In other embodiments, when the temperature is lower than another threshold, the first electronic device 100 boosts the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.

[0096] The touch sensor 180K is also called a "touch panel". The touch sensor 180K can be arranged on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called a "touch screen". The touch sensor 180K is used to detect touch operations acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194. In other embodiments, the touch sensor 180K can also be arranged on the surface of the first electronic device 100, which is different from the position of the display screen 194.

[0097] The bone conduction sensor 180M can obtain a vibration signal. In some embodiments, the bone conduction sensor 180M can obtain a vibration signal of a vibrating bone block of the vocal part of the human body. The bone conduction sensor 180M can also contact the human pulse to receive a blood pressure beat signal. In some embodiments, the bone conduction sensor 180M can also be set in an earphone and combined into a bone conduction earphone. The audio module 170 can parse out a voice signal based on the vibration signal of the vibrating bone block of the vocal part obtained by the bone conduction sensor 180M to realize a voice function. The application processor can parse the heart rate information based on the blood pressure beat signal obtained by the bone conduction sensor 180M to realize a heart rate detection function.

[0098] The key 190 includes a power key, a volume key, etc. The key 190 may be a mechanical key or a touch key. The first electronic device 100 may receive key input and generate key signal input related to user settings and function control of the first electronic device 100.

[0099] Motor 191 can generate vibration prompts. Motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. For touch operations acting on different areas of the display screen 194, motor 191 can also correspond to different vibration feedback effects. Different application scenarios (for example: time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization. In some embodiments of the present application, when the first electronic device detects that the user has apnea during sleep and the sleeping position is supine, the motor 191 can vibrate to remind the user to turn over.

[0100] Indicator 192 may be an indicator light, which may be used to indicate charging status, power changes, messages, missed calls, notifications, etc.

[0101] The SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to and separated from the first electronic device 100 by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195. The first electronic device 100 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, and the like. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the multiple cards can be the same or different. The SIM card interface 195 can also be compatible with different types of SIM cards. The SIM card interface 195 can also be compatible with external memory cards. The first electronic device 100 interacts with the network through the SIM card to implement functions such as calls and data communications. In some embodiments, the first electronic device 100 uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the first electronic device 100 and cannot be separated from the first electronic device 100.

[0102] The following describes an exemplary second electronic device 200 provided in an embodiment of the present application. The second electronic device 200 may be a wearable device such as a smart watch, a smart bracelet, or smart glasses.

[0103] See also Figure 2B The second electronic device 200 may include a processor 210, an external memory interface 220, an internal memory 221, a universal serial bus (USB) interface 230, a charging management module 240, a power management module 241, a battery 242, a display screen 250, a wireless communication module 260, an audio module 270, a sensor module 280, a button 290, a motor 291, an indicator 292, etc.

[0104] It is to be understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the second electronic device 200. In other embodiments of the present application, the second electronic device 200 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0105] The processor 210 may include one or more processing units, for example, the processor 210 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.

[0106] The external memory interface 220 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the second electronic device 200. The external memory card communicates with the processor 210 through the external memory interface 220 to implement a data storage function. For example, files such as music and videos are stored in the external memory card.

[0107] The internal memory 221 can be used to store computer executable program codes, which include instructions. The processor 210 executes various functional applications and data processing of the second electronic device 200 by running the instructions stored in the internal memory 221. The internal memory 221 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the second electronic device 200 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 221 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.

[0108] The USB interface 230 is an interface that complies with the USB standard specification, and specifically can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 230 can be used to connect a charger to charge the second electronic device 200, and can also be used to transmit data between the second electronic device 200 and a peripheral device. It can also be used to connect headphones to play audio through the headphones. The interface can also be used to connect other electronic devices, such as AR devices, etc.

[0109] The charging management module 240 is used to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 240 may receive charging input from a wired charger through the USB interface 230. In some wireless charging embodiments, the charging management module 240 may receive wireless charging input through a wireless charging coil of the second electronic device 200. While the charging management module 240 is charging the battery 242, it may also power the first electronic device through the power management module 241.

[0110] The power management module 241 is used to connect the battery 242, the charging management module 240 and the processor 210. The power management module 241 receives input from the battery 242 and / or the charging management module 240, and supplies power to the processor 210, the internal memory 221, the external memory 220, the display screen 194, the camera 193, and the wireless communication module 160. The power management module 241 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc. In some other embodiments, the power management module 241 can also be set in the processor 210. In other embodiments, the power management module 241 and the charging management module 240 can also be set in the same device.

[0111] The display screen 250 is used to display images, videos, etc. The display screen 250 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the second electronic device 200 may include 1 or N display screens 250, where N is a positive integer greater than 1.

[0112] The wireless communication module 260 is used to receive and send wireless signals, and mainly integrates the communication module of the second electronic device, and can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) network), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication technology (NFC), infrared technology (IR), etc., which are applied to the second electronic device 200. The wireless communication module 260 can be one or more devices integrating at least one communication processing module.

[0113] The second electronic device 200 can implement audio functions such as music playing and recording through the audio module 270 and the application processor.

[0114] The pressure sensor 280A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 280A can be arranged on the display screen 250. There are many types of pressure sensors 280A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. A capacitive pressure sensor can be a parallel plate including at least two conductive materials. When a force acts on the pressure sensor 280A, the capacitance between the electrodes changes. The second electronic device 200 determines the intensity of the pressure based on the change in capacitance. When a touch operation acts on the display screen 250, the second electronic device 200 detects the intensity of the touch operation based on the pressure sensor 280A. The second electronic device 200 can also calculate the position of the touch based on the detection signal of the pressure sensor 280A.

[0115] The gyro sensor 280B may be used to determine the motion posture of the second electronic device 200. In some embodiments, the angular velocity of the second electronic device 200 around three axes (ie, x, y, and z axes) may be determined by the gyro sensor 280B.

[0116] The acceleration sensor 280C can detect the magnitude of the acceleration of the second electronic device 200 in various directions (generally three axes). When the second electronic device 200 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of the first electronic device, and is applied to applications such as horizontal and vertical screen switching, pedometers, etc.

[0117] The distance sensor 280D is used to measure the distance. The second electronic device 200 can measure the distance by infrared or laser. In some embodiments, in the sleeping posture recognition scenario, the second electronic device 200 can use the distance sensor 180F to measure the distance between the first electronic device and the user's body.

[0118] The fingerprint sensor 280E is used to collect fingerprints. The second electronic device 200 can use the collected fingerprint characteristics to implement fingerprint unlocking, access application locks, fingerprint photography, fingerprint call answering, etc.

[0119] The touch sensor 280F is also called a "touch panel". The touch sensor 280F can be arranged on the display screen 250, and the touch sensor 280F and the display screen 250 form a touch screen, also called a "touch screen". The touch sensor 280F is used to detect touch operations acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 250. In other embodiments, the touch sensor 280F can also be arranged on the surface of the second electronic device 200, which is different from the position of the display screen 250.

[0120] The heart rate sensor 280G is used to detect the user's heart rate. In some embodiments, the heart rate sensor can use the principle of photoplethysmography to measure heart rate and heart rate-related parameters. The measurement principle is: the reflection of light by human skin, bones, meat, fat and other tissues is fixed; while the capillaries, arteries, veins, etc. change with the pulse volume law of the heartbeat, so the reflection of light is a fluctuating value, and the frequency of this fluctuation is the heart rate. Optionally, the heart rate sensor may include a light source that can emit light and a photodetector. The heart rate sensor detects the reflected amount of light emitted by the light source through the photodetector to obtain a PPG signal, and detects heart rate-related parameters through the PPG signal. It should be understood that the light used to detect heart rate and heart rate-related parameters can be red light, infrared light, green light, etc.

[0121] In some embodiments, the heart rate sensor 280G can be used to detect electrocardiogram (ECG) signals, and the heart rate and heart rate-related parameters can be obtained by analyzing the ECG signals. At this time, the heart rate sensor may include a group of electrodes and an ECG circuit coupled to the at least two electrodes, and a group of electrodes may include at least two electrodes. Among them, at least two electrodes are used to contact the skin of the user at different positions, for example, a group of electrodes includes three electrodes. Taking the user wearing the wearable device on the left hand as an example, electrode 1 can contact the user's right hand fingers, and electrode 2 and electrode 3 can contact the user's left wrist respectively. The ECG circuit is used to convert the electrical signals collected by a group of electrodes into ECG signals.

[0122] The blood oxygen sensor 280H may include at least one light source and at least one photoelectric detector (PD) for calculating blood oxygen saturation. The at least one light source may emit red light and infrared light, and the emitted red light and infrared light are reflected by human tissue, and at least one photodetector may receive the reflected light and convert it into a photoplethysmography (PPG) signal, respectively, wherein the received red light is converted into a red light PPG signal, and the received infrared light is converted into an infrared PPG signal. The red light PPG signal and the infrared PPG signal are used to calculate blood oxygen saturation. For example, the blood oxygen sensor includes 2 LEDs and 2 PDs, wherein one LED may emit red light, one LED may emit near-infrared light, one PD may be used to detect red light, and one PD may be used to detect near-infrared light.

[0123] The key 290 includes a power key, a volume key, etc. The key 290 may be a mechanical key or a touch key. The second electronic device 200 may receive key input and generate key signal input related to user settings and function control of the second electronic device 200.

[0124] Motor 291 can generate vibration prompts. Motor 291 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations acting on different applications can correspond to different vibration feedback effects. For touch operations acting on different areas of the display screen 250, motor 291 can also correspond to different vibration feedback effects. Different application scenarios (for example: time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization. In some embodiments of the present application, when the first electronic device detects that the user has apnea during sleep and the sleeping position is supine, the motor 291 can vibrate to remind the user to turn over.

[0125] Indicator 292 may be an indicator light, which may be used to indicate charging status, power changes, messages, missed calls, notifications, etc.

[0126] (I) Please refer to Figure 3 , Figure 3 A flowchart of a sleep monitoring method provided in this embodiment. The method can be performed by the above Figure 1 or Figure 2A The first electronic device shown is executed, or the above Figure 1 It should be understood that Figure 3 As shown, the method may include but is not limited to the following steps:

[0127] S02: The first electronic device monitors whether the user is in a sleeping state.

[0128] In one implementation, Figure 2A As shown, the first electronic device 100 includes an audio acquisition device, which may be a microphone. The first electronic device acquires a second sound of the environment through the audio acquisition device. The second sound includes the breathing sound of the user, and the first electronic device extracts the breathing rate of the user based on the breathing sound. When the breathing rate is less than the second threshold, it determines that the user is in a sleeping state, and further, step S04 may be executed. On the contrary, when the breathing rate is not less than the second threshold, the first electronic device determines that the user is not in a sleeping state, and may return to execute S02. Among them, the second threshold may be the average value of the breathing rate of the user when sleeping.

[0129] In another implementation, the first electronic device may receive indication information sent by the second electronic device to indicate whether the user is in a sleep state; and then, identify whether the user is in a sleep state based on the indication information.

[0130] In another implementation, the first electronic device may receive physiological information sent in real time by the second electronic device, and then detect whether the user is in a sleeping state based on the physiological information. The physiological information may include a PPG signal, a heart rate, and the like.

[0131] S04. The first electronic device detects whether the user has sleep apnea.

[0132] In one implementation, when the first electronic device detects that the user is in a sleeping state, the first electronic device continuously acquires the first sound of the environment through the audio acquisition device. When the first sound does not include breathing sounds, or when the breathing rate of the breathing sounds included in the first sound is less than the first threshold, the first electronic device determines that the user has sleep apnea, and further, step S06 can be executed. Among them, the first threshold is less than the above-mentioned second threshold. Conversely, the first sound includes breathing sounds, and the breathing rate is not less than the first threshold, the first electronic device determines that the user does not have sleep apnea, and further, it can return to execute step S02. In some embodiments, when the first electronic device determines that the user does not have sleep apnea, it can also return to execute S04.

[0133] In another implementation, the first electronic device may receive indication information sent by the second electronic device to indicate whether sleep apnea occurs; and then identify whether sleep apnea occurs in the user based on the indication information.

[0134] In another implementation, the first electronic device may receive physiological information and motion parameters sent in real time by the second electronic device, and then detect whether the user has sleep apnea based on one or more of the physiological information and motion parameters. The physiological information may include PPG signals, blood oxygen saturation, etc.

[0135] It should be understood that the first electronic device may also combine the above-mentioned physiological information, motion parameters, the first sound, etc. to jointly detect whether the user has sleep apnea.

[0136] S06. The first electronic device transmits a first ultrasonic wave to the user through an ultrasonic wave generating device.

[0137] The first electronic device includes an ultrasonic transmitting device and an ultrasonic receiving device. The ultrasonic transmitting device includes a plurality of transmitting array elements arranged in an array. The arrangement of the transmitting array elements can affect the beam width of the transmitted ultrasonic wave. In an embodiment of the present application, the ultrasonic transmitting device transmits a first ultrasonic wave to the upper body of the user, and determines the sleeping position of the user by analyzing the first ultrasonic wave reflected by the upper body of the user. Therefore, it is necessary to determine the beam width of the first ultrasonic wave at a distance between the first electronic device and the user so that the first ultrasonic wave can cover the upper body of the user. The beam width of the first ultrasonic wave can be determined by the arrangement of the transmitting array elements, the distance between the first electronic device and the user, and the length of the upper body of the user.

[0138] The ultrasonic transmitting device may be Figure 2A The speaker 170A shown in FIG. 1 , the ultrasonic receiving device may be as follows Figure 2AThe audio collection device 170C shown in FIG. 1 may be a microphone.

[0139] In a specific implementation, S06 may include but is not limited to the following steps:

[0140] S061. The first electronic device obtains the distance between the first electronic device and the user.

[0141] In one implementation, the distance measurement method between the first electronic device and the user may be implemented by ultrasonic distance measurement. Specifically, S061 may include but is not limited to the following steps:

[0142] A. The first electronic device transmits a third ultrasonic wave to the user through the ultrasonic wave transmitting device.

[0143] B. The first electronic device receives a fourth ultrasonic wave through an ultrasonic receiving device, where the fourth ultrasonic wave is the reflected third ultrasonic wave.

[0144] C. Determine the distance between the first electronic device and the user according to the time difference between the third ultrasonic wave and the fourth ultrasonic wave and the propagation speed of the third ultrasonic wave.

[0145] It can be understood that in the embodiment of the present application, the first electronic device is placed on an object at the same height as the user when he is lying on his back, and the third ultrasonic wave emitted by the first electronic device through the ultrasonic transmitting device propagates in a straight line. The third ultrasonic wave may reach different positions on the user's body. The distances measured at different positions are within a certain numerical range, and the beam width of the first ultrasonic wave determined within the numerical range is the same.

[0146] In other embodiments, the distance between the first electronic device and the user can also be determined by Figure 2A The distance sensor 180F in is used for measurement.

[0147] S062. The first electronic device calculates the length of the user's upper body according to the user's height.

[0148] S063. The first electronic device determines the beam width according to the distance obtained in S061, the length of the user's upper body and the position of the transmitting array.

[0149] S064. At the distance, the first ultrasonic wave is emitted to the user with the beam width by the ultrasonic wave emitting device, so that the first ultrasonic wave covers the upper body of the user.

[0150] It should be understood that the process of determining the beam width is the process of determining the transmitting array element used to transmit the first ultrasonic wave in the ultrasonic wave transmitting device and determining the radiation angle of the first ultrasonic wave.

[0151] S08. The first electronic device receives the second ultrasonic wave through the ultrasonic wave receiving device.

[0152] The first electronic device receives a second ultrasonic wave through an ultrasonic receiving device, the second ultrasonic wave being the reflected first ultrasonic wave, and the second ultrasonic wave including the first ultrasonic wave reflected by the user, which is the first ultrasonic wave reflected by the upper body of the user.

[0153] S10 , filtering out the power information of the first ultrasonic wave reflected by obstacles other than the user from the power information of the second ultrasonic wave, and obtaining the power information of the first ultrasonic wave reflected by the user.

[0154] After the first electronic device receives the second ultrasonic wave, the distance between the obstacle and the first electronic device can be determined based on the time delay between the transmitted first ultrasonic wave and the received second ultrasonic wave. Furthermore, the first electronic device can filter out the power information of the first ultrasonic wave reflected by obstacles other than the user from the power information of the second ultrasonic wave according to the distance range between the user and the first electronic device, and obtain the power information of the first ultrasonic wave reflected by the user.

[0155] It should be understood that the power information is the power spectrum.

[0156] S12. The first electronic device detects whether the user's sleeping position is supine based on the total power of the first ultrasonic wave reflected by the user.

[0157] The first electronic device calculates the total power of the first ultrasonic wave reflected by the user by obtaining the power information of the first ultrasonic wave reflected by the user. The total power is the sum of the powers of the first ultrasonic wave reflected by all points of the upper body of the user.

[0158] When the total power of the first ultrasonic wave reflected by the user is less than the target threshold, the first electronic device determines that the user's sleeping posture is supine, and the first electronic device performs the following step S14. When the total power of the first ultrasonic wave reflected by the user is not less than the target threshold, it is determined that the user's sleeping posture is not supine, and the first electronic device may return to perform the above step S02 to detect whether the user is in a sleeping state. In some embodiments, when the first electronic device determines that the user's sleeping posture is not supine, it may return to perform the above step S04.

[0159] The first electronic device may determine the target threshold according to the height of the user and the distance between the user and the first electronic device. When the distance remains unchanged, the greater the height, the greater the target threshold; when the height remains unchanged, the greater the distance, the smaller the target threshold.

[0160] S14: The first electronic device outputs prompt information.

[0161] When the user's sleeping position is supine, the first electronic device outputs a prompt message, where the prompt message is used to prompt the user to adjust the sleeping position. The prompt message may be a vibration, a sound, etc., which is not limited in the embodiment of the present application.

[0162] After executing S14, the first electronic device may return to S02 to continuously monitor the user's sleep.

[0163] Above Figure 3 The method shown can be performed by an easily available electronic device and is suitable for daily use. The electronic device identifies the user's sleeping posture at a certain distance from the user, realizing non-contact sleeping posture detection, and the electronic device outputs a prompt message to remind the user that intervention in the user's sleep apnea has been achieved. At the same time, the electronic device continuously monitors the user's sleep, and turns on sleeping posture detection when it is determined that the user has apnea. Turning on this function when necessary can reduce the energy consumption of the electronic device.

[0164] (ii) Please refer to Figure 4 , Figure 4 This is a flow chart of the second method for monitoring sleep provided in this embodiment. Figure 2A The first electronic device is shown with Figure 2B The second electronic device shown in the figure is executed, and the hardware architecture of the first electronic device can be the above Figure 2A The hardware architecture of the second electronic device may be as shown in Figure 2B It should be understood that in Figure 4 As shown, the method may include but is not limited to the following steps:

[0165] S200: A first electronic device and a second electronic device establish a communication connection via a wireless communication module.

[0166] S202: The second electronic device detects whether the user is in a sleeping state.

[0167] In some embodiments, the second electronic device may collect the user's heart rate through a heart rate sensor, and identify whether the user is in a sleeping state based on the heart rate.

[0168] The second electronic device includes Figure 2B The heart rate sensor shown in the figure is used to obtain the user's heart rate. For details, please refer to the above Figure 2B The relevant description is not repeated here. When the collected heart rate is within the first heart rate range, the second electronic device determines that the user is in a sleeping state, and further, step S204 can be executed. When the collected heart rate is not within the first heart rate range, the second electronic device returns to execute step S202.

[0169] The first heart rate range is a heart rate range centered on the user's sleep reference heart rate, which can be expressed as "T±Δa". T is the sleep reference heart rate, which can be the average heart rate of the user in the sleep state, reflecting the user's basic heart rate level during sleep; Δa is the range of change of the user's heart rate in the sleep state based on the average heart rate.

[0170] In other embodiments, the second electronic device may obtain the user's motion parameters through motion sensors such as acceleration sensors and gyroscopes, and then analyze the user's motion conditions based on the motion parameters, and when the user is stationary, determine that the user is in a sleeping state.

[0171] It is understandable that the second electronic device can also combine the data obtained by the heart rate sensor and the motion sensor to detect the user's sleeping state. At this time, it is determined that the user is in a sleeping state only when the collected heart rate is within the first heart rate range and the user is stationary.

[0172] S204: The second electronic device detects whether the user has sleep apnea.

[0173] The second electronic device includes Figure 2B The blood oxygen sensor shown in the figure collects the user's blood oxygen saturation through the blood oxygen sensor. For details, please refer to the above Figure 2B The relevant description of is not repeated here. When the second electronic device detects that the user is in a sleeping state and the blood oxygen saturation is less than the first blood oxygen threshold, it determines that the user has sleep apnea, and further, step S206 can be executed. On the contrary, when the second electronic device detects that the user is in a sleeping state but the blood oxygen saturation is not less than the first blood oxygen threshold, it determines that the user does not have sleep apnea, and returns to execute step S202.

[0174] S206: The second electronic device sends indication information to the first electronic device for indicating that the user has sleep apnea.

[0175] When the first electronic device receives the indication information sent by the second electronic device, it detects that the user has apnea in the sleep state, and the indication information is used to indicate that the user has apnea in the sleep state. After the first electronic device receives the indication information sent by the second electronic device, steps S208 to S212 are executed, and the details can be referred to steps S06 to S10 in the above (I), which will not be repeated here.

[0176] S214: The first electronic device detects whether the user's sleeping position is supine based on the total power of the first ultrasonic wave reflected by the user.

[0177] The total power of the first ultrasonic wave reflected by the user is calculated by obtaining the power information of the first ultrasonic wave reflected by the user. The total power is the sum of the powers of the first ultrasonic wave reflected by all points of the upper body of the user.

[0178] When the total power of the first ultrasonic wave reflected by the user is less than the target threshold, the first electronic device determines that the user's sleeping posture is supine, and further, the following step S216 can be executed. Conversely, when the total power of the first ultrasonic wave reflected by the user is not less than the target threshold, the first electronic device determines that the user's sleeping posture is not supine, and step S215 can be executed.

[0179] The first electronic device may determine the target threshold according to the height of the user and the distance between the user and the first electronic device. When the distance remains unchanged, the target threshold increases with the height; when the height remains unchanged, the target threshold decreases with the distance.

[0180] S215: Stop the sleeping posture adjustment reminder.

[0181] S216: The first electronic device sends a prompt message to the second electronic device to prompt the user to adjust the sleeping position.

[0182] S218: The second electronic device vibrates and displays the prompt information.

[0183] The second electronic device receives the prompt information sent by the first electronic device to prompt the user to adjust the sleeping posture, and the second electronic device Figure 2B The motor shown in Figure 2 vibrates and is Figure 2B The display shown in the figure shows this prompt.

[0184] After executing S218 , the second electronic device may return to S202 to continuously monitor the user's sleep.

[0185] (III) Please refer to Figure 5 , Figure 5 The third sleep monitoring method provided in this embodiment is a flow chart. Figure 2A The first electronic device is shown with Figure 2B The second electronic device shown in the figure is executed, and the hardware architecture of the first electronic device can be the above Figure 2A The hardware architecture of the second electronic device may be as shown in Figure 2B It should be understood that in Figure 5 As shown, the method may include but is not limited to the following steps:

[0186] S300: The second electronic device obtains physiological information of the user.

[0187] The second electronic device is connected by Figure 2BThe heart rate sensor, blood oxygen sensor, and electrocardiogram sensor shown in the figure collect the user's physiological information, which includes one or more of blood oxygen saturation, heart rate, heart rate related parameters and pulse information (intensity and speed), and respiratory rate. For details, please refer to the above Figure 2B The relevant description will not be repeated here.

[0188] S301: The second electronic device sends physiological information of a user to the first electronic device.

[0189] S302: The first electronic device detects whether the user is in a sleeping state.

[0190] The first electronic device receives physiological information sent by the second electronic device, and the physiological information includes the heart rate of the user. When the acquired heart rate is within the first heart rate range, the first electronic device determines that the user is in a sleeping state, and further, step S304 can be executed. On the contrary, when the acquired heart rate is not within the first heart rate range, the first electronic device can return to execute step S302.

[0191] The first heart rate range is a heart rate range centered on the user's sleep reference heart rate, which can be expressed as "T±Δa". T is the sleep reference heart rate, which can be the average heart rate of the user in the sleep state, reflecting the user's basic heart rate level during sleep; Δa is the range of change of the user's heart rate in the sleep state based on the average heart rate.

[0192] S304: The first electronic device detects whether the user has respiratory arrest.

[0193] The first electronic device receives physiological information sent by the second electronic device, and the physiological information includes the user's blood oxygen saturation. When the first electronic device detects that the user is in a sleeping state and the blood oxygen saturation is less than the first blood oxygen threshold, it determines that the user has sleep apnea, and further, step S306 can be executed. Conversely, when the first electronic device detects that the user is in a sleeping state, but the blood oxygen saturation is not less than the first blood oxygen threshold, it determines that the user does not have sleep apnea, and returns to execute step S302.

[0194] After the first electronic device detects that the user has apnea, the first electronic device executes the following Figure 5 For details of S306 to S310 shown in FIG, please refer to steps S06 to S10 in (I) above, which will not be described in detail here.

[0195] In other embodiments, the second electronic device may also collect the user's motion parameters through a motion sensor and send the motion parameters to the first electronic device. The second electronic device may comprehensively judge whether the user is in a sleeping state and whether apnea occurs based on physiological information, motion parameters, and the first sound. Specifically, when the first electronic device identifies that the user is stationary based on the motion parameters, the blood oxygen saturation is lower than the first blood oxygen threshold, and the first sound cannot detect the breathing sound, it determines that the user is in a sleeping state and apnea occurs; conversely, when the first electronic device identifies that the user is stationary based on the motion parameters, the blood oxygen saturation is not lower than the first blood oxygen threshold, and the first sound detects the breathing sound, it determines that the user is in a sleeping state, but apnea does not occur. Alternatively, when the first electronic device identifies that the user is stationary based on the motion parameters, and the blood oxygen saturation is lower than the first blood oxygen threshold or the first sound cannot detect the breathing sound, it determines that the user has apnea in the sleeping state; conversely, when the first electronic device identifies that the user is stationary based on the motion parameters, but the blood oxygen saturation is not lower than the first blood oxygen threshold and the first sound detects the breathing sound, it determines that the user has not apnea in the sleeping state. It can be understood that when the first electronic device recognizes that the user is not stationary based on the motion parameters, it can determine that the user is not in a sleeping state.

[0196] S312: The first electronic device detects whether the user's sleeping position is supine based on the total power of the first ultrasonic wave reflected by the user.

[0197] The total power of the first ultrasonic wave reflected by the user is calculated by obtaining the power information of the first ultrasonic wave reflected by the user. The total power is the sum of the powers of the first ultrasonic wave reflected by all points of the upper body of the user.

[0198] When the total power of the first ultrasonic wave reflected by the user is less than the target threshold, the first electronic device determines that the user's sleeping posture is supine, and further, the following step S314 can be executed. On the contrary, when the total power of the first ultrasonic wave reflected by the user is not less than the target threshold, it is determined that the user's sleeping posture is not supine, and the first electronic device can return to step 302 to detect whether the user is in a sleeping state.

[0199] The first electronic device may determine the target threshold according to the height of the user and the distance between the user and the first electronic device. When the distance remains unchanged, the target threshold increases with the height; when the height remains unchanged, the target threshold decreases with the distance.

[0200] S314: The first electronic device sends a prompt message to the second electronic device to prompt the user to adjust the sleeping position.

[0201] S316: The second electronic device vibrates and displays the prompt information.

[0202] The second electronic device receives the prompt information sent by the first electronic device to prompt the user to adjust the sleeping posture, and the second electronic device Figure 2B The motor shown in Figure 2 vibrates and is Figure 2B The display shown in the figure shows this prompt.

[0203] After executing S316 , the second electronic device may return to S300 to continuously monitor the user's sleep.

[0204] As used in the above embodiments, the term "when..." may be interpreted to mean "if..." or "after..." or "in response to determining..." or "in response to detecting...", depending on the context. Similarly, the phrases "upon determining..." or "if (the stated condition or event) is detected" may be interpreted to mean "if determining..." or "in response to determining..." or "upon detecting (the stated condition or event)" or "in response to detecting (the stated condition or event)", depending on the context.

[0205] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that contains one or more available media integration. The available medium can be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk), etc.

[0206] Those skilled in the art can understand that to implement all or part of the processes in the above-mentioned embodiments, the processes can be completed by computer programs to instruct related hardware, and the programs can be stored in computer-readable storage media. When the programs are executed, they can include the processes of the above-mentioned method embodiments. The aforementioned storage media include: ROM or random access memory RAM, magnetic disk or optical disk and other media that can store program codes.

Claims

1. A method for monitoring sleep, characterized in that: Applied to electronic equipment, the electronic equipment includes an ultrasonic transmitting device and an ultrasonic receiving device, and the method includes: When it is detected that the user has apnea in the sleep state, a first ultrasonic wave is emitted to the upper body of the user through the ultrasonic wave emitting device, wherein the beam width of the first ultrasonic wave is determined under the distance between the electronic device and the user, so that the first ultrasonic wave covers the upper body of the user; receiving a second ultrasonic wave by the ultrasonic receiving device, where the second ultrasonic wave is the reflected first ultrasonic wave, and the second ultrasonic wave includes the first ultrasonic wave reflected by the upper body of the user; determining a sleeping position of the user according to a total power of the first ultrasonic wave reflected by an upper body of the user; When the user's sleeping position is supine, outputting prompt information, wherein the prompt information is used to prompt the user to adjust the sleeping position; Wherein, the height at which the electronic device is placed when monitoring sleep is substantially the same as the height at which the user lies supinely; The determining the sleeping posture of the user according to the total power of the first ultrasonic wave reflected by the upper body of the user specifically includes: filtering out the power information of the first ultrasonic wave reflected by an obstacle other than the user from the power information of the second ultrasonic wave according to the distance between the user and the electronic device, to obtain the power information of the first ultrasonic wave reflected by the user, wherein the second ultrasonic wave includes the first ultrasonic wave reflected by the user and the first ultrasonic wave reflected by the obstacle other than the user; When the total power of the first ultrasound reflected by the upper body of the user is less than the target threshold, it is determined that the user's sleeping posture is supine; the total power of the first ultrasound is the sum of the powers of the first ultrasound reflected by all points of the upper body of the user.

2. The method according to claim 1, characterized in that When the total power of the first ultrasonic wave reflected by the user is less than a target threshold, before determining that the sleeping posture of the user is supine, the method further includes: The target threshold is determined according to the height of the user and the distance between the user and the electronic device; when the distance remains unchanged, the greater the height, the greater the target threshold; when the height remains unchanged, the greater the distance, the smaller the target threshold.

3. The method according to claim 1, characterized in that The ultrasonic wave transmitting device comprises a plurality of transmitting array elements arranged in an array, and the first ultrasonic wave is transmitted to the upper body of the user through the ultrasonic wave transmitting device, wherein the beam width of the first ultrasonic wave is determined under the distance between the electronic device and the user, so that the first ultrasonic wave covers the upper body of the user, including: Acquire the distance between the electronic device and the user; Calculating the length of the upper body of the user according to the height of the user; Determining a beam width according to the distance, the length, and the position of the transmitting array element; At the distance, the first ultrasonic wave is emitted to the user by the ultrasonic wave emitting device with the beam width, so that the first ultrasonic wave covers the upper body of the user.

4. The method according to claim 3, characterized in that Acquiring the distance between the electronic device and the user includes: emitting a third ultrasonic wave to the user through the ultrasonic wave emitting device; receiving a fourth ultrasonic wave by the ultrasonic receiving device, wherein the fourth ultrasonic wave is the reflected third ultrasonic wave; The distance is determined according to a time difference between the third ultrasonic wave and the fourth ultrasonic wave and a propagation speed of the third ultrasonic wave.

5. The method according to any one of claims 1 to 4, characterized in that: The method further comprises: When receiving the indication information sent by the wearable device, it is detected that the user has apnea in the sleep state, and the indication information is used to indicate that the user has apnea in the sleep state.

6. The method according to any one of claims 1 to 4, characterized in that: The method further comprises: Receiving physiological information sent by a wearable device, wherein the physiological information includes blood oxygen saturation; When it is detected that the user is in a sleeping state and the blood oxygen saturation is less than a first blood oxygen threshold, it is determined that the user has sleep apnea.

7. The method according to any one of claims 1 to 4, characterized in that: The electronic device further includes an audio acquisition device, and the method further includes: When detecting that the user is in a sleeping state, acquiring a first sound of the environment through the audio acquisition device; When the first sound does not include a breathing sound or a breathing rate of the breathing sound included in the first sound is less than a first threshold, the user has sleep apnea.

8. The method according to any one of claims 1 to 4, characterized in that: The electronic device further includes an audio acquisition device, and the method further includes: Acquiring a second sound of the environment through the audio acquisition device; When the breathing rate of the breathing sound included in the second sound is less than a second threshold, it is determined that the user is in a sleeping state.

9. The method according to any one of claims 1 to 4, characterized in that: The method further comprises: Receive heart rate sent by wearable device; When the heart rate is in a first heart rate range, it is determined that the user is in a sleeping state. The first heart rate range is a heart rate range centered on a sleep reference heart rate of the user. The sleep reference heart rate is an average heart rate of the user in a sleeping state.

10. The method according to any one of claims 1 to 4, characterized in that: The output prompt information includes: Sending prompt information to the wearable device so that after receiving the prompt information, the wearable device vibrates and displays the prompt information.

11. An electronic device, characterized in that: It includes a processor, a memory, an ultrasonic transmitting device and an ultrasonic receiving device, wherein the processor is respectively coupled to the ultrasonic transmitting device, the ultrasonic receiving device, and the one or more memories through a bus; The one or more memories are used to store computer program codes, wherein the computer program codes include computer instructions; and the processor is used to call the computer instructions to perform the following operations: When it is detected that the user has apnea in the sleep state, a first ultrasonic wave is emitted to the upper body of the user through the ultrasonic wave emitting device, wherein the beam width of the first ultrasonic wave is determined under the distance between the electronic device and the user, so that the first ultrasonic wave covers the upper body of the user; receiving a second ultrasonic wave by the ultrasonic receiving device, where the second ultrasonic wave is the reflected first ultrasonic wave, and the second ultrasonic wave includes the first ultrasonic wave reflected by the upper body of the user; determining a sleeping position of the user according to a total power of the first ultrasonic wave reflected by an upper body of the user; When the user's sleeping position is supine, outputting prompt information, wherein the prompt information is used to prompt the user to adjust the sleeping position; Wherein, the height at which the electronic device is placed when monitoring sleep is substantially the same as the height at which the user lies supinely; The processor determines the sleeping posture of the user according to the total power of the first ultrasonic wave reflected by the user, including: filtering out the power information of the first ultrasonic wave reflected by an obstacle other than the user from the power information of the second ultrasonic wave according to the distance between the user and the electronic device, to obtain the power information of the first ultrasonic wave reflected by the user, wherein the second ultrasonic wave includes the first ultrasonic wave reflected by the user and the first ultrasonic wave reflected by the obstacle other than the user; When the total power of the first ultrasonic wave reflected by the user is less than the target threshold, it is determined that the user's sleeping posture is supine; the total power of the first ultrasonic wave is the sum of the powers of the first ultrasonic wave reflected by all points of the user's upper body.

12. The electronic device according to claim 11, characterized in that: When the total power of the first ultrasonic wave reflected by the user is less than a target threshold, the processor is further configured to execute, before determining that the sleeping posture of the user is supine: The target threshold is determined according to the height of the user and the distance between the user and the electronic device; when the distance remains unchanged, the greater the height, the greater the target threshold; when the height remains unchanged, the greater the distance, the smaller the target threshold.

13. The electronic device according to claim 11, characterized in that: The ultrasonic wave transmitting device includes a plurality of transmitting array elements arranged in an array, and the processor executes transmitting a first ultrasonic wave to the upper body of the user through the ultrasonic wave transmitting device, wherein the beam width of the first ultrasonic wave is determined under the distance between the electronic device and the user, so that the first ultrasonic wave covers the upper body of the user, including executing: Acquire the distance between the electronic device and the user; Calculating the length of the upper body of the user according to the height of the user; Determining a beam width according to the distance, the length, and the position of the transmitting array element; At the distance, the first ultrasonic wave is emitted to the user by the ultrasonic wave emitting device with the beam width, so that the first ultrasonic wave covers the upper body of the user.

14. The electronic device according to claim 13, characterized in that: The processor executes acquiring the distance between the electronic device and the user, including executing: emitting a third ultrasonic wave to the user through the ultrasonic wave emitting device; receiving a fourth ultrasonic wave by the ultrasonic receiving device, wherein the fourth ultrasonic wave is the reflected third ultrasonic wave; The distance is determined according to a time difference between the third ultrasonic wave and the fourth ultrasonic wave and a propagation speed of the third ultrasonic wave.

15. The electronic device according to any one of claims 11 to 14, characterized in that: The electronic device further includes a communication module, and the processor further includes executing: The communication module receives indication information sent by the wearable device, where the indication information is used to indicate that the user has apnea during sleep.

16. The electronic device according to any one of claims 11 to 14, characterized in that: The electronic device further includes a communication module, and the processor further includes executing: Receiving physiological information sent by the wearable device through the communication module, wherein the physiological information includes blood oxygen saturation; When it is detected that the user is in a sleeping state and the blood oxygen saturation is less than a first blood oxygen threshold, it is determined that the user has sleep apnea.

17. The electronic device according to any one of claims 11 to 14, characterized in that: The electronic device further includes an audio acquisition device, and the processor further includes executing: When detecting that the user is in a sleeping state, acquiring a first sound of the environment through the audio acquisition device; When the first sound does not include a breathing sound or a breathing rate of the breathing sound included in the first sound is less than a first threshold, the user has sleep apnea.

18. The electronic device according to any one of claims 11 to 14, characterized in that: The electronic device further includes an audio acquisition device, and the processor further includes executing: Acquiring a second sound of the environment through the audio acquisition device; When the breathing rate of the breathing sound included in the second sound is less than a second threshold, it is determined that the user is in a sleeping state.

19. The electronic device according to any one of claims 11 to 14, characterized in that: The electronic device further includes a communication module, and the processor further includes executing: Receiving the heart rate sent by the wearable device through the communication module; When the heart rate is in a first heart rate range, it is determined that the user is in a sleeping state. The first heart rate range is a heart rate range centered on a sleep reference heart rate of the user. The sleep reference heart rate is an average heart rate of the user in a sleeping state.

20. The electronic device according to any one of claims 11 to 14, characterized in that: The processor executes the outputting of prompt information, including: Sending prompt information to the wearable device so that after receiving the prompt information, the wearable device vibrates and displays the prompt information.

21. A computer storage medium, characterized in that The method comprises computer instructions, and when the computer instructions are executed on an electronic device, the electronic device executes the method for monitoring sleep as claimed in any one of claims 1 to 10.

Citation Information

Patent Citations

  • Posture monitor

    CA2107718A1

  • Pillow capable of automatically adjusting height

    CN102125368A

  • Sleep-posture sensing and monitoring system

    CN103347438A

  • Systems and methods of identifying motion of a subject

    CN107205721A

  • Intelligent sleep disorder detection treatment device

    CN107692976A