Method for dynamically adjusting active wakeup interval of terminal equipment and storage medium

By dynamically adjusting the active wake-up interval of low-power video surveillance equipment and optimizing the wake-up frequency based on the average number of passive wake-ups, the power consumption problem caused by frequent wake-ups is solved, achieving power savings and extended battery life.

CN120603029AActive Publication Date: 2025-09-05SHENZHEN XINRUISHI TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202510930965.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-07-07
Publication Date
2025-09-05
Estimated Expiration
2045-07-07

AI Technical Summary

Technical Problem

Low-power video surveillance devices consume power quickly and have limited battery life due to frequent active wake-up and connection to cloud servers.

Method used

By dynamically adjusting the active wake-up interval of the terminal device and combining it with the average number of passive wake-ups within a preset period, the final wake-up interval of the target period is calculated to optimize the active wake-up frequency and reduce unnecessary wake-ups.

Benefits of technology

Effectively reduce power consumption, extend battery life, balance communication efficiency and energy consumption, and ensure that equipment responds quickly at critical moments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120603029A_ABST
    Figure CN120603029A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of Internet of Things, in particular to a method for dynamically adjusting an active wake-up interval of a terminal device and a storage medium, and aims to dynamically adjust the active wake-up interval of the terminal device by taking the current preset active wake-up interval of the terminal device and the active wake-up frequency of each preset time period as a reference and combining the average passive wake-up frequency of each preset time period in a preset period. And the target time period is flexibly determined. If the average passive wake-up frequency of the target time period is smaller than the active wake-up frequency, calculating the difference value between the active wake-up frequency and the average passive wake-up frequency for the target time period meeting the condition so as to measure the redundancy degree of active wake-up; calculating the proportion of the difference value in the number of active wakeup times so as to reflect the necessity of active wakeup in the target time period; the method comprises the following steps of: obtaining a proportion of a preset active wake-up interval, multiplying the proportion by the preset active wake-up interval to obtain an adjustment value, and finally adding the adjustment value and the preset active wake-up interval to obtain a new and longer final wake-up interval so as to reduce unnecessary active wake-up times and reduce power consumption.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of Internet of Things, and in particular to a method for dynamically adjusting the active wake-up interval of a terminal device and a computer-readable storage medium. Background Art

[0002] As we all know, to facilitate the batch operation and maintenance of video surveillance equipment, manufacturers typically build an operation and maintenance management platform to support the batch issuance of upgrade and control commands, as well as the collection of device operating status. Because video surveillance equipment may be deployed in an intranet environment, the operation and maintenance management platform is sometimes unable to actively connect to the equipment. Furthermore, equipment does not stay online for long periods of time and has irregular startup times. Therefore, video surveillance equipment must actively connect to the operation and maintenance management platform and report its operating status during operation. After receiving the device's operating status, the operation and maintenance management platform uses the current connection to query the database for pending commands and sends the command along with the status response to the device, allowing the device to perform the corresponding operation, such as a control action or device upgrade.

[0003] Currently, the widespread use of low-power video surveillance devices, especially battery cameras, has led to unique power supply limitations that place higher demands on their operational performance. Battery cameras are powered by batteries, which have very limited capacity compared to traditional power-supply devices. Therefore, to extend their operating time, battery cameras are designed to operate only in specific scenarios. Specifically, when a battery camera detects an approaching person, it is passively awakened via sensors, quickly initiating video capture, encoding, and recording. When a client requests a remote connection, the network chip passively awakens the camera and quickly initiates video capture and encoding. Furthermore, the device actively awakens when it needs to report its operating status to the cloud server.

[0004] Generally speaking, to achieve regular status monitoring, low-power video surveillance devices typically wake up at fixed intervals and report their operating status to the operation and maintenance management platform. While this approach is simple to implement, the devices must wake up regularly and actively connect to the cloud server. Frequent wake-up and communication increase power consumption, thereby limiting battery life. Summary of the Invention

[0005] In view of this, the present invention proposes a method and computer-readable storage medium for dynamically adjusting the active wake-up interval of a terminal device, aiming to overcome the problem that existing terminal devices report their operating status by actively waking up at fixed intervals, resulting in rapid power consumption and limited battery life.

[0006] In order to solve the above problems, the present invention adopts the following technical solutions:

[0007] In a first aspect, the present invention provides a method for dynamically adjusting the active wake-up interval of a terminal device, which is applied to a cloud server that establishes a network connection with the terminal device, comprising:

[0008] Obtaining a preset active wake-up interval of the terminal device, and calculating the number of active wake-ups of the terminal device in each preset time period according to the preset active wake-up interval;

[0009] Obtaining an average number of passive wake-ups of the terminal device in each preset time period within a preset cycle, so as to filter out a target time period and obtain an average number of passive wake-ups corresponding to the target time period; wherein the time span of the preset cycle is greater than the sum of the time spans of all the preset time periods;

