Control method of electronic device, electronic device, storage medium, and program product

CN122997634APending Publication Date: 2026-10-30HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510572113.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-29
Publication Date
2026-10-30

Smart Images

  • Figure CN122997634A_ABST
    Figure CN122997634A_ABST
Patent Text Reader

Abstract

The application discloses a control method of an electronic device, the electronic device, a storage medium and a program product. In the method, the electronic device comprises a pressure sensing device and a first sensor for collecting first physiological data, the electronic device can run a first application, call a first component function of a development kit through the first application, the first component function comprises a first function for setting a pressure sensing threshold range and a second function for setting a parameter for collecting the first physiological data; according to the first component function, the first parameter for collecting the first physiological data is set, and / or according to the first component function, the first pressure sensing threshold range is set; the first physiological data is collected by the first sensor using the first parameter, and / or the first event is executed according to the first pressure sensing threshold range. Through the first component function, the electronic device can conveniently call the respective capabilities of the multiple devices to realize the corresponding functions.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the fields of health monitoring and operating system technology, and in particular to control methods for electronic devices, electronic devices, storage media, and program products. Background Technology

[0002] Currently, components in wearable devices (such as watches, bracelets, and wristbands), mobile phones, laptops, and tablets are available to application developers. These developers can leverage the capabilities of these components to create applications (apps). Users can then install these apps on their electronic devices and utilize their provided functions. Summary of the Invention

[0003] This application provides a control method for an electronic device, an electronic device, a storage medium, and a program product, which allows the electronic device to conveniently call upon the capabilities of multiple devices to achieve corresponding functions.

[0004] In a first aspect, a control method for an electronic device is provided. This method is applied to a first electronic device, which includes a pressure-sensitive device and a first sensor for acquiring first physiological data. The method may include: running a first application; calling a first component function of a development toolkit via the first application, the first component function including: a first function for setting a pressure sensitivity threshold range, and a second function for setting parameters for acquiring the first physiological data; setting a first parameter for acquiring the first physiological data according to the first component function, and / or setting a first pressure sensitivity threshold range according to the first component function; acquiring the first physiological data using the first parameter via the first sensor, and / or executing a first event according to the first pressure sensitivity threshold range.

[0005] Implementing the first aspect of the method, the first component function simultaneously includes: functions providing capabilities related to the pressure-sensitive device and functions providing capabilities related to the physiological data sensor (i.e., the first sensor used to collect first physiological data). The first application can conveniently invoke one or more capabilities of the pressure-sensitive device and the first sensor by calling the first component function. For example, it can use the first sensor to collect physiological data using a first parameter or execute a first event based on a first pressure threshold range. Correspondingly, the first application is developed by an application developer; that is, the application developer develops an application that can call the first component function from the development toolkit in the electronic device. During development, the application developer can intuitively understand the multiple capabilities provided by multiple devices (including the pressure-sensitive device and the first sensor) simply through the first component function, thus easily combining these multiple capabilities to develop applications that schedule one or more of them. Compared to the method of exposing capabilities to each device individually, application developers can comprehensively, quickly, and conveniently develop applications that utilize the capabilities of multiple devices using this first component function.

[0006] In conjunction with the first aspect, the development kit can be implemented as a software development kit, a hardware development kit, or a combination of the two.

[0007] In conjunction with the first aspect, both the first function and the second function can contain one or more functions.

[0008] In conjunction with the first aspect, the type of the first physiological data is related to the first sensor. The first sensor may include one or more sensors for acquiring physiological data. Specifically, the first sensor may include one or more of the following: a PPG sensor, an ECG sensor, a temperature sensor, a bioelectrical impedance analysis sensor, a blood oxygen sensor, and a skin conductance sensor. The first physiological data may include one or more of the following: PPG data, ECG data, temperature data, bioelectrical impedance data, and skin conductance data.

[0009] In conjunction with the first aspect, the first application can be implemented as an app, or as a meta-service, quick app, mini-program, etc. This first application can be a system application or a third-party application. It can be a pre-installed application at the factory or an application downloaded by the user during subsequent use.

[0010] In conjunction with the first aspect, the development kit may be provided by the provider of the operating system of the first electronic device, or the provider of the development kit may be different from the provider of the operating system.

[0011] In conjunction with the first aspect, in some implementations, the parameters for collecting the first physiological data specifically include one or more of the following: the on state of the first sensor, the reporting frequency of the data collected by the first sensor, and the number of reported packets of the data collected by the first sensor. It is evident that the first application can conveniently set various parameters for collecting the first physiological data by calling the second function within the first component function.

[0012] In conjunction with the first aspect or the previous implementation method, according to the first component function, a first parameter for collecting the first physiological data is set, specifically including one or more of the following: according to the first component function, setting the first sensor to be turned on or off; according to the first component function, setting the reporting frequency of the first physiological data; according to the first component function, setting the number of reporting packets of the first physiological data.

[0013] In conjunction with the first aspect or any of the above embodiments, in some embodiments, the second function is further used to set the usage mode of the data collected by the first sensor, and the method may further include: setting the usage mode of the first physiological data according to the first component function.

[0014] The usage of the first physiological data can be categorized into reporting and callback methods based on the data processing entity. Reporting refers to the application acquiring raw physiological data and then reporting it to the system algorithm library for result calculation. Callback refers to the application using its own algorithm to process the raw physiological data and calculate the result. The usage of the first physiological data can also be categorized by the specific algorithm used, such as heart rate algorithms, blood oxygen saturation algorithms, and blood pressure algorithms. Through the above implementation method, the first application can conveniently set the processing method for the collected physiological data through the first component function.

[0015] In conjunction with the first aspect or any of the above embodiments, in some embodiments, the first sensor includes one or more of the following: a PPG sensor, an ECG sensor, wherein the ECG sensor includes a first electrode and a second electrode. Through this embodiment, the first physiological data collected by the first sensor may include one or more of the following: PPG data, ECG data.

[0016] In conjunction with the previous embodiment, in some embodiments, before collecting the first physiological data using the first parameter through the first sensor, the method may further include: the first electronic device detecting that the first electrode and the second electrode are conducting. With this embodiment, if the first electronic device detects that the two electrodes of the ECG sensor are conducting, it can be assumed that the user is accurately wearing the first electronic device. Therefore, collecting the first physiological data at this time ensures the accuracy of the collected first physiological data.

[0017] In conjunction with the first aspect or any of the above embodiments, in some embodiments, executing the first event according to a first pressure sensitivity threshold range specifically includes: calculating a first physiological parameter using the collected first physiological data in response to satisfying the first pressure sensitivity threshold range. In this embodiment, considering that both excessively tight and excessively loose contact between the first sensor and the user's skin can affect the accuracy of data acquisition—for example, excessive looseness can lead to signal interruption, increased impedance, and increased motion artifacts due to poor contact, while excessive tightness may introduce high-frequency noise and electromyographic noise—the first sensor acquires accurate data when the user's finger touches the first electronic device with appropriate pressure, thereby enabling the calculation of an accurate first physiological parameter. Here, appropriate pressure specifically refers to pressure within the pressure sensitivity threshold range.

[0018] In conjunction with the previous implementation method, the first physiological parameter includes one or more of the following: heart rate, blood oxygen saturation, blood pressure, heart rate variability, respiratory rate, arteriosclerosis index, electrocardiogram, blood glucose, and vascular resistance.

[0019] In other embodiments, the first event executed by the first electronic device according to the first pressure sensitivity threshold range can be set by the application developer as needed. For example, it can be set to calculate heart rate using physiological parameters collected by the first sensor, or it can be set to display a user interface of the first application, etc.

[0020] In conjunction with the first aspect or any of the above embodiments, in some embodiments, the second function is specifically used to set a first index, which indicates the first parameter required for collecting the first physiological data. In this embodiment, the first component function in the development kit includes a second function for comprehensively setting the first sensor. This second function eliminates the need for application developers to focus on setting each parameter in the first parameter, making the development process simpler and more convenient.

[0021] In conjunction with the first aspect or any of the above embodiments, in some embodiments, the second function is specifically used to set a first health measurement service, which indicates first physiological data and first parameters required for collecting the first physiological data. In this embodiment, the first component function in the development kit includes a second function for comprehensively setting the first sensor. This second function allows application developers to focus only on the upper-level measurement service type without needing to worry about the setting of each parameter in the first parameter, and without needing to worry about the setting of specific capabilities in the lower-level devices. This simplifies the setting of one or more capabilities of the first sensor and pressure-sensitive device for application developers, making the development process simpler and more convenient.

[0022] In the two embodiments described above, the correspondence between the index that can be passed into the second function and its indicated content can be made available to application developers by the provider of the development toolkit. For example, it can be made available to application developers by the provider of the first electronic device in the form of development documentation. This makes it easier for application developers to call the second function during the development process.

[0023] In conjunction with the first aspect or any of the above embodiments, in some embodiments, the first component function further includes: a third function for setting a visualization element, and the method may further include: setting a first visualization element of the first application according to the first component function; and displaying the first visualization element.

[0024] In conjunction with the previous embodiment, in some embodiments, the first visualization element includes one or more of the following: a guide component, a pressure-sensitive prompt component, a breathing light component, and a measurement result component.

[0025] In combination with either of the two embodiments described above, in some embodiments, the third function specifically includes one or more of the following:

[0026] The guide component functions are used to set the guide component. The guide component functions include one or more of the following: functions to set the title of the guide component, functions to set the size of the guide component, functions to set the image of the guide component, functions to set the icon of the guide component, functions to set the text of the buttons in the guide component, functions to set the associated events of the buttons in the guide component, and functions to set the animation displayed when the buttons in the guide component are touched.

[0027] The breathing light component functions are used to set the breathing light component. The breathing light component functions include one or more of the following: functions for setting the breathing light color, functions for setting the breathing light blinking frequency, functions for setting the breathing light shadow effect, functions for setting the breathing light blinking effect, functions for setting the breathing light animation, functions for setting the text of the button in the breathing light component, functions for setting the associated events of the button in the guide component, and functions for setting the animation displayed when the button in the guide component is touched.

[0028] The functions for setting up pressure-sensitive tooltips include one or more of the following: functions for setting the type and direction of the pressure-sensitive tooltip, functions for setting the segmentation of the pressure-sensitive tooltip, functions for setting the color of the pressure-sensitive tooltip, functions for setting the text in the pressure-sensitive tooltip, functions for setting whether to display the pressed pointer, functions for setting the pointer image, functions for setting the text of the buttons in the pressure-sensitive tooltip, functions for setting the associated events of the buttons in the pressure-sensitive tooltip, and functions for setting the animation displayed when the buttons in the pressure-sensitive tooltip are touched.

[0029] The measurement result component functions are used to set the measurement result component. The measurement result component functions include one or more of the following: functions to set the title of the measurement result component, functions to set the image of the measurement result component, functions to set the text description of the measurement result component, functions to set the text of the buttons in the measurement result component, and functions to set the associated events of the buttons in the measurement result component.

[0030] In some implementations, when developing the first application, application developers can choose to create one or more components in a first component function within a single user interface, and can create the same or different types of components in different user interfaces as needed. Furthermore, when creating a component, application developers can select and configure one or more visual interface elements within that component as needed, rather than having to configure all the visual interface elements that the component can provide. Additionally, when creating similar components in different user interfaces, application developers can pass different parameters to the functions of that type of component referenced in different user interfaces as needed, thus allowing even similar components to present different content.

[0031] In conjunction with the first aspect or any of the above embodiments, in some embodiments, the first electronic device is a wearable device. The wearable device includes a watch body, on which a first button is included. The first sensor includes: a first PPG sensor located on the bottom shell of the watch body, a second PPG sensor disposed on the first button, and an ECG sensor including a first electrode and a second electrode. The first electrode is located on the bottom shell of the watch body, and the second electrode and pressure-sensitive device are disposed on the first button.

[0032] In conjunction with the first aspect or any of the above embodiments, in some embodiments, the first visualization element includes a first measurement control. Before acquiring first physiological data using the first parameter via the first sensor, the method may further include: detecting a user operation applied to the first measurement control. This is equivalent to a user triggering the first sensor to acquire first physiological data by inputting a user operation on the first measurement control.

[0033] In conjunction with the first aspect or any of the above embodiments, in some embodiments, the first component function further includes: a fourth function for setting a pressure-sensitive response threshold. Before collecting first physiological data using the first parameter through the first sensor, the method may further include: setting the first pressure-sensitive response threshold through the first component function; and collecting pressure-sensitive data greater than or equal to the first pressure-sensitive response threshold through the pressure-sensitive device. Through this embodiment, by inputting user operations on the pressure-sensitive device, the user can trigger the first sensor to collect first physiological data when the pressure-sensitive device collects pressure-sensitive data greater than or equal to the first pressure-sensitive response threshold.

[0034] In conjunction with the previous embodiment, in some embodiments, before acquiring pressure data greater than or equal to a first pressure response threshold through the pressure-sensitive device, the method may further include: first acquiring pressure data at a first frequency through the pressure-sensitive device; and after receiving a pressing operation applied to the pressure-sensitive device, acquiring pressure data at a second frequency through the pressure-sensitive device, the second frequency being greater than the first frequency. This embodiment eliminates the need for the pressure-sensitive device to continuously acquire pressure data at a high frequency; instead, it acquires pressure data at a high frequency only after a pressing operation is confirmed. This not only allows for high-frequency acquisition of subsequent pressure data generated by the user's pressing on the pressure-sensitive device, thus accurately determining the user's pressing operation, but also reduces the power consumption of the pressure-sensitive device, achieving low-power detection of pressure data generated by the user pressing the pressure-sensitive device.

[0035] In conjunction with the previous embodiment, in some embodiments, after acquiring data that is larger than the baseline and exceeds the baseline by the pressure-sensitive device, and that is greater than or equal to the button threshold, it is determined that a pressing operation has been received on the pressure-sensitive device. Here, the baseline and the button threshold are preset parameters, or the baseline and the button threshold are obtained by calibration by the first electronic device.

[0036] In conjunction with the three embodiments described above, in some embodiments, before collecting the first physiological data using the first parameter through the first sensor, the method may further include: determining that the first electronic device is in a non-interactive mode. With this embodiment, when the first electronic device is in a non-interactive mode, the user can input a user operation on the pressure-sensitive device, causing the pressure-sensitive device to collect pressure data greater than or equal to a first pressure-sensitive response threshold, thereby triggering the first sensor to collect the first physiological data.

[0037] In conjunction with the first aspect or any of the above embodiments, in some embodiments, the first electronic device is a watch or a bracelet.

[0038] In a second aspect, a control method for an electronic device is provided. This method is applied to a first electronic device, which includes a pressure-sensitive device and a first sensor for acquiring first physiological data. The method may include: first acquiring pressure-sensitive data at a first frequency via the pressure-sensitive device; after receiving a press operation applied to the pressure-sensitive device, acquiring pressure-sensitive data at a second frequency, where the second frequency is greater than the first frequency; acquiring pressure-sensitive data greater than or equal to a first pressure-sensitive response threshold via the pressure-sensitive device; and in response to acquiring pressure-sensitive data greater than or equal to the first pressure-sensitive response threshold, acquiring the first physiological data via the first sensor.

[0039] Secondly, the pressure-sensitive device first collects pressure data at a lower first frequency. Once a press operation is confirmed on the device based on the collected data, the frequency is increased to a second frequency for further pressure data collection. This method eliminates the need for the pressure-sensitive device to continuously collect pressure data at a high frequency. Instead, it collects pressure data at a high frequency only after a press operation is confirmed. This not only allows for high-frequency collection of subsequent pressure data generated by the user's press on the device, thus accurately identifying the user's press operation, but also reduces the power consumption of the pressure-sensitive device, achieving low-power detection of pressure data generated when the user presses the device.

[0040] In conjunction with the second aspect, in some embodiments, the method may further include: after acquiring data that is larger than a key threshold than the baseline through the pressure-sensitive device, determining that a pressing operation has been received on the pressure-sensitive device, wherein the baseline and the key threshold are preset parameters, or the baseline and the key threshold are obtained by calibration of the first electronic device.

[0041] In conjunction with the second aspect or its implementation, in some embodiments, before collecting the first physiological data using the first parameter via the first sensor, the method may further include: determining that the first electronic device is in a non-interactive mode. In this implementation, when the first electronic device is in a non-interactive mode, the user can input a user operation on the pressure-sensitive device to cause the pressure-sensitive device to collect pressure data greater than or equal to a first pressure-sensitive response threshold, thereby triggering the first sensor to collect the first physiological data.

