Electronic device and control method and apparatus therefor, processor chip, medium and product

By introducing a first processor and a second processor into electronic devices and optimizing the reporting conditions and caching methods of sensor data using control signals, the problem of short battery life of electronic devices is solved, and a balance between power consumption and data real-time performance is achieved in different scenarios.

WO2026158577A1PCT designated stage Publication Date: 2026-07-30GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
Filing Date
2026-01-23
Publication Date
2026-07-30

AI Technical Summary

Technical Problem

As electronic devices become more functional, their power consumption increases, leading to shorter battery life. Improving the battery life of electronic devices has become an urgent problem to be solved.

Method used

By introducing a first processor and a second processor into the electronic device, the target reporting conditions of sensor data are controlled by control signals. Low-power mode and general mode are adopted to optimize the reporting frequency and caching method of sensor data in different scenarios, thereby reducing power consumption and improving data real-time performance.

Benefits of technology

Reduce power consumption and extend device battery life in scenarios with high battery life requirements; improve data processing performance in scenarios with high data real-time requirements to meet the needs of various application scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2026074584_30072026_PF_FP_ABST
    Figure CN2026074584_30072026_PF_FP_ABST
Patent Text Reader

Abstract

A control method for an electronic device. The electronic device comprises a first processor (10), a second processor (20), and at least one sensor (30). The method is applied to the first processor (10), and the method comprises: receiving a control signal sent by the second processor (20); determining a target reporting condition of sensor data on the basis of the control signal, the target reporting condition comprising a first reporting condition or a second reporting condition; acquiring the sensor data generated by the sensor (30), and caching the sensor data; and when the cached sensor data satisfies the target reporting condition, sending part or all of the cached sensor data to the second processor (20), wherein the power consumption of the electronic device under the first reporting condition is less than the power consumption under the second reporting condition.
Need to check novelty before this filing date? Find Prior Art

Description

Electronic devices, control methods, apparatuses, processor chips, media and products thereof

[0001] Cross-references to related applications

[0002] This application claims priority to Chinese patent application filed on January 23, 2025, with application number 202510113227.5, entitled "Electronic device and control method, apparatus, processor chip, medium and product thereof", the entire contents of which are incorporated herein by reference. Technical Field

[0003] This application relates to the field of electronic equipment technology, and in particular to an electronic device and its control method, apparatus, processor chip, medium and product. Background Technology

[0004] The statements herein are provided only as background information in connection with this application and do not necessarily constitute prior art.

[0005] With the rapid development of communication technology, electronic devices have emerged. However, as these devices offer more and more functions, their power consumption increases, leading to shorter battery life. Therefore, improving the battery life of electronic devices has become an urgent problem to be solved. Summary of the Invention

[0006] According to various embodiments of this application, an electronic device and its control method, apparatus, processor chip, medium, and product are provided.

[0007] In a first aspect, this application provides a control method for an electronic device, the electronic device including a first processor, a second processor, and at least one sensor, the method being applied to the first processor, the method comprising:

[0008] Receive control signals sent by the second processor;

[0009] The target reporting conditions for sensor data are determined based on the control signal; the target reporting conditions include a first reporting condition or a second reporting condition.

[0010] Acquire sensor data generated by the sensor and cache the sensor data;

[0011] If the cached sensor data meets the target reporting conditions, the cached partial or all sensor data is sent to the second processor; wherein the power consumption of the electronic device under the first reporting conditions is less than the power consumption under the second reporting conditions.

[0012] Secondly, this application provides a control method for an electronic device, the electronic device including a first processor, a second processor, and at least one sensor, the method being applied to the second processor, the method comprising:

[0013] A control signal is sent to the first processor to instruct the first processor to determine the target reporting conditions for sensor data according to the control signal, acquire the sensor data generated by the sensor, and cache the sensor data; the target reporting conditions include a first reporting condition or a second reporting condition;

[0014] The electronic device receives some or all of the cached sensor data sent by the second processor when the cached sensor data meets the target reporting conditions; wherein the power consumption of the electronic device under the first reporting conditions is less than the power consumption under the second reporting conditions.

[0015] Thirdly, this application provides a control method for an electronic device, applied to an electronic device including a first processor, a second processor, and at least one sensor, wherein the first processor is used to run a first system, the second processor is used to run a second system, and the method includes:

[0016] When the second system meets the first preset condition, the second system sends a low-power mode control signal to the first system, and the first system controls the sensor service mode of the first system to be in low-power mode according to the low-power mode control signal.

[0017] In the low-power mode, the first system stores the data collected by the at least one sensor into the first memory.

[0018] Fourthly, this application provides a control device for an electronic device, the electronic device including a first processor, a second processor, and at least one sensor, the device being applied to the first processor, the device comprising:

[0019] The first receiving module is used to receive control signals sent by the second processor;

[0020] The determination module is used to determine the reporting conditions of the sensor data as target reporting conditions based on the control signal; the target reporting conditions include a first reporting condition or a second reporting condition;

[0021] A cache acquisition module is used to acquire sensor data generated by the sensor and cache the sensor data.

[0022] A first transmitting module is configured to transmit some or all of the cached sensor data to the second processor when the cached sensor data meets the target reporting conditions; wherein the power consumption of the electronic device under the first reporting conditions is less than the power consumption under the second reporting conditions.

[0023] Fifthly, this application provides a control device for an electronic device, the electronic device including a first processor, a second processor, and at least one sensor, the device being applied to the second processor, the device comprising:

[0024] The second sending module is configured to send a control signal to the first processor to instruct the first processor to determine the target reporting conditions for sensor data according to the control signal, acquire the sensor data generated by the sensor, and cache the sensor data; the target reporting conditions include a first reporting condition or a second reporting condition.

[0025] The second receiving module is used to receive some or all of the cached sensor data sent by the second processor when the cached sensor data meets the target reporting conditions; wherein the power consumption of the electronic device under the first reporting conditions is less than the power consumption under the second reporting conditions.

[0026] In a sixth aspect, this application provides a processor chip, including a first memory and a first processor, wherein the first memory caches a computer program, and the first processor executes the computer program to implement the steps of the method described in the first aspect.

[0027] In a seventh aspect, this application provides a processor chip, including a second memory and a second processor, wherein the second memory caches a computer program, and the second processor executes the computer program to implement the steps of the method described in the second aspect.

[0028] Eighthly, this application provides an electronic device, which includes at least one sensor and further includes a processor chip as described in the fifth aspect, and / or a processor chip as described in the sixth aspect.

[0029] Ninthly, this application provides a computer-readable storage medium having a computer program cached thereon, which, when executed by a processor, performs the steps of the method described above.

[0030] In a tenth aspect, this application provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the method described above.

[0031] Details of one or more embodiments of this application are set forth in the following drawings and description. Other features, objects, and advantages of this application will become apparent from the specification, drawings, and claims. Attached Figure Description

[0032] To more clearly illustrate the technical solutions in the embodiments of this application or the conventional technology, the drawings used in the description of the embodiments or the conventional technology will be briefly introduced below. Obviously, the drawings described below are only embodiments of this application. For those skilled in the art, other drawings can be obtained based on the disclosed drawings without creative effort.

[0033] Figure 1 is a schematic diagram of the structure of an electronic device in one embodiment;

[0034] Figure 2 is a flowchart illustrating one embodiment of a control method for an electronic device;

[0035] Figure 3 is a second schematic flowchart of a control method for an electronic device in one embodiment;

[0036] Figure 4 is a flowchart of the control method of an electronic device in one embodiment (the third one).

[0037] Figure 5 is a flowchart of the control method of an electronic device in one embodiment (fourth one);

[0038] Figure 6 is a fifth flowchart illustrating the control method of an electronic device in one embodiment;

[0039] Figure 7 is a flowchart of the control method of an electronic device in one embodiment (the sixth one).

[0040] Figure 8 is a flowchart of the control method of an electronic device in one embodiment (the seventh one).

[0041] Figure 9 is a schematic diagram of the electronic device in another embodiment;

[0042] Figure 10 is a structural block diagram of the control device of an electronic device in one embodiment;

[0043] Figure 11 is a structural block diagram of the control device of an electronic device in another embodiment;

[0044] Figure 12 is an internal structure diagram of an electronic device in one embodiment. Detailed Implementation

[0045] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0046] The control method for electronic devices provided in this application embodiment can be applied to the application environment shown in Figure 1. This application environment includes electronic devices. Electronic devices include wearable devices, which can be, but are not limited to, smart bracelets, smartwatches, smart glasses, smart massagers, and other smart electronic devices supported by human body parts. No specific limitations are placed on the type of wearable device herein.

[0047] As shown in Figure 1, the electronic device includes a first processor 10, a second processor 20, and at least one sensor 30. The first processor 10 and the second processor 20 are different cores of the electronic device. In some exemplary embodiments, the first processor 10 may be a single-core or multi-core microcontroller unit (MCU), and the second processor 20 may be a single-core or multi-core central processing unit (CPU). In some exemplary embodiments, the power consumption of the first processor 10 is lower than that of the second processor 20. The number of first processors 10 can be one or more; the number of second processors 20 can also be one or more, and this is not limited here.

[0048] The first processor 10 runs the first system, and the second processor 20 runs the second system. Electronic devices can switch between the first and second systems, and vice versa. The first and second systems can also work collaboratively. The first and second systems can communicate with each other. For example, the first system can be an RTOS (Real-time Operating System); the second system can be an Android system, an iOS (iPhone Operating System), a Windows Phone system, a BlackBerry OS (Operation System), or a Tizen system, etc.

[0049] The electronic device supports communication between the first system and the second system. In some exemplary embodiments, where the electronic device is a wearable device, the first system can support functions such as sensor data acquisition and caching, for example, it can acquire and cache heart rhythm data generated by the heart rhythm sensor 30; the second system can support intelligent interaction with the user, such as chat functionality. It should be noted that the above is only an exemplary description, and in actual applications, the first and second systems can be designed according to the specific scenario of the electronic device, and are not limited here.

[0050] Sensor 30 is used to support the generation of user-related sensor data to support functions such as health monitoring, motion tracking, and interactive features of electronic devices. The number of sensors 30 can be one or more; the type of sensors 30 can be one or more, and is not limited thereto. The types of sensors 30 include, but are not limited to, motion sensors, biosensors, and environmental sensors. For example, motion sensors may include accelerometers, gyroscopes, geomagnetic sensors, and atmospheric pressure sensors; motion sensors can be used to realize functions such as motion detection, navigation, and human-computer interaction; biosensors may include body temperature sensors and electroencephalogram (EEG) sensors; environmental sensors may include temperature sensors, ambient light sensors, barometric pressure sensors, audio sensors, and cameras.

[0051] In some exemplary embodiments, as shown in FIG2, a control method for an electronic device is provided. Taking the application of the method to the first processor in FIG1 as an example, the method includes the following steps S202 to S208.

[0052] S202: Receives control signals sent by the second processor.

