System sleep control method and device, equipment, medium and program product

By responding to service sleep instructions in IoT devices, processing the occupation of target resources and business operation status, the stability problem of multi-service operation in low-power mode is solved, and the high stability of the device in low-power mode is achieved and low power operation.

CN119449504APending Publication Date: 2025-02-14SHENZHEN YINGFENG INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411875204.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-19
Publication Date
2025-02-14

AI Technical Summary

Technical Problem

In the low-power mode of IoT devices, when multiple low-power services are running at the same time, each service has different execution time. Directly entering a dormant state may cause other running services to be forced to be interrupted, causing system operation failures and affecting the operation of the device stability.

Method used

By responding to the service sleep instruction, the resources to be released are processed based on the occupation of the target resource, and the wake-up time of the wake-up source is determined based on the operating status of the current service, ending the operation process of the current service, thereby uniformly coordinating and managing the low-power consumption mode at the system level. The operation status of each business under the

Benefits of technology

It effectively improves the operational stability of IoT devices in low-power mode, ensures the smooth execution of various services and the reasonable release of resources, and reduces the power consumption of equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119449504A_ABST
    Figure CN119449504A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of Internet of Things, and provides a system dormancy control method, device and equipment, a medium and a program product, the method comprises the following steps: processing a to-be-released resource based on an occupation condition of a target resource in response to a service dormancy instruction; and according to the running state of the current service, determining the wake-up time of the current wake-up source, and ending the running process of the current service. According to the invention, on the system level, unified coordination and management of the operation state of each service operated in the low-power-consumption mode are realized, so that the operation stability of the Internet of Things equipment in the low-power-consumption mode is effectively improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of Internet of Things, and in particular to a system sleep control method, device, equipment, medium and program product. Background Art

[0002] When an IoT device is in low-power mode, in order to further reduce the power consumption of the device, the system is usually put into a dormant state. In this case, in order to maintain the normal operation of the IoT device, it is often necessary to use a wake-up source to regularly wake up the dormant system to execute some necessary low-power services, and then put the system back into a dormant state when the low-power services finish running.

[0003] However, when there are multiple low-power services running simultaneously in the system, since the execution time of each low-power service is different, when one of the low-power services ends its current operation, if the system is directly put into sleep mode, other running low-power services will be forcibly interrupted, which may cause system operation failure. This problem has a great impact on the operation stability of IoT devices in low-power mode. Summary of the invention

[0004] Based on this, it is necessary to provide a system sleep control method, device, equipment, medium and program product to address the above technical problems.

[0005] In a first aspect, the present application provides a system sleep control method, which is applied to an Internet of Things device, and the method includes:

[0006] In response to the service dormancy instruction, processing resources to be released based on the occupancy of target resources;

[0007] According to the running state of the current service, the wake-up time of the current wake-up source is determined, and the running process of the current service is terminated.

[0008] In one of the embodiments, processing the resources to be released based on the occupancy of the target resources includes:

[0009] In the case that there are busy resources in the target resources, idle resources in the target resources are determined as the resources to be released, and a release operation is performed on the resources to be released.

[0010] In one of the embodiments, processing the resources to be released based on the occupancy of the target resources further includes:

[0011] In the case that the busy resource does not exist in the target resource, confirm whether there are other running businesses; if there are other running businesses, end the running process of the current business; if there are no other running businesses, output a system sleep instruction containing a system wake-up time parameter.

[0012] In one embodiment, the system sleep instruction is used to instruct the system to enter a sleep state; if there is no other running business, outputting the system sleep instruction including the system wake-up time parameter includes:

[0013] In the absence of other running services, a comparison result of the running time of the current service and a service running time threshold is obtained; based on the comparison result, the system wake-up time parameter is determined; and a system sleep instruction including the system wake-up time parameter is output.

[0014] In one embodiment, the current wake-up source is a wake-up source of the current service; and determining the wake-up time of the current wake-up source according to the running state of the current service includes:

[0015] When the current business has not completed its work tasks, the wake-up time of the current wake-up source is determined based on the completed task amount of the current business; when the current business has completed its work tasks, the wake-up time of the current wake-up source is set according to the system preset value.