[0042] Thirdly, a control method for an electronic device is provided, characterized in that the method is applied to a first electronic device, the first electronic device including a first button. The method may include: displaying a first dial; when the first dial is displayed in a first mode, executing a second event in response to a pressing operation of the first button; when the first dial is displayed in a second mode, acquiring pressure-sensitive data on the first button in response to a pressing operation of the first button, and presenting the interactive effect of the first dial based on the pressure-sensitive data.

[0043] The third approach involves providing different responses to the same user operation when the first electronic device is in different modes.

[0044] In conjunction with the third aspect, in some implementations, the first mode and the second mode may be different modes provided by a dial displayed by the first electronic device, different modes provided by a user interface displayed by the first electronic device, or different modes provided by the first electronic device itself.

[0045] In conjunction with the third aspect, the second event can be set by the application developer when developing the application, and there are no restrictions here.

[0046] In conjunction with the third aspect, the third event can be set as needed by the developers of the first dial; no restrictions are imposed here.

[0047] In conjunction with the third aspect or its implementation, in some implementations, the first mode is a non-interactive mode and the second mode is an interactive mode.

[0048] In conjunction with the third aspect or its implementation, in some embodiments, the method may further include: switching to a second mode in response to a received first operation while in a first mode; or switching to a first mode in response to a received second operation while in a second mode. Through this implementation, the first electronic device can switch between a first mode and a second mode in response to a user operation.

[0049] In conjunction with the previous implementation, in some implementations, the first dial includes a first control. The first control in the first dial displayed in the first mode is implemented in a first form, and the first control in the first dial displayed in the second mode is implemented in a second form. The first operation is an operation performed on the first control in the second form, and the second operation is an operation performed on the first control in the first form.

[0050] In conjunction with the third aspect or the implementation of the third aspect, in some implementations, the pressing operation of the first button specifically includes: a pressing operation that triggers pressure data greater than the first pressure response threshold on the first button.

[0051] Fourthly, an electronic device is provided, comprising: a pressure-sensitive device, a first sensor for acquiring first physiological data, a memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program to implement the method provided as described in the first aspect, or an embodiment of the first aspect, or a second aspect, or an embodiment of the second aspect, or a third aspect, or an embodiment of the third aspect.

[0052] Fifthly, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the method provided by the first aspect, or the embodiments of the first aspect, or the second aspect, or the embodiments of the second aspect, or the third aspect, or the embodiments of the third aspect.

[0053] A sixth aspect provides a computer program product, including a computer program that, when executed by a processor, implements the method provided by the first aspect, or the implementation of the first aspect, or the second aspect, or the implementation of the second aspect, or the third aspect, or the implementation of the third aspect.

[0054] In a seventh aspect, a chip system is provided, including a processing circuit and an interface circuit. The interface circuit is used to receive computer instructions and transmit them to the processing circuit. The processing circuit is used to execute the computer instructions to implement the method provided by the first aspect, or the embodiments of the first aspect, or the second aspect, or the embodiments of the second aspect, or the third aspect, or the embodiments of the third aspect. Attached Figure Description

[0055] Figure 1 This is a schematic diagram of the appearance of the electronic device 100 provided in the embodiments of this application;

[0056] Figure 2 A schematic diagram of a scenario in which a user wears an electronic device 100 and uses a novel device in the electronic device 100 to detect relevant data;

[0057] Figures 3A-3D A schematic diagram illustrating four types of UI components provided in the embodiments of this application;

[0058] Figures 4A-4H The user interface displayed by the electronic device 100 during the operation of the first application is shown;

[0059] Figure 4I and Figure 4J Two other implementations of the pressure-sensitive cue component are shown;

[0060] Figure 4K This demonstrates another way to activate the health measurement function provided by the first application;

[0061] Figure 4LThe example illustrates the workflow of the physical devices in electronic device 100 and the visual interface elements displayed therein during the activation of the health measurement function of the first application.

[0062] Figure 4M and Figure 4N Internal interaction flowchart for performing health measurement services on electronic device 100;

[0063] Figure 4O This is another internal interaction flowchart for electronic device 100 when performing health measurement operations;

[0064] Figures 5A-5C An example of a pressure-sensitive interaction scenario of an electronic device 100 is shown;

[0065] Figure 5D A flowchart illustrating how electronic device 100 provides pressure-sensitive interaction functionality in different modes;

[0066] Figure 6A This is a schematic diagram illustrating the principle of detecting the pressing operation of a mechanical button;

[0067] Figure 6B A flowchart illustrating the principle of low-power pressure sensing;

[0068] Figure 6C A device calibration flowchart for the pressure-sensitive device provided in the embodiments of this application;

[0069] Figure 6D This is a flowchart illustrating the internal interaction process for pressure sensing in electronic device 100.

[0070] Figure 7 This is a hardware structure diagram of the electronic device 100 provided in an embodiment of this application. Detailed Implementation

[0071] The term "user interface (UI)" used in the following embodiments of this application refers to the medium interface through which an application or operating system interacts and exchanges information with the user. It realizes the conversion between the internal form of information and the form that the user can accept. The user interface is source code written in a specific computer language such as Java or Extensible Markup Language (XML). The interface source code is parsed and rendered on the electronic device, ultimately presenting content that the user can recognize. A common form of user interface is the graphical user interface (GUI), which refers to a user interface related to computer operation displayed graphically. It can be visible interface elements such as text, icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, and widgets displayed on the screen of an electronic device.

[0072] The technical solutions in the embodiments of this application will be clearly and thoroughly described below with reference to the accompanying drawings.

[0073] Wearable devices (such as watches, bracelets, and wristbands), mobile phones, laptops, and tablets are equipped with components such as cameras, microphones, motors, buttons, and various sensors. The operating system (OS) of these electronic devices provides the capabilities of these components, such as the camera's ability to capture image frames, the microphone's ability to collect audio, and the sensors' ability to collect corresponding data. These capabilities are made available to application developers through function calls, allowing them to develop apps that are compatible with these electronic devices and can utilize the capabilities of these components.

[0074] The following example, using a camera in an electronic device, illustrates how application developers can leverage its capabilities to develop their own apps. Cameras possess single-frame capture, loop-frame capture, and multi-frame capture capabilities. Single-frame capture refers to capturing one frame at a time; loop-frame capture refers to continuously extracting image frames from a sequence at time intervals; and multi-frame capture refers to capturing multiple image frames simultaneously. The operating system of an electronic device provides these camera capabilities to application developers through function calls. Taking WeChat as an example... TM For example, WeChat TM Developers can call the `triggerLoopingCapture` function to implement the "scan" feature; and call the `triggerSingleCapture` function to implement the feature in WeChat. TMThis app's in-app photo-taking function calls the multi-frame capture function (triggerMultiCapture) to achieve this within WeChat. TM This app has the function of shooting videos or capturing animated images.

[0075] The capabilities of other components in electronic devices are also exposed through similar function call methods. Electronic devices contain numerous different components, such as cameras, microphones, motors, buttons, and various sensors, each with its own capabilities exposed to application developers. If an application developer wants to develop an app that utilizes the capabilities of multiple components, they need to understand the capabilities exposed by each component and combine these capabilities with the respective function call methods to develop the app. This approach of exposing each component individually is not intuitive for application developers. Furthermore, during app development, developers need to create their own business logic, such as determining what data the sensors collect to indicate a user's health abnormality (e.g., high blood pressure risk) and when to activate the sensors to collect data. This requires significant time and effort from application developers. Moreover, if multiple developers create apps with similar or identical functions, there is a large amount of repetitive work in the development of these apps, hindering the improvement of the ecosystem development environment.

[0076] The novel device provided in the embodiments of this application

[0077] The following embodiments of this application provide a novel device for electronic devices. For this novel device, the embodiments of this application provide a way to expose the capabilities of the novel device to application developers, so that application developers can intuitively and conveniently obtain and use the capabilities of the novel device.

[0078] Figure 1 This is a schematic diagram of the appearance of the electronic device 100 provided in an embodiment of this application. The electronic device 100 is exemplarily drawn as a wearable watch. Not limited to watches, the electronic device 100 can also be implemented as a bracelet, ring, wristband, belt, or other wearable device. Not limited to wearable devices, the electronic device 100 can also be implemented as other types of terminal devices such as mobile phones, tablets, and laptops.

[0079] Figure 1 (a) is a front view of the electronic device 100. Figure 1 (b) is a schematic diagram of the rear of the electronic device 100. Figure 1 (c) is a side view of the electronic device 100.

[0080] like Figure 1 (a)- Figure 1As shown in (c), the electronic device 100 may include a watch body 101 and a watch strap 102. The watch body 101 is connected to the watch strap 102 and can be worn on a user's wrist via the watch strap 102. The watch body 101 includes: Figure 1 (a) shows the display screen located on the front of the electronic device 100, and, Figure 1 (b) shows the bottom casing located on the back of the electronic device 100. The display screen can be used to display time, battery level, Bluetooth identifier, received messages, and user activity data, calories burned, and physiological parameters such as blood pressure, blood sugar, and blood oxygen measured by the electronic device 100, and has basic functions such as call reminders and message notifications.

[0081] like Figure 1 (a)- Figure 1 As shown in (c), a crown 103 and buttons 104 may be configured on the side of the electronic device 100. The crown 103 may be mechanical and can be rotated and pressed by the user. The electronic device 100 may perform corresponding actions in response to user operations applied to the crown 103. The buttons 104 may be mechanical buttons or non-mechanical touch buttons. The electronic device 100 may perform corresponding actions in response to user operations applied to the buttons 104. Mechanical buttons are those that can move in position (e.g., towards the watch body 101) with a user's pressing operation and return to their original position with a user's releasing operation. Touch buttons, on the other hand, do not move in position with a user's pressing or releasing operation.

[0082] like Figure 1 (a)- Figure 1 As shown in (c), a button 105 is positioned between the crown 103 and the button 104. The button 105 provides the ability to detect multiple data points, as described in this embodiment of the novel device. The button 105 can be a smooth surface on the watch body or a raised portion thereof, for example... Figure 1 (a)- Figure 1 (c) shows the protruding shape. The protruding button 105 facilitates the user's finger positioning on the button 105. In other embodiments, the button 105 may not be located between the crown 103 and the button 104, but may be located in other parts, such as integrated into the crown 103 or integrated into the button 104. The button 105 may be a mechanical button or a non-mechanical touch button. Alternatively, the crown 103 and the button 104 may not be provided on the watch body.

[0083] The novel device provided in this application is a composite device that integrates at least two devices. The specific devices integrated in this application are not limited.

[0084] In one embodiment, the novel device is a composite sensor integrating at least a pressure sensor and a physiological data sensor. The pressure sensor collects pressure data and can be used to detect user pressure operations. The physiological data sensor is used to detect physiological data. The physiological data sensor integrated into the novel device may include, but is not limited to, one or more of the following: a photoplethysmography (PPG) sensor, an electrocardiogram (ECG) sensor, a temperature sensor, a bioelectrical impedance analysis (BIA) sensor, a blood oxygen sensor, and an electrodermal activity (EDA) sensor. The physiological data collected by the physiological data sensor can be used to calculate the user's physiological parameters, such as heart rate, blood oxygen saturation, blood pressure, respiratory rate, heart rate variability, maximum oxygen uptake, arteriosclerosis index, vascular resistance, cardiac electrical activity, skin temperature, blood glucose, and stress index. In some embodiments, this function of measuring the user's physiological parameters may also be referred to as a "micro-physical examination" detection function.

[0085] The following section will introduce a novel device that integrates a pressure sensor, a PPG sensor, and an ECG sensor as an example.

[0086] This new device has the ability to detect pressure-sensitive data, PPG data, and ECG data. Among them, pressure-sensitive data is the raw data output by the pressure sensor, PPG data is the raw data output by the PPG sensor, and ECG data is the raw data output by the ECG sensor.

[0087] The pressure sensor in the novel device is used to detect pressure data and may include modules such as a pressure-sensing device (e.g., a pressure-sensitive resistor or piezoelectric film), signal conditioning circuitry (e.g., including amplification circuitry, filtering circuitry, analog-to-digital conversion circuitry, etc.), and a communication interface. (Reference) Figure 1 (e) In the new device, the pressure sensor of the pressure sensor can be set at the button 105, so that the electronic device 100 can detect pressure data at the button 105.

[0088] The PPG sensor in the new device is used to detect PPG data, which can be used to calculate physiological parameters related to the user's cardiovascular function, such as heart rate, blood oxygen saturation, blood pressure, respiratory rate, heart rate variability, maximum oxygen uptake, arteriosclerosis index, and vascular resistance.

[0089] The novel device may include one or more PPG sensors. A PPG sensor may include one or more light sources, such as light-emitting diodes (LEDs), one or more photoelectric detectors (PDs), signal processing circuitry (including amplifier circuits, filter circuits, analog-to-digital converter circuits, etc.), and communication interfaces. The light source may emit light of one or more wavelengths, such as red light, infrared light, blue light, green light, etc., and the embodiments of this application are not limited thereto.

[0090] In a PPG sensor, a light source and a photodetector can form a light source-photodetector pair. In this pair, the light source and photodetector are spaced a certain distance apart. The light source emits light, and after the light shines on the skin, the photodetector detects the reflected light after it has been absorbed by the blood and tissue during penetration. The reflected light is converted into an electrical signal and output as PPG data. In other words, one light source-photodetector pair can collect one channel of PPG data. If the PPG sensor contains multiple light source-photodetector pairs, multiple channels of PPG data can be collected. Devices in different light source-photodetector pairs can be reused. For example, a PPG sensor may include light source 1, light source 2, and photodetector 1. Light source 1 and photodetector 1 can form one light source-photodetector pair, and light source 2 and photodetector 1 can form another. Furthermore, the spacing between different light source-photodetector pairs can be the same or different.

[0091] refer to Figure 1 (e) The novel device may include a second PPG sensor disposed on button 105, wherein one or more light source-photodetector pairs of the second PPG sensor may be disposed on button 105 to facilitate the electronic device 100 in detecting PPG data at button 105. In some embodiments, reference is made to... Figure 1 (d) The novel device may also include a first PPG sensor disposed on the bottom shell on the back of the watch body. One or more light source-photodetector pairs of the first PPG sensor may be disposed on the bottom shell on the back of the watch body, so that the electronic device 100 can detect PPG data at the bottom shell.

[0092] The ECG sensor in the novel device is used to detect ECG data, which can be used to calculate physiological parameters related to the electrocardiogram signal, such as heart rate, heart rate variability, electrical activity, and respiratory rate. The ECG sensor may include electrodes and signal processing circuitry (e.g., amplification circuitry, filtering circuitry, data processing unit, etc.). The ECG sensor's electrodes include at least a first electrode and a second electrode. When the first and second electrodes are connected (i.e., a lead is formed), a circuit is created, which can detect the potential changes generated on the human body surface by cardiac activity, thereby reflecting the physiological state of the heart. Optionally, the ECG sensor may also include a third electrode, which can serve as a reference electrode to improve the accuracy of ECG detection.

[0093] like Figure 1 (d) and Figure 1 As shown in (e), the first electrode of the ECG sensor in the novel device can be disposed on the bottom shell on the back of the watch body, and the second electrode can be disposed on the button 105 on the side of the watch body. The third electrode (not shown in the figure) can be located on the bottom shell on the back of the watch body or on the button 105 on the side of the watch body; this embodiment does not limit this.

[0094] In this embodiment, the novel device and the button 105 can be two different objects, with some components of the novel device positioned below the button 105. In other embodiments, the novel device may include the button 105, which can be considered as a cover plate, enclosing some components of the novel device within the main body of the electronic device 100.

[0095] It should be noted that the electronic device 100 provided in this application embodiment is not limited to... Figure 1 The diagram illustrates the form of a wearable watch. Similar to a watch body, the electronic device 100 may include a device body; similar to a watch strap, the electronic device 100 may include a strap, or it may not have a strap. The electronic device 100 may have buttons on its device body, which may include the novel device mentioned earlier. This novel device may include a pressure sensor and a physiological data sensor. In one example, the physiological data sensor may include a PPG sensor and an ECG sensor. The PPG sensor may include a second PPG sensor located at the button position in the device body, and a first PPG sensor located at other positions in the device body. The ECG sensor may include a first electrode and a second electrode, wherein the second electrode may be located at the button position in the device body.

[0096] Figure 2 The illustration depicts a scenario where a user wears a wearable watch-style electronic device 100 and uses novel components within the electronic device 100 to detect relevant data. For example... Figure 2As shown, the electronic device 100 is worn on the user's left wrist, with the back cover of the electronic device 100 conforming to the user's skin. The user's right-hand fingers touch button 105. In this wearing scenario, the first PPG sensor located on the back cover of the electronic device 100 and the second PPG sensor located on button 105 can both be used to collect PPG data. The pressure-sensitive device located on button 105 can be used to collect pressure-sensitive data. When the first and second electrodes of the ECG sensor are connected, they can be used to collect ECG data. Optionally, the ECG sensor may also include a third electrode, which can serve as a reference electrode to improve ECG detection accuracy.