[0053] Control signals are sent from the first processor to the second processor, and are used by the second processor to control the first processor. In some exemplary embodiments, a first system running on the first processor provides a sensor service, which supports the reception of control signals and can also support the control of sensors; a second system running on the second processor includes an application (APP), which sends control signals and can also support the reception and processing of sensor data. In some exemplary embodiments, the sensor service can receive control signals sent by a data acquisition tool application within the APP based on dual-core communication to control the acquisition, caching, and reporting of sensor data.

[0054] In some exemplary embodiments, the control signal includes at least one of an enable control signal and a condition control signal. The enable control signal instructs the first processor to enable the sensor. The condition control signal instructs the first processor to determine the target reporting conditions for the sensor data. In some exemplary embodiments, the condition control signal includes a mode control signal or a target delay parameter for the sensor data; wherein the mode control signal represents a low-power mode or a general-purpose mode, and the target delay parameter represents the currently allowed buffer duration for the first processor to send sensor data to the second processor. Specific application procedures are described in detail below.

[0055] S204: Determine the target reporting conditions for sensor data based on the control signal; the target reporting conditions include a first reporting condition or a second reporting condition.

[0056] Sensor data refers to data generated by at least one sensor in an electronic device. For example, taking an electronic device that includes a heart rate sensor and an accelerometer as an example, the sensor data may include heart rate data generated by the heart rate sensor and / or the number of steps taken by the accelerometer. It should be noted that the sensor data may be generated by some of the sensors in the electronic device, or it may be generated by all the sensors in the electronic device. The sensor data can be determined according to the specific requirements of the first processor for sensor data, and is not limited here.

[0057] The target reporting conditions represent the conditions that must be met for the first processor to send sensor data to the second processor. Target reporting conditions include either a first reporting condition or a second reporting condition, where the first and second reporting conditions are different. Whether the target reporting condition is the first or the second reporting condition can be determined specifically based on the control signal, which can be determined according to the application scenario of the electronic device.

[0058] In the application, the first processor determines the target reporting conditions for sensor data based on the control signal, and controls the reporting process of sensor data according to the target reporting conditions.

[0059] S206: Acquire sensor data generated by the sensor and cache the sensor data.

[0060] The sensor is used to generate sensor data. The sensor data acquired by the first processor may come from one or more sensors, without being specifically limited here.

[0061] Sensor data can be cached in the target cache space allocated by the first processor. In the application, the sensor collects sensor data and sends the sensor data to the first processor. After the first processor obtains the sensor data, it caches the sensor data.

[0062] S208: If the cached sensor data meets the target reporting conditions, send some or all of the cached sensor data to the second processor; wherein the power consumption of the electronic device under the first reporting condition is less than the power consumption under the second reporting condition.

[0063] The power consumption of the electronic device under the first reporting condition is less than that under the second reporting condition. In some exemplary embodiments, under the first reporting condition, the reporting frequency of the first processor sending sensor data to the second processor is less than the corresponding reporting frequency under the second reporting condition.

[0064] In some exemplary embodiments, the real-time performance of the electronic device under the second reporting condition is higher than that under the first reporting condition. Here, real-time performance can be understood as the real-time performance of the first processor sending sensor data to the second processor, or it can also be understood as the real-time performance of the second processor receiving and processing the sensor data reported by the first processor.

[0065] The sensor data sent from the first processor to the second processor can be either some cached sensor data or all cached sensor data; no limitation is made here.

[0066] In the application, the first processor can determine whether the cached sensor data meets the target reporting conditions, and if the cached sensor data meets the target reporting conditions, it can send some or all of the cached sensor data to the second processor.

[0067] In some exemplary embodiments, the target reporting conditions include the cache duration of the stored sensor data reaching a delay parameter, and / or the amount of stored sensor data reaching a storage threshold; wherein, the cache duration refers to the time between the start and end of the cache of the sensor data, or can be understood as the delayed reporting time between the time the sensor data is collected and the time it is sent to the second processor; wherein, the delay parameter under the first reporting condition is greater than the delay parameter under the second reporting condition; and the storage threshold under the first reporting condition is greater than the storage threshold under the second reporting condition. Specific application procedures can be found in the detailed description below.

[0068] It is understandable that electronic devices have different requirements for sensor data in different scenarios. In some exemplary embodiments, in scenarios where battery life requirements are high or where real-time requirements for sensor data are low, the target reporting condition can be switched to a first reporting condition via a control signal. Therefore, under the first reporting condition, the first processor is controlled to report sensor data to the second processor. Compared to the second reporting condition, this reduces the power consumption of the electronic device, thereby improving its battery life. In some exemplary embodiments, in scenarios where real-time requirements for sensor data are high or where battery life requirements are low, the target reporting condition can be switched to a second reporting condition via a control signal. Therefore, under the second reporting condition, the first processor is controlled to report sensor data to the second processor. Compared to the first reporting condition, this ensures that the sensor data generated by the sensor is reported to the second processor in a timely manner, thereby meeting the real-time requirements of the electronic device for sensor data and improving its real-time data processing performance.

[0069] The control method for the aforementioned electronic device involves a first processor receiving a control signal from a second processor, determining the target reporting conditions for sensor data based on the control signal, acquiring sensor data generated by the sensor, and caching the sensor data. If the cached sensor data meets the target reporting conditions, the first processor sends some or all of the cached sensor data to the second processor. The target reporting conditions include either a first reporting condition or a second reporting condition. This method effectively manages the sensor data reporting process by controlling the first processor to send sensor data reports to the second processor based on the control signal. Since the power consumption of the electronic device under the first reporting condition is less than that under the second reporting condition, in scenarios with high battery life requirements, the first processor can be controlled to send sensor data reports to the second processor based on the first reporting condition. Furthermore, in scenarios with high data real-time requirements, the first processor can be controlled to send sensor data reports to the second processor based on the second reporting condition. This method supports both scenarios with high battery life requirements and scenarios with high data real-time requirements, thus supporting multiple application scenarios and improving the performance of the electronic device.

[0070] In some exemplary embodiments, the control signal includes a target delay parameter for the sensor data, denoted as timeout. The target delay parameter represents the currently allowed buffering time for the sensor data, or the buffering time for the sensor data from the start time of buffering to the end time of buffering. As shown in Figure 3, step S204, determining the target reporting conditions for the sensor data based on the control signal, includes the following steps S302 to S306.

[0071] S302: Obtain the target delay parameters based on the control signal.

[0072] It is understood that the control signal includes the target delay parameter. Based on this, after receiving the control signal, the first processor can obtain the target delay parameter from it.

[0073] S304: If the target delay parameter is greater than or equal to the first time threshold, the target reporting condition is determined as the first reporting condition.

[0074] S306: If the target delay parameter is less than the first time threshold, the target reporting condition is determined as the second reporting condition.

[0075] The first time threshold is preset and can be set based on experimentation or experience. For example, the first time threshold can be 0.5s, 1s, 1.5s, 2s, or other suitable values. This is only an example and is not intended to impose any restrictions. The first time threshold is used to identify the real-time requirements of electronic devices for sensor data.

[0076] In some exemplary embodiments, the first processor compares the target delay parameter with a first time threshold. If the target delay parameter is greater than or equal to the first time threshold, it indicates that the electronic device has a low real-time requirement for sensor data. In this case, the target reporting condition can be determined as the first reporting condition, and sensor data is sent to the second processor based on the first reporting condition. Compared with the second reporting condition, this can reduce the power consumption of the electronic device and improve its battery life. If the target delay parameter is less than the first time threshold, it indicates that the electronic device has a high real-time requirement for sensor data. In this case, the target reporting condition can be determined as the second reporting condition, and sensor data is sent to the second processor based on the second reporting condition. Compared with the first reporting condition, this can report the sensor data to the second processor in a timely manner, thereby meeting the real-time requirement of the electronic device for sensor data.

[0077] For example, if the first time threshold is 1 second, and the target delay parameter is 2 second > 1 second, then the target reporting condition is determined as the first reporting condition to improve the battery life of electronic devices; if the target delay parameter is 100 ms < 1 second, then the target reporting condition is determined as the second reporting condition to meet the real-time requirements of sensor data.

[0078] The control method for the aforementioned electronic device obtains a target delay parameter based on a control signal. If the target delay parameter is greater than or equal to a first time threshold, a target reporting condition is determined as the first reporting condition. If the target delay parameter is less than the first time threshold, a target reporting condition is determined as the second reporting condition. This method, based on the target delay parameter sent by the first processor, identifies the real-time requirements of the electronic device for sensor data. When the target delay parameter is greater than or equal to the first time threshold, the first reporting condition is determined as the condition required for the first processor to send sensor data to the second processor, reducing the power consumption of the electronic device and thus improving its battery life. Furthermore, when the target delay parameter is less than the first time threshold, the second reporting condition is determined as the condition required for the first processor to send sensor data to the second processor, improving the timeliness or real-time performance of the sensor data transmission from the first processor to the second processor. This enhances the real-time processing performance of the electronic device for sensor data, satisfying both scenarios with high battery life requirements and scenarios with high data real-time requirements, thereby improving the overall performance of the electronic device.

[0079] In some exemplary embodiments, the electronic device includes a low-power mode and a general-purpose mode. The power consumption of the electronic device in the low-power mode is lower than that in the general-purpose mode. Alternatively, the real-time processing performance of the electronic device for sensor data in the general-purpose mode is higher than that in the low-power mode. In some exemplary embodiments, the first processor includes a low-power mode and a general-purpose mode, and the second processor includes both a low-power mode and a general-purpose mode. In some exemplary embodiments, the modes of the electronic device, the first processor, and the second processor are consistent; for example, the electronic device, the first processor, and the second processor each operate in a low-power mode; or, for example, the electronic device, the first processor, and the second processor each operate in a general-purpose mode. In some exemplary embodiments, the low-power mode corresponds to a first reporting condition, and the general-purpose mode corresponds to a second reporting condition.

[0080] The control signals include mode control signals, which can be low-power mode control signals or general-purpose mode control signals. The sensor service in the first processor can receive the low-power mode control signal sent by the second processor via dual-core communication when the second processor is in low-power mode. Based on the low-power mode control signal, it activates the low-power mode and determines the target reporting condition as the first reporting condition. Then, if the stored sensor data meets the first reporting condition, it sends some or all of the stored sensor data to the second processor, thereby reducing the power consumption of the electronic device. Alternatively, the sensor service in the first processor can also receive the general-purpose mode control signal sent by the second processor via dual-core communication when the second processor is in general-purpose mode. Based on the general-purpose mode control signal, it activates the low-power mode and determines the target reporting condition as the second reporting condition. Then, if the stored sensor data meets the second reporting condition, it sends some or all of the stored sensor data to the second processor, thereby improving the real-time processing performance of the electronic device for sensor data.

[0081] In some exemplary embodiments, the control signals may only include low-power mode control signals. It is understood that, without receiving a low-power mode control signal, the default reporting condition is the one corresponding to the general mode, such as the second reporting condition. Only upon receiving a low-power mode control signal will the target reporting condition be switched to the first reporting condition. That is, in general mode, the second processor may not send a general mode control signal, and the first processor can report using the default reporting condition. In some exemplary embodiments, the electronic device can switch between low-power mode and general mode; correspondingly, the first processor can also switch between low-power mode and general mode, and the second processor can also switch between low-power mode and general mode.

