Service execution method and related apparatus

By dynamically adjusting the power supply voltage of the PPG module in the wearable device, the problem of increased power consumption in the long-term service execution is solved, and the battery life is improved according to the type of service performed.

WO2025055995A1PCT designated stage expired Publication Date: 2025-03-20HUAWEI TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/118599
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-09-15
Filing Date
2024-09-12
Publication Date
2025-03-20

AI Technical Summary

Technical Problem

When performing certain services, such as sleep monitoring, wearable devices require photoplethysmography (PPG) modules to remain in operation for a long time, resulting in increased power consumption of the equipment and affecting battery life.

Method used

By introducing a business execution method in the electronic device, the power supply voltage of the PPG module is dynamically adjusted according to the type of business executed. The specific method is to provide a lower voltage when performing services requiring the use of infrared devices; and to provide a higher voltage when performing services requiring the use of green light devices.

Benefits of technology

By reducing the power consumption of PPG modules, the battery life of electronic devices is extended and the reliability of the equipment is improved in daily use.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024118599_20032025_PF_FP_ABST
    Figure CN2024118599_20032025_PF_FP_ABST
Patent Text Reader

Abstract

Disclosed in the present application are a service execution method and a related apparatus, which are applied to an electronic device. The electronic device comprises a processor, a power source controller and a photoplethysmography (PPG) module, the PPG module comprising an infrared device and a green-light device. The method comprises: when a first service is executed, controlling a power source controller to supply a first voltage to a PPG module; controlling a processor to send a first control signal to the PPG module; controlling the PPG module to turn on a green-light device in response to the first control signal; when a second service is executed, controlling the power source controller to supply a second voltage to the PPG module; controlling the processor to send a second control signal to the PPG module; and controlling the PPG module to turn on an infrared device in response to the second control signal. In this way, the power consumption can be reduced, thereby improving the endurance capability of an electronic device.
Need to check novelty before this filing date? Find Prior Art

Description

A business execution method and related device

[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on September 15, 2023, with application number 202311200761.7 and application name “A business execution method and related device”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The present application relates to the field of electronic technology, and in particular to a service execution method and related devices. Background Art

[0003] With the development of electronic technology, wearable devices are increasingly used in daily life. When users wear wearable devices, they can use photoplethysmography (PPG) modules to perform sports and health-related tasks, monitoring their health or exercise status in real time.

[0004] However, when the wearable device performs some services (such as sleep monitoring services, etc.), the PPG module needs to remain in working state for a long time, which increases the power consumption of the wearable device.

[0005] Summary of the Invention

[0006] The present application provides a service execution method and related devices, which realize providing different voltages for the photoplethysmography (PPG) module based on the executed service, reducing the power consumption of the PPG module and improving the battery life of the electronic device.

[0007] In a first aspect, the present application provides a service execution method, which is applied to an electronic device, wherein the electronic device includes a processor, a power controller and a photoplethysmography (PPG) module, and the PPG module includes an infrared device and a green light device; the method includes: when executing a first service, controlling the power controller to provide a first voltage to the PPG module; controlling the processor to send a first control signal to the PPG module; controlling the PPG module to respond to the first control signal and turn on the green light device; when executing a second service, controlling the power controller to provide a second voltage to the PPG module; controlling the processor to send a second control signal to the PPG module; controlling the PPG module to respond to the second control signal and turn on the infrared device.

[0008] In this way, when the green light device in the PPG module is not needed, a lower voltage can be provided to the PPG module, thereby reducing the power consumption of the PPG module and improving the battery life of the electronic device.

[0009] In one possible implementation, the electronic device also includes a first circuit and a second circuit; the first circuit is used to convert the voltage of the battery into a first voltage; the first circuit is also used to provide the first voltage to the power controller; the second circuit is used to convert the voltage of the battery into a second voltage; the second circuit is also used to provide the second voltage to the power controller; controlling the power controller to provide the first voltage to the PPG module specifically includes: controlling the processor to send a first signal to the power controller; controlling the power controller to respond to the first signal and provide the first voltage to the PPG module; controlling the power controller to provide the second voltage to the PPG module specifically includes: controlling the processor to send a second signal to the power controller; controlling the power controller to respond to the second signal and provide the second voltage to the PPG module.

[0010] This way, two different voltages can be supplied from one battery.

[0011] Among them, after the voltage is converted by the circuit, it can obtain the same voltage as the battery or a voltage different from the battery.

[0012] In a possible implementation, the first circuit includes a voltage boosting device, and the second circuit includes a voltage stabilizing device.

[0013] In this way, a first voltage higher than the battery voltage can be obtained through the voltage boosting device, and a second voltage the same as or close to the battery voltage can be obtained through the voltage stabilizing device.

[0014] In one possible implementation, the electronic device also includes a first battery and a second battery; the first battery is used to provide a first voltage to the power controller; the second battery is used to provide a second voltage to the power controller; controlling the power controller to provide the first voltage to the PPG module specifically includes: controlling the processor to send a first signal to the power controller; controlling the power controller to respond to the first signal and provide the first voltage to the PPG module; controlling the power controller to provide the second voltage to the PPG module specifically includes: controlling the processor to send a second signal to the power controller; controlling the power controller to respond to the second signal and provide the second voltage to the PPG module.

[0015] In this way, two different voltages can be provided by two batteries.

[0016] In one possible implementation, the method also includes: before controlling the power controller to provide the first voltage to the PPG module, determining that the execution number of the first business is single, and the execution number is used to indicate whether the business ends after the single execution; when executing the third business, determining that the execution number of the third business is multiple times; controlling the power controller to provide the second voltage to the PPG module; controlling the processor to send a first control signal to the PPG module; and controlling the PPG module to turn on the green light device in response to the first control signal.

[0017] In this way, for a service that requires the use of green light devices and is executed once, a higher voltage can be provided to the PPG module when executing the service. For a service that requires the use of green light devices and is executed multiple times, a lower voltage can be provided to the PPG module when executing the service.

[0018] In one possible implementation, it is characterized in that, during the process of executing the second business, the method also includes: when executing the first business, controlling the power supply controller to switch the input voltage of the PPG module from the second voltage to the first voltage; controlling the processor to send a first control signal to the PPG module; and controlling the PPG module to turn on the green light device in response to the first control signal.

[0019] In this way, when the PPG module is powered by a low voltage, if there is a business that requires a higher voltage, the input voltage of the PPG module can be switched to a high voltage.

[0020] In a possible implementation, after executing the second service, the method further includes: when executing the first service, if controlling the power controller to provide the first voltage to the PPG module fails, controlling the power controller to provide the second voltage to the PPG module.

[0021] In this way, when the PPG module cannot be powered by the first voltage, the PPG module can be powered by the second voltage.

[0022] In a possible implementation, it is characterized in that after executing the first business, the method further includes: when executing the second business, if controlling the power controller to provide the second voltage to the PPG module fails, controlling the power controller to provide the first voltage to the PPG module.

[0023] In this way, when the PPG module cannot be powered by the second voltage, the PPG module can be powered by the first voltage.

[0024] In a second aspect, the present application provides an electronic device comprising: one or more processors, one or more memories, and a PPG module. The one or more memories are coupled to the one or more processors, and the one or more memories are used to store computer program code, which includes computer instructions. When the one or more processors execute the computer instructions, the electronic device executes the service execution method in any possible implementation of any of the above aspects.

[0025] In a third aspect, an embodiment of the present application provides a computer storage medium including computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes the service execution method in any possible implementation of any of the above aspects.

[0026] In a fourth aspect, an embodiment of the present application provides a computer program product. When the computer program product is run on an electronic device, the electronic device executes the service execution method in any possible implementation of any of the above aspects.

[0027] The beneficial effects of the second to fourth aspects can refer to the beneficial effects of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] FIG1A is a schematic diagram of an electronic device 100 according to an embodiment of the present application;