[0097] The novel devices described in the preceding paragraphs, which include pressure sensors, PPG sensors, and ECG sensors, may also include other sensors or replace some of the sensors described herein. In summary, the novel devices provided in this application are composite sensors capable of acquiring multiple types of data.

[0098] Based on the novel device provided in this application embodiment, the electronic device 100 can provide corresponding functions related to the novel device, such as detecting pressure-sensitive data, detecting physiological data (e.g., PPG data and / or ECG data), and detecting events where two electrodes in the ECG data are conductive. Based on the above functions, the electronic device 100 can combine some or all of the functions to provide some application scenarios, or combine these functions with some specific events to provide some application scenarios. For example, the application scenarios provided by the electronic device 100 may include, but are not limited to: detecting physiological data, detecting physiological data only when the pressure-sensitive data meets certain conditions (e.g., a press operation on button 105), detecting physiological data only when the pressure-sensitive data meets certain conditions and the two electrodes of the ECG sensor are conductive, evaluating the quality of the detected physiological data based on the pressure-sensitive data collected by the pressure sensor, performing power-on or power-off when the two electrodes of the ECG sensor are conductive, and responding to various operations input by the user on the electronic device 100 only when the two electrodes of the ECG sensor are conductive.

[0099] In addition to the novel devices provided in the embodiments of this application, the electronic device 100 may also include other hardware modules, such as fingerprint sensors, temperature sensors, acceleration sensors, and other sensors, as well as hardware such as microphones, speakers, and motors. The hardware structure of the electronic device 100 can be referred to below. Figure 7 The relevant information will not be elaborated here.

[0100] This application embodiment discloses the capabilities of the novel device to application developers.

[0101] For novel devices in electronic devices, this application provides a method for exposing the capabilities of these novel devices to application developers. Specifically, this involves exposing the capabilities of the novel devices to application developers in the form of a development kit. Specifically, the operating system (OS) of the electronic device provides low-level capabilities related to the novel device. These low-level capabilities include hardware capabilities (such as the ability to schedule sensor drivers and sensor data acquisition capabilities) and software capabilities (such as the ability to schedule physiological parameter algorithms). The development kit encapsulates the OS capabilities into a developer-friendly toolkit. This development kit can be implemented as a software development kit (SDK), a hardware development kit (HDK), or a combination of both. Specifically, the development kit can encapsulate an application program interface (API). An API is a collection of predefined functions, each of which is a code block encapsulating a specific function that can be used to receive input parameters and return results. The functions in the API are the specific code that implements the API's functionality.

[0102] In summary, in this embodiment, the electronic device exposes the development toolkit (DMP) related to the novel device to application developers. Specifically, the underlying capabilities related to the novel device provided by the electronic device's operating system are encapsulated into a DMP, and then exposed to application developers in the form of functions provided within the DMP. Exposing the DMP to application developers means that the electronic device provider integrates the DMP into the electronic device, specifically into the operating system, and publishes development documentation. This documentation explains the calling methods of each function included in the DMP and the functionalities that these functions can achieve within the electronic device. Application developers can then develop applications according to the documentation. The application's program code can include code blocks that call functions from the DMP. Thus, when the application runs on the electronic device, it can call the functions related to the novel module within the electronic device. The application developer and the electronic device provider can be the same or different; that is, the application developed by the application developer can be a system application or a third-party application, relative to the electronic device provider.

[0103] It is understandable that the above example uses the operating system vendor providing the development kit (DKP). It is also understandable that the DKP provider may not be the operating system vendor. In other words, the DKP provider can be different from the operating system vendor.

[0104] In this application embodiment, a development toolkit for the capabilities of the novel device will be made available to application developers, allowing them to more intuitively and conveniently acquire and use the capabilities of the novel device, and making the application development process simpler and more convenient.

[0105] Different operating systems access underlying capabilities in different ways. In this embodiment, different development toolkits can be provided for different operating systems to adapt to them. Thus, regardless of the operating system running on the electronic device, the device can use the development toolkit corresponding to that operating system to expose the capabilities of the new device to application developers, facilitating the development of applications suitable for different operating systems. In this embodiment, applications developed by application developers using the development toolkit can be implemented as apps, meta-services, quick apps, mini-programs, etc. These applications can be system applications or third-party applications. They can be pre-installed at the factory or downloaded by the user during subsequent use.

[0106] The functions provided by the development toolkit in this application embodiment are described in detail below. The functions provided by the development toolkit can be referred to as first component functions. Components can be categorized as follows: user interface (UI) components, which provide visual interface elements; and functional components, which provide internal processing functions not visible to the electronic device. Some components can belong to both UI components and functional components, possessing the capabilities of both types of components. In general, first component functions can be used to set visual interface elements and also to set some internal processing functions.

[0107] In this embodiment, the novel device in the electronic device 100 is a composite sensor integrating a pressure sensor and a physiological data sensor. Taking the novel device integrating a pressure sensor, a PPG sensor, and an ECG sensor as an example, the first component function provided in the development toolkit is given below as an example. This first component function may include the various functions shown in Table 1. The first component functions shown in Table 1 are merely examples and do not constitute a limitation on the first component functions in the embodiments of this application.

[0108]

[0109]

[0110]

[0111]

[0112] Table 1

[0113] Table 1 is merely an example. For novel devices integrating pressure sensors, PPG sensors, and ECG sensors, the first component functions shown in Table 1 may include more or fewer functions, and this application embodiment does not limit this. For example, the functions implementing the guide component, breathing light component, pressure-sensitive prompt component, or measurement result component may also include functions for setting the size, position, and other attributes of the button. As another example, the functions implementing the pressure-sensitive prompt component may also include functions for setting the size, position, and other attributes of the pressure-sensitive prompt bar. The specific number and content of the functions included in the first component functions depend on the provider of the development toolkit. Table 1 is merely an example. For novel devices integrating pressure sensors, PPG sensors, and ECG sensors, the names and program codes of each function in the first component functions shown in Table 1 are merely examples. The meaning and function of each function are recorded in Table 1, and their names and program codes do not constitute a limitation on the embodiments of this application. For novel devices that integrate pressure sensors, PPG sensors, and ECG sensors, in other embodiments, the names and program codes of some functions can also be changed to other forms. For example, the program code of the .setTitle() function corresponding to the guide component in Table 1 can also be changed to .setHeading(), with no change in meaning or function, both of which are used to set the title in the guide component.

[0114] The application development process is described in conjunction with the first component function shown in Table 1.

[0115] As shown in Table 1, the components provided by the exemplary first component function in Table 1 include the following five categories: guide component, breathing light component, pressure sensitivity prompt component, health measurement component, and measurement result component. The components in the first column of Table 1 can be viewed as classes in the development process, and the functions in the second column can be viewed as methods implemented within those classes, i.e., component functions used to set the corresponding components. Among them, the guide component, breathing light component, and measurement result component are all UI components, used to provide visual interface elements displayed on the user interface. The pressure sensitivity prompt component is both a UI component and a functional component; it provides both visual interface elements displayed on the user interface and an internal processing function for setting the pressure sensitivity threshold range in the electronic device. The health measurement component is a functional component, used to provide internal processing functions related to health measurement business in the electronic device.

[0116] Figures 3A-3D The four types of UI components provided in Table 1 are illustrated as examples.

[0117] like Figure 3A As shown, the guide component may include one or more of the following visual interface elements: title, image, icon, label, and button.

[0118] like Figure 3BAs shown, the breathing light component can include one of the following visual interface elements: breathing light and button.

[0119] like Figure 3C As shown, the pressure-sensitive prompt component may include one or more of the following visual interface elements: pressure-sensitive prompt bar, press pointer, button, and other visual interface elements.

[0120] like Figure 3D As shown, the measurement results component may include one or more of the following visual interface elements: title, image, label, and button.

[0121] Figures 3A-3D For illustrative purposes only, the four UI components described above can include even more visual interface elements. For example, the breathing light component can also include visual interface elements such as text and buttons, and the pressure-sensitive prompt component can also include visual interface elements such as buttons and touch animations.

[0122] Taking the first component function shown in Table 1 as an example, Figures 4A-4N An example is shown of the user interface displayed during the operation of an application developed by an application developer using this first component function.

[0123] Figures 4A-4H The diagram illustrates the user interface displayed by a wearable watch-style electronic device 100 while running a first application. This first application can be implemented as an app, a meta-service, a quick app, a mini-program, etc. It can be a system application or a third-party application. The first application can be a pre-installed application or an application downloaded by the user during subsequent use.

[0124] The first application could be, for example, an application with health measurement functions, specifically an application that includes blood oxygen measurement. The main function of this first application is to calculate blood oxygen saturation using data collected by the PPG sensor in the novel device, and to jointly calculate heart rate using data collected by the PPG sensor and the ECG sensor in the novel device.

[0125] like Figure 4A As shown, the user interface 10 of the first application displays: title 201, image 202, icon 203, and button 204. Title 201 displays the text "Fingertip Blood Oxygen Measurement," indicating to the user that this user interface 10 can be used to enable the fingertip blood oxygen measurement function. The fingertip blood oxygen measurement function provided by the first application can not only measure blood oxygen but also heart rate. Image 202 is an image of a watch, icon 203 is a blood oxygen icon, and the text in button 204 is "Start Measurement." Button 204 can also be referred to as the first measurement control.

[0126] When the electronic device 100 receives a user operation on the button 204, in response to the user operation, the electronic device 100 displays... Figure 4B The user interface 20 shown is as follows. User interface 20 displays: title 205, image 206, and label 207. Image 206 may be a dynamic image containing multiple frames, used to prompt the user to press their finger on button 105 to begin measurement.

[0127] Electronic device 100 display Figure 4B After the user interface 20 shown, it can be displayed Figure 4C The user interface 30 shown is shown. User interface 30 displays: image 208 and label 209.

[0128] Displayed on electronic device 100 Figure 4C During the user interface 30 process shown, when the electronic device 100 receives a user operation that causes the user to press their finger on the button 105, it can display... Figure 4D The user interface 40 shown is displayed. The user interface 40 includes: a title 210, an image 211, an icon 212, a label 213, and a breathing light 214. When the electronic device 100 receives a user operation involving pressing a finger onto button 105, the electronic device 100 can also activate the PPG sensor and ECG sensor in the novel device to collect PPG data and ECG data respectively. Activating the PPG sensor and ECG sensor in the novel device after a press operation on button 105 can save power. In some other embodiments, the electronic device 100 can also receive a user operation involving pressing a finger onto button 105. Figure 4A After the user operates the button 204, the PPG sensor in the new device is activated.

[0129] Electronic device display Figure 4D After the user interface 40 is shown, while the user continues to press their finger on button 105, it can display... Figure 4EThe user interface 50 shown is as follows. User interface 50 displays: a title 215, an image 216, a label 217, a pressure pointer 218, and a pressure-sensitive indicator bar 219. The title 215 can be a countdown from when the user presses their finger on button 105 until sufficient data (including PPG data) is successfully collected to calculate blood oxygen results. This countdown can be a fixed duration or a countdown that adjusts in real-time according to the actual data collection process; no limitation is made here. The pressure-sensitive indicator bar 219 is divided into three segments, which can be displayed in different colors. For example, the middle segment can be set to green, and the first and third segments can be set to white and red, respectively. The pressure pointer 218 changes its position on the pressure-sensitive indicator bar 219 according to the pressure value of the user's finger pressing on button 105; the greater the pressure value, the further back the pressure pointer 218 points in the pressure-sensitive indicator bar 219. The label 217 can be the text "Please keep the pressure level in the green period," used to prompt the user to use appropriate pressure when pressing button 105.

[0130] The sufficient amount of PPG data used to calculate blood oxygen saturation, as mentioned in the previous paragraph, is related to the input parameters of the `.ppgDataCallBack()` function in Table 1. For example, if the application developer uses the `.ppgDataCallBack()` function with parameters indicating that PPG data is processed via a reporting method, the sufficient amount of PPG data can be set by the operating system of the electronic device 100. If the application developer uses the `.ppgDataCallBack()` function with parameters indicating that PPG data is processed via a callback method, the sufficient amount of PPG data can be set by the application developer based on the algorithm they use. The method for setting the sufficient amount of ECG data used to calculate blood oxygen saturation is similar to that for setting the amount of PPG data, and will not be repeated here.

[0131] Once the electronic device 100 has successfully collected sufficient data, it can calculate blood oxygen saturation based on the collected data and display the user interface 60 during the calculation process. The user interface 60 displays: a title 220, an image 221, and a label 222. The title 220 can show the percentage progress from when the electronic device 100 started calculating blood oxygen saturation to when the calculation was successfully completed.

[0132] Once the electronic device 100 successfully calculates the blood oxygen saturation, it can display it. Figure 4GThe user interface 70 is shown. User interface 70 displays: title 223, image 224, label 225, and button 226. Title 223 shows the blood oxygen saturation calculated by electronic device 100. Image 224 is a graph showing the blood oxygen saturation at various time points during this measurement. Label 225 shows the heart rate obtained during the blood oxygen measurement. The text in button 226 reads "Measurement Complete".

[0133] When electronic device 100 receives such Figure 4A Following a user operation on button 204, the conditions for the first application in electronic device 100 to successfully measure blood oxygen saturation include: the user maintaining a correct measurement posture for a duration sufficient for electronic device 100 to acquire enough data (including PPG data). A correct measurement posture can be, for example, as shown in... Figure 2 As shown, the user wears the electronic device 100 on their left wrist and presses their right index, middle, or other fingers on button 105, or vice versa. When the user maintains this posture, the two electrodes of the ECG sensor in the novel device of the electronic device 100 are conductive and can collect ECG data. Therefore, when the electronic device 100 detects that the two electrodes of the ECG sensor are conductive, it can be considered that the user is maintaining the correct measurement posture. Considering that both the electrodes in the ECG sensor and the light source-photodetector in the PPG sensor are too tight or too loose when in contact with the user's skin, the accuracy of data acquisition will be affected. For example, too loose a contact may cause signal interruption, increased impedance, and increased motion artifacts, while too tight a contact may introduce high-frequency noise and electromyographic noise. Therefore, the correct measurement posture also includes the user pressing button 105 with appropriate pressure. This allows the PPG and ECG sensors to collect accurate data, thereby calculating blood oxygen saturation and heart rate. The appropriate pressure here specifically refers to the pressure within the pressure sensitivity threshold range mentioned in Table 1.

[0134] If electronic device 100 receives such Figure 4A After a user operation on button 204, if it is detected that the user has failed to maintain the correct posture, or that the user has not maintained the correct posture for the required duration, the first application in electronic device 100 will exit the measurement and display a measurement failure user interface. Situations where electronic device 100 exits the measurement may include, but are not limited to: the user is not wearing electronic device 100 on their wrist, the user's finger does not press button 105, the user's finger presses button 105 for a period of time and then releases it, resulting in insufficient pressing time, or the user's finger presses button 105 with excessive or insufficient force, etc. (Reference) Figure 4HWhen a measurement fails due to excessive pressure applied by the user's finger to button 105, the electronic device 100 can display user interface 80. User interface 80 displays: a title 227, a label 228, and a button 229. Title 227 can display the text "Measurement Failed," and label 228 can display the specific reason for the measurement failure, such as... Figure 4H The displayed text reads, "Measurement unsuccessful, excessive finger pressure. If measurement failure is due to other reasons, label 228 can also be set to other prompt text. Please lift your finger and re-touch the side position to remeasure." The text in button 229 can be "Remeasure." In some embodiments, the correct posture may also include the user being still while wearing the electronic device 100, or the user wearing the electronic device 100 in a flat position. Specifically, when wearing a wearable watch-style electronic device 100, being in a flat position means that the watch (especially the sensor part on the back case) is smoothly placed against the wrist, so that the wearable watch-style electronic device 100 is in a horizontal posture, which can avoid tilting or shaking, thereby ensuring that the ECG sensor can accurately collect data.

[0135] Table 2 provides information on available resources. Figures 4A-4H Taking the first application of the user interface shown as an example, this illustrates part of the development work done by the application developer in developing the first application using the first component functions shown in Table 1.

[0136]

[0137]

[0138]

[0139]

[0140] Table 2

[0141] As shown in Table 2, application developers can choose to create one or more components in the first component function within a single user interface, and can create the same or different types of components in different user interfaces as needed. For example, application developers can... Figures 4A-4C Guide components have been created in all the user interfaces shown. Figure 4D The user interface shown includes a guide component and a breathing light component. Figure 4E The user interface shown includes a guide component and a pressure-sensitive prompt component. Figure 4F A bootstrapping component was created in the user interface shown. Figure 4G and Figure 4H The user interface shown depicts a measurement results component. The components created in the user interfaces described above are merely examples; in other implementations, application developers can combine one or more components in the user interface as needed.