[0082] It should be noted that electronic devices can select appropriate operating modes according to the actual scenario. For example, in scenarios where battery life requirements are high or real-time data requirements are low, they can operate in low-power mode to reduce power consumption and improve battery life performance. On the other hand, in scenarios where real-time data requirements are high or battery life requirements are low, they can operate in general mode to improve real-time data processing performance. No specific limitations are made here.

[0083] The control method for an electronic device provided in this application embodiment includes a general-purpose mode and a low-power mode. A first processor and a second processor each have their own low-power and general-purpose modes. In low-power mode, the first processor can activate and operate in low-power mode based on a low-power mode control signal sent by the second processor. This means controlling the reporting of sensor data according to a first reporting condition, reducing the power consumption generated during data reporting, thereby reducing the device's power consumption. In general-purpose mode, the first processor can activate and operate in general-purpose mode based on a general-purpose mode control signal sent by the second processor. This means controlling the reporting of sensor data according to a second reporting condition, improving the real-time performance of data reporting, thereby enhancing the device's real-time data processing performance. This method designs two operating modes—low-power mode and general-purpose mode—and corresponding conditions for reporting sensor data in each mode. By using different reporting conditions, the conditions required for sensor data to be sent from the first processor to the second processor vary, thus supporting both high battery life and high real-time performance requirements.

[0084] In some exemplary embodiments, as shown in FIG4, step S206, caching sensor data, includes the following steps S402 and S404.

[0085] S402: Obtain access to the target cache space based on the control signal.

[0086] S404: Cache sensor data in the target cache space.

[0087] The target cache space is used to cache sensor data. The first processor can determine the target cache space based on the control signal, request access to the target cache space, and then cache the sensor data in the target cache space.

[0088] The target cache space may include the cache space under the first reporting condition and the cache space under the second reporting condition. The cache space of the electronic device under the first reporting condition and the cache space under the second reporting condition may be the same or different; wherein, if the cache spaces are different, the cache space under the first reporting condition and the cache space under the second reporting condition may differ in at least one of cache capacity and cache location. For example, the cache capacity of the cache space under the first reporting condition is greater than the cache capacity of the cache space under the second reporting condition, and / or, the cache space under the first reporting condition and the cache space under the second reporting condition are provided by different memories. In applications, the target cache space can be determined according to the actual scenario, and no further limitations are imposed here.

[0089] In this embodiment, by obtaining the right to use the target cache space according to the control signal and caching the sensor data in the target cache space, technical support is provided before the sensor data is reported to the second processor, which is beneficial to supporting various application scenarios with high requirements for battery life and high requirements for real-time data.

[0090] In some exemplary embodiments, the electronic device further includes a target memory for providing a target cache space. The target memory can be understood as a memory that provides the target cache space to the first processor. The type of the target memory can be any suitable type; for example, the target memory can be SRAM (Static Random Access Memory) or PSRAM (Pseudo Static Random Access Memory), without specific limitations herein.

[0091] The target memory includes at least one of a first memory and a second memory. The first memory and the second memory are different. Specifically, the first memory and the second memory may be of different types and / or have different storage capacities. For example, the first memory may be PSRAM, and the second memory may be SRAM. The first memory and the second memory may have different storage capacities. For instance, the storage capacity of the first memory may be greater than the capacity of the second memory.

[0092] In the application, the first processor can obtain access to the target cache space in the target memory based on control signals, and cache the sensor data in the target cache space of the target memory. The target memory of the electronic device under the first and second reporting conditions can be the same or different, depending on the actual scenario, and will not be further limited here.

[0093] The target memory may include memory under a first reporting condition and memory under a second reporting condition. The memory under the first reporting condition and the memory under the second reporting condition of the electronic device may be the same or different; where the memory is different, the memory under the first reporting condition and the memory under the second reporting condition may differ in at least one of storage capacity and type. For example, the storage capacity of the memory under the first reporting condition may be greater than the storage capacity of the memory under the second reporting condition, and / or, the memory under the first reporting condition may be a first type of memory such as PSRAM, and the memory under the second reporting condition may be a second type of memory such as SRAM. In applications, the target cache space can be determined according to the actual scenario, and is not limited in detail here.

[0094] In some exemplary embodiments, the control signal includes a target delay parameter of the sensor data. Step S402, obtaining usage rights to the target cache space according to the control signal, includes: obtaining usage rights to the first cache space if the target delay parameter is greater than or equal to a second time threshold; or, obtaining usage rights to the second cache space if the target delay parameter is less than the second time threshold. The first cache capacity of the first cache space is greater than or equal to the second cache capacity of the second cache space.

[0095] The first cache capacity refers to the total amount of data that the first cache space can cache, and the second cache capacity refers to the total amount of data that the second cache space can store. In the embodiments of this application, the first cache capacity can also be understood as the total amount of sensor data that the first processor can cache in the first cache space, and the second cache capacity can also be understood as the total amount of sensor data that the first processor can cache in the second cache space. Wherein, the first cache capacity is greater than or equal to the second cache capacity.

[0096] It should be noted that the first cache capacity is less than or equal to the storage capacity of the memory that provides cache space under the first reporting condition, and the second cache capacity is less than or equal to the storage capacity of the memory that provides cache space under the second reporting condition.

[0097] The first cache space and the second cache space can be provided by the same memory or by different memories. For example, the first cache space can be provided by a first memory such as PSRAM, and the second cache space can be provided by a second memory such as SRAM. In the application, the first processor can acquire access to all cache spaces of the first memory PSRAM and cache the sensor data in SRAM when the target delay parameter is greater than or equal to the second time threshold, and acquire access to all cache spaces of the second memory SRAM and cache the sensor data in SRAM when the target delay parameter is less than the second time threshold, wherein the storage capacity of PSRAM is greater than or equal to the storage capacity of SRAM.

[0098] For example, both the first and second cache spaces are provided by memory such as PSRAM. In the application, the first processor can obtain access to at least a portion of the cache space of the PSRAM and cache the sensor data in at least a portion of the cache space of the PSRAM when the target delay parameter is greater than or equal to the second time threshold. When the target delay parameter is less than the second time threshold, the first processor can obtain access to all the cache spaces of the PSRAM and cache the sensor data in the PSRAM.

[0099] The second time threshold is preset and can be set based on experimentation or experience. For example, the second time threshold can be 0.5s, 1s, 1.5s, 2s, or other suitable values. This is only an example and is not intended to be limiting. The second time threshold is intended to identify the real-time requirement of electronic devices for sensor data, or the buffering requirement of electronic devices for sensor data.

[0100] In the application, the first processor can obtain the target delay parameter `timeout` sent by the second processor based on the control signal, and then compare the target delay parameter with a second time threshold. If the target delay parameter is greater than or equal to the second time threshold, it indicates that the electronic device has a low real-time requirement for sensor data. In this case, the first processor can obtain the right to use the first cache space and cache the sensor data in the first cache space. In this case, the first processor can cache a large amount of sensor data through the first cache space. If the target delay parameter is less than the second time threshold, it indicates that the electronic device has a high real-time requirement for sensor data. In this case, the first processor can obtain the right to use the second cache space and cache the sensor data in the second cache space. In this case, the first processor can cache a small amount of sensor data through the second cache space.

[0101] For example, taking a second time threshold of 1 second as an example, if the target delay parameter is 2 second > 1 second, then the user obtains access to the first cache space and caches the sensor data in the first cache space; if the target delay parameter is 100 ms < 1 second, then the user obtains access to the second cache space and caches the sensor data in the second cache space. The second time threshold can be the same as or different from the aforementioned first time threshold. For example, both the first and second time thresholds can be 1 second. This is merely an example; the specific first and second time thresholds can be set according to actual needs, and no further limitations are imposed here.

[0102] The control method for the aforementioned electronic device obtains a target delay parameter based on a control signal. If the target delay parameter is greater than or equal to a second time threshold, it acquires access to the first cache space and caches sensor data into the second cache space. If the target delay parameter is less than the second time threshold, it acquires access to the second cache space and caches sensor data into the second cache space. This method, based on the target delay parameter sent by the first processor, identifies the real-time requirements of the electronic device for sensor data. Furthermore, when the target delay parameter is large, it caches sensor data using a cache space with a large cache capacity, thus enabling the caching of more sensor data and reducing the frequency of cache overflow. This reduces the frequency of reporting cached data due to insufficient cache space, thereby reducing the power consumption of electronic devices and improving their battery life. Furthermore, when the target latency parameter is small, caching sensor data with a smaller cache capacity reduces the frequency of cache overflow, thus increasing the frequency of reporting cached data due to insufficient cache space. This improves the real-time performance of sensor data reporting, enhances the real-time data performance of electronic devices, and increases the utilization rate of cache space. Therefore, it supports both scenarios with high battery life requirements and scenarios with high real-time data requirements, improving the performance of electronic devices.

[0103] In some exemplary embodiments, the electronic device includes a low-power mode and a general-purpose mode; the control signal includes a mode control signal, which may be a low-power mode control signal or a general-purpose mode control signal. The target cache space includes a third cache space corresponding to the low-power mode or a fourth cache space corresponding to the general-purpose mode. The third cache space has a third cache capacity greater than or equal to the fourth cache capacity of the fourth cache space.

[0104] In some exemplary embodiments, the low-power mode control signal corresponds to the third cache space, and the general-purpose mode control signal corresponds to the fourth cache space. For example, the sensor service in the first processor can receive the low-power mode control signal sent by the second processor based on dual-core communication when the second processor is in low-power mode, obtain access to the third cache space according to the low-power mode control signal, and cache sensor data in the third cache space. This utilizes the large capacity of the third cache space to cache a large amount of sensor data, reducing the data reporting frequency and thus lowering the power consumption of the electronic device. Alternatively, the sensor service in the first processor can also receive the general-purpose mode control signal sent by the second processor based on dual-core communication when the second processor is in general-purpose mode, obtain access to the fourth cache space according to the general-purpose mode control signal, and cache sensor data in the fourth cache space. This utilizes the small capacity of the fourth cache space to cache a small amount of sensor data, increasing the data reporting frequency and thus improving the real-time processing performance of the electronic device for sensor data.

[0105] The third cache capacity refers to the total amount of data that the third cache space can cache, and the fourth cache capacity refers to the total amount of data that the fourth cache space can store. In the embodiments of this application, the third cache capacity can also be understood as the total amount of sensor data that the first processor can cache in the third cache space, and the fourth cache capacity can also be understood as the total amount of sensor data that the first processor can cache in the fourth cache space. Wherein, the third cache capacity is greater than or equal to the fourth cache capacity.

[0106] It should be noted that the third cache capacity is less than or equal to the storage capacity of the memory that provides cache space under the first reporting condition, and the fourth cache capacity is less than or equal to the storage capacity of the memory that provides cache space under the second reporting condition.

