Service execution method and related device

By introducing a power controller into the wearable device and dynamically adjusting the power supply voltage of the PPG module, the problem of increased power consumption during long-term sleep monitoring services is solved, and the battery life is improved.

CN119645216AActive Publication Date: 2025-03-18HUAWEI TECH CO LTD

Patent Information

Application Number
CN202311200761.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-09-15
Publication Date
2025-03-18
Estimated Expiration
2043-09-15

AI Technical Summary

Technical Problem

When a wearable device performs long-term sleep monitoring services, the photoplethysmography (PPG) module needs to remain in operation for a long time, resulting in increased equipment power consumption and reduced battery life.

Method used

By introducing a power controller into the electronic device, the power supply voltage of the PPG module is dynamically adjusted according to the type of service performed. For example, when only infrared devices are needed, a lower voltage is provided; when green light devices are needed, a higher voltage is provided.

Benefits of technology

By reducing the power consumption of PPG modules, the battery life of electronic devices is improved and the use time of the device is extended.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119645216A_ABST
    Figure CN119645216A_ABST
Patent Text Reader

Abstract

The invention discloses a service execution method and a related device, the service execution method is applied to electronic equipment, the electronic equipment comprises a processor, a power supply controller and a photoplethysmography (PPG) module, and the PPG module comprises an infrared device and a green light device; the method comprises the following steps: when a first service is executed, controlling a power supply controller to provide a first voltage for a PPG module; the control processor sends a first control signal to the PPG module; controlling the PPG module to start the green light device in response to the first control signal; when the second service is executed, controlling the power supply controller to provide a second voltage for the PPG module; the control processor sends a second control signal to the PPG module; and controlling the PPG module to start the infrared device in response to the second control signal. Therefore, the power consumption can be saved, and the cruising ability of the electronic equipment is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] With the development of electronic technology, wearable devices are used more and more frequently in daily life. When users wear wearable devices, they can use the photoplethysmography (PPG) module to perform sports, health and other related services, and monitor the user's health or exercise status in real time.

[0003] 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 will increase the power consumption of the wearable device. Summary of the invention

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

[0005] 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 to 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 to turn on the infrared device.

[0006] In this way, when there is no need to use the green light device in the PPG module, 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.

[0007] 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 to 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 to provide the second voltage to the PPG module.

[0008] In this way, two different voltages can be supplied from one battery.

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

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

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

[0012] 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 to 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 to provide the second voltage to the PPG module.

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

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

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

[0016] In a 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.

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

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

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

[0020] In a possible implementation, it is characterized in that after executing the first business, the method also 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.

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

[0022] 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 codes, and the computer program codes include 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.

[0023] 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 a service execution method in any possible implementation of any of the above aspects.

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

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

[0026] Figure 1A A schematic diagram of a device configuration of an electronic device 100 provided in an embodiment of the present application;

[0027] Figure 1B A schematic diagram of the hardware structure of an electronic device 100 provided in an embodiment of the present application;

[0028] Figure 2A A schematic diagram of a power supply circuit of a photoplethysmography (PPG) module provided in an embodiment of the present application;

[0029] Figure 2B A schematic diagram of 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;

[0030] Figure 3 A flowchart of a service execution method provided in an embodiment of the present application;

[0031] Figure 4A A schematic flow chart of a method for configuring a power supply 1 for a PPG module provided in an embodiment of the present application;

[0032] Figure 4B A schematic flow chart of a method for configuring a power supply 2 for a PPG module provided in an embodiment of the present application;

[0033] Figure 5 A flowchart of another method for configuring a power supply for a PPG module and executing service 1 provided in an embodiment of the present application;

[0034] Figure 6 A schematic flow chart of a method for executing service 1 after a PPG module is powered on, provided in an embodiment of the present application;

[0035] Figure 7 A schematic diagram of a software architecture of an electronic device 100 provided in an embodiment of the present application;

[0036] Figure 8 A flowchart of a service execution method provided in an embodiment of the present application. DETAILED DESCRIPTION