[0142] As shown in Table 2, when creating a component, application developers can choose to configure one or more visual interface elements as needed, rather than having to configure all the visual interface elements that the component can provide. For example, when creating... Figure 4A When user interface 10 is shown, the functions `.setTitle()`, `.setImage()`, `.setIcon`, and `.setButtonText()` under the guide component class in Table 1 are referenced, thus displaying the title 201, image 202, icon 203, and button 204 in the guide component of user interface 10. However, functions such as `.setLabel(text)` and `.setAnimation()` are not referenced, therefore no labels are displayed in user interface 10, and no animation plays after a finger touches the button. For example, compared to... Figure 4A The user interface 10 shown is where application developers create... Figure 4B When user interface 20 is shown, `.setTitle()`, `.setImage()`, and `.setLabel(text)` are referenced under the bootstrap component class in Table 1. Therefore, user interface 20 displays the title 205, image 206, and label 207. However, `.setIcon` and `.setButtonText()` are not referenced, so no icons or buttons are displayed in user interface 20. For example, when application developers create... Figure 4D When configuring the breathing light component in the user interface 40 shown, breathing light 214 was selected, but no button was configured. For example, when creating an application... Figure 4E When the pressure-sensitive prompt component in the user interface 50 shown is configured, the pressure-sensitive prompt bar 219 and the press pointer 218 are selected, but no button is configured.

[0143] As shown in Table 2, when application developers create similar components in different user interfaces, they can pass different parameters to the functions of that component referenced in different user interfaces as needed. In other words, even components of the same type can present different content in different user interfaces. For example, see... Figure 4G and Figure 4H The user interfaces shown above are both instances where the application developer created measurement result components. Figure 4G The measurement results component references the `.setTitle()` function, with the calculated blood oxygen saturation as the input parameter. Figure 4G The title 223 in the user interface 70 shown is blood oxygen saturation; application developers create... Figure 4H When using the measurement results component, the `.setTitle()` function is referenced, with the input parameter being the text "Measurement failed". Figure 4HThe title 227 in the user interface 80 shown reads "Measurement Failed". It is evident that, although... Figure 4G and Figure 4H Both user interfaces include a title as a visual element within the measurement results component, but the specific content of this title differs between the two interfaces. This allows application developers to use the same function to set different parameters according to actual needs, resulting in diverse display effects.

[0144] Of course, possess Figures 4A-4H The first application shown in the user interface is merely an example and is not limited to the form of the first application described above. Application developers can set the user interface of the first application according to their own needs using the first component functions shown in Table 1. For example, the breathing light may not be displayed in the user interface 40 of the first application developed by the application developer. As another example, the pressure-sensitive prompt component in the user interface 50 of the first application developed by the application developer can be implemented in other forms, such as... Figure 4I The pressure-sensitive indicator bar shown is located on the right half of the display screen, or Figure 4J The image shows a long, rectangular pressure-sensitive indicator bar located in the center of the display screen. Alternatively, in the user interface 10 developed by the application developer, a text label such as "Click the button below to start measurement" could be included above button 204.

[0145] In addition to the development work for the visual elements in the various user interfaces provided by the first application, as shown in Table 2, application developers can also create the navigation logic between the pages of the first application. For example, using... Figures 4A-4H For example, application developers can also create the following page navigation logic:

[0146] 1. The first application is in display. Figure 4A After the user interface 10 shown is executed, if a user action is received on button 204, the following can be displayed sequentially. Figure 4B The user interface shown is 20. Figure 4C The user interface 30 shown. This logic can be implemented by referencing the .onClick() function, whose input parameter is the next user interface to navigate to;

[0147] 2. After receiving a user's touch on the side button 105, the following can be displayed sequentially. Figure 4D The user interface shown is 40. Figure 4E The user interface shown is 50;

[0148] 3. After successfully collecting sufficient data (including PPG data) and calculating blood oxygen saturation, it can be displayed. Figure 4G The user interface 70 is shown; and a measurement failure can be displayed. Figure 4H The user interface shown is 80.

[0149] The above page redirection logic is based on Figures 4A-4H The user interface shown is an example; application developers can create other page navigation logic as needed, which is not limited here.

[0150] In addition to developing visual content, application developers also need to develop some internal processing functions when developing their first application. For example, the development work of application developers may also include:

[0151] 1. Referring to the fourth row from the bottom in Table 2, use the `.setRange(intmin, intmax)` function, with the input parameter being a suitable pressure value range (i.e., pressure sensitivity threshold range), to set the pressure sensitivity threshold range corresponding to the middle segment of the pressure sensitivity indicator bar 219. This pressure value range can be set by the application developer as needed.

[0152] 2. When the first application receives an action on Figure 4A After the user operates button 204, if the system detects that the user maintains the correct posture described above, it will invoke one or more of the following functions of the health measurement component in Table 1: .setPpgEnable(), .setPpgFrequency(), .setPpgBatchCnt(), .setPpgConfigIndex(), .setEcgEnable(), .setEcgFrequency(), .setEcgBatchCnt(), .setEcgConfigIndex(), .ppgDataCallBack(), .ecgDataCallBack(), .healthResult(unit8_t type). The input parameters for each of these functions can be set by the application developer as needed. After inputting the parameters, the functions will activate the relevant sensors and set the reporting parameters and usage methods for the sensor data.

[0153] For example, the first application receives an action on Figure 4AAfter the user operates button 204, if the system detects that the user maintains the correct posture described above, the following actions can be performed: `.setPpgEnable()` with an input parameter of 1 is used to enable the PPG sensor in the new device; `.setPpgFrequency()` with an input parameter of 100Hz is used to set the reporting frequency of the PPG sensor to 100Hz; `.setPpgBatchCnt()` with an input parameter of 10 is used to set the number of reporting packets of the PPG sensor to 10; `.setEcgEnable()` with an input parameter of 1 is used to enable the ECG sensor in the new device; `.setEcgFrequency()` with an input parameter of 500Hz is used to set the reporting frequency of the ECG sensor to 500Hz; `.setEcgBatchCnt()` with an input parameter of 10 is used to set the number of reporting packets of the ECG sensor to 10.

[0154] For another example, the first application receives an action on Figure 4A After the user operates button 204, if it is detected that the user maintains the correct posture described above, the following actions can be performed: Using `.setPpgConfigIndex()` with an input parameter of 1, the PPG sensor in the new device is enabled, and the reporting frequency of the PPG sensor is set to 100Hz and the number of reporting packets is set to 10 packets; Using `.setEcgConfigIndex()` with an input parameter of 1, the ECG sensor in the new device is enabled, and the reporting frequency of the ECG sensor is set to 500Hz and the number of reporting packets is set to 10 packets.

[0155] 3. After the first application successfully collects sufficient data (including PPG data) and calculates blood oxygen saturation, and after the measurement is terminated due to the user failing to maintain the correct posture or not maintaining the correct posture for the required duration, the following one or more functions of the health measurement component in Table 1 are invoked: .setPpgEnable(), .setEcgEnable(). The input parameters of the above functions can be set by the developer as needed; for example, they can all be set to 0. The two functions following the input parameters respectively disable the PPG sensor and ECG sensor in the new device.

[0156] The internal processing procedure of the first application described above is merely an example. In this embodiment, application developers can set the internal processing procedure of the first application through the first component function according to their own needs. For example, application developers can ignore the impact on the measurement results caused by excessive or insufficient force when the user presses button 105. The developed first application may not set a pressure sensitivity threshold range, and its user interface may not display pressure sensitivity prompt components (including pressure sensitivity prompt bars, press pointers, etc.).

[0157] Figure 4K This demonstrates another way to launch the health measurement features provided by the first application.

[0158] refer to Figure 4K The electronic device 100 displays a user interface 90, which can show a dial containing information such as a Wi-Fi icon, a Bluetooth icon, battery level, time indicator, and date indicator. While the electronic device 100 is displaying the user interface 90, when it detects that a user's finger has pressed button 105, meeting a preset condition, the electronic device 100 can activate the health measurement function of the first application, such as activating a blood oxygen saturation measurement function or a "micro-health check" function. Specifically, the electronic device 100 can display the user interface provided by the first application, for example... Figure 4B The user interface 20 shown is or Figure 4C The user interface shown is 30 or Figure 4D The user interface 40 shown can activate the PPG and ECG sensors in the new device to collect PPG and ECG data respectively, and use the collected data for subsequent calculations. (Not limited to...) Figure 4K When the user interface 90 shown is displayed, the electronic device 100 can also start the health measurement function of the first application if it detects that the user's finger presses the button 105 and the operation meets the preset conditions.

[0159] In some implementations, the aforementioned preset conditions include, for example, one or more of the following: the pressure applied reaches a certain value (specifically reflected in the pressure-sensitive device below button 105 collecting data greater than or equal to a first pressure-sensitive response threshold), and the pressing duration reaches a first pressing duration. The first pressure-sensitive response threshold can be set by the developer of the first application using the .setPressThreshold() function corresponding to the health measurement component in Table 1; for example, the first pressure-sensitive response threshold can be used as an input parameter to the .setPressThreshold() function. The first pressing duration can also be set using a function in the first component function (not shown in Table 1). With these preset conditions, users can conveniently trigger the health measurement function of the first application in the electronic device 100 by pressing button 105 forcefully or for an extended period of time.

[0160] In some other embodiments, the aforementioned preset conditions may further include: the first and second electrodes of the ECG sensor in the novel device being connected. When both electrodes of the ECG sensor are connected, the user can be considered to be in the correct measurement posture, for example... Figure 2 As shown, the user wears the electronic device 100 on their left wrist and presses their right hand fingers (index, middle, or other fingers) on button 105, or vice versa, i.e., the user wears the electronic device 100 on their right wrist and presses their left hand fingers (index, middle, or other fingers) on button 105. Therefore, activating the health measurement function of the first application under these preset conditions ensures that the function is activated while the user maintains the correct posture, preventing accidental activation of the health measurement function by the user pressing button 105.

[0161] Figure 4K The first application launched in the system has a specific health measurement function that uses data collected by the PPG sensor and ECG sensor in the new device to calculate blood oxygen saturation. However, it is not limited to this. The health measurement function of the first application launched can also be other health measurement functions, such as using data collected by the PPG sensor in the new device to calculate physiological parameters (such as heart rate, blood oxygen saturation, blood pressure, respiratory rate, heart rate variability, maximum oxygen uptake, arteriosclerosis index, and vascular resistance) or using data collected by the ECG sensor in the new device to calculate physiological parameters (such as heart rate, heart rate variability, cardiac electrical activity, and respiratory rate).

[0162] If other physiological data sensors are integrated into the new device, then Figure 4K The first application launched in the application may have a health monitoring function that uses data collected by the physiological data sensor to calculate relevant physiological parameters.

[0163] In the development process of the first application described above with reference to the first component functions shown in Table 1, the development work used to implement the relevant functions of the first application is ultimately output as the program code of the first application. Running the program code of the first application in the electronic device 100 allows it to run according to the operating logic of the first application described above.

[0164] Technical effects of the first component function provided in the embodiments of this application

[0165] refer to Figure 1 The description is not limited to novel devices integrating pressure sensors, PPG sensors, and ECG sensors. The novel devices provided in this application can integrate pressure sensors and physiological data sensors. The physiological data sensors may include, but are not limited to, one or more of the following: PPG sensors, ECG sensors, temperature sensors, BIA sensors, blood oxygen sensors, EDA sensors, etc. The data collected by the physiological data sensors in the novel device can be used to calculate corresponding physiological parameters. A physiological parameter can be calculated using data collected by a single sensor, or it can be calculated jointly using data collected by multiple sensors. For example, heart rate can be calculated using PPG data collected by a PPG sensor, or it can be calculated using ECG data collected by an ECG sensor, or it can be calculated simultaneously using both PPG and ECG data.

[0166] For the novel device provided in the embodiments of this application, the first component function provided by the development toolkit may include one or more of the following:

[0167] 1. A function used to set pressure sensitivity parameters.

[0168] The pressure sensitivity parameters may include one or more of the following: pressure sensitivity threshold range and pressure sensitivity response threshold. For example, the function for setting the pressure sensitivity parameters can be found in Table 1, corresponding to the pressure sensitivity prompt component: `.setRange(int min, int max)`. Similarly, the function for setting the pressure sensitivity response threshold can be found in Table 1, corresponding to the health measurement component: `.setPressThreshold()`.

[0169] The pressure sensitivity threshold range can be used to trigger the first event. Specifically, when the user presses button 105 with a force within the pressure sensitivity threshold range, the electronic device 100 responds by executing the first event in response to the pressure intensity being within the pressure sensitivity threshold range. This first event can be set by the application developer as needed. For example, refer to... Figures 4A-4HThe illustrated operation of the first application involves the application measuring physiological parameters (e.g., blood oxygen saturation). Only when the pressure of the user's finger pressing button 105 is within the pressure sensitivity threshold range does the application use physiological data (e.g., PPG and ECG data) collected by the novel device to calculate the corresponding physiological parameters (e.g., blood oxygen saturation). Alternatively, the first application can respond to the user's finger pressing button 105 being within the pressure sensitivity threshold range and use the physiological data collected by the novel device to calculate heart rate or other physiological parameters. Another example is that the first application can respond to the user's finger pressing button 105 being within the pressure sensitivity threshold range and display... Figure 4F The user interface 60 shown.

[0170] The pressure sensitivity threshold can be used to trigger a second event. Specifically, when the user presses button 105 with a force exceeding the pressure sensitivity threshold, the electronic device 100 responds by executing the second event. This second event can be set by the application developer as needed. For example, refer to... Figure 4K After the pressure-sensitive device below the button 105 detects pressure data greater than or equal to the first pressure-sensitive response threshold, the electronic device 100 activates the health measurement function of the first application, such as the blood oxygen saturation measurement function.

[0171] 2. Functions for setting the parameters that can be collected by the new type of device for acquiring physiological data.

[0172] The physiological data is the raw data that the physiological data sensor in the novel device can output, such as including but not limited to one or more of the following: PPG data, ECG data, temperature data, bioelectrical impedance data, and electrodermal data.

[0173] The parameters for collecting this physiological data may include one or more of the following: the on / off state of the sensor collecting the physiological data (e.g., on or off), the reporting frequency of the data collected by the sensor, and the number of data packets reported by the sensor.

[0174] Taking the integrated physiological data sensor of the novel device, which includes a PPG sensor and an ECG sensor, as an example, the functions used to set the parameters for collecting physiological data that the novel device can collect can be found in one or more of the following functions of the health measurement component in Table 1: .setPpgEnable(), .setPpgFrequency(), .setPpgBatchCnt(), .setPpgConfigIndex(), .setEcgEnable(), .setEcgFrequency(), .setEcgBatchCnt(), .setEcgConfigIndex(), .healthResult(unit8_ttype).

[0175] If the physiological data sensor in the novel device is not a PPG sensor or an ECG sensor, but another sensor such as a temperature sensor, then the first component function shown in Table 1 can be adjusted as follows:

[0176] The functions .setPpgEnable() and .setEcgEnable() can be changed to .setTempEnable(), and the modified function is used to set the on state of the temperature sensor;

[0177] The functions .setPpgFrequency() and .setEcgFrequency() can be changed to .setTempFrequency(). The changed function is used to set the reporting frequency of temperature data collected by the temperature sensor.

[0178] The functions .setPpgBatchCnt() and .setEcgBatchCnt() can be changed to .setTempgBatchCnt(). The changed function is used to set the number of temperature data packets reported by the temperature sensor.

[0179] The functions setPpgConfigIndex() and setEcgConfigIndex() can be changed to .setTempConfigIndex(). The changed function is used to set parameters such as the on status of temperature sensor acquisition, reporting frequency, number of reporting packets, and usage method.

[0180] The name of the function .healthResult(unit8_t type) can remain unchanged, but its function can be changed to set the type of health measurement service. The health measurement service can indicate one or more of the following: the physiological data type to be collected is temperature data, the parameters for collecting the temperature data, and the method of using the temperature data.

[0181] Of course, the physiological data sensor in the novel device can also be other sensors that can be used to collect physiological data, such as bioelectrical impedance data and electrodermal data. For such novel devices, the names and functions of the functions included in the first component function in this application embodiment will also be adjusted accordingly, with the aim of setting the data acquisition parameters of the physiological data sensor. The adjustment method of the functions in the first component function can refer to the adjustment method corresponding to the temperature sensor mentioned above, and will not be listed here one by one.