[0107] The third and fourth cache spaces can be provided by the same memory or by different memory sources. For example, the third cache space can be provided by a first memory such as PSRAM, and the fourth cache space can be provided by a second memory such as SRAM. In the application, the first processor can acquire access to all cache spaces of the first memory PSRAM in low-power mode and cache the sensor data in PSRAM, and in general mode, acquire access to all cache spaces of the second memory SRAM and cache the sensor data in SRAM, wherein the storage capacity of PSRAM is greater than or equal to the storage capacity of SRAM.

[0108] For example, the third and fourth cache spaces are both provided by memory such as PSRAM. In the application, the first processor can obtain access to at least a portion of the cache space of the PSRAM in low-power mode and cache the sensor data in at least a portion of the cache space of the PSRAM. In general mode, it can obtain access to all the cache spaces of the PSRAM and cache the sensor data in the PSRAM.

[0109] The sensor service in the first processor can receive a low-power mode control signal from the second processor via dual-core communication when the second processor is in low-power mode. Based on the low-power mode control signal, it can activate the low-power mode, acquire access to the third cache space, and cache sensor data in the third cache space. Alternatively, the sensor service in the first processor can receive a general-purpose mode control signal from the second processor via dual-core communication when the second processor is in general-purpose mode. Based on the general-purpose mode control signal, it can activate the low-power mode, acquire access to the fourth cache space, and cache sensor data in the fourth cache space.

[0110] The control method of the aforementioned electronic device acquires a mode control signal based on a control signal. In low-power mode, it acquires access to a third cache space and caches sensor data there. In general mode, it acquires access to a fourth cache space and caches sensor data there. This method implements two operating modes—low-power mode and general mode—based on the mode control signal sent by the first processor. In low-power mode, it caches sensor data using a cache space with a larger cache capacity, thus caching more sensor data and reducing the frequency of cache overflow. This reduces the risk of data overflow due to insufficient cache space. This allows for a higher frequency of reporting of cached data, thereby reducing the power consumption of electronic devices and improving their battery life. In general mode, by using a smaller cache space to cache sensor data, less sensor data can be cached, increasing the frequency of cache overflow. This, in turn, increases the frequency of reporting cached data when the cache space is insufficient, thus improving the real-time reporting of sensor data and enhancing the real-time performance of electronic devices. It also improves the utilization of cache space. In this way, it supports both scenarios with high battery life requirements and scenarios with high real-time data requirements, thereby improving the performance of electronic devices.

[0111] In some exemplary embodiments, only a low-power mode control signal may be available. In this case, when no low-power mode control signal is received, the fourth cache space is used for caching by default. Only when the low-power mode control signal is received will the third cache space be used for caching.

[0112] In some exemplary embodiments, the first reporting condition includes the amount of cached sensor data reaching a first cache threshold. The second reporting condition includes the amount of cached sensor data reaching a second cache threshold; the first cache threshold is greater than the second cache threshold.

[0113] The first cache threshold can be preset or dynamically determined by the first processor based on control signals. The first cache threshold can be understood as the upper limit of sensor data cache under the first reporting condition. The second cache threshold can also be preset or dynamically determined by the first processor based on control signals. The second cache threshold can be understood as the upper limit of sensor data cache under the second reporting condition. The first cache threshold is greater than the second cache threshold.

[0114] Taking a control signal including a target delay parameter and a preset time threshold of 1 second as an example, in the application, the first processor can determine the target reporting condition as the first reporting condition when the target delay parameter is greater than or equal to the preset time threshold, for example, the target delay parameter is 2s > 1s. The first reporting condition is that the amount of cached sensor data reaches the first cache threshold. Therefore, when the amount of cached sensor data reaches the first cache threshold, the first processor sends some or all of the cached sensor data to the second processor. Alternatively, the first processor can determine the target reporting condition as the second reporting condition when the target delay parameter is less than the preset time threshold, for example, the target delay parameter is 100ms < 1s. The second reporting condition is that the amount of cached sensor data reaches the second cache threshold. Therefore, when the amount of cached sensor data reaches the second cache threshold, the first processor sends some or all of the cached sensor data to the second processor. In this embodiment, by comparing the target delay parameter with a preset time threshold, the application scenarios of the electronic device are considered, and different storage thresholds are used as the reporting threshold for the cached amount of sensor data under different comparison results. This achieves the increase of data cache time in low-power mode to improve battery life performance, and the reduction of data cache time in general mode to improve data real-time performance.

[0115] It should be noted that the first storage threshold is less than or equal to the cache capacity of the cache space under the first reporting condition, and the second storage threshold is less than or equal to the cache capacity of the cache space under the second reporting condition. Taking the aforementioned first and second cache spaces as examples, the first storage threshold is less than or equal to the cache capacity of the first cache space, and the second storage threshold is less than or equal to the cache capacity of the second cache space. In application, when the target delay parameter is greater than or equal to a preset time threshold, the user obtains access to the first cache space (e.g., cache capacity of 100M) and caches the sensor data in the first cache space. When the amount of cached sensor data reaches the first cache threshold (e.g., 100M), the user sends some or all of the cached sensor data to the second processor. When the target delay parameter is less than the preset time threshold, the user obtains access to the second cache space and caches the sensor data in the second cache space (e.g., cache capacity of 200M). When the amount of cached sensor data reaches the second cache threshold, the user sends some or all of the cached sensor data to the second processor.

[0116] Taking control signals including mode control signals as an example, in the application, the first processor can activate a low-power mode according to the low-power mode control signal. In the low-power mode, it determines the target reporting condition as the first reporting condition, which is that the amount of cached sensor data reaches a first cache threshold. Therefore, when the amount of cached sensor data reaches the first cache threshold, it sends some or all of the cached sensor data to the second processor. Similarly, the first processor can activate a general mode according to the general mode control signal. In the general mode, it determines the target reporting condition as the second reporting condition, which is that the amount of cached sensor data reaches a second cache threshold. Therefore, when the amount of cached sensor data reaches the second cache threshold, it sends some or all of the cached sensor data to the second processor. In this embodiment, by setting a low-power mode and a general mode for the electronic device, and using different cache thresholds as the reporting threshold for the cached sensor data in different operating modes, it achieves increased data caching time and improved battery life in the low-power mode, and shortened data caching time and improved data real-time performance in the general mode.

[0117] It should be noted that the first storage threshold is less than or equal to the cache capacity of the cache space under the first reporting condition, and the second storage threshold is less than or equal to the cache capacity of the cache space under the second reporting condition. Taking the aforementioned third and fourth cache spaces as examples, the first storage threshold is less than or equal to the cache capacity of the third cache space, and the second storage threshold is less than or equal to the cache capacity of the fourth cache space. In application, in low-power mode, the user obtains access to the third cache space (e.g., cache capacity of 100M), caches sensor data in the third cache space, and sends some or all of the cached sensor data to the second processor when the amount of cached sensor data reaches the first cache threshold, such as 100M; in general mode, the user obtains access to the fourth cache space (e.g., cache capacity of 200M), caches sensor data in the fourth cache space, and sends some or all of the cached sensor data to the second processor when the amount of cached sensor data reaches the second cache threshold, such as 200M.

[0118] The control method for the aforementioned electronic device effectively controls the caching and reporting of sensor data by setting the first reporting condition to a first cache threshold and the second reporting condition to a second cache threshold. This means that the reporting of sensor data is controlled based on whether the cache threshold is reached, thus achieving effective control over sensor data caching and reporting. Furthermore, since the first cache threshold under the first reporting condition is greater than the second cache threshold under the second reporting condition, the first processor can cache more sensor data under the first reporting condition compared to the second reporting condition, thereby reducing the reporting frequency of sensor data and consequently reducing device power consumption. Under the second reporting condition, the first processor can cache a smaller amount of sensor data compared to the first reporting condition, enabling timely reporting of sensor data, improving real-time data processing performance, and increasing cache space utilization. This supports both scenarios with high battery life requirements and scenarios with high real-time data requirements.

[0119] In some exemplary embodiments, the control signal includes a target delay parameter for the sensor data. The target delay parameter includes either a first delay parameter or a second delay parameter. The first delay parameter is greater than the second delay parameter. A first reporting condition includes the cache duration of the cached sensor data reaching the first delay parameter. A second reporting condition includes the cache duration of the cached sensor data reaching the second delay parameter.

[0120] The first delay parameter can be preset or dynamically determined by the electronic device based on the application scenario. The first delay parameter can be understood as the upper limit of the buffering time for sensor data under the first reporting condition. The second delay parameter can also be preset or dynamically determined by the electronic device based on the application scenario. The second delay parameter can be understood as the upper limit of the buffering time for sensor data under the second reporting condition.

[0121] In some exemplary embodiments, the first processor can receive a first delay parameter sent by the second processor, and determine a target reporting condition as a first reporting condition based on the first delay parameter. The first reporting condition is that the cache duration of the cached sensor data reaches the first delay parameter. When the cache duration of the cached sensor data reaches the first delay parameter, the first processor sends some or all of the cached sensor data to the second processor. The first processor can also receive a second delay parameter sent by the second processor, and determine a target reporting condition as a second reporting condition based on the second delay parameter. The second reporting condition includes that the cache duration of the cached sensor data reaches the second delay parameter. When the cache duration of the cached sensor data reaches the second delay parameter, the first processor sends some or all of the cached sensor data to the second processor. In this embodiment, by receiving different delay parameters and using different delay parameters as the reporting threshold for the cache duration of sensor data, the data cache duration is increased in low-power mode to improve battery life, and the data cache duration is shortened in general mode to improve data real-time performance.

[0122] In some exemplary embodiments, the control signal includes a target delay parameter and a mode control signal. In the application, the first processor can receive a first delay parameter and a low-power mode control signal sent by the second processor, activate a low-power mode according to the low-power mode control signal, and determine a target reporting condition as a first reporting condition in the low-power mode. The first reporting condition is that the cache duration of the cached sensor data reaches the first delay parameter. When the cache duration of the cached sensor data reaches the first delay parameter, the first processor sends some or all of the cached sensor data to the second processor. The first processor can also receive a second delay parameter and a general mode control signal sent by the second processor, activate a low-power mode according to the general mode control signal, and determine a target reporting condition as a second reporting condition in the general mode. The second reporting condition includes that the cache duration of the cached sensor data reaches the second delay parameter. When the cache duration of the cached sensor data reaches the second delay parameter, the first processor sends some or all of the cached sensor data to the second processor. In this embodiment, by setting a low-power mode and a general mode for the electronic device, and using different delay parameters as the reporting threshold for the data buffering time of the sensor data in different working modes, the data buffering time is increased in the low-power mode to improve battery life, and the data buffering time is shortened in the general mode to improve data real-time performance.

[0123] It should be noted that the cache duration of cached sensor data can be the maximum value among the cache durations of cached sensor data, and the sensor data can follow the first-in, first-out principle, that is, the sensor data stored earlier can be sent to the second processor first, so as to ensure that the cache duration of cached sensor data does not exceed the delay limit.