[0016] In one embodiment, determining the wake-up time of the current wake-up source based on the amount of completed tasks of the current service includes:

[0017] When the number of associated services of the current wake-up source is at least two, the running time of each associated service is obtained; and the wake-up time of the current wake-up source is determined based on the completed task amount and each running time.

[0018] In a second aspect, the present application further provides a system sleep control device, which is applied to an Internet of Things device, and the device includes:

[0019] A resource release module, used to respond to the service dormancy instruction and process the resources to be released based on the occupancy of the target resources;

[0020] The end operation module is used to determine the wake-up time of the current wake-up source according to the operation status of the current service and end the operation process of the current service.

[0021] In a third aspect, the present application further provides a computer device, wherein the computer device comprises a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the above method when executing the computer program.

[0022] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the steps of the above method when executed by a processor.

[0023] In a fifth aspect, the present application further provides a computer program product, wherein the computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the above method are implemented.

[0024] The above-mentioned system sleep control method, device, equipment, medium and program product, first, respond to the service sleep instruction, and process the resources to be released based on the occupancy of the target resources. Then, according to the running status of the current service, the wake-up time of the current wake-up source is determined, and the running process of the current service is ended. When the current service ends this operation, based on the target resource occupancy of the service, the present application releases the resources in the target resources that are not occupied by other running services, and configures the wake-up time of the wake-up source corresponding to the service according to the task execution status of the current service in this operation. At the system level, unified coordination and management of the running status of each service running in low power consumption mode is achieved, thereby effectively improving the running stability of IoT devices in low power consumption mode. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] Figure 1 A schematic flow chart of a system sleep control method in one embodiment provided in the present application;

[0026] Figure 2 A flowchart of a specific method for confirming whether there are other running services in one embodiment provided by the present application;

[0027] Figure 3 A flowchart of a specific method of outputting a system sleep instruction including a system wake-up time parameter in an embodiment provided by the present application;

[0028] Figure 4 A flowchart of a specific method for determining the wake-up time of the current wake-up source according to the running state of the current service in an embodiment provided by the present application;

[0029] Figure 5 A flowchart of a specific method of determining the wake-up time of the current wake-up source according to the number of associated services of the current wake-up source in an embodiment provided by the present application;

[0030] Figure 6 This is a structural block diagram of a system sleep control device in an embodiment provided in the present application. DETAILED DESCRIPTION

[0031] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0032] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit this application.

[0033] When used herein, the singular forms "a", "an" and "said / the" may also include plural forms, unless the context clearly indicates otherwise. "Multiple" means two or more, unless otherwise clearly and specifically limited. It should also be understood that the terms "include / comprise" or "have" and the like specify the presence of stated features, wholes, steps, operations, components, parts or combinations thereof, but do not exclude the possibility of the presence or addition of one or more other features, wholes, steps, operations, components, parts or combinations thereof. At the same time, the term "and / or" used in this specification includes any and all combinations of the relevant listed items.

[0034] It should be noted that IoT devices, namely IoT (Internet of Things, IoT) devices, refer to physical devices that can connect and communicate through the Internet; the system, namely IoT device system, refers to the entire system composed of the hardware, software, communication protocols, and functional implementation of IoT devices, which may include sensors, actuators, processors, storage, communication modules and other components, and involves the overall functions and performance of IoT devices, but is not limited to the operating system of IoT devices or the software system running on IoT devices.

[0035] In one embodiment, Figure 1 As shown, a system sleep control method is provided, which is applied to an Internet of Things device, and the method includes the following steps:

[0036] Step S110 , in response to the service dormancy instruction, processing the resources to be released based on the occupancy of the target resources.

[0037] Among them, the business hibernation instruction refers to the business hibernation instruction output through the business hibernation management interface after the current business ends its current operation; the target resources refer to the hardware resources, software resources, and other business threads and other resources required for the current business execution; the occupancy of the target resources can be used to characterize whether the target resources required for the current business execution have been occupied by other running businesses; the resources to be released refer to the target resources required for the current business execution that are not occupied by other running businesses. Before the system enters the hibernation state, it is necessary to perform closing and releasing operations on these resources.