[0037] The technical solutions in the embodiments of the present application will be described clearly and in detail below 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 of associated 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.

[0038] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as suggesting or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features, and in the description of the embodiments of the present application, unless otherwise specified, "plurality" means two or more.

[0039] The term "user interface (UI)" in the following embodiments of the present 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 can be recognized by the user. The commonly used form of user interface is a graphical user interface (GUI), which refers to a user interface related to computer operation 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.

[0040] Figure 1A A schematic diagram of the device form of an electronic device 100 provided in an embodiment of the present application is shown.

[0041] like Figure 1AAs shown, the electronic device 100 may include a watch body and a watch strap, and optionally, one or more buttons may be provided on the watch body. The front of the electronic device 100 may be the side with a 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 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.

[0042] Understandably, Figure 1A The embodiment shown is only an example. In the embodiment of the present application, the electronic device 100 may be Figure 1A The watch shown may also be other wearable devices such as a bracelet, a ring, smart glasses, etc. This application does not limit the specific type of the electronic device 100.

[0043] Figure 1B A schematic diagram of the hardware structure of the electronic device 100 is shown.

[0044] The electronic device 100 may 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.

[0045] 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 screen 194, and a photoplethysmography (PPG) module 195, etc. The sensor module 180 may include a touch sensor 180K, and optionally, may also 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.

[0046] It is to be understood that the structure illustrated in the embodiment 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 in the figure, or combine some components, or separate 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.

[0047] 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 microprocessor unit (MCU). Different processing units may be independent devices or integrated into one or more processors.

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

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

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

[0051] 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 display screen 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.

[0052] 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 wireless charging embodiments, the charging management module 140 may receive wireless charging input via a wireless charging coil of the electronic device 100. While the charging management module 140 is charging the battery 142, it may also power the electronic device via the power management module 141.

[0053] 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 screen 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 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.

[0054] 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., which are applied to the electronic device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module.

[0055] The electronic device 100 implements the 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.

[0056] 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), and 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), Miniled, MicroLed, Micro-oLed, quantum dot light emitting diodes (QLED), etc. In some embodiments, the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.

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

[0058] The touch sensor 180K is also called a "touch control device". The touch sensor 180K can be set on the display screen 194. The touch sensor 180K and the display screen 194 form a touch screen, also called a "touch control 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 set on the surface of the electronic device 100, which is different from the position of the display screen 194.

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

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

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