[0124] The control method for the aforementioned electronic device effectively controls the caching and reporting of sensor data by setting the first reporting condition to the cache duration of the cached sensor data reaching a first delay parameter and the second reporting condition to the cache duration of the cached sensor data reaching a second delay parameter. Specifically, it controls whether sensor data is reported based on whether the cache duration of the cached sensor data reaches the delay parameter. Furthermore, since the first delay parameter under the first reporting condition is greater than the second delay parameter under the second reporting condition, the first processor, under the first reporting condition, has a longer cache duration for the cached sensor data compared to the second reporting condition, thereby reducing the reporting frequency of sensor data and thus reducing device power consumption. Conversely, under the second reporting condition, the first processor has a shorter cache duration for the cached sensor data compared to the first reporting condition, enabling timely reporting of sensor data, improving real-time data processing performance, and increasing the utilization rate of cache space. Thus, it supports both scenarios with high battery life requirements and scenarios with high real-time data requirements.

[0125] In some exemplary embodiments, step S208, sending some or all of the cached sensor data to the second processor, includes: waking up the second processor when it is in a sleep state and sending some or all of the cached sensor data to the second processor; or, sending some or all of the cached sensor data to the second processor when it is in an operating state.

[0126] It is understandable that the second processor can be in a sleep state or an operating state while the first processor is caching sensor data. The power consumption of the electronic device is lower when the first processor is in a sleep state than when it is in an operating state. For example, the first processor stops running the first system in a sleep state, while it continues running the first system in an operating state. The sleep state can be achieved by controlling the electronic device's battery to stop supplying power to the first processor.

[0127] In the application, the first processor can send some or all of the cached sensor data to the second processor while the second processor is active, enabling the second processor to receive and process the reported sensor data. Thus, when the second processor is active, sensor data can be directly reported to it to meet its data requirements.

[0128] The first processor can wake up the second processor when it is in a sleep state, causing the second processor to switch from sleep to working state. The first processor then sends some or all of the cached sensor data to the second processor, enabling the second processor to receive and process the reported sensor data. Thus, even when the second processor is in a sleep state, the first processor can be woken up first, and then sensor data can be reported to the second processor to meet its data requirements. This embodiment supports the second processor remaining in a sleep state during sensor data caching, which can further reduce the power consumption of the electronic device and help improve its battery life.

[0129] In some exemplary embodiments, the control signals include an activation control signal and a conditional control signal. The control method for the electronic device further includes the step of activating a sensor according to the activation control signal. This enables the sensor to generate sensor data, providing data support for the electronic device. Subsequently, through the acquisition, caching, reporting, and processing of the sensor data, the electronic device can support functions such as display and chat interaction.

[0130] The activation control signal is used to activate the sensors of the electronic device. The activation control signal may include information about the sensor to be activated, such as a sensor identifier. The number of sensors activated can be one or more; the type of sensor activated can be one or more, without specific limitations. The condition control signal is used to determine the target reporting conditions for sensor data. The condition control signal may include at least one of the aforementioned target delay parameters and mode control signals, as described in the preceding text, and will not be repeated here.

[0131] In the application, the application end in the second processor, such as the data acquisition tool application, can register the sensor with the second processor. After the sensor service in the second processor makes a decision on the start control signal, it forwards the start control signal to the first processor based on dual-core communication. The sensor service in the first processor receives the start control signal, makes a decision on the start control signal, and forwards the start control signal to the sensor driver in the first processor, and the sensor driver turns on the corresponding sensor.

[0132] In some exemplary embodiments, the control method for the electronic device further includes the step of controlling the sensor to be turned on according to a control signal. In this way, the sensor can be turned on directly by controlling the control signal, thereby generating sensor data through the sensor to provide data support for the electronic device. The sensor data can be subsequently collected, cached, reported and processed to support the display, chat interaction and other functions of the electronic device.

[0133] For example, in the second processor, the application end, such as a data acquisition tool application, can register a sensor with the second processor. After the sensor service in the second processor makes a decision on the control signal, it forwards the control signal to the first processor based on dual-core communication. The sensor service in the first processor receives the control signal, makes a decision on the control signal, and forwards the control signal to the sensor driver in the first processor, and the sensor driver turns on the sensor accordingly.

[0134] Based on the same inventive concept, this application also provides a control method for an electronic device applied to a second processor. The solution provided by this method is similar to the implementation described in the method applied to a first processor described above. Therefore, the specific limitations in the control method embodiments of one or more electronic devices provided below can be found in the limitations of the method applied to the first processor described above, and will not be repeated here.

[0135] In some exemplary embodiments, as shown in FIG5, a control method for an electronic device is provided, the method being applied to the second processor shown in FIG1, the method including the following steps S502 and S504.

[0136] S502: Send a control signal to the first processor to instruct the first processor to determine the target reporting conditions for sensor data according to the control signal, acquire the sensor data generated by the sensor, and cache the sensor data; the target reporting conditions include a first reporting condition or a second reporting condition.

[0137] S504: Receive some or all of the cached sensor data sent by the second processor when the cached sensor data meets the target reporting conditions; wherein the power consumption of the electronic device under the first reporting condition is less than the power consumption under the second reporting condition.

[0138] The control method for the aforementioned electronic device involves a second processor sending a control signal to a first processor. The first processor determines the target reporting conditions for sensor data based on the control signal, acquires and caches the sensor data generated by the sensor, and the second processor receives some or all of the cached sensor data sent by the first processor when the cached sensor data meets the target reporting conditions. The target reporting conditions include either a first reporting condition or a second reporting condition. This method effectively controls the reporting process of sensor data by controlling the first processor to send sensor data reports to the second processor. Since the power consumption of the electronic device under the first reporting condition is lower than that under the second reporting condition, in scenarios with high battery life requirements, the first processor can be controlled to send sensor data reports to the second processor based on the first reporting condition. Furthermore, in scenarios with high data real-time requirements, the first processor can be controlled to send sensor data reports to the second processor based on the second reporting condition. This supports both scenarios with high battery life requirements and scenarios with high data real-time requirements, thus supporting multiple application scenarios and improving the performance of the electronic device.

[0139] In some exemplary embodiments, step S502, sending a control signal to the first processor, includes sending at least one of a target delay parameter of the sensor data, a mode control signal, and an enable control signal to the first processor. The mode control signal is used to indicate a low-power mode or a general-purpose mode. For details regarding the first processor determining the target reporting conditions based on the target delay parameter and / or the mode control signal, buffering the sensor data, sending the sensor data to the second processor, and enabling the sensor, please refer to the preceding descriptions, which will not be repeated here.

[0140] Based on the same inventive concept, this application also provides a control method for an electronic device. The solution provided by this method is similar to the implementations described in the methods applied to a first processor and a second processor. Therefore, the specific limitations in the one or more control method embodiments for electronic devices provided below can be found in the limitations described above for the methods applied to a first processor and / or the methods applied to a second processor, and will not be repeated here.

[0141] In some exemplary embodiments, as shown in FIG6, a control method for an electronic device is provided. This method is applied to the electronic device shown in FIG1, which includes a first processor, a second processor, and at least one sensor. The first processor is used to run a first system, and the second processor is used to run a second system, as described above. The control method for this electronic device includes steps S602 and S604.

[0142] S602: When the second system meets the first preset condition, the second system sends a low-power mode control signal to the first system, and the first system controls the sensor service mode of the first system to be low-power mode according to the low-power mode control signal.

[0143] For example, in some scenarios where real-time data requirements are not so high, it's permissible to cache many sensor data points before reporting. These scenarios require a larger buffer size but have a much smaller impact on power consumption. When these scenarios are met, the requirements for low-power mode can be considered satisfied (which can be understood as meeting the first preset condition), thus triggering the activation of low-power mode. For example, the second system meeting the first preset condition can be understood as meeting the conditions for activating low-power reporting mode. The first preset condition is pre-set and can be configured based on factors such as experiments, simulations, or specific application scenarios. For example, the second system can determine whether the first preset condition is met. If so, the second system sends a low-power mode control signal to the first system. The first system can then control its sensor service mode to low-power mode based on this signal to meet the battery life requirements of electronic devices and reduce power consumption.

[0144] In some exemplary embodiments, when the second system does not meet the first preset condition, the second system can send a general mode control signal to the first system. The first system can then control its sensor service mode to a general mode based on the general mode control signal to meet the real-time data processing requirements of the electronic device and improve the real-time performance of data processing. It is understood that a general mode control signal may also be omitted, and the low-power reporting mode may not be enabled when a low-power mode control signal is not sent, thus using the default reporting method.

[0145] S604: In low-power mode, the first system stores data collected by at least one sensor into the first memory.

[0146] The electronic device includes a first memory and a second memory, wherein the storage capacity of the first memory is greater than the storage capacity of the second memory. For example, the first memory can be PSRAM and the second memory can be SRAM.

[0147] In some exemplary embodiments, the first system can store sensor data collected by at least one sensor in a first memory such as PSRAM in a low-power mode. This allows the sensor data to be cached using the first memory, which has a large storage capacity. This reduces the frequency of sending sensor data to the second system due to sensor data overflow and the frequency of waking up the second system, thereby reducing power consumption.

[0148] In general mode, the first system can store sensor data collected by at least one sensor in a second memory such as SRAM. This allows the sensor data to be cached using the smaller storage capacity of the second memory. By temporarily storing the sensor data in the second memory, the sensor data can be reported to the second system in real time, thus meeting the real-time data processing requirements.

[0149] In some exemplary embodiments, when the second system meets the first preset condition, it includes: when the second system runs a preset application, the preset application includes: a data acquisition tool application, and the first memory is PSRAM.

[0150] For example, when the second system runs a preset application such as a data acquisition tool application, the second system can send a low-power mode control signal to the first system. The first system can then control its sensor service mode to be in low-power mode according to the low-power mode control signal. In low-power mode, the first system can store sensor data collected by at least one sensor in PSRAM to meet the battery life requirements of electronic devices and reduce power consumption.

[0151] In some exemplary embodiments, the control method for the electronic device further includes: the second system sending a control signal to the first system, and the first system controlling the activation of the at least one sensor according to the control signal to collect corresponding sensor data. Specifically, when the sensor service mode of the first system is in low-power mode, the sensor data is stored in a first memory; and / or, when the sensor service mode of the first system is in general mode, the sensor data is stored in a second memory; wherein the capacity of the first memory is greater than the capacity of the second memory. Thus, the sensor can be directly activated by the control signal, thereby generating sensor data to provide data support for the electronic device. Subsequent acquisition, caching, reporting, and processing of sensor data can support functions such as display and chat interaction of the electronic device.

[0152] In some exemplary embodiments, the control signal includes an activation control signal and a conditional control signal. The control method for the electronic device may further include: controlling the activation of a sensor according to the activation control signal, thereby enabling the sensor to generate sensor data, providing data support for the electronic device, and thus supporting functions such as display and chat interaction through subsequent acquisition, caching, reporting, and processing of the sensor data. The activation control signal and conditional control signal are described above and will not be repeated here.