[0010] If the average number of passive wake-ups in the target time period is less than the number of active wake-ups, then based on the filtered target time period, obtain the difference between the corresponding number of active wake-ups and the average number of passive wake-ups, and calculate the ratio of the difference to the number of active wake-ups, and the product of the ratio and the preset active wake-up interval;

[0011] The product and the preset active wake-up interval are added, and the sum obtained is used as the final wake-up interval of the terminal device in the target time period, so that the terminal device can subsequently actively establish network communication with the cloud server according to the final wake-up interval in the target time period.

[0012] Furthermore, the target time period is screened according to the average number of passive awakening times in each of the preset time periods.

[0013] Furthermore, after obtaining the average number of passive wake-ups corresponding to the target time period, it also includes: if the average number of passive wake-ups in the target time period is greater than or equal to the number of active wake-ups, then keeping the preset active wake-up interval unchanged, so that the terminal device will continue to actively establish network communication with the cloud server according to the preset active wake-up interval during the target time period.

[0014] Furthermore, the preset period is at least one day, and the preset time period is at least one hour.

[0015] Furthermore, the preset period is three days, and the preset time period is one hour;

[0016] The obtaining of the average number of passive awakening times of the terminal device in each preset time period within a preset cycle includes:

[0017] Receiving, via the network connection, time information of the passive wakeup sent by the terminal device;

[0018] The time information received each day is divided into 24 groups with one-hour time intervals, and the total number of passive wake-ups in each group in the last three days is counted;

[0019] According to the total number of passive awakenings of each group, the average number of passive awakenings of each group of the terminal devices in the last three days is calculated.

[0020] Furthermore, after counting the total number of passive awakenings of each group in the last three days, the method further includes: drawing a histogram according to the total number of passive awakenings of each group in the last three days, so as to distinguish between high-frequency passive awakening periods and long-term sleep periods of the terminal device.

[0021] Furthermore, the time information received every day is time information received every day and not statistically processed.

[0022] In a second aspect, the present invention further proposes a method for dynamically adjusting the active wake-up interval of a terminal device, which is applied to the terminal device that establishes a network connection with a cloud server, comprising:

[0023] Actively reporting the operating status to the cloud server via the network connection at a preset active wake-up interval and simultaneously sending the passive wake-up time information;

[0024] When the final wake-up interval of the target time period sent by the cloud server is received through the network connection, the final wake-up interval is used to replace the preset active wake-up interval corresponding to the target time period, so as to subsequently actively establish network communication with the cloud server according to the final wake-up interval during the target time period; wherein, the final wake-up interval of the target time period is determined based on the method of dynamically adjusting the active wake-up interval of the terminal device as described in the first aspect.

[0025] Furthermore, after actively establishing network communication with the cloud server according to the final wake-up interval during the target time period, the subsequent process also includes: when the terminal device determines that a preset passive trigger condition is met, the terminal device enters a passive wake-up state; wherein, the preset passive trigger condition includes the terminal device detecting a preset passive trigger event or the network chip of the terminal device detecting an external wake-up signal.

[0026] In a third aspect, the present invention further proposes a computer-readable storage medium, which stores computer-executable instructions. When the computer-executable instructions are executed by a processor, the steps of the method for dynamically adjusting the active wake-up interval of the terminal device as described in the first aspect are implemented.

[0027] Compared with the prior art, the present invention provides a method and computer-readable storage medium for dynamically adjusting the active wake-up interval of a terminal device. The method uses the terminal device's current preset active wake-up interval and the number of active wake-ups during each preset time period as a benchmark, combined with the average number of passive wake-ups during each preset time period within a preset cycle, to flexibly determine a target time period. If the average number of passive wake-ups during a target time period is less than the number of active wake-ups, it indicates that active wake-ups during that target time period are too frequent, indicating room for further energy consumption optimization. In this case, for eligible target time periods, the difference between the number of active wake-ups and the average number of passive wake-ups is calculated to measure the degree of redundancy of active wake-ups. The ratio of this difference to the total number of active wake-ups is then calculated to reflect the necessity of active wake-ups during that target time period. This ratio is then multiplied by the preset active wake-up interval to obtain an adjustment value. Finally, the adjustment value is added to the preset active wake-up interval to obtain a new, longer final wake-up interval. Subsequently, by actively waking up the terminal device during the target time period according to the final wake-up interval, unnecessary active wake-ups can be reduced, thereby reducing power consumption and effectively improving battery life. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] Various other advantages and benefits will become apparent to those skilled in the art upon reading the detailed description of the preferred embodiment below. The accompanying drawings are for illustration purposes only and are not to be considered as limiting the present invention. The same reference symbols are used throughout the drawings to represent the same components. In the drawings:

[0029] Figure 1 A flowchart of an embodiment of a method for dynamically adjusting the active wake-up interval of a terminal device provided by the present invention;

[0030] Figure 2 A flowchart of another embodiment of the method for dynamically adjusting the active wake-up interval of a terminal device provided by the present invention;