[0062] 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 (such as 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 and measure 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 to monitor whether the user is wearing the electronic device 100. In some embodiments, the PPG module 195 may include the above-mentioned Figure 1A One or more LEDs are shown, which can act as green emitters and IR emitters.

[0063] The working principle of the photoplethysmography (PPG) module is introduced below.

[0064] When light passes through skin tissue, it will be 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 will be absorbed by the red blood cells in the blood, and the green light can be absorbed by oxygen and 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 and hemoglobin and deoxyhemoglobin content in the user's blood can be determined, or the red blood cell content can be determined.

[0065] According to the above Figure 1B As can be seen from the illustrated embodiment, the PPG module 195 may include an IR device and a green device. According to the characteristics of the infrared light and the green light, the PPG module 195 may perform monitoring services such as wearing monitoring and sleep monitoring through the IR device, and may perform blood oxygen monitoring services, breathing training services, etc. through the green device.

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

[0067] 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 to 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 to turn on the infrared device.

[0068] Since the power consumption of the IR device is less than that of the green device, when the IR device is needed but the green device is not needed, the low voltage power supply for the PPG module will not affect the monitoring result of the IR device. In this way, the power consumption of the PPG module can be saved, thereby improving the endurance of the electronic device 100.

[0069] The following introduces a power supply circuit of a PPG module provided in an embodiment of the present application.

[0070] like Figure 2A As shown, 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.

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

[0072] The power module E1 may include an input port C0 and multiple output ports, and the multiple output ports may include output port C1 and output port C2. A boost circuit may be built into the power module, and the boost circuit may enable output port C1 to output a voltage higher than input port C0. Another output port C2 of the power module may output the same voltage as input port C0. Exemplarily, 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 be used as power supply U1, and the voltage output by output port C2 may be used as power supply U2.

[0073] The power supply U1 can be connected to the input port in1 of the power switch K1, and the power supply U2 can be connected to the input port in2 of the power switch K1 through the low voltage drop linear regulator Q1. The power supply U2 can also be connected to the CPU and other modules through the low voltage drop linear regulator Q1 to provide power to the CPU and other modules.

[0074] The low voltage dropout linear regulator Q1 can be used to stabilize the voltage, that is, the voltage at the input port of the low voltage dropout linear regulator Q1 is within a certain voltage range (e.g., 3.8V-4.2V), and the voltage at the output port always remains stable (e.g., 3.6V). Moreover, the voltage difference between the input port and the output port of the low voltage dropout linear regulator Q1 is very small. Figure 2A The low-dropout linear regulator Q1 shown is a P-type LDO, which is composed of a PMOS tube. The low-dropout linear regulator Q1 may include three ports: an input port P1, an output port P2, and an output port P3. The input port P1 may be connected to the power supply U2; the output port P2 may be connected to the input port in2 of the power switch K1; the output port P3 may be connected to the CPU to supply power to the CPU. The output port P3 may also be connected to other modules to supply power to other modules.

[0075] 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. The signal may be used to control the output of the power switch K1. The specific method of the CPU controlling the power switch K1 via the output signal may refer to the following Figure 2B The relevant descriptions in the illustrated embodiment are not described in detail here. in1 can be connected to the power supply U1, so that the power supply U1 serves as a power input of the power switch K1. in2 can be connected to the power supply U2 through the low voltage drop linear regulator Q1, so that the power supply U2 serves as another power input of the power switch K1. The multiple output ports of the power switch K1 may include out1 and out2, and 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 close to the voltage of the power supply U2.

[0076] The light-emitting diode D1 and the current-controlled current source A1 are both devices in the PPG module. The light-emitting diode D1 may include a positive electrode and a negative electrode, the positive electrode may be connected to the output ports out1 and out2 of the power switch K1, and the negative electrode may be grounded through the current-controlled current source A1. The current-controlled current source A1 may also include an input port and an output port, the input port of the current-controlled current source A1 may be connected to the negative electrode of the light-emitting diode D1, and the input port of the current-controlled current source A1 may be grounded. The current-controlled current source A1 may be used to control the magnitude of the current flowing through the light-emitting diode D1 to prevent the light-emitting diode D1 from burning out due to excessive current.

[0077] The CPU can be connected to the output port P3 of the low voltage drop linear regulator Q1, so that the power supply U2 can power the CPU. The CPU can also be connected to the input port in0 of the power switch K1 through the bus, and send a signal to the power switch K1 through the bus to control the output of the power switch K1. In some embodiments, the CPU can also be replaced by a microcontroller unit (MCU).

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

[0079] 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 the present application.

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

[0081] like Figure 2B As shown, the horizontal axis represents time and the vertical axis represents voltage value. In the time period between t1 and t2, the CPU can send signal 1 to the power switch K1 through the bus; in the time period between t3 and t4, the CPU can send signal 2 to the power switch K1 through the bus. Among them, the voltage of signal 1 is higher than the voltage of signal 2.

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

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

[0084] Understandably, Figure 2B The illustrated embodiment is only an example. In some embodiments of the present application, the voltage of signal 2 may be greater than the voltage of signal 1. In other embodiments, signal 1 and signal 2 may be distinguished by other parameters, which are not limited in the present application.

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

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

[0087] S301, when the PPG module is not powered on, the electronic device 100 detects that the execution conditions of service 1 are met, and service 1 is a service executed by the electronic device 100 through the PPG module.

[0088] The PPG module refers to the PPG module in the electronic device 100, that is, the above Figure 1B The PPG module 195 is shown. The PPG module is not powered on, which means that the electronic device 100 does not supply power to the PPG module.

[0089] Different services may correspond to different execution conditions, and the electronic device 100 may store the correspondence between different services and execution conditions. Exemplarily, 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. As another example, if service 1 is a heart rate monitoring service, the execution condition of service 1 may be that the user turns on 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 different service from the above embodiments, and the execution condition of service 1 may also be an execution condition different from the above embodiments, which is not limited in the present application.

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

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

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

[0093] Illustratively, Table 1 shows a correspondence between a service provided in an embodiment of the present application and a device required to be used by the service.

[0094] Table 1

[0095] Business Name Devices in the PPG module that need to be used Wear monitoring IR Devices Sleep monitoring IR Devices Blood oxygen monitoring Green Devices Breathing exercises Green Devices

[0096] As shown in Table 1, when the electronic device 100 performs different services through the PPG module, the devices in the PPG module that need to be used may be different. For example, when the electronic device 100 performs a wear monitoring service or a sleep monitoring service, only the IR device in the PPG module needs to be used; when the electronic device 100 performs a blood oxygen monitoring service or a breathing training service, only the green device in the PPG module needs to be used.

[0097] It can be understood 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 can also include more, less or different services than the above embodiment, and the present application does not limit this.

[0098] The electronic device 100 can determine whether service 1 needs to use the green device in the PPG module based on the correspondence between the service and the device in the PPG module that the service needs to use.

[0099] 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 can execute the following step S305 to configure a power source 2 for the PPG module.

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

[0101] In some 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.

[0102] S303, the electronic device 100 determines whether the execution number of service 1 is single.

[0103] Step S303 is an optional step.

[0104] The number of executions of a service may include single and multiple. 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, after detecting that the execution conditions of the service are met, the electronic device 100 may end the service after a single execution. If the number of executions of a service is multiple, after detecting that the execution conditions of the service are met, the electronic device 100 may execute the service multiple times.

[0105] In some embodiments, the electronic device 100 may store a correspondence between a service name and the number of executions of the service. For example, the number of executions of the wear monitoring service is multiple times, the number of executions of the breathing training service is single, etc. After detecting that the execution conditions of the service are met, the electronic device 100 may determine whether the number of executions of the service is single based on the service name of the service.

[0106] 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 once. In this case, electronic device 100 may store the corresponding relationship between service name, execution condition and execution times.

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

[0108] Table 2

[0109] Business Name Execution conditions Execution times Heart rate monitoring Turn on smart heart rate monitoring mode repeatedly Heart rate monitoring Receive the user's heart rate measurement operation Single

[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, turning on the intelligent heart rate monitoring mode and receiving an operation of measuring the user's heart rate may trigger the electronic device 100 to execute the heart rate monitoring service. When the intelligent heart rate monitoring mode is turned on, the heart rate monitoring service may be executed multiple times; when the user's heart rate measurement operation is received, the heart rate monitoring service may be executed once.

[0111] It can be understood that Table 2 is only an example. In the 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 from the above embodiment, etc., 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 single 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 service 1 is one time, the electronic device 100 may execute the following step S304.

[0114] If the execution number of service 1 is not single, 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 3.6V to 4.2V dynamic low voltage power supply).

[0117] In some embodiments, power source 1 and power source 2 may be two power sources provided by the same battery in electronic device 100. Figure 2A The power supply U1 and the power supply 2 in the embodiment shown can be the above Figure 2A Power supply U2 in the illustrated embodiment. In some embodiments, the voltage of power supply 2 can be the same as the battery voltage of the electronic device 100. The battery can power multiple devices such as the processor in the electronic device 100, and the voltage of power supply 2 will change dynamically according to the battery power. For example, when the battery power is 100%, the voltage provided by power supply 2 to the PPG module is 4.2V; when the battery power is almost exhausted, the voltage provided by power supply 2 to the PPG module is 3.6V, etc. Power supply 1 can power devices such as PPG modules and NFC modules.

[0118] In some other embodiments, the power source 1 and the 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] Figure 4A A schematic diagram of a process of configuring a power supply 1 for a PPG module in an electronic device 100 provided in an embodiment of the present application is shown.