[0153] It should be noted that the low-power mode in any embodiment of this application can be a low-power reporting mode, or the general mode can be a general reporting mode; the two can be interchanged, meaning that low power consumption can refer to the reporting method. In some exemplary embodiments, as shown in Figures 7 and 8, a control method for an electronic device is provided, and the application of this method to a wearable device is illustrated below. As shown in Figure 9, the wearable device includes a first processor, a second processor, and multiple sensors. The second processor is a CPU that supports running an Android system, which includes an Android application, Android native services, and an Android kernel. The Android application includes a data acquisition tool application, and the Android native services include a sensor service (or large-core sensor service) and a dual-core communication service. The Android kernel supports dual-core communication. The first processor is an MCU that supports running an RTOS system, which includes an RTOS kernel, RTOS native services, and a sensor hub (SENSOR_HUB). The RTOS kernel supports dual-core communication. The RTOS native services include a sensor service (or small-core sensor service). The sensor hub resides on the MCU, which has a lower clock speed and lower power consumption. It is used to directly connect to and drive various sensors. The sensor hub includes the sensor driver (or small-core sensor driver), which supports driving sensors.

[0154] As shown in Figure 7, the wearable device has a low-power mode and a general mode. The control method of the wearable device is introduced.

[0155] When a data acquisition tool application in an Android application enables low-power mode or general mode, it transmits the low-power mode control signal or general mode control signal to the small core sensor service through dual-core communication, thereby enabling the corresponding low-power mode or general mode.

[0156] In an Android application, the data acquisition tool registers each sensor with the Android Sensor Service. The large-core sensor service then decides on the enable control signal and forwards it to the small-core sensor service via dual-core communication. The small-core sensor service then decides on the enable control signal and sends it to the respective sensor drivers, thereby enabling each sensor.

[0157] After generating sensor data, the sensor uploads it to the small-core sensor service for caching. In low-power mode, the small-core sensor service allocates PSRAM for caching the sensor data. In general-purpose mode, it allocates SRAM for caching the sensor data. The PSRAM cache size is larger than the SRAM cache size.

[0158] In low-power mode, the first reporting condition for sensor data is that the cache duration of the cached sensor data reaches the first delay parameter `timeout` in low-power mode, or the amount of cached sensor data reaches the first cache threshold in low-power mode. Therefore, in low-power mode, when the cache duration of the cached sensor data in the small-core sensor service reaches the first delay parameter, or when the amount of cached sensor data reaches the first cache threshold, if the first processor is in sleep mode, the large core is woken up and all cached sensor data is sent to the large-core sensor service, which then sends it to the application. If the first processor is in working mode, all cached sensor data is sent to the large-core sensor service, which then sends it to the application.

[0159] In general mode, the second reporting condition for sensor data is that the cache duration of the cached sensor data reaches the second delay parameter `timeout` set in general mode, or the amount of cached sensor data reaches the second cache threshold in general mode. Therefore, in general mode, when the cache duration of the cached sensor data in the small-core sensor service reaches the second delay parameter, or when the amount of cached sensor data reaches the second cache threshold, if the first processor is in sleep mode, the large core is woken up, and all cached sensor data is sent to the large-core sensor service, which then sends it to the application. If the first processor is in working mode, all cached sensor data is sent to the large-core sensor service, which then sends it to the application.

[0160] In the application, the data acquisition tool in the application client receives sensor data and performs subsequent processing on the sensor data. To disable low-power mode, the application client can send a control signal to the small-core sensor service via dual-core communication, causing the small-core sensor service to exit low-power mode. Similarly, to disable general mode, the application client can send a control signal to the small-core sensor service via dual-core communication, causing the small-core sensor service to exit general mode.

[0161] In this embodiment, by setting a low-power mode and a general mode, in low-power mode, sensor data is cached using PSRAM with a larger cache space. A larger delay parameter is used as the upper limit for cache duration, and a larger cache threshold is used as the upper limit for data cache size. This allows for caching more sensor data and a longer cache time, thereby reducing the frequency of waking up the second processor and reporting sensor data, reducing power consumption, and improving the battery life of the electronic device. In general mode, sensor data is cached using SRAM with a smaller cache space. A smaller delay parameter is used as the upper limit for cache duration, and a smaller cache threshold is used as the upper limit for data cache size. This allows for caching a smaller amount of sensor data and a shorter cache time, thereby reducing the need for timely waking up of the second processor and reporting sensor data, improving data real-time performance. Thus, this approach supports both scenarios with high battery life requirements and scenarios with high data real-time requirements. Experiments show that this technical solution can improve the battery life of large-core systems with sensors used for extended periods. For scenarios where multiple sensors are constantly on in a large-core system, the battery life in low-power mode is more than twice that in general mode.

[0162] Figure 8 illustrates the control methods for wearable devices.

[0163] In an Android application, the data acquisition tool registers each sensor with the Android Sensor Service. The large-core sensor service then decides on the enable control signal and forwards it to the small-core sensor service via dual-core communication. The small-core sensor service then decides on the enable control signal and sends it to the respective sensor drivers, thereby enabling each sensor.

[0164] After generating sensor data, the sensor uploads it to the small-core sensor service for caching. The small-core sensor service determines whether to allocate SRAM or PSRAM for caching based on the target delay parameter (timeout) issued by the large-core sensor service. If the target delay parameter is the first delay parameter and is greater than or equal to 1 second, PSRAM is allocated for caching the sensor data. If the target delay parameter is the second delay parameter and is less than 1 second, SRAM is allocated for caching the sensor data. The PSRAM cache space is larger than the SRAM cache space.

[0165] When the caching time of the sensor data cached by the small core sensor service reaches the first delay parameter, or when the amount of cached sensor data reaches the first caching threshold, if the first processor is in a sleep state, the large core is woken up and all cached sensor data is sent to the large core sensor service, and then sent to the application through the large core sensor service; if the first processor is in a working state, all cached sensor data is sent to the large core sensor service, and then sent to the application through the large core sensor service.

[0166] When the cache duration of the sensor data cached by the small core sensor service reaches the second delay parameter, or when the amount of cached sensor data reaches the second cache threshold, if the first processor is in a sleep state, the large core is woken up and all cached sensor data is sent to the large core sensor service, and then sent to the application through the large core sensor service; if the first processor is in a working state, all cached sensor data is sent to the large core sensor service, and then sent to the application through the large core sensor service.

[0167] In this embodiment, the type of memory for caching sensor data is determined based on the target delay parameter. When the delay parameter is a large first delay parameter, PSRAM with a large cache space is used to cache the sensor data. The first delay parameter is used as the upper limit of the cache duration, and a large cache threshold is used as the upper limit of the data cache amount. This allows for caching more sensor data and a longer cache time, thereby reducing the frequency of waking up the second processor and reporting sensor data, reducing power consumption, and improving the battery life of the electronic device. When the delay parameter is a small second delay parameter, SRAM with a small cache space is used to cache the sensor data. The second delay parameter is used as the upper limit of the cache duration, and a small cache threshold is used as the upper limit of the data cache amount. This allows for caching a small amount of sensor data and a shorter cache time, thereby reducing the need to wake up the second processor and report sensor data in a timely manner, improving data real-time performance. Thus, it can support both scenarios with high battery life requirements and scenarios with high data real-time requirements.

[0168] It should be understood that although the steps in the flowcharts of the above embodiments are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the above embodiments may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.

[0169] Based on the same inventive concept, this application also provides a control device for an electronic device, used to implement the above-described control method for an electronic device applied to a first processor. The solution provided by this device is similar to the implementation described in the above-described method; therefore, the specific limitations in one or more embodiments of the control device for an electronic device provided below can be found in the limitations of the control method for the electronic device described above, and will not be repeated here.

[0170] In some exemplary embodiments, as shown in FIG10, a control device 900 for an electronic device is provided. The electronic device includes a first processor, a second processor, and at least one sensor. The control device 900 is applied to the first processor and includes a first receiving module 901, a determining module 902, an acquisition cache module 903, and a first sending module 904.

[0171] The first receiving module 901 is used to receive control signals sent by the second processor. The determining module 902 is used to determine the reporting conditions of the sensor data as target reporting conditions based on the control signals; the target reporting conditions include either the first reporting condition or the second reporting condition. The acquiring and caching module 903 is used to acquire sensor data generated by the sensor and cache the sensor data. The first sending module 904 is used to send part or all of the cached sensor data to the second processor if the cached sensor data meets the target reporting conditions; wherein, the power consumption of the electronic device under the first reporting condition is less than the power consumption under the second reporting condition.

[0172] The control device 900 of the aforementioned electronic device receives control signals sent by the second processor through a first receiving module 901, determines the target reporting conditions for sensor data based on the control signals through a determining module 902, acquires and caches sensor data generated by the sensor through an acquisition and caching module 903, and sends part or all of the cached sensor data to the second processor through a first sending module 904 when the cached sensor data meets the target reporting conditions. The target reporting conditions include either a first reporting condition or a second reporting condition. This method controls the reporting conditions for sensor data transmission from the first processor to the second processor through control signals, achieving effective control over the sensor data reporting process. Since the power consumption of the electronic device under the first reporting condition is less than that under the second reporting condition, in scenarios with high battery life requirements, the first processor can be controlled to transmit sensor data to the second processor based on the first reporting condition. Furthermore, in scenarios with high data real-time requirements, the first processor can be controlled to transmit sensor data to the second processor based on the second reporting condition. This supports both scenarios with high battery life requirements and scenarios with high data real-time requirements, thus supporting multiple application scenarios and improving the performance of the electronic device.

[0173] In some exemplary embodiments, the control signal includes a target delay parameter of sensor data; the determining module is further configured to obtain the target delay parameter according to the control signal; if the target delay parameter is greater than or equal to a first time threshold, determine the target reporting condition as a first reporting condition; or, if the target delay parameter is less than the first time threshold, determine the target reporting condition as a second reporting condition.

[0174] In some exemplary embodiments, the cache acquisition module is also used to acquire the access permission of the target cache space according to the control signal; and cache the sensor data in the target cache space.

[0175] In some exemplary embodiments, the control signal includes a target delay parameter of the sensor data; the cache acquisition module is further configured to acquire access to the first cache space if the target delay parameter is greater than or equal to a second time threshold; or, acquire access to the second cache space if the target delay parameter is less than the second time threshold; the first cache capacity of the first cache space is greater than or equal to the second cache capacity of the second cache space.

[0176] In some exemplary embodiments, the first transmitting module is further configured to wake up the second processor when the second processor is in a sleep state and send some or all of the cached sensor data to the second processor; or, when the second processor is in an operating state, send some or all of the cached sensor data to the second processor.

[0177] In some exemplary embodiments, the control device of the electronic device further includes an activation module for activating the sensor according to an activation control signal; wherein the condition control signal is used to determine the target reporting conditions for sensor data.