[0182] 3. A function for setting how physiological data collected by physiological data sensors in novel devices are used.

[0183] Physiological data usage can be categorized by the entity processing the data into reporting and callback methods. Reporting refers to the application acquiring raw physiological data and then reporting it to the system's algorithm library, where the library calculates the result. Callback refers to the application using its own algorithm to process the raw physiological data and calculate the result. Physiological data usage can also be categorized by the specific algorithm used in the data processing, such as heart rate algorithms, blood oxygen saturation algorithms, and blood pressure algorithms.

[0184] Taking the integrated physiological data sensor of the novel device, which includes a PPG sensor and an ECG sensor, as an example, the functions used to set the usage of the physiological data collected by the novel device may include: the functions .ppgDataCallBack() and .ecgDataCallBack() in Table 1.

[0185] If the physiological data sensor in the new device is not a PPG sensor or an ECG sensor, but another sensor such as a temperature sensor, then the first component function shown in Table 1 can be adjusted as follows: the functions .ppgDataCallBack() and .ecgDataCallBack() can be changed to .tempDataCallBack(). The changed function is used to set how the temperature data collected by the temperature sensor is used.

[0186] Of course, the physiological data sensor in the novel device can also be other sensors that can be used to collect physiological data, such as bioelectrical impedance data and electrodermal data. For such novel devices, the names and functions of the functions included in the first component function in this application embodiment will also be adjusted accordingly, with the aim of setting the usage of the data collected by the physiological data sensor. The adjustment method of the functions in the first component function can refer to the adjustment method corresponding to the temperature sensor mentioned above, and will not be listed here one by one.

[0187] 4. Functions used to set visual interface elements.

[0188] Visual interface elements may include one or more of the following: titles, images, icons, buttons, menus, tabs, text boxes, and dialog boxes.

[0189] For functions used to set visual interface elements, please refer to the functions corresponding to the four types of UI components in Table 1.

[0190] The functions provided in this application for setting visual interface elements are not limited to those corresponding to the UI components shown in Table 1. The functions may include more or fewer functions. For the functions provided in this application for setting visual interface elements, the position, shape, size, and other attributes of the visual interface elements can be specified by the provider of the development toolkit and cannot be changed, or they can be left to application developers for customization. For example, for the functions under the bootstrap component class in Table 1, refer to... Figure 4A The SDK provider can specify the position of the title at the top of the user interface, the image in the middle, and the button at the bottom. In other implementations, Table 1 can also include functions for setting the positions of elements such as the title, image, and button in the guide component, allowing application developers to set the positions of these elements as needed. For example, the SDK provider can expose the function `.setFlashFunc()` under the breathing light component class in Table 1, allowing application developers to set the size, position, shape, direction, and other attributes of the breathing light as needed. In other implementations, the function `.setFlashFunc()` can be omitted from the breathing light component class in Table 1, and the SDK provider can specify the size, position, shape, and direction of the breathing light.

[0191] The development toolkit provides first-component functions that make developing first-application applications simpler and more convenient for application developers, specifically in the following ways:

[0192] 1. When the first component function simultaneously provides the following: functions providing capabilities related to the pressure sensor in the new device, functions providing capabilities related to the physiological data sensor in the new device, application developers can understand the capabilities exposed by each component in the new device through the first component function. When developing an application utilizing the capabilities of multiple components in this new device, application developers can intuitively understand the calling methods of these capabilities through the first component function alone, thus easily combining the individual capabilities of each component in the new device to develop applications. Compared to the method of exposing capabilities to each component individually, application developers can use the first component function to comprehensively, quickly, and conveniently develop applications that utilize the capabilities of multiple components.

[0193] Taking the first component function shown in Table 1 as an example, this first component function includes the following: functions providing the relevant capabilities of the pressure sensor in the new device, such as the `.setRange(intmin, intmax)` and `.setPressThreshold()` functions corresponding to the pressure-sensitive prompt component; functions providing the relevant capabilities of the PPG sensor in the new device, such as `.setPpgEnable()`, `.setPpgFrequency()`, `.setPpgBatchCnt()`, `.setPpgConfigIndex()`, and `.ppgDataCallBack()` functions; and functions providing the relevant capabilities of the ECG sensor in the new device, such as `.setEcgEnable()`, `.setEcgFrequency()`, `.setEcgBatchCnt()`, `.setEcgConfigIndex()`, and `.ecgDataCallBack()` functions. It can be seen that for a new device integrating a pressure sensor, a PPG sensor, and an ECG sensor, application developers can understand the exposed capabilities of each component in the new device through the first component function, thus facilitating the development of applications by combining the individual capabilities of these multiple components.

[0194] 2. The first component functions in the development toolkit contain functions with comprehensive configuration capabilities, which make the development process simpler and more convenient for application developers.

[0195] (1) The first component function contains a function for the comprehensive setting of a certain device in the new device, which makes it easier and more convenient for application developers to call the capabilities of the device during the application development process.

[0196] Referring to the `.setPpgConfigIndex()` function corresponding to the health measurement component in Table 1, the input parameter of this function is the configuration table index of the PPG sensor. This function is used to set the configuration table index of the PPG sensor. An index can indicate one or more of the following: whether the PPG sensor is on or off, the reporting frequency of PPG data, the number of PPG data reporting packets, and the usage method of PPG data (such as reporting or callback, or the specific algorithm).

[0197] For example, when the configuration table index of the PPG sensor is set to 1, it can indicate that the PPG sensor is turned on, the PPG data reporting frequency is 100Hz, the number of packets reported at one time is 10 packets, and the PPG data is used in the way of reporting to the system algorithm library for calculation; when the configuration table index of the PPG sensor is set to 0, it can indicate that the PPG sensor is turned off.

[0198] As can be seen, the `.setPpgConfigIndex()` function allows application developers to configure multiple capabilities of the PPG sensor with a single setup, eliminating the need to call multiple functions (such as `.setPpgEnable()`, `.setPpgFrequency()`, `.setPpgBatchCnt()`, and `.ppgDataCallBack()`) to achieve the same configuration. Therefore, the `.setPpgConfigIndex()` function simplifies the configuration of PPG sensor capabilities in new devices, reducing the workload for application developers.

[0199] The index that can be entered as an input parameter in the `.setPpgConfigIndex()` function, and the corresponding content indicated by that index—that is, the mapping between the index and its indicated content—can be made available to application developers by the provider of the development kit, for example, by the provider of the electronic device through development documentation. In other implementations, the above mapping can also be customized by the application developer as needed.

[0200] Referring to the `.setEcgConfigIndex()` function corresponding to the health measurement component in Table 1, the difference between `.setEcgConfigIndex()` and `.setPpgConfigIndex()` is that the former is used to set the relevant capabilities of the ECG sensor in the new device, while the latter is used to set the relevant capabilities of the PPG sensor in the new device. The `.setEcgConfigIndex()` function simplifies the setting of the relevant capabilities of the ECG sensor in the new device for application developers. Its principle can be found in the previous introduction to the `.setPpgConfigIndex()` function, which will not be repeated here.

[0201] Not limited to PPG or ECG sensors, the physiological data sensor in the novel device can also be other sensors. For other sensors, the first component function can also provide functions for comprehensively configuring that sensor. For example, if the novel device also integrates a temperature sensor, the first component function can include functions for comprehensively configuring that temperature sensor.

[0202] (2) The first component function contains functions for the comprehensive configuration of multiple components in the new device, which allows application developers to more easily and conveniently call the capabilities of multiple components in the device during application development. These multiple components can be any number of components in the new device.

[0203] Referring to the `.healthResult(unit8_t type)` function corresponding to the health measurement component in Table 1, the input parameter of this function is the identifier (e.g., index) of the health measurement service. This function is used to set the type of health measurement service. A health measurement service may indicate one or more of the following: the type of physiological data to be collected (e.g., PPG data and / or ECG data), the parameters for collecting the physiological data, and the method of using the physiological data (e.g., reporting or callback). The type of health measurement service may include, but is not limited to: measuring heart rate, measuring blood oxygen saturation, measuring blood pressure, measuring respiratory rate, measuring heart rate variability, measuring maximum oxygen uptake, measuring arteriosclerosis index, measuring vascular resistance, and measuring electrocardiographic activity.

[0204] For example, when the health measurement service type is set to blood oxygen saturation measurement service, the following can be specified: collect PPG data and ECG data. The parameters for collecting PPG data include: turn on the PPG sensor, the PPG data reporting frequency is 100 Hz, the number of packets reported at one time is 10 packets, and the PPG data is used to report to the system algorithm library and have the algorithm library calculate blood oxygen saturation. The parameters for collecting ECG data include: turn on the ECG sensor, the ECG data reporting frequency is 500 Hz, the number of packets reported at one time is 10 packets, and the ECG data is used to report to the system algorithm library and have the algorithm library calculate blood oxygen saturation and heart rate.

[0205] The business identifier (e.g., index) that can be entered as an input parameter to the `.healthResult(unit8_t type)` function, and the corresponding content indicated by that business identifier—that is, the correspondence between the business identifier and its indicated content—can be made available to application developers by the provider of the development toolkit, for example, by the provider of electronic devices through development documentation. In other implementations, the above correspondence can also be customized by the application developer as needed.

[0206] As can be seen, by using the `.healthResult(unit8_t type)` function, application developers only need to set the overall capabilities of the PPG and ECG sensors in the new device once, without having to call multiple functions (such as the `.setPpgConfigIndex()` and `.setEcgConfigIndex()` functions mentioned in point (1) above). Therefore, by using the `.healthResult(unit8_t type)` function, application developers only need to focus on the upper-level measurement service type, without needing to focus on the specific capability settings of the lower-level new device, thus simplifying the configuration of the relevant capabilities of the PPG and ECG sensors in the new device.

[0207] Beyond the .healthResult(unit8_t type) function listed above, the first component function can also provide functions with more comprehensive cross-functional settings. For example, the first component function can also provide the .setServicehealthResult(unit8_t type) function, which can be used to set the logic chain of health measurement tasks. For example, when the input parameter of the .setServicehealthResult(unit8_t type) function is 1, it can instruct the following: when a press operation is detected on button 105, the PPG sensor and ECG sensor are activated, where the parameter for collecting ECG data is parameter 1, and the parameter for collecting ECG data is parameter 2. When the result calculated based on the collected PPG data and ECG data meets a certain condition, it is considered that there is a current health risk, and the health risk level is displayed on the user interface.

[0208] Based on the `.setServicehealthResult(unit8_t type)` function, application developers can directly set the logic chain for health measurement tasks without needing to concern themselves with the specific implementation of this logic chain. For example, they don't need to define when to start the PPG and ECG sensors, nor do they need to define which calculation results indicate a current health risk. This reduces the workload for application developers during application development, allowing them to focus only on the upper-layer business logic without needing to worry about the specific implementation of the underlying task logic chain.

[0209] Not limited to the examples above, for novel devices that integrate other physiological data sensors, the first component function may also include functions for the comprehensive setting of multiple devices in the novel device, which will not be elaborated here.

[0210] Based on the first component function provided in the embodiments of this application, if multiple application developers have similar or identical functions in their respective applications, the first component function can be used to implement these similar or identical functions during the development process of these applications, without having to repeatedly perform a large amount of repetitive work. For example, if two application developers' respective applications need to implement the same logic chain for a health measurement task, both application developers can call the function in the first component function that implements the logic chain for the health measurement task, without having to implement the logic chain themselves.

[0211] In one specific embodiment, the first component function provided by the development kit may include: a first function for setting a pressure sensitivity threshold range, and a second function for setting parameters for collecting first physiological data. Application developers can develop a first application based on this first component function. An electronic device 100 integrating the development kit can install the first application and can perform the following operations: run the first application; call the first component function of the development kit through the first application, the first component function including: a first function for setting a pressure sensitivity threshold range, and a second function for setting parameters for collecting first physiological data; set a first parameter for collecting first physiological data according to the first component function, and / or set a first pressure sensitivity threshold range according to the first component function; collect first physiological data using the first parameter through a first sensor, and / or execute a first event according to the first pressure sensitivity threshold range.

[0212] The first application can be implemented as an app, or as a meta-service, quick app, mini-program, etc. It can be a system application or a third-party application. It can be a pre-installed application or an application downloaded by the user during subsequent use.

[0213] The first function can be found in Table 1, for example, in the .setRange(intmin, intmax) function corresponding to the pressure-sensitive prompt component.

[0214] The second function can be found in one or more of the following functions of the health measurement component in Table 1: .setPpgEnable(), .setPpgFrequency(), .setPpgBatchCnt(), .setPpgConfigIndex(), .setEcgEnable(), .setEcgFrequency(), .setEcgBatchCnt(), .setEcgConfigIndex(), .healthResult(unit8_t type).

[0215] In some implementations, the second function is also used to set the usage method of the data collected by the first sensor, and the electronic device 100 can also set the usage method of the first physiological data according to the first component function. The usage method of the physiological data can be referred to above. Here, the second function may, for example, include .ppgDataCallBack() and .ecgDataCallBack().

[0216] In some implementations, the second function is specifically used to set a first index, which indicates a first parameter required for collecting the first physiological data. For example, the second function can be .setPpgConfigIndex() or .setEcgConfigIndex().

[0217] In other implementations, the second function is specifically used to set up a first health measurement service, which indicates first physiological data and first parameters required to collect the first physiological data. For example, the second function can be .healthResult(unit8_t type).

[0218] The first physiological data is data collected by a physiological data sensor integrated into the novel device in the electronic device 100, which may also be referred to as a first sensor. For example, the first sensor may include one or more of a PPG sensor and an ECG sensor.

[0219] In some implementations, a first parameter for collecting first physiological data is set according to the first component function, which may specifically include one or more of the following: setting the first sensor to be turned on or off according to the first component function; setting the reporting frequency of the first physiological data according to the first component function; and setting the number of reporting packets of the first physiological data according to the first component function.

[0220] In some implementations, the first event is performed based on a first pressure sensitivity threshold range, which may specifically include: in response to satisfying the first pressure sensitivity threshold range, calculating a first physiological parameter using the collected first physiological data.

[0221] In some implementations, the first component function may further include a third function for setting visualization elements. The electronic device 100 may also set a first visualization element for the first application and display the first visualization element according to the first component function. The first visualization element includes one or more of the following: a guide component, a pressure-sensitive prompt component, a breathing light component, and a measurement result component. The third function specifically includes one or more of the following: a guide component function for setting the guide component, a breathing light component function for setting the breathing light component, a prompt component function for setting the pressure-sensitive prompt component, and a measurement result component function for setting the measurement result component. Examples of the above component functions can be found in Table 1.

[0222] Specific implementation of the health measurement function in the first application of electronic device 100

[0223] Figure 4L The example illustrates the workflow of the physical devices in electronic device 100 and the visual interface elements displayed therein during the operation of the health measurement function for launching the first application as described above.

[0224] First, the electronic device displays 100. Figure 4K When the user interface 90 is shown, the operation of the user pressing button 105 is detected, and the preset conditions are met. At this time, because the user's finger touches button 105, the corresponding hardware interrupt for the touch operation is sent to the kernel layer. The kernel layer processes the touch operation into an input event and provides it to the application framework layer. The raw value collected by the pressure sensor (and possibly ECG sensor) in the new device is reported to the application framework layer, which identifies whether the input event has met the preset conditions. If the first application has a finger press animation, the corresponding animation can be output through the display screen. For details on the preset conditions, please refer to the previous text, which will not be repeated here.

[0225] Then, in response to the user's finger pressing button 105, the preset conditions are met, the electronic device 100 activates the health measurement function of the first application and displays... Figure 4D The user interface 40 is shown. During this process, the electronic device 100 will activate the PPG sensor and the ECG sensor, and the data collected by the PPG sensor and the ECG sensor will be returned to the first application. During this process, the electronic device 100 will collect PPG data and ECG data according to the set parameters, and can display the reading curve in the user interface 40, that is, the trend of the value change over time or user operation.

[0226] Then, after the electronic device 100 collects enough data, it calculates blood oxygen saturation based on the collected data and can display the result during the calculation process. Figure 4F The user interface 60 is shown. During this process, the processing module in the electronic device 100 can use the collected PPG and ECG data to calculate blood oxygen saturation. If the first application has an output animation set during the calculation process, the electronic device 100 can output the output animation on the display screen. This output animation is used to indicate that blood oxygen saturation is currently being calculated; for example, it can be a preset animation or an output animation drawn based on the collected PPG and ECG data.

[0227] Finally, after the electronic device 100 successfully calculates the blood oxygen saturation, it can display it. Figure 4GUser interface 70 is shown. During this process, electronic device 100 outputs the final measurement results via a display screen, such as a graph showing blood oxygen saturation at various time points during the measurement. Details regarding user interfaces 90, 40, 60, and 70 are provided above and will not be repeated here.