[0120] like Figure 4A As shown, the electronic device 100 may include a central processing unit (CPU), a general-purpose input / output (GPIO), a power switch, a power supply 1, a power supply 2, and a PPG module. In the process of configuring the power supply 1 for the PPG module of 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, 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 Figure 4A In the embodiment shown, the circuit connections between the CPU, the power switch, the power supply 1, the power supply 2 and the PPG module of the electronic device 100 can refer to the above Figure 2A Related description in the illustrated embodiment.

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

[0127] Figure 4B A schematic diagram of a process of configuring a power supply 2 for a PPG module in an electronic device 100 provided in an embodiment of the present application is shown.

[0128] like Figure 4B As shown, the electronic device 100 may include a central processing unit (CPU), a general-purpose input / output (GPIO), a power switch, a power supply 1, a power supply 2, and a PPG module. In the process of configuring the power supply 2 for the PPG module of the electronic device 100, 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, GPIO outputs signal 2 to the power switch, and 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 Figure 4B In the embodiment shown, the circuit connections between the CPU, the power switch, the power supply 1, the power supply 2 and the PPG module of the electronic device 100 can refer to the above Figure 2A Related description in the illustrated embodiment.

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

[0135] In the embodiment of the present application, the electronic device 100 executes service 1 through the PPG module, which means that the PPG module collects raw data related to service 1. Determining the monitoring result of service 1 means that the CPU of the electronic device 100 uses the 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 service 1 is one time, the electronic device 100 can execute service 1 once through the PPG module after the PPG module is powered on to determine the monitoring result of 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 adopting the service execution method provided by the present application, the electronic device 100 can configure a low-voltage power supply for the PPG module to save power consumption when only the IR device is needed. Optionally, the electronic device 100 can also configure a low-voltage power supply for the PPG module to save power consumption when the service executed is a background always-on service. In this way, the battery life of the electronic device 100 can be improved.