[0178] Based on the same inventive concept, this application also provides a control device for an electronic device, used to implement the above-described control method for an electronic device applied to a second processor. The solution provided by this device is similar to the implementation described in the above-described method; therefore, the specific limitations in one or more embodiments of the control device for an electronic device provided below can be found in the limitations of the control method for the electronic device described above, and will not be repeated here.

[0179] In some exemplary embodiments, as shown in FIG11, a control device 1000 for an electronic device is provided. The electronic device includes a first processor, a second processor, and at least one sensor. The control device 1000 is applied to the second processor and includes a second transmitting module 1001 and a second receiving module 1002.

[0180] The second transmitting module 1001 is used to send a control signal to the first processor, instructing the first processor to determine the target reporting conditions for sensor data according to the control signal, acquire the sensor data generated by the sensor, and cache the sensor data; the target reporting conditions include a first reporting condition or a second reporting condition. The second receiving module 1002 is used to receive some or all of the cached sensor data sent by the second processor when the cached sensor data meets the target reporting conditions; wherein, the power consumption of the electronic device under the first reporting condition is less than the power consumption under the second reporting condition.

[0181] The control device 1000 of the aforementioned electronic device sends a control signal to the first processor via the second sending module 1001. The first processor determines the target reporting conditions for sensor data based on the control signal, acquires sensor data generated by the sensor, and caches the sensor data. The second receiving module 1002 receives some or all of the cached sensor data sent by the first processor when the cached sensor data meets the target reporting conditions. The target reporting conditions include either a first reporting condition or a second reporting condition. This method controls the reporting conditions for sensor data transmission from the first processor to the second processor via control signals, achieving effective control over the sensor data reporting process. Since the power consumption of the electronic device under the first reporting condition is less than that under the second reporting condition, in scenarios with high battery life requirements, the first processor can be controlled to transmit sensor data to the second processor based on the first reporting condition. Furthermore, in scenarios with high data real-time requirements, the first processor can be controlled to transmit sensor data to the second processor based on the second reporting condition. This supports both scenarios with high battery life requirements and scenarios with high data real-time requirements, thus supporting multiple application scenarios and improving the performance of the electronic device.

[0182] In some exemplary embodiments, the second transmitting module is further configured to transmit to the first processor at least one of a target delay parameter of the sensor data, a mode control signal, and an enable control signal. The mode control signal is used to indicate a low-power mode or a general-purpose mode.

[0183] The various modules in the control device of the aforementioned electronic equipment can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of the computer device in hardware form or independent of it, or stored in the memory of the computer device in software form, so that the processor can call and execute the operations corresponding to each module.

[0184] This application also provides a processor chip, including a first memory and a first processor. The first memory caches a computer program, and the first processor executes the computer program to implement the steps of the aforementioned control method for an electronic device.

[0185] This application also provides a processor chip, including a second memory and a second processor. The second memory caches a computer program, and the second processor executes the computer program to implement the steps of the aforementioned electronic device control method.

[0186] This application also provides an electronic device, which includes at least one sensor, and further includes a first processor chip and / or a second processing chip. The first processor chip includes the aforementioned first memory and first processor. The second processing chip includes the aforementioned second memory and second processor.

[0187] Figure 12 is a schematic diagram of the internal structure of an electronic device in one embodiment. As shown in Figure 12, the electronic device includes a processor and a memory connected via a system bus. The processor provides computing and control capabilities to support the operation of the entire electronic device. The memory may include a non-volatile storage medium and internal memory. The non-volatile storage medium stores system and computer programs. The computer programs can be executed by the processor to implement a control method for a wearable device provided in the following embodiments. The internal memory provides a cached runtime environment for the system computer programs in the non-volatile storage medium. The electronic device may be a mobile phone, tablet computer, personal digital assistant, or wearable device, etc. The memory may be the aforementioned first memory, and the processor may be the aforementioned first processor; and / or, the memory may be the aforementioned second memory, and the processor may be the aforementioned second processor.

[0188] The various modules in the control device of the wearable device provided in this application embodiment can be implemented in the form of a computer program. This computer program can run on a terminal or server. The program modules constituted by this computer program can be stored in the memory of the terminal or server. When the computer program is executed by a processor, it implements the steps of the method described in the embodiments of this application.

[0189] This application also provides a computer-readable storage medium having one or more computer programs cached thereon, which, when executed by one or more processors (such as a first processor and / or a second processor), cause the processors to perform the steps of a control method for an electronic device.

[0190] This application also provides a computer program product, including one or more computer programs, which, when executed by one or more processors (such as a first processor and / or a second processor), cause the computer to perform a control method for a wearable device.

[0191] Any references to memory, storage, databases, or other media used in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM), which is used as external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms, such as static RAM (SRAM), pseudo-SRAM (PSRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), RAMbus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and RAMbus dynamic RAM (RDRAM).

[0192] The technical features of the embodiments described above can be combined arbitrarily. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as the combination of these technical features does not contradict each other, it should be considered within the scope of this specification. The embodiments described above only illustrate several implementation methods of this application, and their descriptions are relatively specific and detailed, but they should not be construed as limiting the scope of the patent application. It should be noted that those skilled in the art can make several modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this patent application should be determined by the appended claims.

[0193] The following numbered clauses describe some implementation examples:

[0194] 1. A control method for an electronic device, wherein the electronic device includes a first processor, a second processor, and at least one sensor, the method being applied to the first processor, the method comprising:

[0195] Receive control signals sent by the second processor;

[0196] The target reporting conditions for sensor data are determined based on the control signal; the target reporting conditions include a first reporting condition or a second reporting condition.

[0197] Acquire sensor data generated by the sensor and cache the sensor data;

[0198] If the cached sensor data meets the target reporting conditions, the cached partial or all sensor data is sent to the second processor; wherein the power consumption of the electronic device under the first reporting conditions is less than the power consumption under the second reporting conditions.

[0199] 2. The method according to claim 1, wherein the control signal includes a target delay parameter of the sensor data; and determining the target reporting condition of the sensor data based on the control signal includes:

[0200] The target delay parameter is obtained based on the control signal;

[0201] If the target delay parameter is greater than or equal to the first time threshold, the target reporting condition is determined to be the first reporting condition; or, if the target delay parameter is less than the first time threshold, the target reporting condition is determined to be the second reporting condition.

[0202] 3. The method according to claim 1, wherein the electronic device includes a low-power mode and a general mode; wherein the low-power mode corresponds to the first reporting condition, and the general mode corresponds to the second reporting condition.

[0203] 4. The method according to claim 1, wherein buffering the sensor data comprises:

[0204] Obtain access to the target cache space based on the control signal;

[0205] The sensor data is cached in the target cache space.

[0206] 5. The method according to claim 4, wherein the control signal includes a target delay parameter of the sensor data; and the step of obtaining usage rights of the target cache space according to the control signal includes:

[0207] If the target delay parameter is greater than or equal to the second time threshold, access to the first cache space is granted; or,

[0208] If the target delay parameter is less than the second time threshold, the user obtains access to the second cache space; the first cache capacity of the first cache space is greater than or equal to the second cache capacity of the second cache space.

[0209] 6. The method according to claim 4, wherein the electronic device includes a low-power mode and a general mode; wherein the target cache space includes a third cache space corresponding to the low-power mode or a fourth cache space corresponding to the general mode; the third cache capacity of the third cache space is greater than or equal to the fourth cache capacity of the fourth cache space.

[0210] 7. The method of claim 4, wherein the electronic device further comprises a target memory, the target memory being used to provide the target cache space;

[0211] The target memory includes at least one of a first memory and a second memory, wherein the first memory and the second memory are different.

[0212] 8. The method according to any one of claims 1-7, wherein the first reporting condition includes the amount of cached sensor data reaching a first cache threshold;

[0213] The second reporting condition includes the amount of cached sensor data reaching a second cache threshold; and the first cache threshold being greater than the second cache threshold.

[0214] 9. The method according to any one of claims 1-7, wherein the control signal includes a target delay parameter of the sensor data, the target delay parameter including a first delay parameter or a second delay parameter, wherein the first delay parameter is greater than the second delay parameter; wherein,

[0215] The first reporting condition includes the cache duration of the cached sensor data reaching the first delay parameter;

[0216] The second reporting condition includes the cache duration of the cached sensor data reaching the second delay parameter.

[0217] 10. The method according to any one of claims 1-7, wherein sending the cached partial or all of the sensor data to the second processor comprises:

[0218] If the second processor is in a sleep state, wake up the second processor and send some or all of the cached sensor data to the second processor; or,

[0219] When the second processor is in operation, some or all of the cached sensor data is sent to the second processor.

[0220] 11. The method according to any one of claims 1-7, wherein the control signal includes an enable control signal and a condition control signal, and the method further includes:

[0221] The sensor is activated according to the activation control signal; wherein, the condition control signal is used to determine the target reporting conditions for sensor data; or,

[0222] The method further includes: controlling the sensor to be turned on according to the control signal.

[0223] 12. The method according to any one of claims 1-7, wherein the control signal includes a mode control signal, and the mode control signal includes a low-power mode control signal or a general mode control signal;

[0224] The step of determining the target reporting conditions for sensor data based on the control signal includes:

[0225] The target reporting condition for the sensor data is determined to be the first reporting condition based on the low-power mode control signal; or...

[0226] The target reporting condition for the sensor data is determined as the second reporting condition based on the general mode control signal.

[0227] 13. The method according to any one of claims 1-7, wherein the control signal includes a mode control signal, and the mode control signal includes a low-power mode control signal;

[0228] The step of determining the target reporting conditions for sensor data based on the control signal includes:

[0229] Upon receiving the low-power mode control signal, the target reporting condition for the sensor data is determined to be the first reporting condition; or,

[0230] Upon receiving the low-power mode control signal, the target reporting condition for the sensor data is determined to be the second reporting condition.

[0231] 14. A control method for an electronic device, wherein the electronic device includes a first processor, a second processor, and at least one sensor, the method being applied to the second processor, the method comprising:

[0232] A control signal is sent to the first processor to instruct the first processor to determine the target reporting conditions for sensor data according to the control signal, acquire the sensor data generated by the sensor, and cache the sensor data; the target reporting conditions include a first reporting condition or a second reporting condition;

[0233] The electronic device receives some or all of the cached sensor data sent by the second processor when the cached sensor data meets the target reporting conditions; wherein the power consumption of the electronic device under the first reporting conditions is less than the power consumption under the second reporting conditions.

[0234] 15. A control method for an electronic device, wherein the method is applied to the electronic device, the electronic device comprising a first processor, a second processor, and at least one sensor, the first processor being configured to run a first system, the second processor being configured to run a second system, the method comprising:

[0235] When the second system meets the first preset condition, the second system sends a low-power mode control signal to the first system, and the first system controls the sensor service mode of the first system to be in low-power mode according to the low-power mode control signal.

[0236] In the low-power mode, the first system stores the data collected by the at least one sensor into the first memory.

[0237] 16. The method according to claim 13, wherein when the second system satisfies the first preset condition, it includes: when the second system runs a preset application, the preset application includes: a data acquisition tool application, and the first memory is PSRAM.