[0029] FIG1B is a schematic diagram of the hardware structure of an electronic device 100 provided in an embodiment of the present application;

[0030] FIG2A is a schematic diagram of a power supply circuit of a photoplethysmography (PPG) module provided in an embodiment of the present application;

[0031] FIG2B is a schematic diagram illustrating the relationship between a signal output by a CPU to a power switch and a voltage output by the power switch, provided in an embodiment of the present application;

[0032] FIG3 is a flow chart of a service execution method provided in an embodiment of the present application;

[0033] FIG4A is a flow chart of a method for configuring a power supply 1 for a PPG module according to an embodiment of the present application;

[0034] FIG4B is a flow chart of a method for configuring a power supply 2 for a PPG module according to an embodiment of the present application;

[0035] FIG5 is a flow chart of another method for configuring a power supply for a PPG module and executing service 1 provided in an embodiment of the present application;

[0036] FIG6 is a flow chart of a method for executing service 1 after the PPG module is powered on, provided in an embodiment of the present application;

[0037] FIG7 is a schematic diagram of a software architecture of an electronic device 100 provided in an embodiment of the present application;

[0038] FIG8 is a flow chart of a service execution method provided in an embodiment of the present application. DETAILED DESCRIPTION

[0039] The following is a clear and detailed description of the technical solutions in the embodiments of the present application in conjunction with the accompanying drawings. In the description of the embodiments of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in the text is only a description of the association relationship between related objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, "multiple" means two or more than two.

[0040] In the following, the terms "first" and "second" are used for descriptive purposes only and should not be understood to imply or suggest relative importance or implicitly indicate the number of the technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of this application, unless otherwise specified, "plurality" means two or more.

[0041] The term "user interface (UI)" in the following embodiments of this application refers to a medium interface for interaction and information exchange between an application or operating system and a user, which realizes the conversion between the internal form of information and the form acceptable to the user. The user interface is a source code written in a specific computer language such as Java and extensible markup language (XML). The interface source code is parsed and rendered on an electronic device and finally presented as content that the user can recognize. The commonly used form of user interface is graphical user interface (GUI), which refers to a user interface related to computer operations that is displayed in a graphical manner. It can be a visual interface element such as text, icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, widgets, etc. displayed on the display screen of an electronic device.

[0042] FIG1A shows a schematic diagram of the device form of an electronic device 100 provided in an embodiment of the present application.

[0043] As shown in Figure 1A, the electronic device 100 may include a watch body and a watch strap. Optionally, one or more buttons may be provided on the watch body. The front of the electronic device 100 may be the side with the display screen, and the back of the electronic device 100 may be the side that is close to the user's skin when the user wears the electronic device 100. One or more light-emitting diodes (LEDs) may be provided on the back of the watch body, and the one or more LEDs may emit green light, infrared light, etc. In this way, when the user wears the electronic device 100, the electronic device 100 may emit infrared light and / or green light to the user's skin through the one or more LEDs. In other embodiments, the above-mentioned one or more LEDs may also be replaced by other types of signal transmitters, and the signal transmitter may be used to emit green light and / or infrared light.

[0044] It will be understood that the embodiment shown in FIG1A is merely an example. In the embodiment of the present application, the electronic device 100 may be the watch shown in FIG1A , or may be other wearable devices such as a bracelet, a ring, smart glasses, etc. The present application does not limit the specific type of the electronic device 100.

[0045] FIG. 1B shows a schematic diagram of the hardware structure of the electronic device 100 .

[0046] The electronic device 100 can be a wearable device such as a watch, a bracelet, a ring, smart glasses, etc. The embodiment of the present application does not impose any special restrictions on the specific type of the electronic device.

[0047] The electronic device 100 may include a processor 110, an internal memory 121, a charging management module 140, a power management module 141, a battery 142, a wireless communication module 160, a sensor module 180, a button 190, a motor 191, an indicator 192, a display 194, and a photoplethysmography (PPG) module 195. The sensor module 180 may include a touch sensor 180K, and optionally, may further include any one or more of the following sensors: a pressure sensor, a gyroscope sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, an ambient light sensor, a bone conduction sensor, etc.

[0048] It should be understood that the structure illustrated in the embodiments of the present invention does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0049] The processor 110 may include one or more processing units, such as a central processing unit (CPU), an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). In some embodiments, the processor 110 may also include a microcontroller unit (MCU). The different processing units may be independent devices or integrated into one or more processors.

[0050] The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of instruction fetching and execution.

[0051] Processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 110. If processor 110 needs to use the same instruction or data again, it can directly access the memory. This avoids duplicate accesses, reduces processor 110 latency, and thus improves system efficiency.

[0052] In some embodiments, the processor 110 may include one or more interfaces. The interfaces 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.

[0053] The GPIO interface can be configured via software. It can be configured as either a control signal or a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 to the display 194, the wireless communication module 160, 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.

[0054] The charging management module 140 is configured to receive charging input from a charger. The charger can be either a wireless charger or a wired charger. In some wireless charging embodiments, the charging management module 140 can receive wireless charging input via a wireless charging coil of the electronic device 100. While charging the battery 142, the charging management module 140 can also provide power to the electronic device through the power management module 141.

[0055] 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 provides power to the processor 110, the internal memory 121, the display 194, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle count, and battery health status (leakage, impedance). 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.

[0056] The wireless communication module 160 can provide wireless communication solutions for the electronic device 100, 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 technology (IR), etc. The wireless communication module 160 can be one or more devices that integrate at least one communication processing module.

[0057] Electronic device 100 implements display functionality through a GPU, display screen 194, and an application processor. A GPU is a microprocessor for image processing that connects display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or modify display information.

[0058] Display screen 194 is used to display images, videos, etc. Display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD). The display panel can also be made of 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), a MiniLED, a MicroLED, a Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, electronic device 100 can include one or N display screens 194, where N is a positive integer greater than 1.

[0059] The internal memory 121 may include one or more random access memories (RAMs) and one or more non-volatile memories (NVMs). The RAM can be directly read and written by the processor 110 and can be used to store executable programs (e.g., machine instructions) of the operating system or other running programs, as well as user and application data. The NVM can also store executable programs and user and application data, and can be pre-loaded into the RAM for direct reading and writing by the processor 110.

[0060] The touch sensor 180K is also called a "touch-sensitive device." The touch sensor 180K can be disposed on the display screen 194. 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 applied thereto or in the vicinity thereof. The touch sensor can transmit the detected touch operations to the application processor to determine the type of touch event. Visual output related to the touch operations can be provided via the display screen 194. In other embodiments, the touch sensor 180K can also be disposed on the surface of the electronic device 100, at a location different from that of the display screen 194.

[0061] The buttons 190 include a power button, a volume button, and the like. The buttons 190 may be mechanical buttons or touch buttons. The electronic device 100 may receive key inputs and generate key signal inputs related to user settings and function control of the electronic device 100.

[0062] 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.

[0063] The indicator 192 may be an indicator light, which may be used to indicate the charging status, power level changes, messages, missed calls, notifications, etc.