[0140] In some embodiments, when the electronic device 100 configures the power supply for the PPG module, the power supply configuration may fail due to internal instruction operation errors, water ingress to the device, damage to some components, etc. In the case of power supply configuration failure, the electronic device 100 can perform multiple power supply configurations or configure another power supply for the PPG module.

[0141] For example, Figure 5 A flowchart of a method for configuring power for a PPG module and executing services in another electronic device 100 provided in an embodiment of the present application is shown.

[0142] like Figure 5 As shown, 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] When it is detected that the execution condition of service 1 is met, the electronic device 100 can determine the power source configured for the PPG module based on service 1. After determining that the power source configured for service 1 is power source 1, the electronic device 100 can configure power source 1 for the PPG module. The execution condition of service 1 and the specific steps of determining the configured power source based on service 1 can refer to the above Figure 3 The relevant steps in the embodiment shown. The way in which the electronic device 100 configures the power supply 1 for the PPG module can refer to the above Figure 4A Relevant steps in the illustrated embodiment.

[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 failure to complete the 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, etc.) 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 source 1 fails, the electronic device 100 may perform the following step S504.

[0151] S503 , when the PPG module is powered by the power source 1 , the electronic device 100 executes the service 1 through the PPG module to determine 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 the 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 source 1 for the PPG module.

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

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

[0160] The specific steps of configuring the power supply 2 for the PPG module of the electronic device 100 can refer to the above Figure 4B Relevant steps of the illustrated embodiment.

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

[0162] The way in which the electronic device 100 determines whether the power source 2 is configured successfully may refer to the way in which the power source 1 is configured successfully in the above step S502 .