[0038] Specifically, the specific manifestation of the current service can be the low-power service currently executed in the system; the number of service sleep management interfaces used to output service sleep instructions can be consistent with the number of low-power services executed in the system (ie, one low-power service corresponds to one service sleep management interface).

[0039] Step S120, determining the wake-up time of the current wake-up source according to the running state of the current service, and ending the running process of the current service.

[0040] Among them, the running status of the current business can be used to characterize the task execution status of the current business during the running process; the current wake-up source refers to the wake-up source of the current business; the wake-up time of the current wake-up source refers to the specific time when the current wake-up source will wake up the system in the dormant state next time.

[0041] Specifically, the task execution status of the current business during its operation can be obtained based on work process parameters such as the amount of completed tasks during the operation of the current business, the total duration of the current business's task execution, etc.; assuming that the current business is a low-power business currently executed in the system, the quantitative relationship between the wake-up sources in the system and the low-power business executed in the system can be one-to-many (that is, one wake-up source corresponds to multiple low-power businesses).

[0042] In actual applications, after determining the wake-up time of the current wake-up source according to the running status of the current business, the wake-up time of the current wake-up source in the system can be reset or retained based on the wake-up time of the current wake-up source determined this time through the wake-up time configuration interface of the current wake-up source in the system; in addition, according to actual needs, corresponding wake-up time configuration interfaces can be set for each wake-up source in the system (that is, one wake-up source corresponds to one wake-up time configuration interface).

[0043] The above-mentioned system sleep control method, first, responds to the service sleep instruction, and processes the resources to be released based on the occupancy of the target resources. Then, according to the running status of the current service, the wake-up time of the current wake-up source is determined, and the running process of the current service is ended. This application releases the resources in the target resources that are not occupied by other running services based on the target resource occupancy of the service when the current service ends this operation, and configures the wake-up time of the wake-up source corresponding to the service according to the task execution status of the current service in this operation. At the system level, it realizes the unified coordination and management of the running status of each service running in low power consumption mode, thereby effectively improving the running stability of IoT devices in low power consumption mode.

[0044] In one embodiment, the above step S110 specifically includes:

[0045] In the case that there are busy resources in the target resources, idle resources in the target resources are determined as resources to be released, and a release operation is performed on the resources to be released.

[0046] Among them, target resources refer to the target resources of the current business; busy resources refer to the target resources required for the current business execution that have been occupied by other running businesses; idle resources refer to the target resources required for the current business execution that are not occupied by other running businesses.

[0047] Specifically, assuming that the current business and other running businesses are all low-power businesses executed in the system, after the current low-power business ends this operation, some of the target resources required for the execution of the current low-power business that are not occupied by other running low-power businesses can be closed and released in time, so as to further reduce the power consumption of the IoT device and optimize the resource utilization efficiency of the IoT device.

[0048] The embodiment of the present application not only effectively reduces the power consumption of the Internet of Things device in the low power consumption mode, but also ensures the operating stability of the Internet of Things device in the low power consumption mode by performing a release operation only on the idle resources in the target resources when there are busy resources in the target resources of the current business.

[0049] Regarding the specific method of confirming whether there are other running services, in one embodiment, such as Figure 2 As shown, the above step S110 further includes the following steps:

[0050] Step S210: If there is no busy resource in the target resource, confirm whether there is other running business.

[0051] Among them, the target resource refers to the target resource of the current business; the busy resource refers to the resource occupied by other running businesses among the target resources required for the execution of the current business; and the other running businesses refer to other running businesses in the system.

[0052] Specifically, assuming that the current service and other running services are all low-power services executed in the system, the above step S210 can be specifically performed as follows: if there are no resources occupied by other running low-power services among the target resources required by the current low-power service, confirm whether there are other running low-power services in the system.

[0053] Step S220: If there are other running services, the running process of the current service is terminated.

[0054] The existence of other running businesses refers to the existence of other running businesses in the system.