[0031] Figure 3 A flowchart of another embodiment of the method for dynamically adjusting the active wake-up interval of a terminal device provided by the present invention;

[0032] Figure 4 It is a schematic diagram of the structure of an electronic device in a hardware operating environment involved in an embodiment of the present invention. DETAILED DESCRIPTION

[0033] The following will be combined with the accompanying drawings to clearly and completely describe the solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making any creative efforts are within the scope of protection of the present invention.

[0034] It should be noted that if the embodiments of the present invention involve directional indications (such as up, down, left, right, front, back, etc.), the directional indications are only used to explain the relative position relationship, movement status, etc. between the various components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indications will also change accordingly.

[0035] In addition, if there are descriptions involving "first", "second", etc. in the embodiments of the present invention, the descriptions of "first", "second", etc. are only for descriptive purposes and cannot be understood as indicating or suggesting their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of such features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in this field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such a combination of technical solutions does not exist and is not within the scope of protection required by the present invention.

[0036] It should be noted that terminal devices (such as battery cameras), cloud servers, and intermediate communication facilities together constitute the Internet of Things communication network. The cloud server, also known as the operation and maintenance management platform, is responsible for performing operation and maintenance management tasks such as status monitoring, command issuance, and data aggregation for multiple terminal devices in the Internet of Things communication network that establish communication with it. The method for dynamically adjusting the active wake-up interval of terminal devices provided by the present invention can not only perform independent dynamic adjustment for a single device, but also support batch dynamic management of multiple devices. The specific adjustment strategy is determined based on factors such as the status of the terminal device, network conditions, and application requirements.

[0037] See also Figure 1 As shown, it is a flow chart of an embodiment of a method for dynamically adjusting the active wake-up interval of a terminal device provided by the present invention.

[0038] In this embodiment, the method for dynamically adjusting the active wake-up interval of a terminal device is applied to a cloud server that establishes a network connection with the terminal device, and includes:

[0039] Step S100: obtaining a preset active wake-up interval of the terminal device, and calculating the number of active wake-ups of the terminal device in each preset time period according to the preset active wake-up interval.

[0040] Specifically, the preset active wake-up interval of the terminal device is usually fixed, and the corresponding interval time length generally ranges from a few seconds to a few minutes. By adjusting the preset active wake-up interval, the active wake-up frequency of the terminal device can be controlled, thereby affecting the power consumption of the device. The longer the preset active wake-up interval, the fewer active wake-ups the terminal device will have per unit time, and the slower the rate of energy consumption reduction will be. However, this may affect the response speed of the terminal device or the frequency of data collection. Therefore, reasonably setting the interval time size corresponding to the preset active wake-up interval will help achieve a balance between the real-time performance and energy-saving requirements of the terminal device. In addition, the number of active wake-ups in the preset time period is equal to the total length of the preset time period divided by the preset active wake-up interval, and the integer part of the quotient is the required number of active wake-ups.

[0041] Step S200: obtaining an average number of passive awakenings of the terminal device in each preset time period within a preset cycle, so as to filter out a target time period and obtain an average number of passive awakenings corresponding to the target time period.

[0042] The time span of the preset period is greater than the sum of the time spans of all the preset time periods.

[0043] Specifically, the preset period is a longer time interval, which is used to count and analyze the passive wake-up of the terminal device over a longer period of time. The preset period is a shorter period of time, which is used to refine the statistics of the number of passive wake-ups. The average number of passive wake-ups refers to the average of the total number of passive wake-ups in each preset period within the preset period, which is used to reflect the frequency of passive wake-ups of the terminal device in each preset period within the preset period. In actual use, the terminal device is often passively awakened due to external events (such as someone approaching, remote request, etc.). By calculating the average number of passive wake-ups, the impact of a single abnormal passive wake-up on the overall statistical results can be effectively reduced, thereby more accurately reflecting the passive wake-up rules of the terminal device in different preset time periods. Based on the above calculation results, the target time periods that meet specific conditions can be screened out, such as time periods with low passive wake-up frequencies, so as to carry out targeted optimization or processing of active wake-up intervals.

[0044] Step S310: If the average number of passive wake-ups in the target time period is less than the number of active wake-ups, then based on the filtered target time period, obtain the difference between the corresponding active wake-ups and the average passive wake-ups, and calculate the ratio of the difference to the active wake-ups, as well as the product of the ratio and the preset active wake-up interval.

[0045] Specifically, by comparing the average number of passive wakeups with the number of active wakeups during the target period, quantifying the difference and their relative proportion, and combining this with the preset active wakeup interval, a comprehensive indicator can be formed. This comprehensive indicator is used to quantify the degree of excessive active wakeups, allowing for subsequent calculation of reasonable adjustment values ​​based on the preset active wakeup interval, providing a basis for optimizing the active wakeup interval and reducing energy consumption.