[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 perform the following step S509 .

[0165] S508 , when the PPG module is powered by the power source 2 , the electronic device 100 executes the service 1 through the PPG module to determine 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 the 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, where the failure prompt 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 wearer's gloves and re-measure.

[0173] In some embodiments, after outputting a failure prompt, the electronic device 100 can receive and respond to a user's re-measurement operation, reconfigure power 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] Understandably, Figure 5 The embodiment shown is only an example. If the PPG module power configuration fails, the electronic device 100 can configure another power supply for the PPG module. In the embodiment of the present application, if the power supply corresponding to service 1 is power supply 2, and power supply 2 configuration fails, the electronic device 100 can also configure power supply 1 for the PPG module. For the specific process, please refer to Figure 5 The present application does not limit the relevant steps in the illustrated embodiments.

[0176] In some embodiments, after the power configuration is completed, if the power configured for the PPG module by the electronic device 100 does not match service 1, the electronic device 100 can re-determine 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 for the PPG module by the electronic device 100 is power 1, then the electronic device 100 can re-determine 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 above. Figure 3 or the following Figure 6 The relevant description in step S602 is shown.

[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 it executes service 1 (or when it detects that the time since the last power configuration is greater than a preset time).

[0178] The following introduces 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] like Figure 6 As shown, 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 business 1 can refer to the above Figure 3 The relevant content in step S301 is shown.

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

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

[0185] In some embodiments, the electronic device 100 determines whether the power source that matches the service 1 is the power source 1 based on whether the green device in the PPG module is required to be used for the service 1. If the green device in the PPG module is required to execute the service 1, the power source that matches the service 1 is determined to be the power source 1; if the IR device in the PPG module is required to execute the service 1, and the green device is not required, the power source that matches the service 1 is determined to be the power source 2.

[0186] In other embodiments, the electronic device 100 may also determine the power supply that matches service 1 based on the devices in the PPG module used to execute service 1 and whether the number of executions of service 1 is a single time. If the execution of service 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 service 1 is determined to be power supply 2; if the execution of service 1 requires the use of green devices in the PPG module and the number of executions of service 1 is a single time, then the power supply that matches service 1 is determined to be power supply 1; if the execution of service 1 requires the use of green devices in the PPG module and the number of executions of service 1 is multiple times, then the power supply that matches service 1 is determined to be power supply 2. Among them, the method for determining whether the number of executions of service 1 is a single time can refer to the above Figure 3 The relevant description in the illustrated embodiment will not be repeated here.

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

[0188] If the power source matched by 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 the 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 that requires 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 the service 2 is the 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 by service 2 is power source 2, the electronic device 100 may execute the following step S605.

[0196] If the power source matched by 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 of the PPG module to power source 2.

[0201] S607 , when the PPG module is powered by the power source 2 , the electronic device 100 executes the 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 of the PPG module to power source 1.

[0207] S610, when the PPG module is powered by 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 introduces a software architecture of an electronic device 100 provided in an embodiment of the present application.

[0210] For example, Figure 7As shown, the software system of the electronic device 100 can adopt a layered architecture, which divides the software into several layers, each layer has a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the software architecture of the electronic device 100 may include four layers, from top to bottom, respectively, an application layer, an application framework layer, a runtime and system library, and a kernel layer.

[0211] Among them, the application layer can 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 a business module, which may include a device configuration module, a power configuration module, and an algorithm module. The application framework layer may also include a window manager, a content provider, a view system, a resource manager, a notification manager, and the like.

[0213] The window manager is used to manage window programs. The window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, 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 controls for displaying text, controls for displaying images, etc. The view system can be used to build applications. A display interface can be composed of one or more views. For example, a display interface including a text notification icon can 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 enables applications to display notification information in the status bar. It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as notifications of applications running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is displayed in the status bar, a prompt sound is emitted, an electronic device vibrates, an indicator light flashes, etc.

[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 part is the function that needs to be called by the Java language, and the other part is the core library of the operating system (such as Android).

[0220] The application layer and the application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.

[0221] The system library may 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 the fusion of 2D and 3D layers for multiple applications.

[0223] The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. 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 include a driver module, which may include one or more drivers, such as a display driver, an audio driver, a sensor driver, a hardware IO management module, etc.

[0227] The software module of the electronic device 100 may 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, a PPG module, and the like.

[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 the business execution instruction sent by the sports and health application. After receiving the business execution instruction sent by the sports and health application, the device configuration module in the business module can determine the device in the PPG module that needs to be used to execute business 1, and send the configuration instruction to the sensor driver in the kernel layer. The configuration instruction may include the device in the PPG module that needs to be used to execute business 1, and the configuration instruction is used to instruct the sensor driver to configure the device that needs to be used in the PPG module. The device configuration module can also determine the device in the PPG module that needs to be used by business 1, and optionally, it can also determine whether the number of executions of business 1 is single. Afterwards, the device configuration module can also send the judgment result to the power configuration module. The power configuration module can determine the power configured for the PPG module based on the judgment result sent by the device configuration module. For example, if business 1 needs to use the IR device in the PPG module and does not need to use the green device, the power configuration module determines to configure the power supply 2 for the PPG module; if business 1 needs to use the green device in the PPG module, the power configuration module determines to configure the power supply 1 for the PPG module, and so on. After determining the power configured for the PPG module, the power configuration module can send a power configuration instruction to the hardware IO management module in the kernel layer, and the power configuration instruction is used to instruct the hardware IO management module to configure the specified power for the PPG module. The algorithm module can store algorithms for one or more services, such as sleep monitoring algorithms, wear monitoring algorithms, heart rate monitoring algorithms, etc. The algorithm module can receive data of 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 the configuration instructions sent by the device configuration module to configure the devices needed in the PPG module. The sensor driver can also receive data of business 1 sent by the PPG module, and send the data of business 1 to the algorithm module. The hardware IO management module can receive and respond to the power configuration instructions sent by the power configuration module to configure the power supply specified in the power configuration instructions for the PPG module. In some embodiments, if the power configuration instruction instructs the hardware IO management module to configure power 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 2 for the PPG module, the hardware IO management module can send a low-level signal to the power switch, etc. The hardware IO management module can be the above-mentioned Figure 4A and Figure 4B GPIO in the illustrated embodiment.

[0231] Understandably, Figure 7 The embodiment shown is only an example. In the embodiment of the present application, the software architecture of the electronic device 100 may also include more, less or the same Figure 7 The different modules of the illustrated embodiments may combine certain modules, split certain modules, or adopt different module arrangements, etc., which are not limited in the present application.

[0232] Figure 8 A flow chart of a service execution method provided in an embodiment of the present application is shown.

[0233] like Figure 8 As shown, the specific process of the business 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 the above Figure 3 The illustrated embodiment requires the use of green devices in the PPG module.

[0236] In some embodiments, the first service may be the above Figure 3 In the illustrated embodiment, a green device in the PPG module is required and the execution number is a single service.

[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 the second voltage to the PPG module.

[0243] The second service may be the above Figure 3 In the illustrated embodiment, the green device in the PPG module does not need to be used, and the service that requires the use of the IR device.

[0244] The second voltage may be the voltage of the power source 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 the present 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 to 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 to provide the second voltage to the PPG module.

[0250] In 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 it can obtain 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 to 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 to provide the second voltage to the PPG module.

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

[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 a 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 also 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 the present application can be combined arbitrarily to achieve different technical effects.

[0267] 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 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 device. 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 to another 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. 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 includes one or more available media integrated. 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 disk (SSD)), etc.

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

[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 protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made according to the disclosure of the present invention shall be included in the protection scope 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

  • Wearable biological signal collecting device

    CN106725323A

  • Method and device for driving of mobile device indicating lamp and mobile device

    CN108366456A

  • PPG control method and device and electronic equipment

    CN114983353A

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

    CN115604883A

  • Light formula verification platform for plant factories

    TWI574608B

Cited By

  • Service execution method and related apparatus

    EP4749400A1

  • Service execution method and related apparatus

    WO2025055995A1