[0064] In some embodiments, the PPG module 195 may include an infrared (IR) device and a green light (green) device. The IR device may include an IR transmitter and an IR receiver. The IR transmitter may transmit an infrared signal, and the IR receiver may receive a reflected infrared signal. The green device may include a green transmitter and a green receiver (e.g., a photosensor). The green transmitter may transmit green light, and the green receiver may receive reflected green light. In some embodiments, the PPG module 195 may also include a red light device. The red light device may transmit red light and may also receive reflected red light. The PPG module 195 may perform health monitoring services, measuring multiple physiological data of the user, such as body temperature, heart rate, blood pressure, blood oxygen, sleep duration, sleep quality, etc. The PPG module 195 may also perform wearing monitoring, monitoring whether the user is wearing the electronic device 100. In some embodiments, the PPG module 195 may include one or more LEDs shown in FIG. 1A above, which may serve as green transmitters and IR transmitters.

[0065] The following describes the working principle of the photoplethysmography (PPG) module.

[0066] When light passes through skin tissue, it is absorbed by bones, skin pigments, and venous and arterial blood. Moreover, light of different wavelengths attenuates to different degrees. Among them, red light and near-infrared light are easier to pass through skin tissue than light of other wavelengths. Most of the green light is absorbed by the red blood cells in the blood, and green light can be absorbed by oxygen, hemoglobin, and deoxyhemoglobin. Therefore, based on the emitted infrared light and the detected attenuated infrared light, multiple physiological parameters of the user can be determined, such as heart rate, body temperature, blood pressure, etc. Based on the emitted green light and the detected attenuated green light, the oxygen, hemoglobin, and deoxyhemoglobin content in the user's blood can be determined, or the red blood cell content can be determined.

[0067] According to the embodiment shown in FIG1B , the PPG module 195 may include an IR device and a green device. Based on the characteristics of infrared and green light, the PPG module 195 can use the IR device to perform wear monitoring, sleep monitoring, and other monitoring services, while using the green device to perform blood oxygen monitoring, respiratory training, and other services.

[0068] It should be noted that the longer the light wave, the smaller the energy of the light wave, and the wavelength of infrared light is longer than the wavelength of green light. Therefore, the energy required to generate infrared light is less than the energy required to generate green light, that is, the power consumption of the IR device in the PPG module 195 is less than the power consumption of the green device.

[0069] An embodiment of the present application provides a service execution method, which is applied to an electronic device 100, wherein the electronic device 100 includes a processor, a power controller and a PPG module, and the PPG module includes an infrared device and a green light device; the method includes: when executing a first service, controlling the power controller to provide a first voltage to the PPG module; controlling the processor to send a first control signal to the PPG module; controlling the PPG module to respond to the first control signal and turn on the green light device; when executing a second service, controlling the power controller to provide a second voltage to the PPG module; controlling the processor to send a second control signal to the PPG module; controlling the PPG module to respond to the second control signal and turn on the infrared device.

[0070] Because IR devices consume less power than green devices, when IR devices are needed but green devices are not, powering the PPG module with a low-voltage power supply will not affect the IR device's monitoring results. This saves power consumption in the PPG module and improves the battery life of the electronic device 100.

[0071] The following describes a power supply circuit for a PPG module provided in an embodiment of the present application.

[0072] As shown in FIG2A , the power supply circuit of the PPG module may include a battery B1 , a power module E1 , a central processing unit (CPU), a low dropout regulator (LDO) Q1 , a power switch K1 , a light-emitting diode D1 , and a current-controlled current source A1 .

[0073] The battery B1 may be connected to the input port of the power module E1 .

[0074] The power module E1 may include an input port C0 and multiple output ports, which may include output port C1 and output port C2. The power module may include a built-in boost circuit that enables output port C1 to output a higher voltage than input port C0. Another output port C2 of the power module may output the same voltage as input port C0. For example, the voltage output by output port C1 may be +5.0V, and the voltage output by output port C2 may be +3.8V. The voltage output by output port C1 may serve as power supply U1, and the voltage output by output port C2 may serve as power supply U2.

[0075] Power supply U1 can be connected to input port in1 of power switch K1, and power supply U2 can be connected to input port in2 of power switch K1 via low-dropout linear regulator Q1. Power supply U2 can also be connected to the CPU and other modules via low-dropout linear regulator Q1 to provide power to the CPU and other modules.

[0076] The low-dropout linear regulator Q1 can be used to stabilize voltage. Specifically, as long as the voltage at the input port of the low-dropout linear regulator Q1 is within a certain voltage range (e.g., 3.8V-4.2V), the voltage at the output port remains stable (e.g., 3.6V). Furthermore, the voltage difference between the input and output ports of the low-dropout linear regulator Q1 is very small. The low-dropout linear regulator Q1 shown in Figure 2A is a P-type LDO, constructed from a PMOS transistor. The low-dropout linear regulator Q1 can include three ports: input port P1, output port P2, and output port P3. Input port P1 can be connected to power supply U2; output port P2 can be connected to input port in2 of power switch K1; and output port P3 can be connected to the CPU to provide power to the CPU. Output port P3 can also be connected to other modules to provide power to them.

[0077] The power switch K1 may include multiple input ports and multiple output ports. The multiple input ports of the power switch K1 may include in0, in1, and in2. Among the multiple input ports, in0 may be connected to the CPU via a bus. The power switch K1 may receive a signal output by the CPU via the bus. This signal may be used to control the output of the power switch K1. The specific manner in which the CPU controls the power switch K1 via the output signal can be referred to the relevant description in the embodiment shown in FIG. 2B below and will not be described in detail here. in1 may be connected to the power supply U1, so that the power supply U1 serves as one power input for the power switch K1. in2 may be connected to the power supply U2 via a low-dropout linear regulator Q1, so that the power supply U2 serves as another power input for the power switch K1. The multiple output ports of the power switch K1 may include out1 and out2. Both out1 and out2 may be connected to the positive electrode of the light-emitting diode D1. The voltage output by out1 may be the same as the voltage of the power supply U1, and the voltage output by out2 may be similar to the voltage of the power supply U2.

[0078] Both the light-emitting diode D1 and the current-controlled current source A1 are components of the PPG module. The light-emitting diode D1 can include an anode and a cathode. The anode can be connected to the output ports out1 and out2 of the power switch K1, while the cathode can be grounded via the current-controlled current source A1. The current-controlled current source A1 can also include an input port and an output port. The input port of the current-controlled current source A1 can be connected to the cathode of the light-emitting diode D1, while the input port of the current-controlled current source A1 can be grounded. The current-controlled current source A1 can be used to control the current flowing through the light-emitting diode D1, preventing excessive current from burning out the light-emitting diode D1.

[0079] The CPU can be connected to the output port P3 of the low-dropout linear regulator Q1, allowing the power supply U2 to power the CPU. The CPU can also be connected to the input port in0 of the power switch K1 via a bus and send signals to the power switch K1 via the bus to control the output of the power switch K1. In some embodiments, the CPU can also be replaced with a microcontroller unit (MCU).

[0080] It can be understood that the circuit diagram shown in Figure 2A above is only an example provided by the present application. In the embodiment of the present application, the power supply U1 and the power supply U2 may also use voltages different from those in the above embodiment. In addition, the circuit diagram for powering the PPG module may also include more, fewer or different devices than the above embodiment, or use a circuit diagram different from the above embodiment. The present application does not limit this.

[0081] In other embodiments, the power source U1 and the power source U2 may also be provided by two different batteries, which is not limited in this application.

[0082] The following describes the voltage changes provided by the power switch K1 to the PPG module before and after the signal output by the CPU to the power switch K1 is switched.

[0083] As shown in Figure 2B , the horizontal axis represents time, and the vertical axis represents voltage. During the period between t1 and t2, the CPU can send signal 1 to power switch K1 via the bus. During the period between t3 and t4, the CPU can send signal 2 to power switch K1 via the bus. The voltage of signal 1 is higher than that of signal 2.