[0046] Step S400: Add the product and the preset active wake-up interval, and use the sum as the final wake-up interval of the terminal device in the target time period, so that the terminal device can subsequently actively establish network communication with the cloud server according to the final wake-up interval in the target time period.

[0047] Specifically, the final wake-up interval can guide the terminal device to actively establish network communication with the cloud server at a more reasonable wake-up interval during the target period, thereby realizing intelligent optimization of the active wake-up strategy and balancing communication efficiency and energy consumption control.

[0048] Compared to the prior art, the method for dynamically adjusting the active wake-up interval of a terminal device in an embodiment of the present invention uses the terminal device's current preset active wake-up interval and the number of active wake-ups in each preset time period as a benchmark, combined with the average number of passive wake-ups in each preset time period within a preset cycle, to flexibly determine the target time period. If the average number of passive wake-ups in the target time period is less than the number of active wake-ups, it indicates that the active wake-ups in that target time period are too frequent, and there is room for further energy consumption optimization. At this point, for eligible target time periods, the difference between the number of active wake-ups and the average number of passive wake-ups is calculated to measure the redundancy of active wake-ups; the ratio of this difference to the total number of active wake-ups is calculated to reflect the necessity of active wake-ups in that target time period; this ratio is then multiplied by the preset active wake-up interval to obtain an adjustment value, and finally, the adjustment value is added to the preset active wake-up interval to obtain a new, longer final wake-up interval. Subsequently, by actively waking up the terminal device according to this final wake-up interval during the target time period, the number of unnecessary active wake-ups can be reduced, thereby reducing power consumption and effectively improving battery life.

[0049] In some embodiments of the present application, the target time period is screened based on the average number of passive awakenings in each of the preset time periods.

[0050] Specifically, by comparing the average number of passive awakenings in different preset time periods, it is possible to identify preset time periods with higher or lower passive awakening frequencies, thereby determining target time periods that require special attention. In this embodiment, the target time period is preferably a preset time period with a relatively low passive awakening frequency, because this preset time period has room for further optimization of energy consumption.

[0051] In some embodiments of the present application, after step S200, the following steps are further included:

[0052] Step S320: If the average number of passive wake-up times in the target period is greater than or equal to the number of active wake-up times, the preset active wake-up interval is kept unchanged so that the terminal device can continue to actively establish network communication with the cloud server according to the preset active wake-up interval during the target period.

[0053] Specifically, if the average number of passive wakeups during the target period is greater than or equal to the number of active wakeups, this indicates that the terminal device's passive wakeup frequency during the target period is comparable to or even higher than its active wakeup frequency. Maintaining the preset active wakeup interval helps avoid increased energy consumption caused by excessively frequent active wakeups, further optimizing energy consumption and ensuring stable operation of the terminal device. Generally speaking, a preset period where the average number of passive wakeups is greater than or equal to the number of active wakeups will not be selected as the target period, as the active wakeup frequency during this preset period is already at a reasonable level and does not require further analysis or dynamic adjustment.

[0054] It should be noted that there is no particular order between step S310 and step S320 , and either one can be performed.

[0055] In some embodiments of the present application, the preset period is at least one day, and the preset time period is at least one hour.

[0056] Specifically, the preset cycle can be one day (24 hours), three days or seven days, etc., and the preset time period can be one hour, two hours or eight hours, etc., which can be reasonably set according to factors such as the usage scenario of the terminal device, network communication requirements, energy consumption budget, and frequency of reporting operating status.

[0057] See also Figure 2 As shown, it is a flow chart of another embodiment of the method for dynamically adjusting the active wake-up interval of the terminal device provided by the present invention. It should be noted that the preset period in this embodiment is three days, and the preset time period is one hour.

[0058] This embodiment, based on an embodiment of the method for dynamically adjusting the active wake-up interval of a terminal device, describes in detail the step of obtaining the average number of passive wake-ups of the terminal device in each preset time period within a preset cycle.

[0059] In this embodiment, obtaining the average number of passive awakening times of the terminal device in each preset time period within a preset period in step S200 includes:

[0060] Step S210: receiving the passive wake-up time information sent by the terminal device through the network connection.

[0061] Specifically, the time information can be recorded in the form of a timestamp to facilitate the terminal device to send the specific time of each passive wake-up in real time; at the same time, the time information can also be regularly (such as once a day) organized into a passive wake-up schedule and uploaded centrally to facilitate the cloud server to perform statistical analysis and optimize the active wake-up strategy.

[0062] Step S220: Divide the time information received each day and not statistically processed into 24 groups at one-hour time intervals, and count the total number of passive wake-ups in each group in the last three days.