[0228] Figure 4M and Figure 4N The internal interaction flow of electronic device 100 when performing health measurement services is shown.

[0229] Figure 4M and Figure 4N The process involves four execution entities: a health measurement app, a large-core health task, a small-core health task, and a sensor. The health measurement app can be the first application developed using the first component function mentioned earlier. The large-core and small-core health tasks are both health measurement tasks of the first application on the microcontroller unit (MCU) of the electronic device 100. The small-core health task is responsible for acquiring the raw data collected by the sensor and transmitting this raw data to the large-core health task, which is responsible for analyzing the raw data and presenting the calculation results. In some other embodiments of this application, it is not necessary to distinguish between the large-core and small-core tasks in the electronic device 100. Figure 4M and Figure 4N The two implementing entities, the large-core health task and the small-core health task, can also be combined into one implementing entity, for example, they can be combined into one health task. Figure 4M The sensor in the electronic device 100 is a sensor used to provide data required for health measurement tasks. Figure 4M The service module in the electronic device 100 can be a software module used to handle health services.

[0230] Figure 4M A flowchart illustrating the internal interactions of electronic device 100 when it successfully completes a health measurement task. This process may include:

[0231] Step 1-1. The health measurement app sends a notification message to the BigCore Health Task to activate the health measurement service. This health measurement service can refer to the service that measures one or more of the user's physiological parameters.

[0232] Step 1-2. The large-core health task instructs the small-core task to activate the sensor. This sensor is used to collect the data required for the aforementioned health measurement services. For example, if the health measurement service is blood oxygen saturation measurement, the sensor can be a PPG sensor in a novel device. If the health measurement service is heart rate measurement, the sensor can be a combination of a PPG sensor and an ECG sensor in a novel device.

[0233] Steps 1-3. Small core health task indicator activates sensors. Sensors can be activated in response to the small core health task indicator.

[0234] Steps 1-4-5. The sensor sends the collected data to the small core health task, which then sends the data to the large core health task.

[0235] Steps 1-6. The Big Core Health Task sends sensor data to the algorithm library in the electronic device 100. This algorithm library may contain one or more parameters for calculating physiological parameters, such as algorithms for calculating blood oxygen saturation, algorithms for calculating heart rate, algorithms for calculating the risk of hypertension, etc.

[0236] Steps 1-7. The algorithm library calculates the results based on the sensor data and returns the calculation results (such as blood oxygen saturation) to the Big Core Health Task.

[0237] Steps 1-8. After receiving the calculation results returned by the algorithm library, the Big Core Health Task reports the normal measurement status to the Health Measurement APP, indicating that the measurement result has been obtained.

[0238] Steps 1-9. The Health Measurement App sends a notification message to Bigcore Health Task to disable the Health Measurement service.

[0239] Steps 1-10. The large core health task instructs the small core task to shut down the sensors.

[0240] Steps 1-11. The small core health task indicates that the sensors should be turned off.

[0241] Steps 1-12. The core health task reports the measurement results (i.e., calculation results) to the health measurement APP. In this way, the health measurement APP can display the corresponding measurement result page on the user interface of the electronic device 100 based on the measurement results, for example... Figure 4G The user interface shown is 70.

[0242] Steps 1-13-1-14. The Big Core Health Task Instruction Service Module writes the calculation results (such as the calculation results of blood oxygen saturation) into the calculation result file for storage.

[0243] Figure 4N This is a flowchart illustrating the internal interaction process when electronic device 100 fails to complete a health measurement task. The reasons why electronic device 100 may fail to complete the health measurement task include, but are not limited to, one or more of the following: the user failing to maintain the correct posture (e.g., not wearing electronic device 100, not remaining still while wearing it, applying insufficient pressure to button 105, not wearing it at a level position), weak sensor signal (i.e., insufficient sensor data), or algorithm library timeout. The definition of correct posture can be found in the previous text. Figures 4A-4HThe relevant information will not be elaborated here.

[0244] like Figure 4N As shown, the process may include:

[0245] Steps 2-1 to 2-6 can be referenced. Figure 4M Step 1-1-Step 1-6 in the process.

[0246] Steps 2-7. The algorithm library returns an abnormal measurement status to the big core health task, and can also carry the specific reason for the abnormality in the abnormal measurement status. The specific reason for the abnormality is the reason why the electronic device 100 failed to complete the health measurement task. Referring to the previous text, the reason may include one or more of the following: the user did not maintain the correct posture, such as not wearing the electronic device 100, not keeping still while wearing it, the force of pressing the button 105 was not within the appropriate range, not being in a flat position while wearing it, etc.; weak sensor signal (i.e., insufficient sensor data collected); algorithm library timeout and failure to output a value, etc.

[0247] Steps 2-8. The Big Core Health Task reports abnormal measurement status to the health measurement APP, and can also include the specific reason for the abnormality in the abnormal measurement status. In this way, the health measurement APP can display the corresponding measurement result page on the user interface of the electronic device 100 based on the abnormal status, for example... Figure 4H The user interface shown is 80.

[0248] Figure 4O This illustrates another internal interaction flow of the electronic device 100 when performing health measurement operations.

[0249] Figure 4O This involves three execution entities: a blood oxygen measurement application, a bottom case driver, and a side driver. The blood oxygen measurement application can be the first application developed using the first component function mentioned earlier. The bottom case driver can include driving the PPG sensor on the bottom case at the back of the watch body and driving the first electrode in the ECG sensor. The side driver can include driving the PPG sensor at button 105 and driving the second electrode in the ECG sensor.

[0250] Figure 4O The internal interaction process for calculating physiological data (such as blood oxygen saturation) is described in detail when the two electrodes of the ECG sensor in the new device are conducting, using PPG data collected by the first PPG sensor located on the bottom shell on the back of the watch body and the second PPG sensor located on the button 105.

[0251] like Figure 4O As shown, the process may include the following steps:

[0252] Step 3-1. The user inputs a click operation into the electronic device 100 (e.g., in...). Figure 4A After clicking the button 204 shown, use your finger to touch the button 105 on the side of the electronic device 100.

[0253] Step 3-2. After the blood oxygen measurement application detects the user operation in step 1, it activates the PPG sensor on the bottom shell, sends the sampling frequency and reporting cycle of the PPG sensor on the bottom shell, and enables lead detection.

[0254] Step 3-3. The blood oxygen measurement application sends the sampling frequency and reporting cycle of the PPG sensor at button 105 to the side driver.

[0255] Steps 3-4: The bottom shell drive triggers the PPG sensor on the bottom shell to dim.

[0256] Steps 3-5: The bottom shell drive reports the connected lead on events to the blood oxygen measurement application.

[0257] Steps 3-6. Enable the ECG sensor for blood oxygen measurement.

[0258] Steps 3-7. Apply the PPG sensor at button 105 to activate the blood oxygen measurement.

[0259] Step 3-8. Side drive triggers PPG sensor dimming at side button 105.

[0260] Steps 3-9. Measurement complete. Apply the PPG sensor at button 105 to turn off the blood oxygen measurement.

[0261] Step 3-10. Apply blood oxygen measurement by turning off the ECG sensor on the bottom case.

[0262] Step 3-11. The bottom-shell driven pulse oximetry application reports lead off events that have been detached.

[0263] Pressure-sensitive interaction process

[0264] The novel device in this application embodiment may integrate a pressure sensor, which can provide pressure-sensitive interaction functionality.

[0265] Figures 5A-5C An example of a pressure-sensitive interaction scenario of an electronic device 100 is shown.

[0266] like Figure 5A As shown, the electronic device 100 first displays a user interface 100, which can display a dial including a windmill 232, and the dial includes a playback control 233. Figure 5A The playback control 233 is in its first state, indicating that the electronic device 100 is currently in a non-interactive mode. The playback control 233 can also be referred to as the first control.

[0267] When the electronic device 100 receives a user operation on the playback control 233, the electronic device 100 switches from non-interactive mode to interactive mode, and can, as follows: Figure 5B The playback control 233 is switched to the second form to indicate that the electronic device 100 has entered the interactive mode. The interactive mode is only a name provided for this embodiment; it can also be called other names, which are not limited here.

[0268] like Figure 5B As shown, in interactive mode, electronic device 100 can receive a press operation applied to button 105, and in response to the press operation, electronic device 100 will... Figure 5C The windmill 232 in the rotating user interface 100 is shown. Furthermore, the greater the force with which the user presses the button 105, the faster the windmill 232 rotates.

[0269] In the previous introduction Figure 4K In the content, when the electronic device 100 displays a user interface other than the user interface 90 (such as other watch faces or user interfaces provided by other apps), if it detects that the user's finger has pressed the button 105 and the operation has met the preset conditions, it can also activate the health measurement function of the first application. Correspondingly, when the electronic device 100 displays... Figure 5A When the user interface 100 is displayed, if the operation of the user pressing the button 105 with their finger is detected to meet the preset conditions, the health measurement function of the first application can also be activated.

[0270] contrast Figure 5B and Figure 5A or comparison Figure 5B and Figure 4K The electronic device 100 received a press operation on button 105 in both instances while displaying two user interfaces, but responded differently. Figure 4K or Figure 5A In this process, electronic device 100, in response to a pressing operation on button 105, activates a health measurement function of the first application, such as activating a blood oxygen saturation measurement function. Figure 5B In response to a press operation on the button 105, the electronic device 100 rotates the windmill 232 in the user interface 100.

[0271] The reason for these differences is that the electronic device 100 will provide different responses to the same user operation when it is in different modes. The following will explain how the electronic device 100 provides different pressure-sensitive interaction functions in different modes.

[0272] Figure 5D A flowchart illustrating the pressure-sensitive interaction function provided by the electronic device 100 in the embodiments of this application in different modes. For example... Figure 5D As shown, the process may include the following steps:

[0273] Step 4-1. Electronic device 100 displays the first dial.

[0274] Step 4-2. When the electronic device 100 is displaying the first dial, it detects a pressing operation on the button 105.

[0275] Step 4-3. Electronic device 100 determines the current mode, for example, whether it is currently in the first mode.

[0276] Step 4-4. If in the first mode, the second event is executed in response to the pressing operation of button 105.

[0277] Steps 4-5. If in the second mode, the third event is executed in response to the pressing of button 105.

[0278] The first dial may be a dial displayed on the electronic device 100, and the content of the dial is not specifically limited in this embodiment. For example, the first dial may be... Figure 4K The dial shown or Figures 5A-5B The dial shown.

[0279] It is understood that the above description, which uses the example of a watch face including a first mode and a second mode, and executing different events according to the different modes, can also be applied to other user interfaces that include a first mode and a second mode, and execute different events according to the different modes. The embodiments of this application are not limited to this.

[0280] The first mode could be a non-interactive mode, and the second mode could be the interactive mode mentioned above.

[0281] For example, the second event can be set by the application developer during application development; for instance, the application developer can set the second event as... Figure 4K The text mentions activating the health measurement function of the first application, such as activating the blood oxygen saturation measurement function.

[0282] For example, the third event can be set as needed by the developer of the first watch face. For instance, it could be based on pressure data detected on button 105 to present the interactive effect of the first watch face. This interactive effect could be, for example,... Figure 5C The speed of the windmill 232 increases with the increase of the pressing pressure, or the interactive effect can also be that the power is charged up with the duration of the press. After the power is charged up, the finger leaves 105 and jumps over the elements in the first dial with the power charged up. The greater the power charged up, the greater the jump height.

[0283] In some implementations, the electronic device 100 is typically in a first mode, which can switch to a second mode in response to a received first operation. This application embodiment does not limit the first operation. For example, refer to... Figures 5A-5B The first operation could be, for example, applied to... Figure 5A User operation of the first form of playback control 233.

[0284] When the electronic device is in the second mode, it can switch to the first mode in response to a received second operation. This application embodiment does not limit the second operation. For example, refer to... Figure 5B The second operation could, for example, be applied to... Figure 5B User operation of the second form of the playback control 233.

[0285] In some implementations, the press operation detected by the electronic device 100 on the button 105 in step 4-2 can be: a press operation that triggers pressure data greater than the first pressure sensitivity response threshold on the button 105. Thus, if the electronic device 100 is in the first mode, it can respond to this press operation to initiate a second event, such as activating the health detection function of the first application.

[0286] Previous text Figures 5A-5C The pressure-sensitive interaction scenario shown, and Figure 5D The pressure-sensitive interaction process illustrated is not limited to the pressure sensor integrated in the novel device of this application embodiment. Similar pressure-sensitive interaction scenarios and processes can also be implemented for other pressure sensors in the electronic device 100. For example, a pressure sensor can also be integrated below the button 104 of the electronic device 100, and the electronic device 100 can respond differently to the same pressing operation on the button 104 in different modes. As another example, a pressure sensor can also be integrated below the screen of the electronic device 100, and the electronic device 100 can respond differently to the same pressing operation on the screen in different modes.

[0287] Pressure Sensing Principle

[0288] Figure 6A This is a schematic diagram illustrating the principle of detecting the pressing operation of a mechanical button.

[0289] like Figure 6AAs shown, after the electronic device is powered on, it first initializes the general-purpose input / output (GPIO) interface of the mechanical buttons, configuring the GPIO interface to a default high level, with interrupts generated on both double edges. Under this configuration, when the user presses a mechanical button, the GPIO interface generates a falling-edge interrupt and reports it to the MCU; when the user releases the button, the GPIO interface generates a rising-edge interrupt and reports it to the MCU. The electronic device can identify press events such as short press, long press, and double-click based on the interrupt type detected by the MCU, and report the press time to the application framework layer, allowing applications in the application to execute corresponding event responses, such as displaying page animations or switching pages. Figure 6A The pressure sensing principle shown can only detect simple pressing and lifting actions, but cannot detect the pressure applied.

[0290] This application provides a novel device for an electronic device, which can integrate a pressure sensor located at the button 105, thereby detecting the pressure applied. The button 105 can be considered a pressure-sensitive button.

[0291] This application provides a low-power pressure sensing principle for the novel device.

[0292] Figure 6B The flowchart illustrating this low-power pressure sensing principle is shown. For example... Figure 6B As shown, the process may include the following steps:

[0293] Step 5-1. Power on or restart the electronic device 100. At this time, the pressure sensor in the new device will also be powered on or restarted.

[0294] Step 5-2. If the electronic device 100 detects no press operation on the button 105 through the PPG sensor in the new device, then calibrate the offset.

[0295] Step 5-3. If the electronic device 100 detects a press operation on the button 105 through the PPG sensor in the new device, then the offset of the production line is used.

[0296] Steps 5-2 and 5-3 are two branches, and only one can be executed. The offset refers to the difference between the actual response and the expected theoretical response when pressure is applied to button 105; it can be considered as the measurement error compensation value for the pressure-sensitive device below button 105. The offset may be caused by the construction of button 105, drift of the pressure-sensitive device, aging, environmental interference, etc.

[0297] In steps 5-2 and 5-3, the electronic device 100 can detect whether a button 105 has been pressed using the PPG sensor in the novel device. Specifically, the electronic device 100 can detect the pressing operation using the light source-photodetector pair in the second PPG sensor located on the button 105. After the light source emits light (e.g., infrared radiation, IR light), the photodetector can detect the reflected light. When the button 105 is pressed and not pressed, the photodetector will detect different reflected light, and the pressing operation can be detected based on this principle. In other words, the second PPG sensor in the novel device can act as a proximity sensor to detect whether a button 105 has been pressed. To achieve the above detection purpose, the second PPG sensor in the novel device can be kept on with low power consumption, for example, sampling at a low frequency, or only turning on part of the light source-photodetector pair in the second PPG sensor. The PPG sensor being kept on will not interfere with other devices in the electronic device 100. It is evident that the second PPG sensor in the novel device can be used to detect whether there is a pressing operation on button 105, and can also be used to collect PPG data for calculating physiological parameters.

[0298] In other embodiments, in steps 5-2 and 5-3, the electronic device 100 may also detect whether a button 105 is pressed using a PPG sensor other than the novel device. Alternatively, if a proximity sensor is provided below the button 105 of the electronic device 100, the electronic device 100 may also use the proximity sensor to detect whether the button 105 is pressed, as the power consumption of a normally open proximity sensor is lower than that of a normally open PPG sensor. Alternatively, the electronic device 100 may also detect whether the button 105 is pressed using an ECG sensor in the novel device; when the first and second electrodes of the ECG sensor are detected to be conducting, it can be considered that a button 105 has been pressed.