[0055] Specifically, assuming that the current service and other running services are low-power services executed in the system, the above step S220 can be specifically performed as follows: when there are other low-power services running in the system, directly end the running process of the current low-power service.

[0056] Step S230: If there is no other running service, a system sleep instruction including a system wake-up time parameter is output.

[0057] Among them, there are no other running businesses, which means that there are no other running businesses in the system; the system wake-up time parameter refers to the configuration parameter used to set the specific time for the next self-wake-up of the system after entering the sleep state; the system sleep instruction refers to the system sleep instruction used to instruct the system to enter the sleep state.

[0058] Specifically, assuming that the current business and other running businesses are all low-power businesses executed in the system, the above step S230 can be specifically expressed as: when there are no other low-power businesses running in the system, a system sleep instruction containing a system wake-up time parameter is output through the system sleep management interface to make the system enter a sleep state.

[0059] In practical applications, the system sleep management interface for switching the system to a sleep state may be a system-level hardware interface of an IoT device.

[0060] The embodiment of the present application effectively ensures the operating stability of the Internet of Things device in low power consumption mode by outputting a system sleep instruction including a system wake-up time parameter when there are no busy resources in the target resources of the current business and when it is confirmed that there are no other running businesses in the system.

[0061] Regarding the specific method of outputting the system sleep instruction including the system wake-up time parameter, in one embodiment, as follows Figure 3 As shown, the system sleep instruction is used to instruct the system to enter a sleep state; the step S230 specifically includes the following steps:

[0062] Step S310: When there is no other running service, a comparison result between the running time of the current service and the service running time threshold is obtained.

[0063] The running time of the current business refers to the actual time consumed by the current business in this operation; the business running time threshold refers to the running time threshold pre-set in the system for each running time of the current business.

[0064] Specifically, in the absence of other running businesses, the comparison result of the running time of the current business and the business running time threshold can be specifically expressed as follows: if the running time of the current business is greater than the business running time threshold, it can be determined that the running time of the current business has timed out; if the running time of the current business is less than or equal to the business running time threshold, it can be determined that the running time of the current business has not timed out.

[0065] Further, assuming that the current service and other running services are low-power services executed in the system, the above step S310 can be specifically performed as follows: in the absence of other running low-power services, obtain the comparison result between the running time of the current low-power service and its corresponding service running time threshold.

[0066] Step S320: determining a system wake-up time parameter according to the comparison result.

[0067] The comparison result is the comparison result between the running time of the current service and the service running time threshold; the system wake-up time parameter refers to the working parameter used to set the specific time for the next automatic wake-up of the system after the system enters the sleep state.

[0068] Specifically, based on the comparison results, the specific method of determining the system wake-up time parameters can be expressed as follows: if the running time of the current business is greater than the business running time threshold, the system wake-up time parameters are set to a smaller value to shorten the system wake-up time; if the running time of the current business is less than or equal to the business running time threshold, the system wake-up time parameters are retained at the original value to retain the original wake-up time of the system.

[0069] Step S330: output a system sleep instruction including a system wake-up time parameter.

[0070] In actual applications, the above step S330 can be replaced by the following steps based on actual needs: step S331, configuring the system wake-up time based on the system wake-up time parameter; step S332, outputting the system sleep instruction.

[0071] Furthermore, the execution entity of the above steps S310 to S330 can be the system sleep management interface in the Internet of Things device. Based on this, when each low-power service running in the system ends the running process, the system's self-wake-up time can be reasonably configured by calling the system sleep management interface, and the system can enter the sleep state again.

[0072] The embodiment of the present application effectively improves the operating stability of the Internet of Things device in low power consumption mode by determining the system wake-up time parameter based on the comparison result of the running time of the current business and the business running time threshold when there are no other running businesses in the system, and outputting a system sleep instruction containing the system wake-up time parameter.

[0073] Regarding the specific method of determining the wake-up time of the current wake-up source according to the running state of the current service, in one embodiment, as Figure 4 As shown, the current wake-up source is the wake-up source of the current service; the step S120 specifically includes the following steps:

[0074] Step S410: When the current business has not completed the work task, the wake-up time of the current wake-up source is determined based on the completed task amount of the current business.