[0084] During the time period between t1 and t2, the power switch K1 can receive and respond to signal 1, outputting a voltage of +5.0V through out1, while outputting nothing through out2. During the time period between t3 and t4, the power switch K1 can receive and respond to signal 2, outputting a voltage of +3.6V through out2, while outputting nothing through out1.

[0085] In this way, the power switch K1 can implement power switching for the PPG module based on the signal output by the CPU.

[0086] It can be understood that the embodiment shown in Figure 2B is only an example. In some embodiments of the present application, the voltage of signal 2 may also be greater than the voltage of signal 1. In other embodiments, signal 1 and signal 2 may also be distinguished by other parameters, which are not limited in the present application.

[0087] The following describes a process of a service execution method provided in an embodiment of the present application.

[0088] As shown in FIG3 , the specific process of a service execution method provided in an embodiment of the present application may include the following steps:

[0089] S301 , when the PPG module is not powered on, the electronic device 100 detects that the execution condition of service 1 is met, where service 1 is a service executed by the electronic device 100 through the PPG module.

[0090] The PPG module refers to the PPG module in the electronic device 100, that is, the PPG module 195 shown in FIG1B . The PPG module is not powered on, which means that the electronic device 100 does not supply power to the PPG module.

[0091] Different services may correspond to different execution conditions, and the electronic device 100 may store different correspondences between services and execution conditions. For example, if service 1 is a wearable monitoring service, the execution condition of service 1 may be that the electronic device 100 is turned on; if service 1 is a sleep monitoring service, the execution condition of service 1 may be that the electronic device 100 receives an operation from the user to turn on sleep monitoring in the sports and health application. For another example, if service 1 is a heart rate monitoring service, the execution condition of service 1 may be that the user turns on the heart rate monitoring, or that the electronic device 100 is detected to be turned on and in the smart heart rate monitoring mode, etc. It can be understood that the embodiments here are just some examples. In the embodiments of the present application, service 1 may also be a service different from the above embodiments, and the execution condition of service 1 may also be an execution condition different from the above embodiments. The present application does not limit this.

[0092] When it is detected that the execution condition of service 1 is met, the electronic device 100 may execute the following step S302.

[0093] S302 , the electronic device 100 determines whether service 1 needs to use the green device in the PPG module.

[0094] In some embodiments, the electronic device 100 may store a correspondence between services and devices in the PPG module that the services need to use.

[0095] For example, Table 1 shows a correspondence between a service provided in an embodiment of the present application and devices required for the service.

[0096] Table 1

[0097] As shown in Table 1, when the electronic device 100 performs different services through the PPG module, the components in the PPG module that need to be used may be different. For example, when the electronic device 100 performs wear monitoring services or sleep monitoring services, only the IR components in the PPG module are required; when the electronic device 100 performs blood oxygen monitoring services or respiratory training services, only the green components in the PPG module are required.

[0098] It is understandable that the embodiment shown in Table 1 is only an example. In the embodiment of the present application, the services that can be executed by the electronic device 100 may also include more, fewer or different services than the above embodiment, and the present application does not limit this.

[0099] The electronic device 100 can determine whether service 1 requires the use of a green device in the PPG module based on the correspondence between the service and the device in the PPG module that the service requires.

[0100] If the devices in the PPG module required for executing service 1 include IR devices but do not include green devices, the electronic device 100 may execute the following step S305 to configure a power source 2 for the PPG module.

[0101] In some embodiments, if the devices in the PPG module required to execute service 1 include green devices, the electronic device 100 may execute the following step S304 to configure power supply 1 for the PPG module.

[0102] In other embodiments, if the devices in the PPG module required to execute service 1 include green devices, the electronic device 100 may also execute the following step S303.

[0103] S303: The electronic device 100 determines whether the execution number of the service 1 is one time.

[0104] Step S303 is an optional step.

[0105] The number of executions of a service can include single or multiple executions. The number of executions of a service is used to indicate whether the service ends after a single execution. If the number of executions of a service is single, then after detecting that the execution conditions of the service are met, the electronic device 100 can end the service after a single execution. If the number of executions of a service is multiple, then after detecting that the execution conditions of the service are met, the electronic device 100 can execute the service multiple times.

[0106] In some embodiments, the electronic device 100 may store a correspondence between service names and service execution times. For example, the wearable monitoring service may be executed multiple times, while the breathing training service may be executed once. After detecting that the execution conditions of a service are met, the electronic device 100 may determine whether the execution time of the service is a single time based on the service name.

[0107] In some embodiments, service 1 may correspond to different execution conditions, including execution condition 1 and execution condition 2. When execution condition 1 is met, service 1 may be executed multiple times; when execution condition 2 is met, service 1 may be executed only once. In this case, electronic device 100 may store a correspondence between service name, execution condition, and execution count.

[0108] For example, Table 2 shows a correspondence between a service name, an execution condition, and an execution count stored in the electronic device 100 .

[0109] Table 2

[0110] As shown in Table 2, the electronic device 100 may store a correspondence between a service name, an execution condition, and an execution frequency. For example, both turning on the smart heart rate monitoring mode and receiving an operation to measure the user's heart rate can trigger the electronic device 100 to execute the heart rate monitoring service. When the smart heart rate monitoring mode is turned on, the heart rate monitoring service may be executed multiple times; when the user receives an operation to measure the user's heart rate, the heart rate monitoring service may be executed once.

[0111] It is understandable that Table 2 is only an example. In an embodiment of the present application, the electronic device 100 may also store more, fewer, or different service names, execution conditions, and corresponding relationships with execution times than those in the above embodiment, and the present application does not limit this.

[0112] The electronic device 100 can determine whether the execution number of the service 1 to be executed is a single time based on the stored correspondence between the execution condition and the execution number of the service 1 and the execution condition detected in step S301.

[0113] If the execution number of the service 1 is one time, the electronic device 100 may execute the following step S304 .

[0114] If the execution number of the service 1 is not a single time, the electronic device 100 may execute the following step S305.

[0115] S304, the electronic device 100 configures a power supply 1 for the PPG module.

[0116] The voltage of power supply 1 is higher than that of power supply 2. In some embodiments, power supply 1 may be a constant voltage power supply (eg, a 5V constant voltage power supply), and power supply 2 may be a low voltage power supply (eg, a dynamic low voltage power supply of 3.6V to 4.2V).

[0117] In some embodiments, power supply 1 and power supply 2 can be two power sources provided by the same battery in electronic device 100. For example, power supply 1 can be power supply U1 in the embodiment shown in FIG. 2A , and power supply 2 can be power supply U2 in the embodiment shown in FIG. 2A . In some embodiments, the voltage of power supply 2 can be the same as the battery voltage of electronic device 100. This battery can power multiple devices in electronic device 100, such as the processor. Furthermore, the voltage of power supply 2 can change dynamically depending on the battery charge. For example, when the battery charge is 100%, power supply 2 provides a voltage of 4.2V to the PPG module; when the battery charge is nearly depleted, power supply 2 provides a voltage of 3.6V to the PPG module, and so on. Power supply 1 can power devices such as the PPG module and the NFC module.

[0118] In other embodiments, power source 1 and power source 2 may also be two independent power sources, such as power sources provided by two different batteries in the electronic device 100 .

[0119] FIG4A shows a schematic diagram of a process of configuring a power supply 1 for a PPG module in an electronic device 100 according to an embodiment of the present application.

[0120] As shown in FIG4A , the electronic device 100 may include a central processing unit (CPU), general-purpose input / output (GPIO), a power switch, a power supply 1, a power supply 2, and a PPG module. When configuring the power supply 1 for the PPG module in the electronic device 100, the specific process of interaction between the components may include the following steps:

