METHOD FOR ADJUSTING SLEEP TIME BASED ON SENSING DATA AND ELECTRONIC DEVICE
20230213378 · 2023-07-06
Assignee
Inventors
Cpc classification
International classification
Abstract
A method for adjusting sleep time based on sensing data and an electronic device are provided. In the method, a sensor is disabled in a sleep duration of the i.sup.th operation cycle, and the sensor is enabled in a detection duration of the i.sup.th operation cycle. Multiple sensing data corresponding to the i.sup.th operation cycle are obtained from the sensor. A detection duration and a sleep duration of the i+1.sup.th operation cycle are determined based on the sensing data obtained in the detection duration of the i.sup.th operation cycle.
Claims
1. A method for adjusting sleep time based on sensing data, adapted for an electronic device, the method comprising: disabling a sensor in a sleep duration of an i.sup.th operation cycle among a plurality of operation cycles, wherein i is an integer greater than 1; enabling the sensor in a detection duration of the i.sup.th operation cycle, and obtaining a plurality of sensing data corresponding to the i.sup.th operation cycle from the sensor, wherein the plurality of sensing data corresponding to the i.sup.th operation cycle are obtained by the sensor sensing a target device in the detection duration of the i.sup.th operation cycle; and determining a detection duration and a sleep duration of an i+1.sup.th operation cycle among the plurality of operation cycles based on the plurality of sensing data obtained in the detection duration of the i.sup.th operation cycle.
2. The method according to claim 1, wherein a first operation cycle among the plurality of operation cycles only comprises a detection duration.
3. The method according to claim 1, further comprising: enabling the sensor in the detection duration of the first operation cycle, and obtaining the plurality of sensing data corresponding to the first operation cycle from the sensor, wherein the plurality of sensing data corresponding to the first operation cycle are obtained by the sensor sensing the target device in the detection duration of the first operation cycle; determining a critical value based on the plurality of sensing data obtained in the detection duration of the first operation cycle; and setting a detection duration and a sleep duration of a second operation cycle among the plurality of operation cycles as a first default value and a second default value, respectively.
4. The method according to claim 3, wherein determining the critical value based on the plurality of sensing data obtained in the detection duration of the first operation cycle comprises: determining a statistical property value based on the plurality of sensing data corresponding to the first operation cycle as the critical value.
5. The method according to claim 1, wherein the detection duration of the i.sup.th operation cycle is represented by T.sub.1,i, the sleep duration of the i.sup.th operation cycle is represented by T.sub.2,i, the detection duration of the i+1.sup.th operation cycle is represented by T.sub.1,i+1, the sleep duration of the i+1.sup.th operation cycle is represented by T.sub.2,i+1, and determining the detection duration and the sleep duration of the i+1.sup.th operation cycle among the plurality of operation cycles based on the plurality of sensing data obtained in the detection duration of the i.sup.th operation cycle comprises: executing at least one of setting T.sub.2,i+1 to be less than T.sub.2,i and setting T.sub.1,i+1 to be greater than T.sub.1,i in response to determining that specific sensing data satisfying a specific condition exists among the plurality of sensing data corresponding to the i.sup.th operation cycle; and executing at least one of setting T.sub.2,i+1 to be greater than T.sub.2,i and setting T.sub.1,i+1 to be less than T.sub.1,i in response to determining that the specific sensing data satisfying the specific condition do not exist among the sensing data corresponding to the i.sup.th operation cycle.
6. The method according to claim 5, further comprising: determining whether any of the plurality of sensing data of the i.sup.th operation cycle exceeds a critical value; determining that the specific sensing data satisfying the specific condition exists among the plurality of sensing data corresponding to the i.sup.th operation cycle in response to determining that any of the plurality of sensing data of the i.sup.th operation cycle exceeds the critical value; and determining that the specific sensing data satisfying the specific condition do not exist among the plurality of sensing data corresponding to the i.sup.th operation cycle in response to determining that all of the plurality of sensing data of the i.sup.th operation cycle do not exceed the critical value.
7. The method according to claim 5, wherein a sum of T.sub.1,i and T.sub.2,i is equal to a sum of T.sub.1,i+1 and T.sub.2,i+1.
8. The method according to claim 5, wherein setting T.sub.1,i+1 to be greater than T.sub.1,i comprises setting T.sub.1,i+1 to be T.sub.1,i×K, wherein K is an energy-saving coefficient greater than 1, and T.sub.1,i+1≤T.sub.1,i+T.sub.2,i; wherein setting T.sub.2,i+1 to be less than T.sub.2,i comprises setting T.sub.2,i+1 to be T.sub.2,i−(T.sub.1,i+1−T.sub.1,i).
9. The method according to claim 5, wherein setting T.sub.1,i+1 be to less than T.sub.1,i comprises setting T.sub.1,i+1 to be T.sub.1,i/K, wherein K is an energy-saving coefficient greater than 1; wherein setting T.sub.2,i+1 to be greater than T.sub.2,i comprises setting T.sub.2,i+1 to be T.sub.2,i+(T.sub.1,i−T.sub.1,i+1).
10. The method according to claim 5, wherein before executing at least one of setting T.sub.2,i+1 to be less than T.sub.2,i and setting T.sub.1,i+1 to be greater than T.sub.1,i, the method further comprises: determining a current energy-saving rate corresponding to the i.sup.th operation cycle according to T.sub.1,i and T.sub.2,i; setting T.sub.2,i+1 to be equal to T.sub.2,i and setting T.sub.1,i+1 to be equal to T.sub.1,i in response to determining that the current energy-saving rate corresponding to the i.sup.th operation cycle has reached an upper threshold; and executing at least one of setting T.sub.2,i+1 to be less than T.sub.2,i and setting T.sub.1,i+1 to be greater than T.sub.1,i in response to determining that the current energy-saving rate corresponding to the i.sup.th operation cycle has not reached the upper threshold.
11. The method according to claim 1, wherein the target device is a motor device, and the plurality of sensing data comprise a plurality of vibration data from the sensor measuring the motor device.
12. The method according to claim 1, further comprising: disabling a transceiver circuit of the electronic device in the sleep duration of the i.sup.th operation cycle; and enabling the transceiver circuit in the detection duration of the i.sup.th operation cycle and controlling the transceiver circuit to transmit the plurality of sensing data obtained in the detection duration of the i.sup.th operation cycle.
13. An electronic device for adjusting sleep time based on sensing data, comprising: a storage circuit, storing a code; and a processor, coupled to the storage circuit and accessing the code to execute: disabling a sensor in a sleep duration of an i.sup.th operation cycle among a plurality of operation cycles, wherein i is an integer greater than 1; enabling the sensor in a detection duration of the i.sup.th operation cycle, and obtaining a plurality of sensing data corresponding to the i.sup.th operation cycle from the sensor, wherein the plurality of sensing data corresponding to the i.sup.th operation cycle are obtained by the sensor sensing a target device in the detection duration of the i.sup.th operation cycle; and determining a detection duration and a sleep duration of an i+1.sup.th operation cycle among the plurality of operation cycles based on the plurality of sensing data obtained in the detection duration of the i.sup.th operation cycle.
14. The electronic device according to claim 13, wherein a first operation cycle among the plurality of operation cycles only comprises a detection duration.
15. The electronic device according to claim 13, wherein the processor is further configured to: enable the sensor in the detection duration of the first operation cycle, and obtain the plurality of sensing data corresponding to the first operation cycle from the sensor, wherein the plurality of sensing data corresponding to the first operation cycle are obtained by the sensor sensing the target device in the detection duration of the first operation cycle; determine a critical value based on the plurality of sensing data obtained in the detection duration of the first operation cycle; and set a detection duration and a sleep duration of a second operation cycle among the plurality of operation cycles as a first default value and a second default value, respectively.
16. The electronic device according to claim 15, wherein the processor is configured to: determine a statistical property value based on the plurality of sensing data corresponding to the first operation cycle as the critical value.
17. The electronic device according to claim 13, wherein the detection duration of the i.sup.th operation cycle is represented by T.sub.1,i, the sleep duration of the i.sup.th operation cycle is represented by T.sub.2,i, the detection duration of the i+1.sup.th operation cycle is represented by T.sub.1,i+1, the sleep duration of the i+1.sup.th operation cycle is represented by T.sub.2,i+1, and the processor is configured to: execute at least one of setting T.sub.2,i+1 to be less than T.sub.2,i and setting T.sub.1,i+1 to be greater than T.sub.1,i in response to determining that specific sensing data satisfying a specific condition exists among the plurality of sensing data corresponding to the i.sup.th operation cycle; and execute at least one of setting T.sub.2,i+1 to be greater than T.sub.2,i and setting T.sub.1,i+1 to be less than T.sub.1,i in response to determining that the specific sensing data satisfying the specific condition do not exist among the sensing data corresponding to the i.sup.th operation cycle.
18. The electronic device according to claim 17, wherein the processor is further configured to: determine whether any of the plurality of sensing data of the i.sup.th operation cycle exceeds a critical value; determine that the specific sensing data satisfying the specific condition exists among the plurality of sensing data corresponding to the i.sup.th operation cycle in response to determining that any of the plurality of sensing data of the i.sup.th operation cycle exceeds the critical value; and determine that the specific sensing data satisfying the specific condition do not exist among the plurality of sensing data corresponding to the i.sup.th operation cycle in response to determining that all of the plurality of sensing data of the i.sup.th operation cycle do not exceed the critical value.
19. The electronic device according to claim 17, wherein a sum of T.sub.1,i and T.sub.2,i is equal to a sum of T.sub.1,i+1 and T.sub.2,i+1.
20. The electronic device according to claim 17, wherein the processor is configured to: set T.sub.1,i+1 to be T.sub.1,i×K, wherein K is an energy-saving coefficient greater than 1, and T.sub.1,i+1≤T.sub.1,i+T.sub.2,i; and set T.sub.2,i+1 to be T.sub.2,i−(T.sub.1,i+1−T.sub.1,i) for setting T.sub.2,i+1 to be less than T.sub.2,i.
21. The electronic device according to claim 17, wherein the processor is configured to: set T.sub.1,i+1 to be T.sub.1,i/K for setting T.sub.1,i+1 to be less than T.sub.1,i, wherein K is an energy-saving coefficient greater than 1; and set T.sub.2,i+1 to be T.sub.2,i+(T.sub.1,i−T.sub.1,i+1) for setting T.sub.2,i+1 to be greater than T.sub.2,i.
22. The electronic device according to claim 17, wherein before executing at least one of setting T.sub.2,i+1 to be less than T.sub.2,i and setting T.sub.1,i+1 to be greater than T.sub.1,i, the processor is further configured to: determine a current energy-saving rate corresponding to the i.sup.th operation cycle according to T.sub.1,i and T.sub.2,i; set T.sub.2,i+1 to be equal to T.sub.2,i and setting T.sub.1,i+1 to be equal to T.sub.1,i in response to determining that the current energy-saving rate corresponding to the i.sup.th operation cycle has reached an upper threshold; and execute at least one of setting T.sub.2,i+1 to be less than T.sub.2,i and setting T.sub.1,i+1 to be greater than T.sub.1,i in response to determining that the current energy-saving rate corresponding to the i.sup.th operation cycle has not reached the upper threshold.
23. The electronic device according to claim 13, wherein the target device is a motor device, and the plurality of sensing data comprise a plurality of vibration data from the sensor measuring the motor device.
24. The electronic device according to claim 13, wherein the processor is further configured to: disable a transceiver circuit of the electronic device in the sleep duration of the i.sup.th operation cycle; and enable the transceiver circuit in the detection duration of the i.sup.th operation cycle and controlling the transceiver circuit to transmit the plurality of sensing data obtained in the detection duration of the i.sup.th operation cycle.
25. The electronic device according to claim 13, further comprising the sensor, coupled to the processor.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0009] The accompanying drawings are included to provide further understanding, and are incorporated in and constitute a part of this specification. The drawings illustrate exemplary embodiments and, together with the description, serve to explain the principles of the disclosure.
[0010]
[0011]
[0012]
[0013]
[0014]
DESCRIPTION OF THE EMBODIMENTS
[0015] Please refer to
[0016] In an embodiment, the target device 199 is, for example, a motor device, and the sensor 103 is, for example, a vibration measurement element that may measure vibration data from the target device 199 as the sensing data SD. In addition, the electronic device 100 may, for example, transmit the sensing data SD to the aforementioned management device. In this case, the management device may be, for example but not limited to, a server for managing the target device 199 and may perform relevant motor diagnosis on the target device 199 based on the sensing data SD.
[0017] In other embodiments, the target device 199 may also be a device providing changing electronic signals (such as voltage, current, and the like) corresponding to the surrounding environment, and the sensor 103 is, for example, a signal measurement product that may measure relevant electronic signals from the target device 199 as the sensing data SD. In this case, the aforementioned management device is, for example but not limited to, a server for managing the target device 199 and may gain the operation status of the target device 199 based on the sensing data SD.
[0018] As shown in
[0019] In different embodiments, the transceiver circuit 102 may be implemented as a corresponding communication module, which is, for example but not limited to, a Bluetooth module, a mobile communication module, and the like, according to the communication protocol adopted by the electronic device 100. To facilitate description, it is assumed in the following paragraphs that the electronic device 100 is a BLE device, and the transceiver circuit 102 may be accordingly implemented as a BLE communication module, but the disclosure is not limited thereto.
[0020] The processor 104 is coupled to the storage circuit 101 and the transceiver circuit 102, and may be a general-purpose processor, a special-purpose processor, a traditional processor, a digital signal processor, multiple microprocessors, one or more microprocessors combined with digital signal processor cores, a controller, a microcontroller, an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), any other type of an integrated circuit, a state machine, a processor or similar products based on an advanced RISC machine (ARM).
[0021] Please refer to
[0022] In the embodiment of the disclosure, the processor 104 may access the module and the code recorded in the storage circuit 101 to implement the method for adjusting sleep time based on sensing data provided by the disclosure, and the details are as follows.
[0023] Please refer to
[0024] According to
[0025] In the embodiments of the disclosure, in the detection duration of each operation cycle, the processor 104 may enable the sensor 103 so that the sensor 103 may measure the target device 199 to obtain the sensing data SD and then provide the relevant sensing data SD to the processor 104. For example, in the detection duration T.sub.1,1, the sensor 103 may provide sensing data SD.sub.1 to the processor 104; in the detection duration T.sub.1,2, the sensor 103 may provide sensing data SD.sub.2 to the processor 104; in the detection duration T.sub.1,3, the sensor 103 may provide sensing data SD.sub.3 to the processor 104; in the detection duration T.sub.1,i, the sensor 103 may provide sensing data SD.sub.i to the processor 104.
[0026] In the embodiments of the disclosure, the processor 104 may adaptively adjust the detection duration T.sub.1,i and the sleep duration T.sub.2,i of the i.sup.th operation cycle based on the provided method, and the details are as follows.
[0027] Please refer to
[0028] First, in step S310, the processor 104 enables the sensor 103 in the detection duration T.sub.1,1 of the first operation cycle (i.e., the operation cycle D.sub.1) and obtains the sensing data SD.sub.1 corresponding to the first operation cycle from the sensor 103.
[0029] In step S320, the processor 104 determines a critical value TH based on the sensing data SD.sub.1 obtained in the detection duration T.sub.1,1 of the first operation cycle (i.e., the operation cycle D.sub.1). In an embodiment, the processor 104 may determine a statistical property value based on the sensing data SD.sub.1 as the critical value TH.
[0030] In an embodiment, the processor 104 may obtain the maximum value in the sensing data SD.sub.1 and use a certain percentage (for example, 90%) of the maximum value as the corresponding statistical property value (i.e., the threshold value TH). In another embodiment, the processor 104 may, for example but not limited to, estimate a mean (represented by m) and a standard deviation (represented by s) of the sensing data SD.sub.1 and may use m+s or m+2s as the corresponding statistical property value (i.e., the critical value TH). In other embodiments, a designer may use other methods to determine/select the critical value TH based on the sensing data SD.sub.1 according to requirements, without being limited to the above embodiment.
[0031] Next, in step S330, the processor 104 respectively sets the detection duration T.sub.1,2 and the sleep duration T.sub.2,2 of the second operation cycle (i.e., the operation cycle D.sub.2) as a first default value and a second default value.
[0032] In an embodiment, assuming that the time length of each operation cycle is a fixed value (represented by T), the processor 104 may determine the first and the second default values according to a default energy-saving ratio. For example, assuming that the default energy-saving ratio is a:b, the processor 104 may respectively set the first and the second default values as
For example, assuming that T is 60 seconds, a is 1, and b is 9, the processor 104 may calculate the first default value to be 6 seconds
and calculate the second default value to be 54 seconds
but the disclosure is not limited thereto. In other embodiments, a designer may select a required default energy-saving ratio according to requirements without being limited to the above embodiment.
[0033] In addition, in other embodiments, the designer may further arbitrarily select required values as the first and the second default values according to requirements without being limited to the above embodiment.
[0034] After step S330, the processor 104 may set i to be 2 and recursively execute steps S340 to S360 in
[0035] In step S340, in the sleep duration T.sub.2,i of the i.sup.th operation cycle (i.e., the operation cycle D.sub.i), the processor 104 disables the sensor 103. In an embodiment, the processor 104 may further disable the transceiver circuit 102 in the sleep duration T.sub.2,i.
[0036] In this case, the sensor 103 may stop sensing the target device 199, and the transceiver circuit 102 may also stop transmitting signals, thereby saving power in the sleep duration T.sub.2,i.
[0037] In step S350, in the detection duration T.sub.1,i of the i.sup.th operation cycle (i.e., the operation cycle D.sub.i), the processor 104 enables the sensor 103 and obtains the sensing data SD.sub.i corresponding to the i.sup.th operation cycle from the sensor 103.
[0038] Next, in step S360, the processor 104 determines a detection duration T.sub.1,i+1 and a sleep duration T.sub.2,i+1 corresponding to the i+1th operation cycle (i.e., an operation cycle D.sub.i+1) among the operation cycles based on the sensing data SD.sub.i obtained in the detection duration T.sub.1,i of the i.sup.th operation cycle (i.e., the operation cycle D.sub.i).
[0039] In an embodiment, the processor 104 may determine whether specific sensing data satisfying a specific condition exist among the sensing data SD.sub.j corresponding to the i.sup.th operation cycle (i.e., the operation cycle D.sub.i). If so, the processor 104 may execute at least one of setting the sleep duration T.sub.2,i+1 to be less than the sleep duration T.sub.2,i and setting the detection duration T.sub.1,i+1 to be greater than the detection duration T.sub.1,i (hereinafter referred to as a first flow). If not, the processor 104 may execute at least one of setting the sleep duration T.sub.2,i+1 to be greater than the sleep duration T.sub.2,i and setting the detection duration T.sub.1,i+1 to be less than the detection duration T.sub.1,i (hereinafter referred to as a second flow).
[0040] In an embodiment, the processor 104 may determine whether any of the sensing data SD.sub.i of the i.sup.th operation cycle (i.e., the operation cycle D.sub.i) exceeds the critical value TH. In response to determining that any of the sensing data SD.sub.j exceeds the critical value TH, the processor 104 may determine that specific sensing data satisfying the specific condition exist among the sensing data SD.sub.i. On the other hand, in response to determining that all the sensing data SD.sub.j do not exceed the critical value TH, the processor 104 may determine that specific sensing data satisfying the specific condition do not exist among the sensing data SD.sub.i, but the disclosure is not limited thereto.
[0041] In the first flow, when the sleep duration T.sub.2,i+1 is set to be less than the sleep duration T.sub.2,i, the processor 104 may set the sleep duration T.sub.2,i+1 to be any value less than the sleep duration T.sub.2,i. In this way, the sleep duration of the operation cycle D.sub.1 may be accordingly shorter than the sleep duration of the operation cycle D.sub.i. Moreover, when the detection duration T.sub.1,i+1 is set to be greater than the detection duration T.sub.1,i, the processor 104 may set the detection duration T.sub.1,i+1 to be any value greater than the detection duration T.sub.1,i. In this way, the detection duration of the operation cycle D.sub.i+1 may be accordingly longer than the detection duration of the operation cycle D.sub.i.
[0042] Furthermore, in the first flow, if any of the sensing data SD.sub.i exceeds the critical value TH, then the operation of the target device 199 may be abnormal/unstable. Therefore, a longer detection duration and/or a shorter sleep duration may be required in the operation cycle D.sub.i+1 for the sensor 103 to obtain more sensing data SD.sub.i+1.
[0043] In addition, in the second flow, when the sleep duration T.sub.2,i+1 is set to be greater than the sleep duration T.sub.2,i, the processor 104 may set the sleep duration T.sub.2,i+1 to be any value greater than the sleep duration T.sub.2,i. In this way, the sleep duration of the operation cycle D.sub.i+1 may be accordingly longer than the sleep duration of the operation cycle D.sub.i. Moreover, when the detection duration T.sub.1,i+1 is set to be less than the detection duration T.sub.1,i, the processor 104 may set the detection duration T.sub.1,i+1 to be any value less than the detection duration T.sub.1,i. In this way, the detection duration of the operation cycle D.sub.i+1 may be accordingly shorter than the detection duration of the operation cycle D.sub.1.
[0044] Furthermore, in the second flow, if all the sensing data SD.sub.i do not exceed the critical value TH, then the operation of the target device 199 has been stabilized. Therefore, the operation cycle D.sub.i+1 may be adjusted to have a shorter detection duration and/or a longer sleep duration. In this way, the power consumption of the sensor 103 and the transceiver circuit 102 may be reduced, and thus the service life of the electronic device 100 and/or the sensor 103 may be prolonged.
[0045] As mentioned above, in some embodiments, the time length of each operation cycle is the fixed value T. In this case, both the sum of the detection duration T.sub.1,i, and the sleep duration T.sub.2,i and the sum of the detection duration T.sub.1,i+1 and the sleep duration T.sub.2,i+1 are equal to T. Correspondingly, the first flow and the second flow may be adjusted as follows.
[0046] In the first flow, when the time length of each operation cycle is the fixed value T, the processor 104 may set the detection duration T.sub.1,i+1 to be T.sub.1,i×K for setting the detection duration T.sub.1,i+1 to be greater than the detection duration T.sub.1,i. K is an energy-saving coefficient greater than 1, and T.sub.1,i+1≤T.sub.1,i+T.sub.2,i. In addition, the processor 104 may set the sleep duration T.sub.2,i+1 to be T.sub.2,i−(T.sub.1,i+1−T.sub.1,i) for setting the sleep duration T.sub.2,i+1 to be less than the sleep duration T.sub.2,i, but the disclosure is not limited thereto.
[0047] In the second flow, when the time length of each operation cycle is the fixed value T, the processor 104 may set the detection duration T.sub.1,i+1 to be T.sub.1,i/K for setting the detection duration T.sub.1,i+1 to be less than T.sub.1,i. In addition, the processor 104 may set the sleep duration T.sub.2,i+1 to be T.sub.2,i+(T.sub.1,i−T.sub.1,i+1) for setting the sleep duration T.sub.2,i+1 to be greater than the sleep duration T.sub.2,i.
[0048] In the second flow, before determining the detection duration T.sub.1,i+1 and/or the sleep duration T.sub.2,i+1 according to the above teaching, the processor 104 may further determines a current energy-saving rate P.sub.i corresponding to the i.sup.th operation cycle (i.e., the operation cycle D.sub.i) according to the detection duration T.sub.1,i and the sleep duration T.sub.2,i. In an embodiment, the processor 104 may, for example but not limited to, estimate
as the current energy-saving rate P.sub.i (i.e., the ratio of the sleep duration T.sub.2,i in the operation cycle D.sub.i). Next, the processor 104 may determine whether the current energy-saving rate P.sub.i has reached an upper threshold. In different embodiments, the designer may set the upper threshold to any required value according to requirements.
[0049] In the second flow, in response to determining that the current energy-saving rate P.sub.i has reached the upper threshold, the processor 104 may set the sleep duration T.sub.2,i+1 to be equal to the sleep duration T.sub.2,i and set the detection duration T.sub.1,i+1 to be equal to the detection duration T.sub.1,i. In other words, the processor 104 may respectively make the detection duration and the sleep duration of the operation cycle D.sub.i+1 equal to the detection duration and the sleep duration of the operation cycle D.sub.i. In this way, it may be avoided that the detection duration is endlessly shortened over time and results in a certain operation cycle only including the sleep duration.
[0050] On the other hand, in response to determining that the current energy-saving rate P.sub.i has not reached the upper threshold, the processor 104 may accordingly execute the setting of the detection duration T.sub.1,i+1 and/or the setting of the sleep duration T.sub.2,i+1 as taught in the second flow, but the disclosure is not limited thereto.
[0051] In light of the above, when i is 2, the processor 104 may execute steps S340 to S360 to determine the detection duration T.sub.1,3 and the sleep duration T.sub.2,3 of the third operation cycle (i.e., the operation cycle D.sub.3). Next, the processor 104 may set i to be i+1 (i.e., i turns to be 3) and execute steps S340 to S360 again to determine a detection duration T.sub.1,4 and a sleep duration T.sub.2,4 of the fourth operation cycle (i.e., an operation cycle D.sub.4). Based on this, the processor 104 may adaptively adjust the detection duration and the sleep duration of each operation cycle over time for saving power when the target device 199 is relatively stable or obtaining more sensing data in a longer detection duration when the target device 199 is relatively unstable.
[0052] Please refer to
[0053] According to
[0054] Next, assuming that any of the sensing data SD.sub.3 measured in the detection duration T.sub.1,3 exceeds the critical value TH, the processor 104 may set the detection duration T.sub.1,4 to be T.sub.1,3×K and set the sleep duration T.sub.2,4 to be T.sub.2,3−(T.sub.1,4−T.sub.1,3) according to the teaching of the first flow.
[0055] In
[0056] In
[0057] Next, assuming that no sensing data exceeding the critical value TH exist among the sensing data corresponding to the detection durations T.sub.1,m+1 to T.sub.1,z−1, the processor 104 may repeatedly execute the teaching of the second flow to continuously shorten the detection duration and prolong the sleep duration.
[0058] In
[0059] Upon testing, if T is 60 seconds and the processor 104 of the electronic devices 100 and 100a (BLE devices) continues to operate in the scenario of
[0060] In summary, in the embodiments of the disclosure, the detection duration and the sleep duration of the i.sup.th operation cycle may be adaptively determined according to the sensing data collected in the detection duration of the i.sup.th operation cycle. In this way, when the sensed target device is relatively unstable, the disclosure may correspondingly prolong the detection duration and/or shorten the sleep duration for the sensor to obtain more sensing data in the i+1.sup.th operation cycle. On the other hand, when the sensed target device is relatively stable, the disclosure may correspondingly shorten the detection duration and/or prolong the sleep duration for the sensor to save more power in the i+1.sup.th operation cycle. In this way, the battery service life of the sensor may be effectively prolonged, and the convenience of use may thus be improved for system integrators and users.
[0061] It will be apparent to those skilled in the art that various modifications and variations can be made to the structure of the disclosed embodiments without departing from the scope or spirit of the disclosure. In view of the foregoing, it is intended that the disclosure cover modifications and variations of this disclosure provided they fall within the scope of the following claims and their equivalents.