[0075] Among them, the unfinished work tasks of the current business refer to the work tasks that have not been completed in the current operation process; the completed task volume of the current business can be used to represent the number of work tasks that have been executed by the current business during the current operation process; the current wake-up source is the wake-up source of the current business.

[0076] Specifically, since the current business has not completed its work tasks, it is necessary to shorten the wake-up time of the wake-up source to ensure that the current business can complete the remaining work tasks as soon as possible. Therefore, in this case, the specific value of the wake-up time of the current wake-up source can be determined according to the number of work tasks completed by the current business during this operation.

[0077] Step S420: When the current business has completed the work task, the wake-up time of the current wake-up source is set according to the system preset value.

[0078] Among them, the current business has completed work tasks, which means that the current task has completed all work tasks during this operation; the system preset value refers to the pre-set wake-up time value for the current wake-up source, or the latest value of the wake-up time of the current wake-up source saved in the system; the current wake-up source is the wake-up source of the current business.

[0079] Specifically, since the current business has completed its work tasks, the wake-up time of the wake-up source of the current business does not need to be adjusted. Therefore, in this case, the wake-up time of the wake-up source of the current business can retain the original value (ie, "set the wake-up time of the current wake-up source according to the system preset value").

[0080] The embodiment of the present application configures the wake-up time of the wake-up source corresponding to the business based on the task completion status of the current business, thereby not only ensuring the business execution efficiency of the Internet of Things device in the low power consumption mode, but also realizing the reasonable control of the power consumption of the Internet of Things device in the low power consumption mode.

[0081] Regarding the specific method of determining the wake-up time of the current wake-up source according to the number of associated services of the current wake-up source, in one embodiment, as follows: Figure 5 As shown, the above step S410 specifically includes the following steps:

[0082] Step S510: when the number of services associated with the current wake-up source is at least two, obtain the running time of each associated service.

[0083] Among them, the current wake-up source refers to the wake-up source of the current business; the number of associated businesses of the current wake-up source refers to the number of businesses that wake up the system from the sleep state through the current wake-up source to support their execution of work tasks; the running time of each associated business refers to the running interval time corresponding to each associated business of the current wake-up source (that is, how long each associated business needs to run once).

[0084] Specifically, if the number of services associated with the current wake-up source is only one, the wake-up time of the current wake-up source may be determined directly based on the amount of completed tasks of the current service.

[0085] In actual applications, in order to avoid overlap or conflict among low-power services when running in the system, each low-power service can be associated with only one wake-up source (i.e., after low-power service 1 is associated with wake-up source A, it can no longer be associated with other wake-up sources in the system except wake-up source A); in addition, in order to ensure that the associated low-power services can run normally in the system, each wake-up source, in addition to waking up the dormant system based on preset wake-up conditions and wake-up time, should also ensure that before the associated service runs, the hardware resources, software resources, and other service threads and other resources required for the execution of the service are in a callable state.

[0086] Step S520: determining the wake-up time of the current wake-up source based on the amount of completed tasks and the running time.

[0087] The completed task volume refers to the completed task volume of the current service; the running time refers to the running time of each related service; and the current wake-up source refers to the wake-up source of the current service.

[0088] Specifically, based on the amount of completed tasks and the running time of each task, the wake-up time of the current wake-up source is determined, which can ensure that the wake-up time reset for the current wake-up source can not only meet the running time requirements of each associated business of the current wake-up source, but also ensure that the current wake-up source can wake up the dormant system as soon as possible so that the current business can continue to complete the remaining work tasks.

[0089] The embodiment of the present application determines the wake-up time of the wake-up source of the current service based on the amount of completed tasks of the current service and the running time of each associated service of the wake-up source of the current service when the number of associated services of the current wake-up source is at least two. This not only ensures the service execution efficiency of the Internet of Things device in the low power consumption mode, but also ensures the operating stability of the Internet of Things device in the low power consumption mode.

[0090] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0091] Based on the same inventive concept, the embodiment of the present application also provides a system sleep control device for implementing the system sleep control method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more system sleep control device embodiments provided below can refer to the limitations of the system sleep control method above, and will not be repeated here.