[0121] S401a, the central processing unit sends instruction 1 to the GPIO, where instruction 1 is used to instruct the GPIO to output signal 1.

[0122] S402a, the GPIO outputs signal 1 to the power switch, where signal 1 is used to instruct the power switch to set the power supply of the PPG module to power supply 1.

[0123] S403a, the power switch sets the power supply of the PPG module to power supply 1.

[0124] S404a, power supply 1 supplies power to the PPG module.

[0125] It should be noted that, in the embodiment shown in FIG4A , the circuit connections between the CPU, power switch, power supply 1, power supply 2 and PPG module of the electronic device 100 may refer to the relevant description in the embodiment shown in FIG2A above.

[0126] S305, the electronic device 100 configures a power supply 2 for the PPG module.

[0127] FIG4B shows a schematic diagram of a process of configuring a power supply 2 for a PPG module in an electronic device 100 according to an embodiment of the present application.

[0128] As shown in FIG4B , the electronic device 100 may include a central processing unit (CPU), general-purpose input / output (GPIO), a power switch, a power supply 1, a power supply 2, and a PPG module. When the electronic device 100 configures the power supply 2 for the PPG module, the specific process of interaction between the components may include the following steps:

[0129] S401b, the central processing unit sends instruction 2 to the GPIO, where instruction 2 is used to instruct the GPIO to output signal 2.

[0130] S402b, the GPIO outputs signal 2 to the power switch, where signal 2 is used to instruct the power switch to set the power supply of the PPG module to power supply 2.

[0131] S403b, the power switch sets the power supply of the PPG module to power supply 2.

[0132] S404b, power supply 2 supplies power to the PPG module.

[0133] It should be noted that, in the embodiment shown in FIG4B , the circuit connections between the CPU, power switch, power supply 1, power supply 2 and PPG module of the electronic device 100 may refer to the relevant description in the embodiment shown in FIG2A above.

[0134] S306 , the electronic device 100 executes service 1 through the PPG module and determines the monitoring result of service 1 .

[0135] In the embodiment of the present application, electronic device 100 executing service 1 through the PPG module means that the PPG module collects raw data related to service 1. Determining the monitoring result of service 1 means that the CPU of electronic device 100 uses a stored algorithm related to service 1 to determine the monitoring result of service 1 based on the raw data of service 1.

[0136] If the service 1 is executed multiple times, the electronic device 100 can execute the service 1 multiple times through the PPG module after the PPG module is powered on, and determine the monitoring result of the monitoring after each execution.

[0137] If the execution number of the service 1 is one, the electronic device 100 can execute the service 1 once through the PPG module after the PPG module is powered on to determine the monitoring result of the service 1.

