Control method and device and electronic equipment
By dynamically configuring the working parameters of the sensing devices in smart terminal devices, optimizing performance and power consumption according to the current application scenario solves the problem of fixed configuration parameters in traditional devices and enables efficient operation of the device in different scenarios.
Patent Information
- Application Number
- CN202411388721.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-30
- Publication Date
- 2025-01-24
AI Technical Summary
The problem of fixed sensor configuration parameters in smart terminal devices makes it difficult to meet real-time requirements in high demand scenarios, and excessive power consumption under low power consumption settings affects the service duration of the device.
By determining the current application scenario of the electronic device, the working parameters of the sensing device are dynamically configured, and different working parameter ranges are set according to different application scenarios, ensuring that the power consumption of the sensing device is minimized while meeting the needs of the scenario.
The performance and power consumption of sensing devices are optimized in different application scenarios, ensuring that the equipment has sufficient real -time nature in high demand scenarios, and at the same time, reduce power consumption in low demand scenarios and extend the use time of equipment.
Smart Images

Figure CN119356510A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of control technology, and more specifically, to a control method, device and electronic equipment. Background Art
[0002] In smart terminal devices, some sensors used to assist in realizing specific functions, such as accelerometers and gyroscope sensors, usually have fixed configuration parameters (such as data output rate). These fixed parameters may be related to the power consumption of the device. If they are set relatively low, it is difficult to meet the real-time requirements of high-demand scenarios; if they are set relatively high, the power consumption is relatively large, affecting the use time of the device in the absence of power. Summary of the invention
[0003] In view of this, this application provides the following technical solutions:
[0004] A first aspect of the present application provides a control method, the method comprising:
[0005] Determine the current application scenario of the electronic device;
[0006] Configuring operating parameters of the sensing device corresponding to the current application scenario;
[0007] If the current application scenario is the first scenario, configuring the operating parameters of the sensing device to be first operating parameters, the first operating parameters matching the operating parameter range of the first scenario;
[0008] If the current application scenario is the second scenario, configuring the operating parameters of the sensing device to be second operating parameters, and the second operating parameters match the operating parameter range of the second scenario;
[0009] The first scenario has a first event trigger probability, and the sensing device has a first event trigger detection frequency based on the first working parameter; the second scenario has a second event trigger probability, and the sensing device has a second event trigger detection frequency based on the second working parameter; the first event trigger probability is greater than the second event trigger probability, and the first event trigger detection frequency is greater than the second event trigger detection frequency.
[0010] In one possible implementation, under the first operating parameters, the sensing device is configured to have a first data output rate and a first power consumption that match a first event trigger detection frequency; under the second operating parameters, the sensing device is configured to have a second data output rate and a second power consumption that match a second event trigger detection frequency, the first data output rate is greater than the second data output rate, and the first power consumption is greater than the second power consumption.
[0011] In one possible implementation, configuring the operating parameters of the sensing device for the current application scenario includes: configuring the operating parameters to be the minimum value of the operating parameter range of the current application scenario to reduce the power consumption of the sensing device for the current application scenario; if the event trigger frequency of the trigger event of the current application scenario detected within a first time period is greater than a preset threshold, increasing the operating parameters of the sensing device, and the increased operating parameters are not greater than the maximum value of the operating parameter range of the current application scenario.
[0012] In a possible implementation, increasing the operating parameter of the sensing device includes:
[0013] If the event trigger frequency is greater than the first set value and not greater than the second set value, control the operating parameter of the sensing device to increase by M gears based on the current one, and the gear of the operating parameter is pre-configured;
[0014] If the event trigger frequency is greater than the second set value and not greater than the third set value, the operating parameters of the sensing device are controlled to increase by N levels on the current basis, and N is greater than M.
[0015] In a possible implementation, it also includes:
[0016] If no trigger event is detected within the second time period, the operating parameter of the sensing device is configured to be a minimum value of the operating parameter range of the current application scenario.
[0017] In a possible implementation, it also includes:
[0018] Whether a trigger event is detected is determined based on the rate of change of the detection data output by the sensing device. If the event trigger frequency of the trigger event detected for the current application scenario within the first time period is not greater than a set value, and no trigger event is detected within the second time period, the working parameters of the sensing device are configured to be the minimum value of the working parameter range for the current application scenario.
[0019] In a possible implementation, determining the current application scenario includes:
[0020] If the electronic device has both the first scenario and the second scenario, the first scenario with a higher event triggering probability is determined as the current application scenario, and the corresponding operating parameters of the configured sensing device are the first operating parameters.
[0021] In a possible implementation, the sensing device includes a first sensing device and a second sensing device. If the electronic device has a first scene and a second scene at the same time, configuring the operating parameters of the sensing devices of the scenes includes: configuring the operating parameter of the first sensing device to be a first value, configuring the operating parameter of the second sensing device to be a second value, and both the first value and the second value match the operating parameter range of the first scene and the operating parameter range of the second scene;
[0022] The first value and the second value are such that the overall power consumption of the first sensing device and the second sensing device is minimized while satisfying the requirements of the current scene having both the first scene and the second scene.
[0023] A second aspect of the present application provides a control device, comprising:
[0024] A scene determination module, used to determine the current application scene of the electronic device;
[0025] a parameter configuration module, configured to configure the working parameters of the sensing device corresponding to the current application scenario; if the current application scenario is the first scenario, the working parameters of the sensing device are configured to be the first working parameters, and the first working parameters match the working parameter range of the first scenario; if the current application scenario is the second scenario, the working parameters of the sensing device are configured to be the second working parameters, and the second working parameters match the working parameter range of the second scenario;
[0026] The first scenario has a first event trigger probability, and the sensing device has a first event trigger detection frequency based on the first working parameter; the second scenario has a second event trigger probability, and the sensing device has a second event trigger detection frequency based on the second working parameter; the first event trigger probability is greater than the second event trigger probability, and the first event trigger detection frequency is greater than the second event trigger detection frequency.
[0027] The third aspect of the present application provides an electronic device, comprising: at least one sensing device with configurable operating parameters, at least one processor, and a memory connected to the processor, wherein:
[0028] The memory is used to store computer programs;
[0029] The processor is used to execute the computer program so that the electronic device can implement any one of the control methods described above. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.
[0031] Figure 1 A flow chart of a control method disclosed in an embodiment of the present application;
[0032] Figure 2 A schematic diagram of a process for configuring working parameters of a sensing device disclosed in an embodiment of the present application;
[0033] Figure 3 It is a curve diagram of detection data of the sensing device disclosed in the embodiment of the present application under different working parameters;
[0034] Figure 4 A schematic diagram of the structure of a control device disclosed in an embodiment of the present application;
[0035] Figure 5 A schematic diagram of the structure of an electronic device disclosed in an embodiment of the present application. DETAILED DESCRIPTION
[0036] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0037] The embodiments of the present application can be applied to electronic devices. The present application does not limit the product form of the electronic device, which can include but is not limited to smart phones, tablet computers, wearable devices, netbooks, etc., and can be selected according to application requirements.
[0038] Figure 1 This is a flow chart of a control method disclosed in an embodiment of the present application. Figure 1 As shown, the control method may include:
[0039] Step 101: Determine the current application scenario of the electronic device.
[0040] The application scenario of the electronic device is determined based on the various types of applications running thereon, and different categories of application scenarios may correspond to at least one application. In the embodiment of the present application, the category of the application scenario may be different according to the different requirements for the operating frequency or data output rate of the sensing device. The sensing device may be an accelerometer, a gyroscope sensor, or a device such as A+G (accelerometer + gyroscope) for detecting the motion state of the device. For example, when the electronic device is in an office or study application scenario, it basically does not move or moves very little, corresponding to the first type of application scenario; when the electronic device is in a game application scenario, the electronic device will move frequently, corresponding to the second type of application scenario.
[0041] Step 102: configuring operating parameters of the sensing device corresponding to the current application scenario.
[0042] After determining the current application scenario of the electronic device, the working parameters of the sensing device can be configured based on the correspondence between the predetermined application scenario and the working parameters of the sensing device. It can be understood that the working parameter here can be a working parameter range rather than a single value, because in the same application scenario, the movement frequency and amplitude of the electronic device will also change repeatedly due to many reasons. Therefore, corresponding to a fixed application scenario, a working parameter range with floating space can be configured for the sensing device.
[0043] Step 103: If the current application scenario is the first scenario, configure the operating parameters of the sensing device to be first operating parameters, and the first operating parameters match the operating parameter range of the first scenario.
[0044] Step 104: If the current application scenario is the second scenario, configure the operating parameters of the sensing device to be second operating parameters, and the second operating parameters match the operating parameter range of the second scenario.
[0045] For example, the first scenario is an application scenario such as games and augmented reality (AR) that relies heavily on the detection data of the sensing device, and has high requirements on the operating frequency or data output rate of the sensing device. Therefore, it is necessary to configure the sensing device with working parameters that can enable it to have a higher data output rate to meet the real-time requirements of the game or AR scenario; the second scenario can be an application scenario such as video, study and office, which relies less on the detection data during the sensing period, and does not have particularly high requirements on the operating frequency or data output rate of the sensing device. Therefore, based on energy saving considerations, the sensing device can be configured with working parameters with a lower data output rate.
[0046] The first scenario has a first event trigger probability, and the sensing device has a first event trigger detection frequency based on the first working parameter; the second scenario has a second event trigger probability, and the sensing device has a second event trigger detection frequency based on the second working parameter; the first event trigger probability is greater than the second event trigger probability, and the first event trigger detection frequency is greater than the second event trigger detection frequency.
[0047] The event trigger probability can characterize the probability of a device movement event occurring, which can be understood as a measure of the probability of using sensing devices in application scenarios. For example, in gaming scenarios, many operations rely on sensing devices to implement, so the event trigger probability will be relatively high; while in office scenarios, the probability of using sensing devices to sense user operations is very small, so the event trigger probability is also very small.
[0048] In the first scenario, the sensing device has a first event trigger detection frequency based on the first working parameter, that is, in the first scenario where the probability of event triggering is relatively high, the configured first working parameter makes the sensing device detect data more frequently; in the second scenario, the sensing device has a second event trigger detection frequency based on the second working parameter, that is, in the second scenario where the probability of event triggering is relatively low, the configured second working parameter makes the sensing device detect data less frequently.
[0049] In the control method described in this embodiment, the working parameters of the sensing device are not fixed but can be dynamically configured based on the real-time application scenario of the electronic device. When the application scenario of the electronic device is highly dependent on the detection data of the sensing device, the configured working parameters enable the sensing device to have higher performance and accuracy, thereby optimizing the user experience. When the application scenario of the electronic device is relatively low in dependence on the detection data of the sensing device, the configured working parameters enable the sensing device to reduce performance while meeting the scenario requirements, thereby reducing the power consumption of the sensing device.
[0050] In the above embodiment, under the first operating parameters, the corresponding configuration of the sensing device has a first data output rate and a first power consumption that match the first event trigger detection frequency; under the second operating parameters, the corresponding configuration of the sensing device has a second data output rate and a second power consumption that match the second event trigger detection frequency, the first data output rate is greater than the second data output rate, and the first power consumption is greater than the second power consumption.
[0051] That is, in the first scenario where the movement frequency and / or amplitude of the electronic device is greater, each time the movement of the electronic device meets the trigger condition, the sensing device will be triggered to perform detection. When the electronic device moves frequently, the first event trigger detection frequency is higher, and the configured first working parameters make the data output rate and power consumption of the sensing device relatively high to adapt to the first event trigger detection frequency and quickly obtain and output detection data.
[0052] In the second scenario where the movement frequency and / or amplitude of the electronic device is small, the probability of the electronic device moving frequently is small, and the second event trigger detection frequency is correspondingly small. The configured first operating parameters make the data output rate and power consumption of the sensing device relatively low to save device power.
[0053] The above implementation dynamically configures the working parameters of the sensing device in combination with the device usage scenario, and can determine a balance point or a flexible balance range between the power consumption and performance of the sensing device, so as to better meet user needs from two dimensions: device usage experience and device usage time.
[0054] In one implementation, configuring the operating parameters of the sensing device for the current application scenario may include: configuring the operating parameters to be the minimum value of the operating parameter range of the current application scenario to reduce the power consumption of the sensing device for the current application scenario; if the event trigger frequency of the trigger event for the current application scenario detected within a first time period is greater than a preset threshold, increasing the operating parameters of the sensing device, and the increased operating parameters are not greater than the maximum value of the operating parameter range of the current application scenario.
[0055] As mentioned above, different application scenarios can match a working parameter range rather than a fixed value. Based on energy saving considerations, after determining the working parameter range that matches the current application scenario, the working parameter of the sensing device is first set to the minimum value of the matching working parameter range. The working parameter range can include different gears. For example, in the working range of [50-100], the working parameter gears include 50, 75, 90, and 100 from low to high. In the matching application scenario, the working parameter of the sensing device can be any of the above four values. Table 1 shows the working parameter ranges of two different sensing devices in different application scenarios. The above content can be understood in conjunction with Table 1.
[0056] Table 1 Operating parameter ranges of ACC ODR and GYRO ODR
[0057]
[0058] After configuring the working parameters of the sensing device to the minimum value of the working parameter range matching the current application scenario, if the event trigger frequency of the trigger event of the current application scenario detected within the first time period is greater than the preset threshold, it indicates that the frequency of triggering the sensing device for detection will also increase, and the currently configured minimum value may not meet the scenario requirements. Therefore, the working parameters of the sensing device can be increased within the working parameter range matching the current scenario, such as adjusting the working parameters from 50 to 75.
[0059] Specifically, increasing the working parameters of the sensing device may include: if the event trigger frequency is greater than a first set value and not greater than a second set value, controlling the working parameters of the sensing device to increase by M levels on the current basis, and the gears of the working parameters are pre-configured; if the event trigger frequency is greater than the second set value and not greater than a third set value, controlling the working parameters of the sensing device to increase by N levels on the current basis, and N is greater than M.
[0060] For example, the working parameter range matched by the current application scenario is [50-100], which includes four levels of 50, 75, 90, and 100. The initially configured working parameter is 50. If it is detected that the event trigger frequency of the current application scenario exceeds the first set value of 0.2, the working parameter of the control sensing device is increased by one level and the adjustment value is 75; if it is detected that the event trigger frequency of the current application scenario exceeds the second set value of 0.5, the working parameter of the control sensing device is increased by two levels and adjusted to 90.
[0061] In another implementation, the control method may further include: if no trigger event is detected within the second time period, configuring the operating parameter of the sensing device to be a minimum value of the operating parameter range of the current application scenario.
[0062] If no trigger event is detected within the second time period, it indicates that the user does not frequently move the electronic device in the current application scenario and the sensing device does not need to perform frequent detection. The working parameters of the sensing device can be configured to the minimum value of the working parameter range matching the current application scenario to minimize power consumption.
[0063] In another implementation, the control method may further include: determining whether a trigger event is detected based on the rate of change of the detection data output by the sensing device; if the event trigger frequency of the trigger event detected for the current application scenario within a first time period is not greater than a set value, and no trigger event is detected within a second time period, configuring the working parameters of the sensing device to be the minimum value of the working parameter range for the current application scenario.
[0064] In this implementation, the rate of change of the detection data is used as a measure of the detection trigger event. The trigger event refers to the movement of the electronic device (sensing device), but the rate of change of the detection data is the standard for determining whether to respond to the trigger event. Only when the rate of change of the detection data is greater than the set threshold will the trigger event be responded to, or it is considered that there is a trigger event, and then the sensing device is controlled to detect. If the electronic device only moves slightly, the sensing device will not be triggered to detect and output. On this basis, no trigger event is detected in the second time period, and it is determined that the demand for the sensing device in the current application scenario is relatively small, because the operating parameters of the sensing device are configured to be the minimum value of the operating parameter range of the current application scenario.
[0065] Regarding the change rate of the detection data, a threshold can be defined for the change rate of the detection data of the sensing device. The implementation of determining whether the working parameters need to be adjusted can be: first calculate the change rate of multiple detection data points:
[0066]
[0067] Where D i is the ith data point, D i+j is the jth data point after i, j is the interval between points, and Δt is the time interval.
[0068] The calculated change rate is then compared with the threshold value. If a value is greater than the threshold, it is considered that the current working parameters are insufficient to meet the demand and need to be increased. If it is less than the threshold, the current working parameters remain unchanged.
[0069] Figure 2 This is a flow chart of configuring the working parameters of the sensing device for the current application scenario disclosed in the embodiment of the present application. Figure 2 Understanding the implementation contents of configuring the working parameters of the sensing device introduced in the aforementioned embodiments will help those skilled in the art to better understand and implement the technical solutions of the present application.
[0070] Figure 3 This is a curve diagram of the detection data of the sensing device disclosed in the embodiment of the present application under different working parameters, wherein the working parameter corresponding to the upper graph is smaller, and the data output rate of the corresponding sensing device is smaller, and the working parameter corresponding to the lower graph is larger, and the data output rate of the corresponding sensing device is larger. Figure 3 ,It can be clearly seen that when the working parameters are higher, the data granularity is smaller and the accuracy is higher.
[0071] In one implementation, determining the current application scenario may include: if the electronic device has both a first scenario and a second scenario, determining the first scenario with a greater probability of event triggering as the current application scenario, and correspondingly configuring the operating parameters of the sensing device as the first operating parameters.
[0072] In actual applications, users may run multiple applications at the same time, such as a music playback application (which does not require the support of a sensing device) and an AR application (which requires the support of a sensing device). In this case, the current application scenario is determined according to the highest requirement of the sensing device, and the application scenario matching the AR application is determined as the current application scenario. This ensures that the configured working parameters can meet the usage requirements of all applications.
[0073] In another implementation, the sensing device includes a first sensing device and a second sensing device, such as by including an acceleration sensor and a gyroscope sensor, and if the electronic device has both a first scene and a second scene, configuring the sensing device operating parameters of the scene may include: configuring the operating parameter of the first sensing device to be a first value, configuring the operating parameter of the second sensing device to be a second value, and the first value and the second value both match the operating parameter range of the first scene and the operating parameter range of the second scene. The first value and the second value minimize the overall power consumption of the first sensing device and the second sensing device while meeting the requirements of the current scene having both the first scene and the second scene.
[0074] For example, the working parameter range of the acceleration sensor (first sensing device) in the first scenario is [30, 70], and the working parameter range of the second scenario is [50, 100], so the working parameter (first value) of the acceleration sensor can be configured as 50; the working parameter range of the gyroscope sensor (second sensing device) in the first scenario is [250, 600], and the working parameter range of the second scenario is [500, 1000], so the working parameter (second value) of the gyroscope sensor can be configured as 500. That is, the working parameters configured by the sensing device need to match the working parameter ranges of the first scenario and the second scenario at the same time, and be the minimum value of the working parameters that can meet the requirements of the first scenario and the second scenario at the same time, so as to minimize the overall power consumption of the two sensing devices.
[0075] For the aforementioned method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the order of the actions described, because according to the present application, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
[0076] The method is described in detail in the embodiments disclosed in the above-mentioned application. The method of the application can be implemented by various forms of devices. Therefore, the application also discloses a device, and a specific embodiment is given below for detailed description.
[0077] Figure 4 This is a schematic diagram of the structure of a control device disclosed in an embodiment of the present application. Figure 4 As shown, the control device 30 may include:
[0078] The scene determination module 401 is used to determine the current application scene of the electronic device.
[0079] The parameter configuration module 402 is used to configure the working parameters of the sensing device corresponding to the current application scenario; if the current application scenario is the first scenario, the working parameters of the sensing device are configured to be first working parameters, and the first working parameters match the working parameter range of the first scenario; if the current application scenario is the second scenario, the working parameters of the sensing device are configured to be second working parameters, and the second working parameters match the working parameter range of the second scenario.
[0080] The first scenario has a first event trigger probability, and the sensing device has a first event trigger detection frequency based on the first working parameter; the second scenario has a second event trigger probability, and the sensing device has a second event trigger detection frequency based on the second working parameter; the first event trigger probability is greater than the second event trigger probability, and the first event trigger detection frequency is greater than the second event trigger detection frequency.
[0081] In the control device described in this embodiment, the working parameters of the sensing device are not fixed but can be dynamically configured based on the real-time application scenario of the electronic device. When the application scenario of the electronic device is highly dependent on the detection data of the sensing device, the configured working parameters enable the sensing device to have higher performance and accuracy, thereby optimizing the user experience; when the application scenario of the electronic device is relatively low in dependence on the detection data of the sensing device, the configured working parameters enable the sensing device to reduce performance while meeting the scenario requirements, thereby reducing the power consumption of the sensing device.
[0082] In one implementation, under the first operating parameters, the sensing device is configured to have a first data output rate and a first power consumption that match a first event trigger detection frequency; under the second operating parameters, the sensing device is configured to have a second data output rate and a second power consumption that match a second event trigger detection frequency, the first data output rate is greater than the second data output rate, and the first power consumption is greater than the second power consumption.
[0083] In one implementation, the parameter configuration module can be specifically used to: configure the working parameter to be the minimum value of the working parameter range of the current application scenario to reduce the power consumption of the sensing device in the current application scenario; if the event trigger frequency of the trigger event of the current application scenario detected within a first time period is greater than a preset threshold, increase the working parameter of the sensing device, and the increased working parameter is not greater than the maximum value of the working parameter range of the current application scenario.
[0084] In one implementation, the parameter configuration module can be specifically used to: if the event trigger frequency is greater than the first set value and not greater than the second set value, control the working parameters of the sensing device to increase by M levels on the current basis, and the gears of the working parameters are pre-configured; if the event trigger frequency is greater than the second set value and not greater than the third set value, control the working parameters of the sensing device to increase by N levels on the current basis, and N is greater than M.
[0085] In one implementation, the parameter configuration module may also be used to: if no trigger event is detected within the second time period, configure the operating parameter of the sensing device to a minimum value of the operating parameter range of the current application scenario.
[0086] In one implementation, the parameter configuration module can also be used to: determine whether a trigger event is detected based on the rate of change of the detection data output by the sensing device; if the event trigger frequency of the trigger event detected for the current application scenario within a first time period is not greater than a set value, and no trigger event is detected within a second time period, configure the working parameters of the sensing device to be the minimum value of the working parameter range for the current application scenario.
[0087] In one implementation, the scene determination module can be specifically used to: if the electronic device has both a first scene and a second scene, determine the first scene with a higher probability of event triggering as the current application scene, and the corresponding operating parameters of the configured sensing device are the first operating parameters.
[0088] In one implementation, the sensing device includes a first sensing device and a second sensing device. If the electronic device has both a first scene and a second scene, the parameter configuration module can be specifically used to: configure the working parameter of the first sensing device to a first value, and configure the working parameter of the second sensing device to a second value, wherein the first value and the second value both match the working parameter range of the first scene and the working parameter range of the second scene; the first value and the second value minimize the overall power consumption of the first sensing device and the second sensing device while meeting the requirements of the current scene having both the first scene and the second scene.
[0089] Any of the control devices described in the above embodiments includes a processor and a memory. The scene determination module and the parameter configuration module in the above embodiments are stored in the memory as program modules, and the processor executes the program modules stored in the memory to implement corresponding functions.
[0090] The processor includes a kernel, which retrieves the corresponding program module from the memory. One or more kernels can be set, and the processing of the access data can be realized by adjusting the kernel parameters.
[0091] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.
[0092] In an exemplary embodiment, a computer-readable storage medium is also provided, which can be directly loaded into the internal memory of a computer and contains software code. After the computer program is loaded and executed, it can implement the steps shown in any embodiment of the above control method.
[0093] In an exemplary embodiment, a computer program product is also provided, which can be directly loaded into the internal memory of a computer, wherein the computer program contains software codes, and after being loaded and executed by a computer, the computer program can implement the steps shown in any embodiment of the control method described above.
[0094] Furthermore, an embodiment of the present application provides an electronic device. Figure 5 This is a schematic diagram of the structure of an electronic device disclosed in an embodiment of the present application. Figure 5 As shown, the electronic device 50 includes at least one processor 501, at least one memory 502 connected to the processor, a bus 503 and at least one sensing device 504 with configurable working parameters; wherein the processor and the memory communicate with each other through the bus; the processor is used to call the program instructions in the memory to execute the above-mentioned control method.
[0095] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0096] It should also be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0097] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0098] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A control method, the method comprising: Determine the current application scenario of the electronic device; Configuring operating parameters of the sensing device corresponding to the current application scenario; If the current application scenario is the first scenario, configuring the operating parameters of the sensing device to be first operating parameters, the first operating parameters matching the operating parameter range of the first scenario; If the current application scenario is the second scenario, configuring the operating parameters of the sensing device to be second operating parameters, and the second operating parameters match the operating parameter range of the second scenario; The first scenario has a first event trigger probability, and the sensing device has a first event trigger detection frequency based on the first working parameter; the second scenario has a second event trigger probability, and the sensing device has a second event trigger detection frequency based on the second working parameter; the first event trigger probability is greater than the second event trigger probability, and the first event trigger detection frequency is greater than the second event trigger detection frequency.
2. The control method according to claim 1, wherein: Under the first operating parameters, the sensing device is configured to have a first data output rate and a first power consumption that match the first event trigger detection frequency. Under the second operating parameters, the sensing device is configured to have a second data output rate and a second power consumption that match the second event trigger detection frequency. The first data output rate is greater than the second data output rate, and the first power consumption is greater than the second power consumption.
3. According to the control method of claim 2, configuring the operating parameters of the sensing device of the current application scenario comprises: The working parameter is configured to be the minimum value of the working parameter range of the current application scenario to reduce the power consumption of the sensing device of the current application scenario. If the event trigger frequency of the trigger event of the current application scenario detected in the first time period is greater than a preset threshold, the working parameter of the sensing device is increased, and the increased working parameter is not greater than the maximum value of the working parameter range of the current application scenario.
4. The control method according to claim 3, wherein increasing the operating parameter of the sensing device comprises: If the event trigger frequency is greater than the first set value and not greater than the second set value, control the operating parameter of the sensing device to increase by M gears based on the current one, and the gear of the operating parameter is pre-configured; If the event trigger frequency is greater than the second set value and not greater than the third set value, the operating parameters of the sensing device are controlled to increase by N levels on the current basis, and N is greater than M.
5. The control method according to claim 3, further comprising: If no trigger event is detected within the second time period, the operating parameter of the sensing device is configured to be a minimum value of the operating parameter range of the current application scenario.
6. The control method according to claim 3, further comprising: Whether a trigger event is detected is determined based on the rate of change of the detection data output by the sensing device. If the event trigger frequency of the trigger event detected for the current application scenario within the first time period is not greater than a set value, and no trigger event is detected within the second time period, the working parameters of the sensing device are configured to be the minimum value of the working parameter range for the current application scenario.
7. The control method according to claim 1, wherein determining the current application scenario comprises: If the electronic device has both the first scenario and the second scenario, the first scenario with a higher event triggering probability is determined as the current application scenario, and the corresponding operating parameters of the configured sensing device are the first operating parameters.
8. The control method according to claim 1, wherein the sensing device comprises a first sensing device and a second sensing device, and if the electronic device has both a first scene and a second scene, configuring the operating parameters of the sensing device of the scene comprises: Configure an operating parameter of the first sensing device to a first value, and configure an operating parameter of the second sensing device to a second value, wherein the first value and the second value both match an operating parameter range of the first scenario and an operating parameter range of the second scenario; The first value and the second value are such that the overall power consumption of the first sensing device and the second sensing device is minimized while satisfying the requirements of the current scene having both the first scene and the second scene.
9. A control device comprising: A scene determination module, used to determine the current application scene of the electronic device; A parameter configuration module, used to configure the working parameters of the sensing device corresponding to the current application scenario; If the current application scenario is the first scenario, the operating parameters of the sensing device are configured to be the first operating parameters, and the first operating parameters match the operating parameter range of the first scenario; if the current application scenario is the second scenario, the operating parameters of the sensing device are configured to be the second operating parameters, and the second operating parameters match the operating parameter range of the second scenario; The first scenario has a first event trigger probability, and the sensing device has a first event trigger detection frequency based on the first working parameter; the second scenario has a second event trigger probability, and the sensing device has a second event trigger detection frequency based on the second working parameter; the first event trigger probability is greater than the second event trigger probability, and the first event trigger detection frequency is greater than the second event trigger detection frequency.
10. An electronic device comprising: At least one sensing device with configurable operating parameters, at least one processor and a memory connected to the processor, wherein: The memory is used to store computer programs; The processor is used to execute the computer program so that the electronic device can implement the control method according to any one of claims 1 to 8.