[0299] In step 5-2, if there is no pressing operation on button 105, there is no interference from user pressing on button 105. Therefore, electronic device 100 can calibrate the offset based on the actual situation that no pressure-sensitive data is detected on button 105. Electronic device 100 can use an offset calibration algorithm to calibrate the offset, and this application embodiment does not specifically limit the calibration algorithm.

[0300] In step 5-3, if there is a pressing operation on button 105, there will be interference from the user pressing button 105. Therefore, electronic device 100 cannot calibrate the offset on its own, and the offset of the production line is used instead. The offset of the production line refers to the offset obtained by the manufacturer through experiments during the production process of electronic device 100 before it leaves the factory.

[0301] Step 5-4. Electronic device 100 first acquires pressure-sensitive data at a first frequency through the pressure-sensitive device in the new device.

[0302] The first frequency can be a preset lower frequency in the electronic device 100, such as 1Hz or other lower frequencies. The process of acquiring pressure data by the pressure-sensitive device needs to take into account the offset mentioned above in order to correct for errors.

[0303] Step 5-5. Based on the baseline and button threshold, determine whether the collected pressure-sensitive data can trigger an interrupt.

[0304] An interrupt is a signaling mechanism in a computer system triggered by a hardware device to notify a processing module that an event needs to be processed immediately. In this embodiment, the interrupt is used to trigger steps 5-6.

[0305] In this embodiment, if the electronic device 100 collects data through the pressure-sensitive device that is larger than the baseline and exceeds the baseline value by a factor greater than or equal to the button threshold, it is considered that the collected pressure-sensitive data can trigger an interrupt, that is, it is determined that a press operation applied to the pressure-sensitive device has been received. If the electronic device 100 does not collect data through the pressure-sensitive device that is larger than the baseline and exceeds the baseline value by a factor greater than or equal to the button threshold, it is considered that the collected pressure-sensitive data cannot trigger an interrupt, that is, it is determined that no press operation applied to the pressure-sensitive device has been received. This process determines whether the user has pressed the button 105 through pressure-sensitive data. The baseline and the button threshold are parameters that determine whether there is a press operation on the pressure-sensitive device. The baseline is a reference line, and the button threshold is a correction value on the reference line. The baseline and the button threshold can also change due to factors such as the construction of the button 105, the drift of the pressure-sensitive device, aging, and environmental interference. The method for determining the baseline and the button threshold used in steps 5-5 can be referred to in the following sections. Figure 6C Related information.

[0306] Step 5-6. If the judgment result of step 5-5 is yes, the electronic device 100 collects pressure data at a second frequency through the pressure-sensitive device in the new device.

[0307] The second frequency can be a preset higher frequency in the electronic device 100, which is higher than the first frequency. For example, the second frequency can be 100Hz or other higher frequencies.

[0308] As shown in steps 5-4-5-6, the pressure-sensitive device first collects pressure data at a lower first frequency. Once a press operation is confirmed on the pressure-sensitive device based on the collected data, the frequency is increased to a second frequency to collect pressure data. This method eliminates the need for the pressure-sensitive device to continuously collect pressure data at a high frequency. Instead, it collects pressure data at a high frequency only after a press operation is confirmed. This not only allows for high-frequency collection of subsequent pressure data generated by the user's press on the pressure-sensitive device, thus accurately determining the user's press operation, but also reduces the power consumption of the pressure-sensitive device, achieving low-power detection of the pressure data generated when the user presses button 105.

[0309] In this embodiment, the novel sensor in the electronic device 100 also integrates a physiological data sensor, thus enabling the detection of physiological parameters by combining the low-power detection principle of the pressure-sensitive device provided in steps 5-4-5-6 above. For example, refer to... Figure 4K The pressure-sensitive device can first collect pressure data at a lower frequency. When the user presses button 105 with their finger, the pressure-sensitive device can collect pressure data at a second frequency and can collect pressure data that is greater than or equal to the first pressure response threshold. Then, in response to the collected pressure data that is greater than or equal to the first pressure response threshold, the health measurement function of the first application can be started.

[0310] In some embodiments, the first component function provided in this application may further include a fourth function for setting a pressure-sensitive response threshold. Before acquiring first physiological data through the first sensor in the novel device, the electronic device 100 may also set the first pressure-sensitive response threshold through the first component function and acquire pressure-sensitive data greater than or equal to the first pressure-sensitive response threshold through the pressure-sensitive device. The fourth function may be, for example, .setPressThreshold() in Table 1.

[0311] In other embodiments, the electronic device 100 can also combine the low-power detection principle of the pressure-sensitive device provided in steps 5-4-5-6 above to achieve other functions. For example, the pressure-sensitive device can first collect pressure data at a lower frequency. When the user presses the button 105 with their finger, the pressure-sensitive device can collect pressure data at a second frequency. After collecting specific pressure data, it can trigger corresponding functions, such as powering off or powering on.

[0312] Step 5-7. If the pressure data collected by the pressure-sensitive device is less than the threshold within a continuous first time period, proceed to step 5-4.

[0313] In other words, when the pressure data collected by the pressure-sensitive device is consistently low, the electronic device 100 can reduce the sampling frequency of the pressure-sensitive device, thereby further reducing power consumption. The first duration and threshold can be set as needed and are not limited here. For example, the first duration can be 5 seconds, and the threshold can be quantified as 5 grams of force (gf). This threshold is a different concept from the button threshold mentioned earlier.

[0314] Figure 6C The device calibration process of the pressure-sensitive device provided in the embodiments of this application is illustrated.

[0315] First, refer to Figure 6C On the right, the sensor management task instructs the pressure-sensitive module in the Hardware Abstraction Layer (HAL) to initialize its detection function. The HAL layer's pressure-sensitive module is used to instruct the driver layer's pressure-sensitive module to initialize its detection function. The sensor management task is the responsibility of managing various sensors in the electronic device 100, including pressure sensors. The pressure-sensitive module refers to the module used to manage the pressure sensor, and can be divided into pressure-sensitive modules in the HAL layer and pressure-sensitive modules in the driver layer.

[0316] Then, refer to Figure 6C On the left, the calibration process for the pressure-sensitive device is primarily completed through the interaction of device management tasks and sensor management tasks. Device management tasks are used in electronic device 100 to manage various hardware devices. This device calibration process mainly includes the following four stages:

[0317] Phase 1: Service Initialization

[0318] Step 6-1. The equipment management task obtains the following items provided by the production line: codemap, a set of baselines and key thresholds at different temperatures, and offset.

[0319] The above information is provided by the production line and obtained by the manufacturer through experiments during the production of electronic devices. This information can be pre-set in electronic device 100. The mapping table contains the mapping relationship between the pressure value applied to the pressure-sensitive device and the raw pressure data collected by the device; this mapping table can be used by the calibration algorithm during the calibration process. Because device temperature affects the baseline and button thresholds, the production line provides a set of baselines and button thresholds at different temperatures.

[0320] Step 6-2. Initialize the calibration algorithm for the device management task. This calibration algorithm is used to calibrate the baseline and key thresholds. The specific implementation of this calibration algorithm is not limited in this embodiment.

[0321] Step 6-3. Register the pressure sensor, temperature sensor, and side PPG sensor in the device management task. The pressure sensor is the pressure sensor in the new device, and the side PPG sensor can be the second PPG sensor located below button 105 in the new device. The temperature sensor can be a temperature sensor integrated into the new device (e.g., a temperature sensor located below button 105), or it can be a temperature sensor located in other locations in the electronic device 100.

[0322] Step 6-4. The device management task is to turn on the side PPG sensor and send the parameters for the PPG sensor to collect data, such as sending the number of sampling packets as 1 packet / s.

[0323] Phase Two: Determine whether device calibration is necessary

[0324] Step 6-5. The sensor management task sends the PPG data collected by the side PPG sensor to the device management task. When the light source in the side PPG data is infrared light, the PPG data can be, for example, IR data.

[0325] Step 6-6. The sensor management task performs filtering, integration, and other processing on the received data.

[0326] Steps 6-7. Sensor Management Task: The sensor uses PPG data collected by the PPG sensor to determine if button 105 has been pressed. If pressed, the offset provided by the production line is used; otherwise, device calibration is performed and a new offset is generated. This step can be referenced. Figure 6B Steps 5-2 to 5-3 in the process.

[0327] Steps 6-8. Open the pressure sensor and temperature sensor registered in Phase 1 of the equipment management task.

[0328] Phase 3: Baseline and key press thresholds for the first use after the computing device is powered on or restarted.

[0329] Steps 6-9. The sensor management task sends the PPG data collected by the side PPG sensor, the temperature data collected by the temperature sensor, and the pressure data collected by the pressure sensor to the device management task. When the light source in the side PPG data is infrared light, the PPG data can be, for example, IR data.

[0330] Steps 6-10. The sensor management task performs filtering, integration, and other processing on the received data.

[0331] Steps 6-11. The sensor management task determines whether there is a press operation on button 105 based on the PPG data collected by the PPG sensor. If there is a press, the decision baseline and button threshold at the current temperature (obtained from temperature data) provided by the production line are used as the initial baseline and button threshold. If there is no press, the dynamic calibration algorithm interface is called to perform device calibration based on one or more of the temperature data, pressure sensitivity data, and PPG data, and to regenerate a new baseline and threshold. In some embodiments, when there is no press, the baseline and threshold at the current temperature provided by the production line can also be referenced to regenerate a new baseline and threshold. The dynamic calibration algorithm interface can be used to call the dynamic calibration algorithm; the specific implementation of the dynamic calibration algorithm is not limited in this embodiment.

[0332] Steps 6-12. The sensor management task sends the baseline and key threshold to the driver layer.

[0333] Step 6-13. Sensor Management Task: Turn off the side PPG sensor.

[0334] Phase 4: Update baseline and key threshold

[0335] Step 6-14. The sensor management task sends the temperature data collected by the temperature sensor and the pressure data collected by the pressure sensor to the device management task.

[0336] Steps 6-15. The sensor management task performs filtering, integration, and other processing on the received data.

[0337] Steps 6-16. The sensor management task treats the PPG data as empty and calls the dynamic calibration algorithm interface to perform device calibration and calculate new baselines and thresholds based on one or more of the temperature data, pressure sensitivity data, and PPG data. In some implementations, when there is no pressure applied, new baselines and thresholds can also be regenerated by referring to the baselines and thresholds provided by the production line at the current temperature.

[0338] Steps 6-17. The sensor management task determines whether the baseline and decision threshold need to be updated based on the update rules. If so, the latest baseline and key threshold are sent to the driver layer; otherwise, no sending is required. There can be various update rules, and this embodiment does not impose specific limitations. For example, the update rule can be a cyclical dynamic refresh rule, whereby the sensor management task can send a new baseline and key threshold to the driver layer every few seconds (e.g., 5 seconds) instead of constantly sending them.

[0339] Phase four will be executed repeatedly, allowing the electronic device 100 to continuously update its baseline and button threshold based on changes in factors such as temperature and pressure on the button 105. In this way, Figure 6BInterruptions determined based on baseline and key threshold are more accurate, allowing electronic device 100 to trigger interrupts at appropriate times and increase the sampling frequency of pressure-sensitive devices.

[0340] Stages one through four described above illustrate the process by which the sensor management task of electronic device 100 determines the offset, baseline, and key threshold. After determining one or more of these parameters in any stage, the sensor management task can send these parameters to the pressure-sensitive module in the HAL layer, which then sends them to the pressure-sensitive module in the driver layer, enabling the interrupt triggering function of the pressure-sensitive module in the driver layer. Upon receiving the sent parameters, the pressure-sensitive module in the driver layer can set the aforementioned parameters of the device, thereby triggering the pressure-sensitive device upon receiving appropriate pressure. Figure 6B The interruption mentioned in step 5-5.

[0341] Figure 6D This is a flowchart illustrating the internal interaction process for pressure sensing in electronic device 100. Figure 6D In the implementation, a new key service and input service have been added to the execution entity. The key service is used to manage events related to keys (such as key 105) in the electronic device 100, and the input service is used to manage the input events received by the electronic device 100.

[0342] like Figure 6D As shown, the process may include the following steps:

[0343] Steps 7-1 to 7-4 can be referenced. Figure 6C The first three steps with the same name but no numbering (i.e., instructing sensor initialization, instructing pressure sensing function initialization, and instructing pressure sensing function initialization), and Figure 6C The last step with the same name but no number (i.e., setting device parameters).

[0344] Step 7-5. Register the pressure sensor in the device management task.

[0345] Step 7-6. When the hardware device triggers... Figure 6B If an interruption is mentioned in step 5-5, an interruption message will be reported to the device management task.

[0346] Step 7-7. The device management task instructs the sensor management task to enable high-frequency sampling of the pressure sensor, which is equivalent to instructing the pressure sensor to... Figure 6B Pressure data is acquired at the second frequency in steps 5-6. This indication message is sequentially sent from the sensor management task and the pressure sensing module in the HAL layer to the pressure sensing module in the driver layer.

[0347] Steps 7-8. The pressure sensor in the driving layer is turned on.

[0348] Steps 7-9. The pressure-sensitive module of the driving layer reads the pressure data collected by the pressure sensor.

[0349] Steps 7-10. The pressure-sensitive module in the driving layer will report the read data to the device management task through the pressure-sensitive module in the HAL layer and the sensor management task in sequence.

[0350] Steps 7-11. The device management task calls the algorithm (e.g., pressure data and force conversion algorithm) interface to convert the received pressure data into force values.

[0351] Step 7-12. If the pressure data collected by the pressure sensor is less than the threshold for a continuous first time period (e.g., less than 5gf for 5 consecutive seconds), the device management task will turn off the high-frequency sampling of the pressure sensor.

[0352] Step 7-13. The device management task calculates the press type received on button 105 based on the received pressure data. The press type may include, for example, pressing, releasing, long press, etc.

[0353] Step 7-14. Determine the control rights of button 105 for the device management task.

[0354] Steps 7-15-7-16. If control is on the application processor (AP) side, a dual-core message is sent to the key service, which then converts the message type and reports the converted message to the relevant service module.

[0355] Steps 7-17. If control is on the MCU side, broadcast the button press event to the input service.

[0356] The allocation of control over the buttons (AP side or MCU side) depends on the specific hardware design and system architecture, and is usually determined by factors such as performance, power consumption, and cost. No specific limitations are made here. For example, in a typical scenario, when handling tasks such as waking the screen with the power button, button control can be on the MCU side. However, in more complex tasks such as activating a voice assistant by long-pressing the power button, button control can be on the AP side.

[0357] Hardware structure of electronic device 100

[0358] The electronic device 100 in this application embodiment can be a wearable device such as a watch, bracelet, ring, wristband, or belt. Not limited to wearable devices, the electronic device 100 can also be other types of terminal devices such as mobile phones, tablets, laptops, and medical instruments.

[0359] The electronic device 100 in this application embodiment may also be referred to as the first electronic device.

[0360] Figure 7 This is a hardware structure diagram of the electronic device 100 provided in an embodiment of this application.

[0361] like Figure 7 As shown, the electronic device 100 may include a processor 110, internal memory 121, charging management module 140, power management module 141, battery 142, sensor module 180, and display screen 194, etc. Optionally, the electronic device 100 may also include any one or more of the following: wireless communication module 160, audio module 170, buttons 190, motor 191, indicator 192, etc. The audio module 170 may include any one or more of the following: speaker 170A, receiver 170B, and microphone 170C. The sensor module 180 may include a pressure sensor 180A, PPG sensor 180B, ECG sensor 180C, fingerprint sensor 180D, touch sensor 180E, temperature sensor 180F, etc.

[0362] Processor 110 may include one or more processing units, such as: application processor (AP), modem processor, graphics processing unit (GPU), image signal processor (ISP), controller, video codec, digital signal processor (DSP), baseband processor, and / or neural network processing unit (NPU), MCU, etc. Different processing units may be independent devices or integrated into one or more processors.

[0363] The controller can generate operation control signals based on the instruction opcode and timing signals to complete the control of instruction fetching and execution.

[0364] The processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory can store instructions or data that the processor 110 has just used or that are used repeatedly. If the processor 110 needs to use the instruction or data again, it can retrieve it directly from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

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

[0366] The power management module 141 connects 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, providing power to the processor 110, internal memory 121, display screen 194, and wireless communication module 160, etc. The power management module 141 can also monitor parameters such as battery capacity, battery cycle count, and battery health status (leakage current, impedance). In some other embodiments, the power management module 141 may also be located within the processor 110. In other embodiments, the power management module 141 and the charging management module 140 may be located in the same device.

[0367] The wireless communication module 160 can provide solutions for wireless communication applications on the electronic device 100, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), and NearLink. The wireless communication module 160 can be one or more devices integrating at least one communication processing module.

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