[0138] After obtaining the monitoring results of service 1, the electronic device 100 can store the monitoring results of service 1 and output the monitoring results of service 1 when the output conditions of service 1 are met (for example, detecting the user's operation of viewing the monitoring results of service 1, or detecting that the current moment is the preset output moment, etc.).

[0139] By using the service execution method provided in this application, the electronic device 100 can configure a low-voltage power supply for the PPG module when only IR devices are required, thereby saving power. Alternatively, the electronic device 100 can also configure a low-voltage power supply for the PPG module when the service being executed is a background always-on service, thereby saving power. This can improve the battery life of the electronic device 100.

[0140] In some embodiments, when the electronic device 100 is configuring the power supply for the PPG module, the power supply configuration may fail due to internal command execution errors, water ingress to the device, damage to some components, etc. If the power supply configuration fails, the electronic device 100 can perform multiple power supply configurations or configure another power supply for the PPG module.

[0141] For example, FIG5 shows a flowchart of a method for configuring power for a PPG module and executing services on another electronic device 100 provided in an embodiment of the present application.

[0142] As shown in FIG5 , when the PPG module is not powered on and the execution conditions of Service 1 are met, the specific process of the electronic device 100 configuring power for the PPG module and executing Service 1 may include the following steps:

[0143] S501 , the electronic device 100 configures power supply 1 for the PPG module based on service 1 .

[0144] If the execution conditions for Service 1 are detected, the electronic device 100 can determine the power source to configure for the PPG module based on Service 1. After determining that the power source to configure for Service 1 is Power Source 1, the electronic device 100 can configure Power Source 1 for the PPG module. The execution conditions for Service 1 and the specific steps for determining the power source to configure based on Service 1 can refer to the relevant steps in the embodiment shown in FIG. The manner in which the electronic device 100 configures Power Source 1 for the PPG module can refer to the relevant steps in the embodiment shown in FIG. 4A can refer to the relevant steps in the embodiment shown in FIG.

[0145] S502: The electronic device 100 determines whether the configuration of the power supply 1 is successful.

[0146] Configuration failure of power supply 1 means that during the configuration process of power supply 1, the CPU (or MCU) receives an error reported by the device. In this case, power supply 1 cannot supply power to the PPG module, and the PPG module fails to power on.

[0147] The power configuration failure may be caused by a software error or a hardware error. Among them, a software error refers to an instruction execution error during the power configuration process, such as an instruction execution failure caused by the incomplete configuration of other related modules. A hardware error refers to an instruction execution error caused by hardware problems (such as hardware process problems, hardware damage problems, etc.) during the initialization process of the electronic device 100 for the power supply and related devices such as the PPG module after the power configuration is completed. For example, when the hardware process of some of the related devices is insufficient, there is a certain probability (such as one in a thousand) that the instruction execution will fail during the initialization process. For another example, when the electronic device 100 is flooded or some related devices are damaged, the instructions in the initialization process will also fail.

[0148] Regardless of whether a hardware error or a software error occurs, when the power supply 1 configuration fails, the CPU (or MCU) of the electronic device 100 can receive the error code reported by the device, and the electronic device 100 can determine whether the power supply 1 configuration fails based on whether the error code is received.

[0149] If the electronic device 100 determines that the power supply 1 is configured successfully, the electronic device 100 may execute the following step S503 .

[0150] If the electronic device 100 determines that the configuration of the power supply 1 fails, the electronic device 100 may execute the following step S504.

[0151] S503 , when power is supplied to the PPG module through the power source 1 , the electronic device 100 executes the service 1 through the PPG module and determines the monitoring result of the service 1 .

[0152] In this way, when the power supply 1 is configured successfully, the electronic device 100 can execute the service 1 through the PPG module and determine the monitoring result of the service 1.

[0153] S504 , the electronic device 100 determines whether the number of configuration failures of the power source 1 is greater than a threshold 1 .

[0154] Threshold 1 may be a preset number of times, such as 3 times or 5 times.

[0155] If the number of configuration failures of power source 1 is less than or equal to threshold 1, the electronic device 100 may execute the following step S505.

[0156] If the number of configuration failures of power source 1 is greater than threshold 1, the electronic device 100 may execute the following step S506.

[0157] S505 , the electronic device 100 reconfigures the power supply 1 for the PPG module.

[0158] After executing step S505 , the electronic device 100 may execute step S502 to determine whether the configuration of the power supply 1 is successful.

[0159] S506, the electronic device 100 configures a power supply 2 for the PPG module.

[0160] The specific steps of configuring the power supply 2 for the PPG module in the electronic device 100 can refer to the relevant steps of the embodiment shown in FIG. 4B .

[0161] S507 , the electronic device 100 determines whether the configuration of the power supply 2 is successful.

[0162] The electronic device 100 can determine whether the power supply 2 is configured successfully by referring to the method of determining whether the power supply 1 is configured successfully in step S502 above.

[0163] If the electronic device 100 determines that the configuration of the power source 2 is successful, the electronic device 100 may execute the following step S508 .

[0164] If the electronic device 100 determines that the configuration of the power source 2 fails, the electronic device 100 may execute the following step S509 .

[0165] S508 , when the power supply 2 is used to supply power to the PPG module, the electronic device 100 executes the service 1 through the PPG module and determines the monitoring result of the service 1 .

[0166] In this way, when the power source 2 is configured successfully, the electronic device 100 can execute the service 1 through the PPG module and determine the monitoring result of the service 1.

[0167] S509 , the electronic device 100 determines whether the number of configuration failures of the power source 2 is greater than a threshold 1 .

[0168] If the number of configuration failures of power source 1 is less than or equal to threshold 1, the electronic device 100 may execute the above step S506.

[0169] If the number of configuration failures of power source 1 is greater than threshold 1, the electronic device 100 may execute the following step S510.

[0170] S510, the electronic device 100 outputs a failure prompt, which is used to prompt the user that the execution of service 1 has failed.

[0171] The failure prompt may be in any one or more forms such as text, pattern, animation, vibration, sound, etc.

[0172] In some embodiments, the failure prompt may also be used to prompt the user to re-measure, or to prompt the user to tighten the wear and re-measure, etc.

[0173] In some embodiments, after outputting a failure prompt, the electronic device 100 may receive and respond to a user's re-measurement operation, reconfigure the power supply for the PPG module, and execute service 1.

[0174] By adopting the service execution method provided in the embodiment of the present application, when one power configuration fails, the electronic device 100 can temporarily configure another power supply for the PPG module to ensure the normal execution of the service and avoid affecting the user's use.

[0175] It is understood that the embodiment shown in FIG5 is merely an example. If the PPG module power configuration fails, the electronic device 100 can configure another power source for the PPG module. In the embodiment of the present application, if the power source corresponding to service 1 is power source 2 and power source 2 fails to be configured, the electronic device 100 can also configure power source 1 for the PPG module. The specific process can refer to the relevant steps in the embodiment shown in FIG5, and the present application does not limit it here.

[0176] In some embodiments, after the power configuration is completed, if the power configured by the electronic device 100 for the PPG module does not match service 1, the electronic device 100 can re-judge whether to switch the power of the PPG module based on service 2 after detecting that the execution conditions of another service (such as service 2) are met. For example, if the execution of service 1 requires the use of IR devices but not green devices, after the power configuration is completed, the power configured by the electronic device 100 for the PPG module is power 1, the electronic device 100 can re-judge whether to switch the power of the PPG module based on service 2 after detecting that the execution conditions of another service (such as service 2) are met. It should be noted that the matching relationship between the service and the power supply can refer to the relevant description in step S602 shown in Figure 3 above or Figure 6 below.

[0177] In other embodiments, after the power configuration is completed, if the power configured by the electronic device 100 for the PPG module does not match service 1, and service 1 is executed multiple times, the electronic device 100 can re-switch the power of the PPG module based on service 1 the next time service 1 is executed (or when it is detected that the time since the last power configuration is greater than a preset time).

[0178] The following describes a method flow provided by an embodiment of the present application for an electronic device 100 to execute service 1 when a PPG module is powered on.

[0179] As shown in FIG6 , when the PPG module is powered on, the specific process of the electronic device 100 executing service 1 may include the following steps:

[0180] S601: When the PPG module is powered on, the electronic device 100 detects that the execution conditions of service 1 are met.

[0181] The electronic device 100 needs to use the PPG module when executing service 1.

[0182] The execution conditions of service 1 may refer to the relevant content in step S301 shown in FIG. 3 .

[0183] S602 , the electronic device 100 determines whether the power source matching service 1 is power source 2 .

[0184] For details of the power source 1 and the power source 2, reference may be made to the relevant descriptions in the above embodiments.

[0185] In some embodiments, the electronic device 100 determines whether the power source that matches service 1 is power source 1 based on whether service 1 requires the use of a green device in the PPG module. If service 1 requires the use of a green device in the PPG module, the power source that matches service 1 is determined to be power source 1. If service 1 requires the use of an IR device in the PPG module and does not require a green device, the power source that matches service 1 is determined to be power source 2.

[0186] In other embodiments, the electronic device 100 may also determine the power supply that matches business 1 based on the devices in the PPG module used to execute business 1 and whether the number of executions of business 1 is a single time. If the execution of business 1 requires the use of IR devices in the PPG module and does not require the use of green devices, then the power supply that matches business 1 is determined to be power supply 2; if the execution of business 1 requires the use of green devices in the PPG module and the number of executions of business 1 is a single time, then the power supply that matches business 1 is determined to be power supply 1; if the execution of business 1 requires the use of green devices in the PPG module and the number of executions of business 1 is multiple times, then the power supply that matches business 1 is determined to be power supply 2. Among them, the method of determining whether the number of executions of business 1 is a single time can refer to the relevant description in the embodiment shown in Figure 3 above, and will not be repeated here.

[0187] If the power source matched with service 1 is power source 2, the electronic device 100 may execute the following step S603.

[0188] If the power source matched with service 1 is not power source 2, the electronic device 100 may execute the following step S608.

[0189] S603, the electronic device 100 determines whether there is currently a service 2 that requires the use of the PPG module.

[0190] Business 2 is a business that is about to be executed or is being executed.

[0191] If there is a service 2 that requires the use of the PPG module, the electronic device 100 may execute the following step S604.

[0192] If there is no service 2 requiring the use of the PPG module, the electronic device 100 may execute the following step S605 .

[0193] S604 , the electronic device 100 determines whether the power source matching service 2 is power source 2 .

[0194] The specific manner in which the electronic device 100 determines the power source that matches the service 2 may refer to the relevant content in the above step S602.

[0195] If the power source matched with service 2 is power source 2, the electronic device 100 may execute the following step S605.

[0196] If the power source matched with service 2 is not power source 2, the electronic device 100 may execute the following step S608.

[0197] S605 , the electronic device 100 determines whether the power source currently supplying power to the PPG module is power source 2 .

[0198] If the power source currently supplying power to the PPG module is not power source 2, the electronic device 100 may execute the following step S606.

[0199] If the power source currently supplying power to the PPG module is power source 2, the electronic device 100 may execute the following step S607.

[0200] S606 , the electronic device 100 switches the power source of the PPG module to power source 2 .

[0201] S607 , when the power supply 2 is used to supply power to the PPG module, the electronic device 100 executes service 1 .

[0202] If there are other services that need to be executed through the PPG module at this time, the electronic device 100 can also execute these services during the execution of service 1.

[0203] S608 , the electronic device 100 determines whether the current power source is power source 1 .

[0204] If the power source currently supplying power to the PPG module is not power source 1, the electronic device 100 may execute the following step S609.

[0205] If the power source currently supplying power to the PPG module is power source 1, the electronic device 100 may execute the following step S610.

[0206] S609 , the electronic device 100 switches the power source of the PPG module to power source 1 .

[0207] S610 , when power is supplied to the PPG module through power source 1 , the electronic device 100 executes service 1 .

[0208] If there are other services that need to be executed through the PPG module at this time, the electronic device 100 can also execute these services during the execution of service 1.

[0209] The following describes a software architecture of an electronic device 100 provided in an embodiment of the present application.

[0210] For example, as shown in FIG7 , the software system of the electronic device 100 may employ a layered architecture that divides the software into several layers, each with distinct roles and responsibilities. Layers communicate with each other via software interfaces. In some embodiments, the software architecture of the electronic device 100 may include four layers, from top to bottom: an application layer, an application framework layer, a runtime and system library layer, and a kernel layer.

[0211] The application layer may include a series of application packages, such as sports and health, gallery, calendar, map, navigation, Bluetooth, music, short message and other applications.

[0212] The application framework layer may include business modules, which may include device configuration modules, power configuration modules, and algorithm modules. The application framework layer may also include a window manager, content provider, view system, resource manager, notification manager, etc.

[0213] The window manager is used to manage window programs. The window manager can obtain the display size, determine whether there is a status bar, lock the screen, take screenshots, etc.

[0214] Content providers are used to store and retrieve data and make it accessible to applications. The data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.

[0215] The view system includes visual controls, such as those for displaying text and images. The view system is used to build applications. A display interface can consist of one or more views. For example, a display interface containing a text notification icon might include a view for displaying text and a view for displaying images.

[0216] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.

[0217] The Notification Manager allows applications to display notifications in the status bar. These messages can be displayed briefly and then disappear automatically without user interaction. For example, the Notification Manager is used to notify users of completed downloads and message reminders. The Notification Manager can also display notifications in the top status bar of the system as icons or scrolling text, such as notifications from background applications, or as dialog windows on the screen. Examples include text messages in the status bar, beeps, vibrations on electronic devices, and flashing indicator lights.

[0218] The runtime includes the core library and the virtual machine. The runtime is responsible for the scheduling and management of the operating system.

[0219] The core library consists of two parts: one is the function that needs to be called by the Java language, and the other is the core library of the operating system (such as Android).

[0220] The application layer and application framework layer run in a virtual machine. The virtual machine executes Java files in the application layer and application framework layer as binary files. The virtual machine manages object lifecycles, stack management, thread management, security and exception management, and garbage collection.

[0221] The system library can include multiple functional modules, such as surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.

[0222] The surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications.

[0223] The media library supports playback and recording of a variety of common audio and video formats, as well as static image files. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.

[0224] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.

[0225] A 2D graphics engine is a drawing engine for 2D drawings.

[0226] The kernel layer is the layer between hardware and software. The kernel layer may contain driver modules, which may include one or more drivers, such as display drivers, audio drivers, sensor drivers, hardware IO management modules, etc.

[0227] The software module of the electronic device 100 can interact with the hardware module of the electronic device 100 through the kernel layer. The hardware module of the electronic device 100 may include a power switch, a power supply 1, a power supply 2, and a PPG module.

[0228] When executing the service execution method provided in the embodiment of the present application, the sports and health application (hereinafter referred to as the application and health application) in the application layer can receive and respond to the user's operation, determine the service 1 to be executed, and send the service execution instruction to the service module. The service execution instruction instructs the service module to configure the devices required in the PPG module and the power supply for the PPG module based on service 1.

[0229] The business module in the application framework layer can receive business execution instructions from the sports and health application. After receiving the business execution instructions from the sports and health application, the device configuration module in the business module can determine the components in the PPG module required to execute business 1 and send configuration instructions to the sensor driver in the core layer. The configuration instructions may include the components in the PPG module required to execute business 1, and the configuration instructions instruct the sensor driver to configure the required components in the PPG module. The device configuration module can also determine the components in the PPG module required to execute business 1 and, optionally, determine whether business 1 is executed once. The device configuration module can then send the determination result to the power configuration module. Based on the determination result sent by the device configuration module, the power configuration module can determine the power supply to configure for the PPG module. For example, if business 1 requires the IR components in the PPG module but not the green components, the power configuration module will determine the power supply 2 for the PPG module; if business 1 requires the green components in the PPG module, the power configuration module will determine the power supply 1 for the PPG module, and so on. After determining the power supply configured for the PPG module, the power configuration module can send a power configuration instruction to the hardware I / O management module in the kernel layer. The power configuration instruction is used to instruct the hardware I / O management module to configure the specified power supply for the PPG module. The algorithm module can store algorithms for one or more services, such as sleep monitoring algorithms, wear monitoring algorithms, and heart rate monitoring algorithms. The algorithm module can receive data from service 1 sent by the sensor driver and determine the monitoring results of service 1 based on the data of service 1 using the algorithm of service 1.

[0230] The sensor driver in the kernel layer can receive and respond to configuration instructions sent by the device configuration module to configure the devices required for use in the PPG module. The sensor driver can also receive data on service 1 sent by the PPG module and send the data on service 1 to the algorithm module. The hardware IO management module can receive and respond to power configuration instructions sent by the power configuration module to configure the power supply specified in the power configuration instruction for the PPG module. In some embodiments, if the power configuration instruction instructs the hardware IO management module to configure power supply 1 for the PPG module, the hardware IO management module can send a high-level signal to the power switch; if the power configuration instruction instructs the hardware IO management module to configure power supply 2 for the PPG module, the hardware IO management module can send a low-level signal to the power switch, and so on. The hardware IO management module can be the GPIO in the embodiments shown in Figures 4A and 4B above.

[0231] It can be understood that the embodiment shown in Figure 7 is only an example. In the embodiment of the present application, the software architecture of the electronic device 100 may also include more, fewer or different modules from the embodiment shown in Figure 7, or combine certain modules, or split certain modules, or adopt different module arrangements, etc., and the present application does not limit this.

[0232] FIG8 shows a flow chart of a service execution method provided in an embodiment of the present application.

[0233] As shown in FIG8 , the specific process of the service execution method may include the following steps:

[0234] S801: When the electronic device 100 executes a first service, the electronic device 100 controls the power controller to provide a first voltage to the PPG module.

[0235] The first service may be a service that requires the use of a green device in the PPG module in the embodiment shown in FIG. 3 .

[0236] In some embodiments, the first service may be a service that requires the use of a green device in the PPG module in the embodiment shown in FIG. 3 and is executed once.

[0237] The first voltage may be the voltage of the power supply 1 in the above embodiment.

[0238] The power controller may be the power switch in the above embodiment.

[0239] S802: The electronic device 100 controls the processor to send a first control signal to the PPG module.

[0240] The first control signal can be used to control the PPG module to turn on the green device.

[0241] S803: The electronic device 100 controls the PPG module to turn on the green light device in response to the first control signal.

[0242] S804: When the electronic device 100 executes the second service, the power controller is controlled to provide a second voltage to the PPG module.

[0243] The second service may be a service that does not require the use of green devices in the PPG module in the embodiment shown in FIG. 3 , but requires the use of IR devices.

[0244] The second voltage may be the voltage of the power supply 2 in the above embodiment.

[0245] S805: The electronic device 100 controls the processor to send a second control signal to the PPG module.

[0246] The first control signal can be used to control the PPG module to turn on the IR device.

[0247] S806 , the electronic device 100 controls the PPG module to turn on the infrared device in response to the second control signal.

[0248] By adopting the service execution method provided in this application, a lower voltage can be provided to the PPG module without using the green light device in the PPG module, thereby reducing the power consumption of the PPG module and improving the battery life of the electronic device.

[0249] In one possible implementation, the electronic device also includes a first circuit and a second circuit; the first circuit is used to convert the voltage of the battery into a first voltage; the first circuit is also used to provide the first voltage to the power controller; the second circuit is used to convert the voltage of the battery into a second voltage; the second circuit is also used to provide the second voltage to the power controller; controlling the power controller to provide the first voltage to the PPG module specifically includes: controlling the processor to send a first signal to the power controller; controlling the power controller to respond to the first signal and provide the first voltage to the PPG module; controlling the power controller to provide the second voltage to the PPG module specifically includes: controlling the processor to send a second signal to the power controller; controlling the power controller to respond to the second signal and provide the second voltage to the PPG module.

[0250] This way, two different voltages can be supplied from one battery.

[0251] Among them, after the voltage is converted by the circuit, it can obtain the same voltage as the battery or a voltage different from the battery.

[0252] In the embodiment of the present application, the first signal may be signal 1 in the above embodiment.

[0253] In a possible implementation, the first circuit includes a voltage boosting device, and the second circuit includes a voltage stabilizing device.

[0254] In this way, a first voltage higher than the battery voltage can be obtained through the voltage boosting device, and a second voltage the same as or close to the battery voltage can be obtained through the voltage stabilizing device.

[0255] In one possible implementation, the electronic device also includes a first battery and a second battery; the first battery is used to provide a first voltage to the power controller; the second battery is used to provide a second voltage to the power controller; controlling the power controller to provide the first voltage to the PPG module specifically includes: controlling the processor to send a first signal to the power controller; controlling the power controller to respond to the first signal and provide the first voltage to the PPG module; controlling the power controller to provide the second voltage to the PPG module specifically includes: controlling the processor to send a second signal to the power controller; controlling the power controller to respond to the second signal and provide the second voltage to the PPG module.

[0256] In this way, two different voltages can be provided by two batteries.

[0257] In the embodiment of the present application, the second signal may be signal 2 in the above embodiment.

[0258] In one possible implementation, the method also includes: before controlling the power controller to provide the first voltage to the PPG module, determining that the execution number of the first business is single, and the execution number is used to indicate whether the business ends after the single execution; when executing the third business, determining that the execution number of the third business is multiple times; controlling the power controller to provide the second voltage to the PPG module; controlling the processor to send a first control signal to the PPG module; and controlling the PPG module to turn on the green light device in response to the first control signal.

[0259] In this way, for a service that requires the use of green light devices and is executed once, a higher voltage can be provided to the PPG module when executing the service. For a service that requires the use of green light devices and is executed multiple times, a lower voltage can be provided to the PPG module when executing the service.

[0260] In one possible implementation, it is characterized in that, during the process of executing the second business, the method also includes: when executing the first business, controlling the power supply controller to switch the input voltage of the PPG module from the second voltage to the first voltage; controlling the processor to send a first control signal to the PPG module; and controlling the PPG module to turn on the green light device in response to the first control signal.

[0261] In this way, when the PPG module is powered by a low voltage, if there is a business that requires a higher voltage, the input voltage of the PPG module can be switched to a high voltage.

[0262] In a possible implementation, after executing the second service, the method further includes: when executing the first service, if controlling the power controller to provide the first voltage to the PPG module fails, controlling the power controller to provide the second voltage to the PPG module.

[0263] In this way, when the PPG module cannot be powered by the first voltage, the PPG module can be powered by the second voltage.

[0264] In a possible implementation, it is characterized in that after executing the first business, the method further includes: when executing the second business, if controlling the power controller to provide the second voltage to the PPG module fails, controlling the power controller to provide the first voltage to the PPG module.

[0265] In this way, when the PPG module cannot be powered by the second voltage, the PPG module can be powered by the first voltage.

[0266] The various implementation modes of this application can be combined arbitrarily to achieve different technical effects.

[0267] In the above embodiments, all or part of the embodiments may be implemented by software, hardware, firmware, or any combination thereof. When implemented using software, all or part of the embodiments may be implemented 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, all or part of the processes or functions described herein are generated. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) method. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated therein. The available medium may 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 drive (SSD)).