[0063] Specifically, assuming a preset period of three days and a preset time period of one hour, the cloud server first collects all passive wakeup time information for each day that has not been statistically processed. Next, it divides the 24-hour day into 24 preset time periods of one hour each, which can be labeled as 00:00-01:00, 01:00-02:00, ..., 23:00-24:00, or 1:00, 2:00, ..., 24:00, etc. The cloud server then categorizes the time information collected over the past three days into the corresponding preset time periods. For example, passive wakeup events from 8:00 to 9:00 on the first day are categorized into the 9:00 period, and passive wakeup events from 14:00 to 15:00 on the second day are categorized into the 15:00 period. Finally, the total number of passive wakeups in each preset time period over the past three days is counted, generating 24 sets of statistical data. This statistical data can be used to analyze the overall passive wakeup distribution of terminal devices across different preset time periods, providing a basis for optimizing active wakeup strategies and energy consumption management.

[0064] Step S231: Draw a histogram based on the total number of passive awakenings of each group in the last three days, so as to distinguish between high-frequency passive awakening periods and long-term sleep periods of the terminal device.

[0065] Specifically, the horizontal axis of the histogram represents the preset time period (such as the 0 o'clock period, the 1 o'clock period... the 24 o'clock period), and the vertical axis represents the total number of passive wake-ups. The total number of passive wake-ups in each preset time period is plotted on the histogram as the height of the column. Then, through the difference in column heights, the passive wake-up frequency of each preset time period can be intuitively reflected, so that the patterns and characteristics of passive wake-up can be quickly identified. Preset time periods with significantly higher column heights indicate that the terminal device is frequently passively awakened during these preset time periods, which may correspond to peak business activities or frequent external events. The preset time period can be classified as a high-frequency passive wake-up period; while preset time periods with lower column heights or close to zero indicate that the terminal device is rarely or not passively awakened during these preset time periods and is in a dormant state. The preset time period can be classified as a long-term dormant period.

[0066] Step S232: Calculate the average number of passive awakenings of each group of the terminal devices in the last three days based on the total number of passive awakenings of each group.

[0067] Specifically, the average number of passive wakeups for any group is equal to the total number of passive wakeups during the last three days of the corresponding preset period divided by three. Calculating the average number of passive wakeups effectively reduces the impact of single-day abnormal data on overall analysis, making the data more stable and reliable in reflecting the passive wakeup patterns of terminal devices during different preset periods, helping to distinguish between periods of high-frequency passive wakeups and long periods of sleep.

[0068] It should be noted that there is no particular order between step S231 and step S232, and either one can be performed.

[0069] The method of dynamically adjusting the active wake-up interval of a terminal device in this embodiment realizes dynamic adjustment of the preset active wake-up interval by analyzing the preset active wake-up interval and actual passive wake-up information of the terminal device. It can intelligently extend the active wake-up interval during periods with fewer passive wake-ups, avoiding the frequent wake-up and high energy consumption problems caused by active wake-up at fixed time intervals, thereby effectively reducing power consumption and extending the battery life of the terminal device.

[0070] The following are embodiments of the method for dynamically adjusting the active wake-up interval of a terminal device, as provided by the present invention, and applied to a terminal device. The embodiments of the method for dynamically adjusting the active wake-up interval of a terminal device, as applied to a terminal device, are based on the same concept as the aforementioned embodiments of the method for dynamically adjusting the active wake-up interval of a terminal device, as applied to a cloud server. For details not fully described in the embodiments of the method for dynamically adjusting the active wake-up interval of a terminal device, reference can be made to the aforementioned embodiments of the method for dynamically adjusting the active wake-up interval of a terminal device, as applied to a cloud server.

[0071] See also Figure 3 As shown, it is a flow chart of another embodiment of the method for dynamically adjusting the active wake-up interval of the terminal device provided by the present invention.

[0072] In this embodiment, the method for dynamically adjusting the active wake-up interval of a terminal device is applied to the terminal device that establishes a network connection with a cloud server, and includes:

[0073] Step S500: Actively reporting the operating status to the cloud server via the network connection with a preset active wake-up interval as a period, and synchronously sending the passive wake-up time information.

[0074] Specifically, when the terminal device reports its operating status to the cloud server, it will simultaneously upload the passive wake-up time information. In other words, the passive wake-up time information is not reported in real time, but is transmitted in batches during active wake-up. This reporting strategy can significantly reduce the frequency of communication, reduce wireless transmission bandwidth occupancy and terminal device power consumption; at the same time, through periodic centralized reporting, it can also ensure the integrity and timing consistency of time information, making it easier for the cloud server to carry out efficient statistical analysis and active wake-up strategy optimization. Of course, for application scenarios with higher real-time requirements, an instant reporting solution for passive wake-up time information can also be selected to achieve more detailed status monitoring and rapid response, but this will increase communication load and energy consumption overhead. In actual applications, the reporting method of passive wake-up time information can be flexibly configured according to specific business needs and system resource limitations to achieve the best balance between energy efficiency and data real-time performance.

[0075] Step S600: When the final wake-up interval of the target time period sent by the cloud server is received through the network connection, the final wake-up interval is used to replace the preset active wake-up interval corresponding to the target time period, so as to actively establish network communication with the cloud server according to the final wake-up interval during the target time period.

[0076] The final wake-up interval of the target period is determined based on the method for dynamically adjusting the active wake-up interval of the terminal device applied to the cloud server as described above.

[0077] Specifically, the dynamic replacement mechanism for preset active wake-up intervals enables terminal devices to adopt differentiated active wake-up frequencies at different times, effectively balancing energy conservation and performance requirements. For example, during low-peak business hours, the active wake-up interval can be appropriately extended to reduce communication frequency and power consumption; while during peak business hours, the active wake-up interval can be appropriately shortened to improve the real-time nature of data interaction and system responsiveness.

[0078] The method of dynamically adjusting the active wake-up interval of a terminal device in this embodiment is applied to a terminal device. The terminal device achieves closed-loop collaboration with a cloud server, not only proactively reporting its operating status and passive wake-up time information to the cloud server, but also promptly executing active wake-up interval adjustment instructions issued by the cloud server, forming an effective feedback mechanism. Based on this mechanism, the terminal device dynamically adjusts the preset active wake-up interval during the target time period, flexibly adjusting the active wake-up frequency based on actual application scenarios in different time periods, thereby significantly improving energy efficiency.

[0079] In some embodiments of the present application, after step S600, the following steps are further included:

[0080] Step S700: When the terminal device determines that a preset passive triggering condition is met, the terminal device enters a passive awakening state.

[0081] The preset passive trigger condition includes the terminal device detecting a preset passive trigger event or the network chip of the terminal device detecting an external wake-up signal.

[0082] Specifically, preset passive trigger events refer to certain predefined events or state changes (such as sensor data anomalies, user operations, system alarms, etc.), which will actively trigger the terminal device to establish network communication. The network chip detects an external wake-up signal, which means that the client, such as a mobile phone app, sends a wake-up command to the terminal device through a local area network or other communication methods. The wake-up command is received and recognized by the network chip, thereby triggering the terminal device to enter a passive wake-up state to respond to the operation request of the mobile phone app. The setting of the preset passive trigger condition ensures that the terminal device can be activated in time when it detects a change in the internal state or receives an external wake-up command, completes the local response operation or the interaction with the client in the local area network, thereby improving the response efficiency of the terminal device and the user experience.

[0083] This embodiment's method for dynamically adjusting the active wakeup interval of a terminal device enables the terminal device to immediately enter a passive wakeup state at critical moments by presetting passive trigger conditions, ensuring timely responses to important events. Even if the preset active wakeup interval is dynamically adjusted, the sensitivity and response speed of the passive wakeup state remain unchanged, thereby ensuring a rapid response while effectively conserving device resources.

[0084] The following uses the interaction process between a terminal device, such as a battery-powered camera, and a cloud server as an example to explain in detail the specific implementation steps of the method for dynamically adjusting the active wake-up interval of the terminal device:

[0085] 1. The terminal device records the time information of passive wake-up in the past day and organizes it into a passive wake-up schedule. When reporting the operating status to the cloud server, the passive wake-up schedule is uploaded to the cloud server simultaneously.

[0086] 2. The cloud server receives the passive wakeup schedule within the most recent preset period sent by the terminal device (if the passive wakeup schedule is reported once a day, then if the preset period is 3 days, the passive wakeup schedule within the most recent preset period includes three daily reported passive wakeup schedules) and regularly analyzes them. The specific analysis process is as follows:

[0087] 2.1. Count the time information of passive wakeups that have not been analyzed in the passive wakeup schedule, and remove the minutes from each passive wakeup time and add them up by hour, that is, count the number of passive wakeups in each hour in the passive wakeup schedule;

[0088] 2.2. During the most recent preset period, accumulate the number of passive wakeups during the same preset time period (set the preset time period to one hour) and divide it by the preset period to obtain the average number of passive wakeups during the preset period (for example, if the preset period is three days and the terminal device is passively awakened three times during the 9:00 period on the first day, four times on the second day, and five times on the third day, then the average number of passive wakeups during the 9:00 period during the last three days = (3 + 4 + 5) times / 3 = 4 times);

[0089] 2.3. The total number of passive wake-up events counted per hour is aggregated into a histogram to visually distinguish between high-frequency passive wake-up periods and long-term sleep periods of terminal devices. It should be noted that the cloud server will insert the most recently analyzed time information into the platform database for storage, so that the next statistical analysis will skip the passive wake-up time information for the previously analyzed period;

[0090] 2.4. Based on the current fixed preset active wake-up interval, calculate the number of active wake-ups in each preset period (for example, the preset active wake-up interval is 60 seconds, the preset period is one hour, and there are 3600 seconds in one hour, then the number of active wake-ups in each preset period = 3600 / 60 = 60 times);

[0091] 2.5. If the 9 o'clock period is the target period and the average number of passive wake-ups during the 9 o'clock period is less than the number of active wake-ups, the final wake-up interval is calculated based on the average number of passive wake-ups and the number of active wake-ups during the 9 o'clock period, that is, the final wake-up interval = [(active wake-up times - average number of passive wake-ups) / active wake-up times] X preset active wake-up interval + preset active wake-up interval; for example: [(60 times - 4 times) / 60 times] X 60 seconds + 60 seconds = 116 seconds, that is, the final wake-up interval of the terminal device during the 9 o'clock period is 116 seconds, and the preset active wake-up interval (actual sleep interval time) of the terminal device can be updated to 116 seconds. It should be noted that once the terminal device increases the actual sleep time, it is equivalent to reducing the working time, that is, reducing battery power consumption and increasing battery life;

[0092] 2.6. When the average number of passive wake-up attempts of a terminal device during a preset period exceeds the number of active wake-up attempts (i.e., 60 times), the device will be reset to 60 seconds, maintaining the preset active wake-up interval. This will prevent the terminal device from waking up too many times, which could lead to excessive battery drain.

[0093] 3. When the terminal device reports its operating status, the cloud server returns the final wake-up interval of the next preset cycle to the terminal device, which is the actual active wake-up interval for subsequent reporting of the operating status;

[0094] 4. After receiving the final wake-up interval, the terminal device remains dormant for the corresponding time interval and does not actively wake up. It should be emphasized that the final wake-up interval only controls the active wake-up interval and does not affect passive wake-up.

[0095] By using this method of dynamically adjusting the active wake-up interval of the terminal device, the terminal device can increase the sleep time and reduce the working time, that is, reduce battery power consumption and increase the battery life.

[0096] The following are embodiments of electronic devices provided by the present invention. These embodiments of the electronic devices share the same concept as the aforementioned embodiments of the method for dynamically adjusting the active wake-up interval of a terminal device. For details not fully described in the embodiments of the electronic devices, reference can be made to the aforementioned embodiments of the method for dynamically adjusting the active wake-up interval of a terminal device.

[0097] See also Figure 4 As shown, it is a structural diagram of an electronic device in a hardware operating environment involved in an embodiment of the present invention.

[0098] In this embodiment, an electronic device is provided, wherein the electronic device is an embedded device, and the embedded device includes:

[0099] Memory 1005, for storing program instructions; and

[0100] Processor 1001 is configured to execute the program instructions to implement the steps of the method for dynamically adjusting the active wake-up interval of the terminal device as described above.

[0101] The electronic device of the embodiment of the present invention can be a computing device such as a desktop computer, a notebook, a palmtop computer, and a server. Figure 4 As shown, the electronic device may include: a processor 1001 (such as a CPU), a network interface 1004, a user interface 1003, a memory 1005 and a communication bus 1002. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit, such as a keyboard (Keyboard), and the user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may optionally be a storage device independent of the aforementioned processor 1001.

[0102] Those skilled in the art will understand that Figure 4The electronic device structure shown in the figure does not constitute a limitation to the electronic device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0103] like Figure 4 As shown, the memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module and a computer program.