[0369] Display screen 194 is used to display images, videos, etc. Display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), or it can be manufactured using organic light-emitting diodes (OLEDs), active-matrix organic light-emitting diodes (AMOLEDs), flexible light-emitting diodes (FLEDs), minimized LEDs, microLEDs, micro-OLEDs, quantum dot light-emitting diodes (QLEDs), etc. In some embodiments, electronic device 100 may include one or N displays 194, where N is a positive integer greater than 1.

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

[0371] Electronic device 100 can implement audio functions such as music playback and recording through audio module 170, speaker 170A, receiver 170B, microphone 170C, and application processor.

[0372] The audio module 170 is used to convert digital audio information into analog audio signals for output, and also to convert analog audio input into digital audio signals. The audio module 170 can also be used for encoding and decoding audio signals. In some embodiments, the audio module 170 may be located in the processor 110, or some functional modules of the audio module 170 may be located in the processor 110.

[0373] The speaker 170A, also known as a "loudspeaker," is used to convert audio electrical signals into sound signals. The electronic device 100 can listen to music or make hands-free calls through the speaker 170A.

[0374] The receiver 170B, also known as the "earpiece," is used to convert audio electrical signals into sound signals. When the electronic device 100 answers a telephone call or voice message, the receiver 170B can be brought close to the ear to listen to the voice.

[0375] Microphone 170C, also known as a "microphone" or "voice transducer," is used to convert sound signals into electrical signals. When making a phone call or sending a voice message, the user can speak by bringing their mouth close to microphone 170C, inputting the sound signal into microphone 170C. Electronic device 100 may have at least one microphone 170C. In some embodiments, electronic device 100 may have two microphones 170C, which, in addition to collecting sound signals, can also perform noise reduction. In other embodiments, electronic device 100 may also have three, four, or more microphones 170C, which can collect sound signals, reduce noise, identify the sound source, and perform directional recording, etc.

[0376] The novel device in this embodiment may include a pressure sensor 180A, a PPG sensor 180B, and an ECG sensor 180C in the sensor module 180. The working principles of these sensors can be found in [reference needed]. Figure 1 Related information.

[0377] The fingerprint sensor 180D can be used to collect fingerprints. The electronic device 100 can use the collected fingerprint features to unlock devices, access application locks, take photos with fingerprints, and answer calls with fingerprints.

[0378] Touch sensor 180E, also known as a "touch device," can be located on display screen 194. The touch sensor 180E and display screen 194 together form a touchscreen, also known as a "touchscreen." Touch sensor 180E detects touch operations applied to or near it. The touch sensor can transmit 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 display screen 194. In other embodiments, touch sensor 180E may also be located on the surface of electronic device 100, in a different position than display screen 194.

[0379] Temperature sensor 180F is used to detect temperature. In some embodiments, electronic device 100 uses the temperature detected by temperature sensor 180F to execute a temperature processing strategy. For example, when the temperature reported by temperature sensor 180F exceeds a threshold, electronic device 100 performs thermal protection by reducing the performance of a processor located near temperature sensor 180F to reduce power consumption. When the temperature is below another threshold, electronic device 100 heats battery 142 to prevent abnormal shutdown of electronic device 100 due to low temperature. In some other embodiments, when the temperature is below yet another threshold, electronic device 100 boosts the output voltage of battery 142 to prevent abnormal shutdown due to low temperature. In some embodiments, temperature sensor 180F may be in direct contact with human tissue (such as skin) to measure the surface temperature of human tissue.

[0380] Button 190 includes Figure 1 The buttons 104 and 105 are shown in the diagram. Button 190 can be a mechanical button or a touch button. The electronic device 100 can receive button input and generate key signal inputs related to user settings and function control of the electronic device 100.

[0381] Motor 191 can generate vibration alerts. Motor 191 can be used for incoming call vibration alerts or for touch vibration feedback. For example, different vibration feedback effects can correspond to touch operations performed on different applications (such as taking photos, playing audio, etc.). Motor 191 can also correspond to different vibration feedback effects for touch operations performed on different areas of the display screen 194. Different application scenarios (such as time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also be customized.

[0382] Indicator 192 can be an indicator light, used to indicate charging status, power changes, or to indicate messages, missed calls, notifications, etc.

[0383] In some embodiments, the sensor module 180 of the electronic device 100 may further include one or more of the following sensors: an accelerometer, a barometric pressure sensor, a temperature sensor, a gyroscope sensor, etc.

[0384] An accelerometer can detect the magnitude of acceleration of an electronic device 100 in various directions (typically three axes). When the electronic device 100 is stationary, it can detect the magnitude and direction of gravity. It can also be used to identify the posture of the electronic device and is applied to applications such as screen orientation switching and pedometers.

[0385] A barometric pressure sensor can be used to measure air pressure, and in some embodiments, it can also be used to measure water pressure.

[0386] Temperature sensors can be used to measure a user's body temperature or the temperature of the user's environment.

[0387] A gyroscope sensor can be used to determine the motion attitude of an electronic device 100. In some embodiments, the angular velocity of the electronic device 100 about three axes (i.e., the x, y, and z axes) can be determined by the gyroscope sensor.

[0388] The structures illustrated in the embodiments of this application do not constitute a specific limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0389] In this embodiment, the electronic device 100 stores a computer program in its memory (internal memory 121 or external memory) that implements the control method of the electronic device provided in this embodiment. The processor 110 can be used to execute the computer program to implement the method provided in this embodiment. When the processor 110 executes the method provided in this embodiment, it involves the control of various sensors in the novel device and the user interface displayed on the display screen 194. For details, please refer to the relevant description above, which will not be elaborated here.

[0390] Each step in the above method embodiments can be completed by integrated logic circuits in the processor or by instructions in software form. The method steps disclosed in the embodiments of this application can be directly manifested as being executed by a hardware processor, or being executed by a combination of hardware and software modules in the processor.

[0391] This application also provides an electronic device, which may include: a pressure-sensitive device, a first sensor for acquiring first physiological data, a memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program to implement the method performed by the electronic device 100 as in any of the above embodiments.

[0392] This application also provides a chip system including a processing circuit and an interface circuit. The interface circuit is used to receive computer instructions and transmit them to the processing circuit. The processing circuit is used to execute the computer instructions to implement the method performed by the electronic device 100 as in any of the above embodiments.

[0393] This application also provides a chip system including at least one processor for implementing the methods executed by the electronic device 100 in any of the above embodiments. In one possible design, the chip system further includes a memory for storing program instructions and data, the memory being located within or outside the processor.

[0394] A chip system can consist of chips or include chips and other discrete components.

[0395] Optionally, there may be one or more processors in the chip system. The processor can be implemented in hardware or software. When implemented in hardware, the processor can be a logic circuit, integrated circuit, etc. When implemented in software, the processor can be a general-purpose processor, implemented by reading software code stored in memory.

[0396] Optionally, the chip system may contain one or more memories. These memories may be integrated with the processor or disposed separately; this application does not limit this. For example, the memory may be a non-transient processor, such as a read-only memory (ROM), which may be integrated with the processor on the same chip or disposed on different chips. This application does not specifically limit the type of memory or the arrangement of the memory and processor.

[0397] For example, the chip system may be a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), a system on chip (SoC), a central processor unit (CPU), a network processor (NP), a digital signal processor (DSP), a micro controller unit (MCU), a programmable logic device (PLD), or other integrated chips.

[0398] This application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method executed by the electronic device 100 in any of the above embodiments.

[0399] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the method executed by the electronic device 100 as described in any of the above embodiments.

[0400] The various embodiments of this application can be combined arbitrarily to achieve different technical effects.

[0401] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented, in whole or in part, as a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in this application are generated. 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. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium accessible to a computer or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid-state disk (SSD)).

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

[0403] In the description of the embodiments of this application, unless otherwise stated, " / " means "or". For example, A / B can mean A or B. The "and / or" in the text is merely a description of the relationship between related objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist simultaneously, and B exists alone. In addition, in the description of the embodiments of this application, "multiple" means two or more.

[0404] The terms "first" and "second" are used for descriptive purposes only and should not be construed as implying or suggesting relative importance or implicitly indicating the number of indicated technical features. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the embodiments of this application, unless otherwise stated, "multiple" means two or more.

[0405] In summary, the above description is merely an embodiment of the technical solution of this application and is not intended to limit the scope of protection of this application. Any modifications, equivalent substitutions, improvements, etc., made based on the disclosure of this application should be included within the scope of protection of this application.

Claims

1. A control method for an electronic device, characterized in that, The method is applied to a first electronic device, the first electronic device including a pressure-sensitive device and a first sensor for acquiring first physiological data, the method comprising: Run the first application; The first application calls the first component function of the development toolkit. The first component function includes: a first function for setting the pressure sensitivity threshold range, and a second function for setting the parameters for collecting the first physiological data. According to the first component function, a first parameter for collecting the first physiological data is set, and / or, according to the first component function, a first pressure sensitivity threshold range is set; The first physiological data is collected using the first parameters through the first sensor, and / or the first event is executed according to the first pressure threshold range.

2. The method according to claim 1, characterized in that, The parameters for collecting the first physiological data specifically include one or more of the following: the on state of the first sensor, the reporting frequency of the data collected by the first sensor, and the number of data packets reported by the first sensor.

3. The method according to any one of claims 1 or 2, characterized in that, The step of setting the first parameter for collecting the first physiological data according to the first component function specifically includes one or more of the following: Based on the first component function, set the first sensor to be turned on or off; According to the first component function, the reporting frequency of the first physiological data is set; Based on the first component function, set the number of packets to be reported for the first physiological data.

4. The method according to any one of claims 1-3, characterized in that, The second function is also used to set the usage method of the data collected by the first sensor, and the method further includes: Based on the first component function, the usage method of the first physiological data is set.

5. The method according to any one of claims 1-4, characterized in that, The first sensor includes one or more of the following: PPG sensor, An ECG sensor, comprising a first electrode and a second electrode.

6. The method according to any one of claims 1-5, wherein executing the first event according to the first pressure sensitivity threshold range specifically includes: In response to meeting the first pressure sensitivity threshold range, the first physiological parameter is calculated using the collected first physiological data.

7. The method according to claim 6, characterized in that, The first physiological parameter includes one or more of the following: heart rate, blood oxygen saturation, blood pressure, heart rate variability, respiratory rate, arteriosclerosis index, electrocardiogram, blood glucose, and vascular resistance.

8. The method according to any one of claims 1-7, characterized in that, The second function is specifically used to set a first index, which indicates the first parameter required to collect the first physiological data.

9. The method according to any one of claims 1-7, characterized in that, The second function is specifically used to set up a first health measurement service, which indicates the first physiological data and the first parameters required to collect the first physiological data.

10. The method according to any one of claims 1-9, characterized in that, The first component function further includes: a third function for setting visual elements, and the method further includes: Based on the first component function, set the first visual element of the first application; Display the first visual element.

11. The method according to claim 10, characterized in that, The first visualization element includes one or more of the following: a guide component, a pressure-sensitive prompt component, a breathing light component, and a measurement result component.

12. The method according to claim 10 or 11, characterized in that, The third function specifically includes one or more of the following: The guide component functions are used to set the guide component, and the guide component functions include one or more of the following: a function to set the title in the guide component, a function to set the size of the guide component, a function to set the image in the guide component, a function to set the icon in the guide component, a function to set the text of the button in the guide component, a function to set the associated event of the button in the guide component, and a function to set the animation displayed when the button in the guide component is touched; The breathing light component functions are used to set the breathing light component, and the breathing light component functions include one or more of the following: functions for setting the breathing light color, functions for setting the breathing light blinking frequency, functions for setting the breathing light shadow effect, functions for setting the breathing light blinking effect, functions for setting the breathing light animation, functions for setting the text of the button in the breathing light component, functions for setting the associated events of the button in the guide component, and functions for setting the animation displayed when the button in the guide component is touched; The prompt component functions are used to set the pressure-sensitive prompt component, and the prompt component functions include one or more of the following: functions for setting the type and direction of the pressure-sensitive prompt bar, functions for setting the segmentation of the pressure-sensitive prompt bar, functions for setting the color of the pressure-sensitive prompt bar, functions for setting the text in the pressure-sensitive prompt component, functions for setting whether to display the press pointer, functions for setting the pointer image, functions for setting the text of the buttons in the pressure-sensitive prompt component, functions for setting the associated events of the buttons in the pressure-sensitive prompt component, and functions for setting the animation displayed when the buttons in the pressure-sensitive prompt component are touched; The measurement result component functions are used to set the measurement result component, and the measurement result component functions include one or more of the following: functions for setting the title in the measurement result component, functions for setting the image in the measurement result component, functions for setting the text description in the measurement result component, functions for setting the text of the buttons in the measurement result component, and functions for setting the associated events of the buttons in the measurement result component.

13. The method according to any one of claims 1-12, characterized in that, The first electronic device is a wearable device, which includes a watch body and a first button. The first sensor includes: a first PPG sensor located on the bottom shell of the watch body, a second PPG sensor disposed on the first button, and an ECG sensor including a first electrode and a second electrode. The first electrode is located on the bottom shell of the watch body, and the second electrode and the pressure-sensitive device are disposed on the first button.

14. The method according to any one of claims 10-12, characterized in that, The first visualization element includes a first measurement control, and the method further includes, before acquiring the first physiological data using the first parameter via the first sensor: A user action was detected on the first measurement control.

15. The method according to any one of claims 1-13, characterized in that, The first component function further includes: a fourth function for setting a pressure-sensitive response threshold; and the method further includes: before acquiring the first physiological data using the first parameters via the first sensor. The first pressure sensitivity threshold is set through the first component function; Pressure data greater than or equal to the first pressure response threshold is collected by the pressure-sensitive device.

16. The method according to claim 15, characterized in that, Before acquiring pressure data greater than or equal to the first pressure response threshold through the pressure-sensitive device, the method further includes: First, pressure-sensitive data is acquired at a first frequency through the pressure-sensitive device; Upon receiving a press operation applied to the pressure-sensitive device, pressure-sensitive data is acquired through the pressure-sensitive device at a second frequency, which is greater than the first frequency.

17. The method according to claim 16, characterized in that, The method further includes: After acquiring data that is larger than the baseline and exceeds the baseline by the pressure-sensitive device, and is greater than or equal to the button threshold, it is determined that a press operation has been received on the pressure-sensitive device. The baseline and the button threshold are preset parameters, or the baseline and the button threshold are obtained by calibration by the first electronic device.

18. The method according to any one of claims 15-17, characterized in that, Before acquiring the first physiological data using the first parameter via the first sensor, the method further includes: It is determined that the first electronic device is in non-interactive mode.

19. The method according to claim 5, characterized in that, Before acquiring the first physiological data using the first parameter via the first sensor, the method further includes: The first electronic device detects that the first electrode and the second electrode are connected.

20. The method according to any one of claims 1-19, characterized in that, The first electronic device is a watch or a bracelet.

21. A control method for an electronic device, characterized in that, The method is applied to a first electronic device, the first electronic device including a pressure-sensitive device and a first sensor for acquiring first physiological data, the method comprising: First, pressure-sensitive data is acquired at a first frequency through the pressure-sensitive device; Upon receiving a press operation applied to the pressure-sensitive device, pressure-sensitive data is collected by the pressure-sensitive device at a second frequency, where the second frequency is greater than the first frequency. Pressure data greater than or equal to the first pressure response threshold is acquired through the pressure-sensitive device; In response to the acquisition of pressure data greater than or equal to the first pressure response threshold, the first physiological data is acquired through the first sensor.

22. The method according to claim 21, characterized in that, The method further includes: After acquiring data that is larger than the baseline button threshold through the pressure-sensitive device, it is determined that a press operation has been received on the pressure-sensitive device, wherein the baseline and the button threshold are preset parameters, or the baseline and the button threshold are obtained by calibration by the first electronic device.

23. The method according to claim 21 or 22, characterized in that, Before acquiring the first physiological data using the first parameter via the first sensor, the method further includes: It is determined that the first electronic device is in non-interactive mode.

24. An electronic device, characterized in that, include: The device comprises a pressure-sensitive device, a first sensor for acquiring first physiological data, a memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program to implement the method as described in any one of claims 1-22.

25. A computer-readable storage medium, characterized in that, It stores a computer program thereon, which, when executed by a processor, implements the method as described in any one of claims 1-23.

26. A computer program product, characterized in that, The computer program product includes a computer program that, when executed by a processor, implements the method as described in any one of claims 1-23.

27. A chip system, characterized in that, The chip system includes a processing circuit and an interface circuit. The interface circuit is used to receive computer instructions and transmit them to the processing circuit. The processing circuit is used to execute the computer instructions to implement the method as described in any one of claims 1-23.