[0268] Those skilled in the art will appreciate that all or part of the process steps in the above-described method embodiments can be implemented by a computer program instructing the relevant hardware. The program can be stored in a computer-readable storage medium, and when executed, the program can include the process steps in the above-described method embodiments. The aforementioned storage medium includes various media capable of storing program code, such as ROM or random access memory (RAM), magnetic disks, or optical disks.

[0269] In short, the above description is only an embodiment of the technical solution of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent replacements, improvements, etc. made based on the disclosure of the present invention should be included in the scope of protection of the present invention.

Claims

1. A service execution method, characterized in that: Applied to an electronic device, the electronic device comprises a processor, a power controller and a photoplethysmography (PPG) module, the PPG module comprises an infrared device and a green light device; the method comprises: When executing a first service, controlling the power controller to provide a first voltage to the PPG module; Controlling the processor to send a first control signal to the PPG module; Controlling the PPG module to turn on the green light device in response to the first control signal; When executing a second service, controlling the power controller to provide a second voltage to the PPG module; Controlling the processor to send a second control signal to the PPG module; The PPG module is controlled to turn on the infrared device in response to the second control signal.

2. The method according to claim 1, characterized in that: The electronic device further comprises a first circuit and a second circuit; the first circuit is used to convert the voltage of the battery into a first voltage; the first circuit is also used to provide the first voltage to the power controller; the second circuit is used to convert the voltage of the battery into a second voltage; the second circuit is also used to provide the second voltage to the power controller; The controlling the power controller to provide the first voltage to the PPG module specifically includes: Controlling the processor to send a first signal to the power controller; Controlling the power controller to provide a first voltage to the PPG module in response to the first signal; The controlling the power controller to provide the second voltage to the PPG module specifically includes: Controlling the processor to send a second signal to the power controller; The power controller is controlled to provide a second voltage to the PPG module in response to the second signal.