[0104] exist Figure 4 In the electronic device shown, the network interface 1004 is mainly used to connect to the background server and communicate data with the background server; the user interface 1003 is mainly used to connect to the client (user end) and communicate data with the client; and the processor 1001 can be used to call the computer program stored in the memory 1005. When the computer program is called and executed by the processor 1001, the steps of the above-mentioned method of dynamically adjusting the active wake-up interval of the terminal device are implemented.

[0105] The following are embodiments of the computer-readable storage medium provided by the present invention. These embodiments of the computer-readable storage medium share the same concept as the aforementioned methods for dynamically adjusting the active wake-up interval of a terminal device and the aforementioned embodiments of an electronic device. For details not fully described in the embodiments of the computer-readable storage medium, reference can be made to the aforementioned methods for dynamically adjusting the active wake-up interval of a terminal device and the aforementioned embodiments of an electronic device.

[0106] In this embodiment, a computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, implement the steps of the method for dynamically adjusting the active wake-up interval of a terminal device as described above.

[0107] Since the electronic device and computer-readable storage medium of the present invention can both implement the steps of the above-mentioned method for dynamically adjusting the active wake-up interval of the terminal device, they at least have all the beneficial effects brought about by the technical solutions of the above-mentioned step embodiments of the method for dynamically adjusting the active wake-up interval of the terminal device, and will not be described one by one here.