[0092] In one embodiment, Figure 6 As shown, a system sleep control device is provided, the device comprising:

[0093] The resource release module 610 is used to process the resources to be released based on the occupancy of the target resources in response to the service dormancy instruction;

[0094] The end operation module 620 is used to determine the wake-up time of the current wake-up source according to the operation status of the current service and end the operation process of the current service.

[0095] In one of the embodiments, the resource releasing module 610 is specifically configured to, when there are busy resources in the target resources, determine idle resources in the target resources as the resources to be released, and perform a release operation on the resources to be released.

[0096] In one of the embodiments, the resource release module 610 is also used to confirm whether there are other running businesses when the busy resource does not exist in the target resource; if there are other running businesses, end the running process of the current business; if there are no other running businesses, output a system sleep instruction containing a system wake-up time parameter.

[0097] In one of the embodiments, the system sleep instruction is used to instruct the system to enter a sleep state; the resource release module 610 is also used to obtain a comparison result between the running time of the current business and the business running time threshold in the absence of other running businesses; based on the comparison result, the system wake-up time parameter is determined; and the system sleep instruction containing the system wake-up time parameter is output.

[0098] In one embodiment, the current wake-up source is the wake-up source of the current business; the end operation module 620 is specifically used to determine the wake-up time of the current wake-up source based on the completed task amount of the current business when the current business has not completed the work task; when the current business has completed the work task, set the wake-up time of the current wake-up source according to the system preset value.

[0099] In one of the embodiments, the end operation module 620 is further used to obtain the running time of each associated business when the number of associated businesses of the current wake-up source is at least two; and determine the wake-up time of the current wake-up source based on the completed task amount and each running time.

[0100] Each module in the above system sleep control device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.

[0101] In one embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.

[0102] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.

[0103] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.

[0104] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0105] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.

[0106] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0107] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A system sleep control method, characterized in that: Applied to an IoT device, the method comprises: In response to the service dormancy instruction, processing resources to be released based on the occupancy of target resources; According to the running state of the current service, the wake-up time of the current wake-up source is determined, and the running process of the current service is terminated.

2. The method according to claim 1, characterized in that The processing of resources to be released based on the occupation of the target resources includes: In the case that there are busy resources in the target resources, idle resources in the target resources are determined as the resources to be released, and a release operation is performed on the resources to be released.

3. The method according to claim 2, characterized in that The processing of the resources to be released based on the occupation of the target resources further includes: If the busy resource does not exist in the target resource, confirm whether there are other running services; If there are other businesses in operation, then the operation process of the current business is terminated; If there is no other running service, a system sleep instruction including a system wake-up time parameter is output.

4. The method according to claim 3, characterized in that: The system sleep instruction is used to instruct the system to enter a sleep state; If there is no other running service, outputting a system sleep instruction including a system wake-up time parameter includes: In the absence of other running services, obtaining a comparison result between the running time of the current service and the service running time threshold; Determining the system wake-up time parameter according to the comparison result; Output a system sleep instruction including the system wake-up time parameter.

5. The method according to any one of claims 1 to 4, characterized in that The current wake-up source is the wake-up source of the current service; The step of determining the wake-up time of the current wake-up source according to the running state of the current service includes: In the case that the current business has not completed the work task, determining the wake-up time of the current wake-up source based on the completed task amount of the current business; When the current service has completed its work task, the wake-up time of the current wake-up source is set according to a system preset value.

6. The method according to claim 5, characterized in that The determining the wake-up time of the current wake-up source based on the amount of completed tasks of the current service includes: When the number of associated services of the current wake-up source is at least two, acquiring the running time of each of the associated services; Based on the completed task amount and each of the running times, a wake-up time of the current wake-up source is determined.

7. A system sleep control device, characterized in that: Applied to IoT devices, the device comprises: A resource release module, used to respond to the service dormancy instruction and process the resources to be released based on the occupancy of the target resources; The end operation module is used to determine the wake-up time of the current wake-up source according to the operation status of the current service and end the operation process of the current service.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.