[0238] 17. The method according to claim 13, wherein the method further comprises: the second system sending a control signal to the first system, the first system controlling the activation of the at least one sensor according to the control signal to collect corresponding sensor data; storing the sensor data in a first memory when the sensor service mode of the first system is in a low-power mode; and / or storing the sensor data in a second memory when the sensor service mode of the first system is in a general mode; wherein the capacity of the first memory is greater than the capacity of the second memory.

[0239] 18. The method of claim 13, wherein the method further comprises:

[0240] When the second system does not meet the first preset condition, the second system sends a general mode control signal to the first system, and the first system controls the sensor service mode of the first system to be in general mode according to the general mode control signal.

[0241] In the general mode, the first system stores sensor data collected by at least one sensor into a second memory.

[0242] 19. A control device for an electronic device, wherein the electronic device includes a first processor, a second processor, and at least one sensor, the device being applied to the first processor, the device comprising:

[0243] The first receiving module is used to receive control signals sent by the second processor;

[0244] The determination module is used to determine the reporting conditions of the sensor data as target reporting conditions based on the control signal; the target reporting conditions include a first reporting condition or a second reporting condition;

[0245] A cache acquisition module is used to acquire sensor data generated by the sensor and cache the sensor data.

[0246] A first sending module is configured to send some or all of the cached sensor data to the second processor when the cached sensor data meets the target reporting conditions; wherein the power consumption of the electronic device under the first reporting conditions is less than the power consumption under the second reporting conditions.

[0247] 20. A control device for an electronic device, wherein the electronic device includes a first processor, a second processor, and at least one sensor, the device being applied to the second processor, the device comprising:

[0248] The second sending module is configured to send a control signal to the first processor to instruct the first processor to determine the target reporting conditions for sensor data according to the control signal, acquire the sensor data generated by the sensor, and cache the sensor data; the target reporting conditions include a first reporting condition or a second reporting condition.

[0249] The second receiving module is used to receive some or all of the cached sensor data sent by the second processor when the cached sensor data meets the target reporting conditions; wherein the power consumption of the electronic device under the first reporting conditions is less than the power consumption under the second reporting conditions.

[0250] 21. A processor chip comprising a first memory and a first processor, the first memory caching a computer program, wherein the first processor, when executing the computer program, implements the steps of the method according to any one of claims 1 to 13.

[0251] 22. A processor chip, comprising a second memory and a second processor, the second memory caching a computer program, wherein the second processor, when executing the computer program, implements the steps of the method of claim 14.

[0252] 23. An electronic device, wherein the electronic device includes at least one sensor, and the electronic device further includes a processor chip as claimed in claim 21, and / or a processor chip as claimed in claim 22.

[0253] 24. A computer-readable storage medium having a computer program cached thereon, wherein the computer program, when executed by a processor, implements the steps of the method according to any one of claims 1 to 18.

[0254] 25. A computer program product comprising a computer program, wherein the computer program, when executed by a processor, implements the steps of the method according to any one of claims 1 to 18.

Claims

1. A control method of an electronic device, wherein, The electronic device includes a first processor, a second processor, and at least one sensor. The method is applied to the first processor, and the method includes: Receive control signals sent by the second processor; The target reporting conditions for sensor data are determined based on the control signal; the target reporting conditions include a first reporting condition or a second reporting condition. Acquire sensor data generated by the sensor and cache the sensor data; If the cached sensor data meets the target reporting conditions, the cached partial or all sensor data is sent to the second processor; wherein the power consumption of the electronic device under the first reporting conditions is less than the power consumption under the second reporting conditions.

2. The method of claim 1, wherein, The control signal includes the target delay parameter of the sensor data; determining the target reporting conditions of the sensor data based on the control signal includes: The target delay parameter is obtained based on the control signal; If the target delay parameter is greater than or equal to the first time threshold, the target reporting condition is determined to be the first reporting condition; or, if the target delay parameter is less than the first time threshold, the target reporting condition is determined to be the second reporting condition.

3. The method of claim 1, wherein, The electronic device includes a low-power mode and a general mode; wherein, the low-power mode corresponds to the first reporting condition, and the general mode corresponds to the second reporting condition.

4. The method of claim 1, wherein, The caching of the sensor data includes: Obtain access to the target cache space based on the control signal; The sensor data is cached in the target cache space.

5. The method of claim 4, wherein, The control signal includes the target delay parameter of the sensor data; The step of obtaining usage rights for the target cache space based on the control signal includes: If the target delay parameter is greater than or equal to the second time threshold, the user shall obtain the right to use the first cache space. or, If the target delay parameter is less than the second time threshold, the user obtains access to the second cache space; the first cache capacity of the first cache space is greater than or equal to the second cache capacity of the second cache space.

6. The method of claim 4, wherein, The electronic device includes a low-power mode and a general-purpose mode; wherein, the target cache space includes a third cache space corresponding to the low-power mode or a fourth cache space corresponding to the general-purpose mode; the third cache capacity of the third cache space is greater than or equal to the fourth cache capacity of the fourth cache space.

7. The method of claim 4, wherein, The electronic device further includes a target memory for providing the target cache space; The target memory includes at least one of a first memory and a second memory, wherein the first memory and the second memory are different.

8. The method according to any one of claims 1 to 7, wherein, The first reporting condition includes the amount of cached sensor data reaching a first cache threshold; The second reporting condition includes the amount of cached sensor data reaching a second cache threshold; and the first cache threshold being greater than the second cache threshold.

9. The method according to any one of claims 1-7, wherein, The control signal includes a target delay parameter of the sensor data, wherein the target delay parameter includes a first delay parameter or a second delay parameter, and the first delay parameter is greater than the second delay parameter; wherein... The first reporting condition includes the cache duration of the cached sensor data reaching the first delay parameter; The second reporting condition includes the cache duration of the cached sensor data reaching the second delay parameter.

10. The method according to any one of claims 1-7, wherein, Sending the cached partial or complete sensor data to the second processor includes: If the second processor is in a sleep state, wake up the second processor and send some or all of the cached sensor data to the second processor; or, When the second processor is in operation, some or all of the cached sensor data is sent to the second processor.

11. The method of any one of claims 1-7, wherein, The control signals include an enable control signal and a condition control signal, and the method further includes: The sensor is activated according to the activation control signal; wherein, the condition control signal is used to determine the target reporting conditions for sensor data; or, The method further includes: controlling the sensor to be turned on according to the control signal.

12. The method of any one of claims 1-7, wherein, The control signal includes a mode control signal, which includes a low-power mode control signal or a general mode control signal. The step of determining the target reporting conditions for sensor data based on the control signal includes: The target reporting condition for the sensor data is determined to be the first reporting condition based on the low-power mode control signal. or, The target reporting condition for the sensor data is determined as the second reporting condition based on the general mode control signal.

13. The method of any one of claims 1-7, wherein, The control signal includes a mode control signal, and the mode control signal includes a low-power mode control signal; The step of determining the target reporting conditions for sensor data based on the control signal includes: Upon receiving the low-power mode control signal, the target reporting condition for the sensor data is determined to be the first reporting condition; or, Upon receiving the low-power mode control signal, the target reporting condition for the sensor data is determined to be the second reporting condition.

14. A control method of an electronic device, wherein The electronic device includes a first processor, a second processor, and at least one sensor, the method being applied to the second processor, the method comprising: A control signal is sent to the first processor to instruct the first processor to determine the target reporting conditions for sensor data according to the control signal, acquire the sensor data generated by the sensor, and cache the sensor data; the target reporting conditions include a first reporting condition or a second reporting condition; The electronic device receives some or all of the cached sensor data sent by the second processor when the cached sensor data meets the target reporting conditions; wherein the power consumption of the electronic device under the first reporting conditions is less than the power consumption under the second reporting conditions.

15. A control method of an electronic device, wherein Applied to an electronic device, the electronic device including a first processor, a second processor, and at least one sensor, wherein the first processor is used to run a first system, and the second processor is used to run a second system, the method includes: When the second system meets the first preset condition, the second system sends a low-power mode control signal to the first system, and the first system controls the sensor service mode of the first system to be in low-power mode according to the low-power mode control signal. In the low-power mode, the first system stores the data collected by the at least one sensor into the first memory.

16. The method according to claim 13, wherein, When the second system meets the first preset condition, it includes: when the second system runs a preset application, the preset application includes: a data acquisition tool application, and the first memory is PSRAM.

17. The method according to claim 13, wherein, The method further includes: the second system sending a control signal to the first system, the first system controlling the activation of the at least one sensor according to the control signal to collect corresponding sensor data; storing the sensor data in a first memory when the sensor service mode of the first system is in low power mode; and / or storing the sensor data in a second memory when the sensor service mode of the first system is in general mode; wherein the capacity of the first memory is greater than the capacity of the second memory.

18. The method according to claim 13, wherein, The method further includes: When the second system does not meet the first preset condition, the second system sends a general mode control signal to the first system, and the first system controls the sensor service mode of the first system to be in general mode according to the general mode control signal. In the general mode, the first system stores sensor data collected by at least one sensor into a second memory.

19. A control device for an electronic device, wherein, The electronic device includes a first processor, a second processor, and at least one sensor. The device is applied to the first processor and includes: The first receiving module is used to receive control signals sent by the second processor; The determination module is used to determine the reporting conditions of the sensor data as target reporting conditions based on the control signal; the target reporting conditions include a first reporting condition or a second reporting condition; A cache acquisition module is used to acquire sensor data generated by the sensor and cache the sensor data. A first transmitting module is configured to transmit some or all of the cached sensor data to the second processor when the cached sensor data meets the target reporting conditions; wherein the power consumption of the electronic device under the first reporting conditions is less than the power consumption under the second reporting conditions.

20. A control device for an electronic device, wherein, The electronic device includes a first processor, a second processor, and at least one sensor, wherein the device is applied to the second processor, and the device includes: The second sending module is configured to send a control signal to the first processor to instruct the first processor to determine the target reporting conditions for sensor data according to the control signal, acquire the sensor data generated by the sensor, and cache the sensor data; the target reporting conditions include a first reporting condition or a second reporting condition. The second receiving module is used to receive some or all of the cached sensor data sent by the second processor when the cached sensor data meets the target reporting conditions; wherein the power consumption of the electronic device under the first reporting conditions is less than the power consumption under the second reporting conditions.

21. A processor chip, comprising a first memory and a first processor, wherein the first memory caches a computer program, wherein, When the first processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 13.

22. A processor chip, comprising a second memory and a second processor, wherein the second memory caches a computer program, wherein... When the second processor executes the computer program, it implements the steps of the method of claim 14.

23. An electronic device, wherein, The electronic device includes at least one sensor, and the electronic device further includes a processor chip as claimed in claim 21, and / or a processor chip as claimed in claim 22.

24. A computer-readable storage medium having a computer program cached thereon, wherein, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 18.

25. A computer program product comprising a computer program, wherein, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 18.