[0108] The above description is only a partial or preferred embodiment of the present invention. Neither the text nor the drawings can limit the scope of protection of the present invention. Any equivalent structural transformation made by using the contents of the present invention specification and drawings under the overall concept of the present invention, or direct / indirect application in other related technical fields, is included in the scope of protection of the present invention.

[0109] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD ROM, optical storage, etc.) containing computer-usable program code.

[0110] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 a process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0111] These computer program instructions may also be stored in a computer readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 a process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.

[0112] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing the instructions executed on the computer or other programmable device for implementing the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0113] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and not to limit it. Although the present invention has been described in detail with reference to the above embodiments, ordinary technicians in the field should understand that the specific implementation methods of the present invention can still be modified or replaced by equivalents. Any modification or equivalent replacement that does not depart from the spirit and scope of the present invention should be covered by the scope of protection of the claims of the present invention.

Claims

1. A method for dynamically adjusting the active wake-up interval of a terminal device, applied to a cloud server that establishes a network connection with the terminal device, characterized in that: include: Obtaining a preset active wake-up interval of the terminal device, and calculating the number of active wake-ups of the terminal device in each preset time period according to the preset active wake-up interval; Obtaining an average number of passive wake-ups of the terminal device in each preset time period within a preset cycle, so as to filter out a target time period and obtain an average number of passive wake-ups corresponding to the target time period; wherein the time span of the preset cycle is greater than the sum of the time spans of all the preset time periods; If the average number of passive wake-ups in the target time period is less than the number of active wake-ups, then based on the filtered target time period, obtain the difference between the corresponding number of active wake-ups and the average number of passive wake-ups, and calculate the ratio of the difference to the number of active wake-ups, and the product of the ratio and the preset active wake-up interval; The product and the preset active wake-up interval are added, and the sum obtained is used as the final wake-up interval of the terminal device in the target time period, so that the terminal device can subsequently actively establish network communication with the cloud server according to the final wake-up interval in the target time period.