3. The method according to claim 2, characterized in that The first circuit includes a voltage boosting device, and the second circuit includes a voltage stabilizing device.

4. The method according to claim 1, characterized in that: The electronic device further comprises a first battery and a second battery; the first battery is used to provide a first voltage to the power controller; the second battery is used to provide a second voltage to the power controller; The controlling the power controller to provide the first voltage to the PPG module specifically includes: Controlling the processor to send a first signal to the power controller; Controlling the power controller to provide a first voltage to the PPG module in response to the first signal; The controlling the power controller to provide the second voltage to the PPG module specifically includes: Controlling the processor to send a second signal to the power controller; The power controller is controlled to provide a second voltage to the PPG module in response to the second signal.

5. The method according to any one of claims 1 to 4, characterized in that The method further comprises: Before controlling the power controller to provide the first voltage to the PPG module, determining that the execution number of the first service is a single time, the execution number is used to indicate whether the service ends after being executed a single time; When executing the third service, determining that the number of executions of the third service is multiple; Controlling the power controller to provide a second voltage to the PPG module; Controlling the processor to send the first control signal to the PPG module; The PPG module is controlled to turn on the green light device in response to the first control signal.

6. The method according to any one of claims 1 to 5, characterized in that In the process of executing the second service, the method further includes: When executing the first service, controlling the power controller to switch the input voltage of the PPG module from the second voltage to the first voltage; Controlling the processor to send a first control signal to the PPG module; The PPG module is controlled to turn on the green light device in response to the first control signal.

7. The method according to any one of claims 1 to 6, characterized in that After executing the second service, the method further includes: When executing the first service, if controlling the power controller to provide the first voltage to the PPG module fails, controlling the power controller to provide the second voltage to the PPG module.

8. The method according to claims 1-7, characterized in that After executing the first service, the method further includes: When executing the second service, if controlling the power controller to provide the second voltage to the PPG module fails, controlling the power controller to provide the first voltage to the PPG module.

9. An electronic device, characterized in that: include: One or more processors, one or more memories, and a PPG module; the one or more memories are coupled to the one or more processors, and the one or more memories are used to store computer program codes, wherein the computer program codes include computer instructions, and when the one or more processors execute the computer instructions, the electronic device executes the method described in any one of claims 1 to 8.

10. A computer-readable storage medium comprising computer instructions, characterized in that: When the computer instructions are executed on an electronic device, the electronic device is caused to execute the method according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Service execution method and related device

    CN119645216A

  • Wearable device based on photoplethysmography PPG and control method thereof

    CN115251857A

  • Light-emitting device driving circuit, PPG sensor and electronic equipment

    CN115604883A

  • Electronic device

    US20160109959A1