2. The method for dynamically adjusting the active wake-up interval of a terminal device according to claim 1, characterized in that: The target time period is screened according to the average number of passive awakening times in each of the preset time periods.

3. The method for dynamically adjusting the active wake-up interval of a terminal device according to claim 1, characterized in that: After obtaining the average number of passive wake-ups corresponding to the target time period, it also includes: if the average number of passive wake-ups in the target time period is greater than or equal to the number of active wake-ups, keeping the preset active wake-up interval unchanged, so that the terminal device will continue to actively establish network communication with the cloud server according to the preset active wake-up interval during the target time period.

4. The method for dynamically adjusting the active wake-up interval of a terminal device according to claim 1, characterized in that: The preset period is at least one day, and the preset time period is at least one hour.

5. The method for dynamically adjusting the active wake-up interval of a terminal device according to claim 4, characterized in that: The preset period is three days, and the preset time period is one hour; The obtaining of the average number of passive awakening times of the terminal device in each preset time period within a preset cycle includes: Receiving, via the network connection, time information of the passive wakeup sent by the terminal device; The time information received each day is divided into 24 groups with one-hour time intervals, and the total number of passive wake-ups in each group in the last three days is counted; According to the total number of passive awakenings of each group, the average number of passive awakenings of each group of the terminal devices in the last three days is calculated.

6. The method for dynamically adjusting the active wake-up interval of a terminal device according to claim 5, characterized in that: After counting the total number of passive awakenings of each group in the last three days, the method further includes: drawing a histogram according to the total number of passive awakenings of each group in the last three days, so as to distinguish between a high-frequency passive awakening period and a long-term sleep period of the terminal device.

7. The method for dynamically adjusting the active wake-up interval of a terminal device according to claim 5, characterized in that: The time information received every day is time information received every day and not statistically processed.

8. A method for dynamically adjusting the active wake-up interval of a terminal device, applied to the terminal device that establishes a network connection with a cloud server, characterized in that: include: Actively reporting the operating status to the cloud server via the network connection at a preset active wake-up interval and simultaneously sending the passive wake-up time information; When the final wake-up interval of the target time period sent by the cloud server is received through the network connection, the final wake-up interval is used to replace the preset active wake-up interval corresponding to the target time period, so as to subsequently actively establish network communication with the cloud server according to the final wake-up interval during the target time period; wherein, the final wake-up interval of the target time period is determined based on the method for dynamically adjusting the active wake-up interval of the terminal device as described in any one of claims 1 to 7.

9. The method for dynamically adjusting the active wake-up interval of a terminal device according to claim 8, characterized in that: The subsequent process, after actively establishing network communication with the cloud server according to the final wake-up interval during the target period, also includes: when the terminal device determines that a preset passive trigger condition is met, the terminal device enters a passive wake-up state; wherein the preset passive trigger condition includes the terminal device detecting a preset passive trigger event or the network chip of the terminal device detecting an external wake-up signal.

10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, the steps of the method for dynamically adjusting the active wake-up interval of a terminal device according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Communication method and equipment based on wakeup receiver

    CN108093462A

  • Terminal wake-up period adjusting method and device, storage medium and electronic equipment

    CN110996380A

  • Wake-up signal configuration method and device, wake-up method and device, and storage medium

    CN111699753A

  • Wireless sensor network node awakening system and method based on path finding algorithm

    CN112055402A

  • Low-power-consumption monitoring system based on scene self-adaptive dynamic time-sharing strategy

    CN117692767A