A task scheduling method and device for reducing power consumption of an Internet of Things device, an electronic device, and a storage medium

By obtaining the scheduled WiFi activation timetable and task list from IoT devices, the WiFi module is activated only when needed, solving the problem of high WiFi power consumption, reducing device power consumption and extending battery life, while also optimizing the accuracy and stability of task execution.

CN119835739BActive Publication Date: 2026-02-24JIANGXI XINGTAI TECH INC
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411887817.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-12-20
Publication Date
2026-02-24
Estimated Expiration
2044-12-20

AI Technical Summary

Technical Problem

The high power consumption of WiFi in IoT devices limits its application in battery-powered devices, especially those that do not require real-time communication, such as smart wearables and remote sensors. Frequent wake-ups increase power consumption and shorten device battery life.

Method used

By acquiring the scheduled WiFi activation time and task list, the WiFi module is activated only when needed and immediately turned off after task data transmission is completed. Combined with user and external device settings, the WiFi activation time and task execution order are dynamically adjusted to achieve efficient transmission and execution of task data.

Benefits of technology

It effectively reduces the power consumption of IoT devices, extends battery life, ensures timely and efficient task completion, and optimizes the accuracy and stability of task execution through a closed-loop feedback mechanism.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119835739B_ABST
    Figure CN119835739B_ABST
Patent Text Reader

Abstract

The application discloses a task scheduling method and device for reducing power consumption of an Internet of Things device, electronic equipment and a storage medium. The method comprises the following steps: obtaining a timing start WiFi timetable and a task list in a local cache; reading the timing start WiFi timetable to generate a plurality of WiFi start time points; when each WiFi start time point is reached, the task list is analyzed to obtain a current to-be-executed task; a WiFi module is started and a connection with a task data platform is established; a data request containing task information of the to-be-executed task is sent to the task data platform, so that the task data platform feeds back task data corresponding to the current to-be-executed task after receiving the data request; the task data is received, and the WiFi module is turned off after the task data is received; and the current to-be-executed task is executed according to the task data. Through implementation of the application, the power consumption of the device can be reduced, and the endurance time of the Internet of Things device can be prolonged.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of wireless communication technology, and more specifically to a task scheduling method, apparatus, electronic device, and storage medium for reducing power consumption of Internet of Things (IoT) devices. Background Technology

[0002] WiFi is widely used in IoT devices. Compared to communication technologies such as Bluetooth and Zigbee, WiFi offers higher data transmission rates and wider network coverage, supporting remote interaction between devices via the internet. With the increasing prevalence of large-scale edge models, more and more IoT devices are deploying powerful local computing capabilities to handle complex tasks. These devices perform intelligent functions through deep learning or large-scale machine learning models; for example, smart speakers and home appliances rely on local AI models for voice recognition and image processing. While large-scale edge models process massive amounts of data and react instantly, this also creates significant data exchange demands, especially during model parameter updates or optimization. WiFi's high bandwidth ensures rapid data transmission between devices and local servers.

[0003] However, the high power consumption of WiFi is a major obstacle limiting its application in battery-powered devices. While WiFi can handle large data transfer volumes, its high power consumption remains a significant issue for devices that don't require real-time communication and primarily perform scheduled tasks, such as smart wearables and remote sensors. Frequent wake-ups of the WiFi module further increase power consumption, shorten device battery life, and negatively impact user experience. Summary of the Invention

[0004] This invention provides a task scheduling method, apparatus, electronic device, and storage medium for reducing power consumption in Internet of Things (IoT) devices. By implementing this invention, power consumption in IoT devices can be reduced, thereby extending the battery life of IoT devices.

[0005] An embodiment of the present invention provides a task scheduling method for reducing power consumption of Internet of Things (IoT) devices, comprising:

[0006] Retrieve the scheduled WiFi activation timetable and task list from the local cache;

[0007] Read the scheduled WiFi activation timetable and generate several WiFi activation time points;

[0008] When a WiFi connection is turned on at any given time, the task list is parsed to obtain the current tasks to be executed.

[0009] Activate the WiFi module and establish a connection with the task data platform;

[0010] A data request containing task information of the task to be executed is sent to the task data platform, so that the task data platform, upon receiving the data request, will provide back task data corresponding to the current task to be executed; wherein, the task data platform includes a local gateway and a cloud.

[0011] Receive the task data, and turn off the WiFi module after the task data has been received;

[0012] Based on the task data, execute the currently pending tasks.

[0013] Furthermore, a settings interface is generated that allows users to set the WiFi turn-on time and a task list;

[0014] If the system detects that a user has entered a WiFi start time in the settings interface, the WiFi start time will be written into the scheduled WiFi start time schedule.

[0015] If the system detects that a user has entered task information for a task to be executed through the settings interface, the task information for that task will be written into the task list.

[0016] Furthermore, upon detecting the first WiFi setting command sent by an external device, the WiFi start time point set in the first WiFi setting command is written into the scheduled WiFi start time schedule.

[0017] Upon detecting a first task setting instruction sent by an external device, the task information of the task to be executed set in the first task setting instruction is written into the task list.

[0018] Furthermore, the task list is parsed to obtain the task information for each task in the task list;

[0019] Based on the task information, extract the estimated execution time information for each task;

[0020] Set tasks whose estimated execution time is no later than the current time as the current pending tasks.

[0021] Furthermore, collect relevant execution status and result data after the current pending task is completed;

[0022] The execution status and result data are verified based on the preset target status and reference standards in the task information.

[0023] If the task result data verification fails, the error type is recorded according to the preset exception handling strategy, and an error log is generated. The error log is sent to the task data platform the next time the WiFi module starts, so that the task data platform, upon receiving the error log, provides feedback on a second WiFi setting instruction and a second task setting instruction. Upon detecting the second WiFi setting instruction sent by the task data platform, the WiFi start time set in the second WiFi setting instruction is written into the scheduled WiFi start timetable. Upon detecting the second task setting instruction sent by the task data platform, the task information of the tasks to be executed set in the second task setting instruction is written into the task list.

[0024] If the task result data verification passes, an execution log is generated based on the execution status and result data; the execution log is sent to the task data platform the next time the WiFi module is started.

[0025] Based on the above method embodiments, the present invention provides corresponding apparatus embodiments.

[0026] An embodiment of the present invention provides a task scheduling device for reducing the power consumption of Internet of Things (IoT) devices, comprising: a data acquisition module, a WiFi turn-on time point generation module, a task to be executed acquisition module, a platform connection establishment module, a task data acquisition module, a WiFi turn-off module, and a task execution module.

[0027] The data acquisition module is used to acquire the scheduled WiFi activation schedule and task list from the local cache;

[0028] The WiFi start time point generation module is used to read the timed WiFi start schedule and generate several WiFi start time points.

[0029] The task-to-be-executed acquisition module is used to parse the task list and obtain the current task-to-be-executed when a WiFi turn-on time point is reached.

[0030] The platform connection establishment module is used to start the WiFi module and establish a connection with the task data platform;

[0031] The task data acquisition module is used to send a data request containing task information of the task to be executed to the task data platform, so that the task data platform can return task data corresponding to the current task to be executed after receiving the data request; wherein, the task data platform includes a local gateway and a cloud.

[0032] The WiFi shutdown module is used to receive the task data and shut down the WiFi module after the task data has been received.

[0033] The task execution module is used to execute the currently pending task based on the task data.

[0034] Furthermore, the task-to-be-executed acquisition module includes: a task information acquisition unit, an estimated execution time information acquisition unit, and a task-to-be-executed setting unit;

[0035] The task information acquisition unit is used to parse the task list and obtain the task information of each task in the task list;

[0036] The estimated execution time information acquisition unit is used to extract the estimated execution time information of each task based on the task information;

[0037] The task setting unit is used to set tasks whose expected execution time is no later than the current time as the current task to be executed.

[0038] Furthermore, the task scheduling device for reducing the power consumption of IoT devices also includes: a result verification module;

[0039] The result verification module is used to collect relevant execution status and result data after the current task to be executed is completed; to verify the execution status and result data according to the preset target status and reference standards in the task information; if the task result data verification fails, the error type is recorded according to the preset exception handling strategy, and an error log is generated; when the WiFi module is started again, the error log is sent to the task data platform so that the task data platform can provide feedback on the second WiFi setting instruction and the second task setting instruction after receiving the error log; if the second WiFi setting instruction sent by the task data platform is detected, the WiFi start time point set in the second WiFi setting instruction is written into the timed WiFi start schedule; if the second task setting instruction sent by the task data platform is detected, the task information of the task to be executed set in the second task setting instruction is written into the task list. If the task result data verification passes, an execution log is generated according to the execution status and result data; the execution log is sent to the task data platform when the WiFi module is started again.

[0040] Based on the above method embodiments, the present invention provides corresponding electronic device embodiments.

[0041] An embodiment of the present invention provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it can implement the task scheduling method for reducing the power consumption of Internet of Things devices as described in any of the above-described method embodiments.

[0042] Based on the above method embodiments, the present invention provides corresponding storage medium embodiments.

[0043] One embodiment of the present invention provides a storage medium storing a computer program thereon, which, when executed by a processor, can implement the task scheduling method for reducing the power consumption of Internet of Things devices as described in any of the above-described method embodiments.

[0044] Compared with the prior art, the present invention has the following beneficial effects:

[0045] This invention provides a task scheduling method, apparatus, electronic device, and storage medium for reducing power consumption in Internet of Things (IoT) devices. The method obtains the timed activation of the WiFi module and activates it only when needed, avoiding unnecessary power consumption. Once task instructions and data transmission are complete, the WiFi module is promptly shut down, further reducing device energy consumption and extending the battery life of the IoT device. Attached Figure Description

[0046] Figure 1 This is a flowchart illustrating a task scheduling method for reducing power consumption of IoT devices according to an embodiment of the present invention.

[0047] Figure 2 This is a schematic diagram of a task scheduling method for reducing power consumption of IoT devices according to an embodiment of the present invention. Detailed Implementation

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

[0049] like Figure 1 As shown, an embodiment of the present invention provides a method for reducing power consumption in IoT devices, comprising at least the following steps:

[0050] Step S1: Obtain the scheduled WiFi activation schedule and task list from the local cache.

[0051] Specifically, the system retrieves cached scheduled WiFi activation schedules and task lists from the device's local storage. The scheduled WiFi activation schedule records a pre-defined plan for the device to activate the WiFi module at different times to request task data, thus completing the task data acquisition. The task list contains specific task information that the device needs to perform, including the task content, priority, estimated execution time, storage location of relevant data, target status after task completion, and reference standards. By reading this locally cached data, the device can clearly define its subsequent operation plan and activate the module according to the schedule. Simultaneously, it can rationally arrange the execution order of tasks according to the task list, ensuring timely and efficient completion of the target tasks.

[0052] In a preferred embodiment, the scheduled WiFi activation timetable and task list can be updated in the following ways:

[0053] Generate a settings interface that allows users to set the WiFi turn-on time and a task list.

[0054] If the system detects that a user has entered a WiFi start time in the settings interface, the WiFi start time will be written into the scheduled WiFi start timetable.

[0055] If the system detects that a user has entered task information for a task to be executed through the settings interface, the task information for that task will be written into the task list.

[0056] It's important to explain here that the device generates a user-friendly interface for users to set the WiFi activation time and task list. This settings interface supports intuitive time selection; users can choose the specific time to activate the WiFi module using a slider, time input box, or calendar control. The interface also provides a task information field where users can enter task descriptions, priorities, estimated execution time, and related parameters.

[0057] When the device detects that the user has successfully entered the WiFi start time through the settings interface, it will parse the user's input time into a standard time format and add it to the locally stored scheduled WiFi start time schedule.

[0058] Meanwhile, when the device detects that the user has successfully filled in the information of the task to be executed through the settings interface, it will parse the task information into standardized task entries and add them to the task list.

[0059] In another preferred embodiment, the scheduled WiFi activation timer and task list can also be updated in the following ways:

[0060] Upon detecting the first WiFi setting command sent by an external device, the WiFi start time set in the first WiFi setting command is written into the scheduled WiFi start timetable.

[0061] Upon detecting a first task setting instruction sent by an external device, the task information of the task to be executed set in the first task setting instruction is written into the task list.

[0062] In its implementation, upon detecting the first WiFi setup command from an external device (such as a smartphone, tablet, or task data platform), the device parses the command content and extracts the WiFi activation time information contained within. Subsequently, the device converts this time information into a recognizable standard time format and writes it into a locally stored scheduled WiFi activation schedule. Simultaneously, upon detecting the first task setup command from an external device, the device parses the command and extracts relevant information about the task to be executed. This information includes, but is not limited to, task description, task priority, planned execution time, associated data storage location, target status after task completion, and reference standards. The device standardizes this information into a format conforming to local task management requirements and writes it into the task list.

[0063] Step S2: Read the scheduled WiFi activation timetable and generate several WiFi activation time points.

[0064] Specifically, the device reads the locally stored scheduled WiFi activation schedule and extracts all configured WiFi activation time entries. By parsing the schedule content, the device identifies the specific time point corresponding to each entry and converts these time points into a standardized time format for subsequent processing.

[0065] During the parsing process, the device performs deduplication and conflict checks on time entries according to predefined rules. If adjacent time points are found to be too close together or duplicate entries exist, the device will optimize according to a predefined merging strategy to generate a unique and reasonable list of WiFi activation time points. For example, for time points with intervals of less than one minute, the device may merge them into a single unified time point to reduce unnecessary WiFi activations and thus lower power consumption.

[0066] Subsequently, the device generates several WiFi activation time points based on the optimized results. These time points will serve as the basis for triggering the WiFi module to start, ensuring that the device can activate the WiFi module and connect to the task platform at the correct time.

[0067] Step S3: When a WiFi turn-on time point is reached, the task list is parsed to obtain the current task to be executed.

[0068] It's important to note that when the device detects that the current time has reached a predetermined WiFi activation time, it immediately triggers the task processing flow. The device first checks the locally stored task list and parses it, reading the task information item by item. This information typically includes the task name, execution time, task priority, associated data, and specific operation instructions.

[0069] In a preferred embodiment, parsing the task list to obtain the current tasks to be executed includes:

[0070] Parse the task list to obtain the task information for each task in the task list.

[0071] Based on the task information, extract the estimated execution time information for each task.

[0072] Set tasks whose estimated execution time is no later than the current time as the current pending tasks.

[0073] During the parsing process, the device filters out tasks related to the current time. These tasks are typically those that were planned to be completed at or before the current time but are still valid. This process ensures that all tasks that should be completed at or before the current time but have not yet been executed are processed in a timely manner, while tasks whose expected execution time has not yet arrived are kept in the task list, awaiting triggering at a later time. To ensure the accuracy and priority of task execution, the device sorts the filtered tasks according to a preset priority rule in the task list, generating a current task queue, and setting the tasks in the current task queue as the current tasks to be executed. Specifically, the priority rule here first sorts the tasks according to their expected execution time, prioritizing tasks with earlier expected execution times. For tasks with the same expected execution time, they are further sorted according to the order in which they were written into the task list, ensuring that tasks recorded earlier are executed first.

[0074] Step S4: Start the WiFi module and establish a connection with the task data platform.

[0075] First, activate the WiFi module in the device at the preset time. After the WiFi module is activated, it will automatically scan the surrounding wireless networks to find WiFi hotspots that match its configuration.

[0076] Once a target network is found, the device authenticates itself with the hotspot using pre-stored network authentication information (such as SSID and password). After successful authentication, the device establishes a network connection and obtains a valid IP address, thus gaining the ability to access external networks.

[0077] Next, the device sends a connection request to the mission data platform to establish a communication link. The mission data platform can be a local gateway or a cloud-based platform. During the communication link establishment process, the device and the platform will perform necessary protocol negotiation and security authentication to ensure the security and stability of data transmission.

[0078] Once the connection is successful, the device enters communication mode with the task data platform, preparing for subsequent task data transmission. During this stage, the device can send status updates or heartbeat signals as needed, indicating its readiness to receive task instructions and related data.

[0079] Through the above steps, the WiFi module is successfully started and the connection to the task data platform is successfully completed, providing reliable communication support for the device to perform tasks.

[0080] Step S5: Send a data request containing task information of the task to be executed to the task data platform, so that the task data platform can provide feedback on the task data corresponding to the current task to be executed after receiving the data request.

[0081] Specifically, based on the current task information, the device organizes relevant task details, such as the task identifier, priority, and estimated execution time. This task information is then encapsulated into a standard data request format and prepared for transmission to the task data platform. This data request includes not only basic task information but may also include the device's current status, network conditions, or other factors that may affect task execution, enabling the platform to better evaluate and respond to the task request.

[0082] Next, the device sends the data request to the task data platform via the established WiFi connection. The data request is transmitted over the network, potentially using common communication protocols such as HTTP or MQTT, to ensure reliable transmission of task information. When sending the request, the device also includes necessary authentication information, such as the device ID and authorization token, as required by the protocol, to ensure the legitimacy and security of the data request.

[0083] When the task data platform receives a data request, it first verifies its validity and legitimacy, confirming that the request originates from an authorized device. Next, the platform queries its internal database based on the task information in the request to locate the task data corresponding to the task to be executed. Task data typically includes detailed parameters required for execution, relevant configurations, task execution priority, and possible external dependencies.

[0084] Once the task data is successfully retrieved and confirmed to be correct, the task data platform will send this data back to the device. The feedback data may be returned via the same communication protocol and contains all the data and information required to execute the task. This feedback data is usually encapsulated in a response message and includes some status information (such as success flags, error codes, etc.) to inform the device whether the request was successful.

[0085] After receiving the feedback data, the device will store the task data in the local cache or memory for use in subsequent task execution.

[0086] Step S6: Receive the task data, and after the task data is received, turn off the WiFi module.

[0087] Specifically, after successfully receiving task data, the device first verifies and parses the received data to ensure its integrity and accuracy. This includes checking whether the task data conforms to a predetermined format and whether it contains all the key parameters required to execute the task, such as execution priority, execution time, and execution conditions. Simultaneously, the device also needs to verify whether the task data matches the current task to be executed, to confirm the data's relevance and validity.

[0088] Once the task data is verified and confirmed to be correct, the device will store this data in a local cache or memory for use in subsequent task execution.

[0089] After receiving and storing the task data, the device will turn off the WiFi module. Turning off the WiFi module not only helps save energy, especially in battery-powered IoT devices, but also reduces unnecessary network communication and avoids interference with other device operations. The WiFi module is typically turned off after the device confirms that the task data has been fully received and is ready, ensuring that the device can obtain the necessary data when performing the task.

[0090] Step S7: Execute the current task to be executed based on the task data.

[0091] Another embodiment of the present invention provides a task scheduling method for reducing power consumption of Internet of Things (IoT) devices, which further includes the following steps:

[0092] Collect and process status and result data after the current pending task is completed;

[0093] Based on the preset target status and reference standards in the task information, the execution status and result data are verified. If the task result data verification fails, the error type is recorded according to the preset exception handling strategy, and an error log is generated. Upon the next startup of the WiFi module, the error log is sent to the task data platform, so that the task data platform, upon receiving the error log, can provide feedback on a second WiFi setting instruction and a second task setting instruction. If the second WiFi setting instruction sent by the task data platform is detected, the WiFi startup time point set in the second WiFi setting instruction is written into the scheduled WiFi startup timetable. If the second task setting instruction sent by the task data platform is detected, the task information of the task to be executed set in the second task setting instruction is written into the task list. If the task result data verification passes, an execution log is generated based on the execution status and result data. Upon the next startup of the WiFi module, the execution log is sent to the task data platform.

[0094] After completing the current task, the device collects execution status and result data related to the task execution. This data may include whether the task was successful, resource consumption during execution, time taken, and the actual execution status of various task parameters. This data provides important information for subsequent task quality assessment, performance optimization, and troubleshooting.

[0095] This involves verifying the collected execution status and result data. The verification process includes comparing the collected execution data with the preset target status and reference standards in the task information. These target statuses and standards may include the expected output of task execution, execution time, resource consumption limits, etc. Through verification, the device can confirm whether the task is completed as expected, ensuring that the task execution effect meets the established goals.

[0096] If the verification fails, the device will handle the issue according to a pre-defined exception handling strategy. Specifically, the device will identify and record the error type, such as task execution failure, time limit exceeding, or insufficient resources, and generate an error log. The error log not only aids in subsequent analysis but also provides crucial information to the task data platform. The device will send these error logs to the task data platform the next time the WiFi module starts up.

[0097] After receiving error logs, the task data platform identifies problems during task execution based on preset rules and analysis of the logs. For example, if a task fails or does not achieve its intended goal, the platform determines whether the task needs to be re-executed, task parameters adjusted, or the execution environment reset. Depending on the type of failure and the analysis results, the platform will take appropriate corrective measures.

[0098] If the task needs to be re-executed, the platform generates a second WiFi setup instruction and a second task setup instruction, and sends them back to the device. The second WiFi setup instruction typically specifies a new WiFi start time. Upon receiving the second WiFi setup instruction, the device updates its scheduled WiFi start timetable according to the new time, ensuring that the network connection can be established at the new time, thus supporting the re-execution of subsequent tasks.

[0099] Simultaneously, the second task setting instructions will also be adjusted based on the error log analysis results from the task data platform. These adjustments may include rearranging the execution order of tasks, changing task priorities, and modifying task execution parameters. For example, if a task fails to complete, the platform may choose to increase its priority or adjust its execution time to ensure that the task can be executed correctly. After receiving the second task setting instructions, the device will update the task list according to these new instructions and prepare to re-execute the tasks according to the new settings the next time the WiFi connection is established.

[0100] This process embodies a closed-loop feedback mechanism between the equipment and the task data platform, ensuring dynamic adjustments and corrections during task execution and improving the accuracy and stability of task performance. In this way, even in the event of task failure or anomalies, the equipment can still work collaboratively with the platform to complete the task on time.

[0101] If the task result data verification passes, the device will generate an execution log based on the execution status and result data. The execution log typically contains detailed records of the task execution, such as execution time, resource consumption, and task status, for subsequent analysis and optimization. The device will send the execution log to the task data platform the next time the WiFi module starts. By feeding the execution log back to the platform, the task data platform can evaluate the effectiveness of the task execution and provide support for future task adjustments.

[0102] This series of processes ensures the transparency and traceability of task execution. Real-time feedback and verification of task results allow for timely detection and correction of problems, improving system stability and task execution reliability. Simultaneously, bidirectional data exchange between the platform and devices guarantees real-time adjustments and optimizations during task execution.

[0103] Based on the above method embodiments, the present invention provides corresponding apparatus embodiments.

[0104] like Figure 2 As shown, an embodiment of the present invention provides a task scheduling device for reducing the power consumption of IoT devices, including: a data acquisition module, a WiFi turn-on time point generation module, a task to be executed acquisition module, a platform connection establishment module, a task data acquisition module, a WiFi turn-off module, and a task execution module;

[0105] The data acquisition module is used to acquire the scheduled WiFi activation schedule and task list from the local cache;

[0106] The WiFi start time point generation module is used to read the timed WiFi start schedule and generate several WiFi start time points.

[0107] The task-to-be-executed acquisition module is used to parse the task list and obtain the current task-to-be-executed when a WiFi turn-on time point is reached.

[0108] The platform connection establishment module is used to start the WiFi module and establish a connection with the task data platform;

[0109] The task data acquisition module is used to send a data request containing task information of the task to be executed to the task data platform, so that the task data platform can return task data corresponding to the current task to be executed after receiving the data request; wherein, the task data platform includes a local gateway and a cloud.

[0110] The WiFi shutdown module is used to receive the task data and shut down the WiFi module after the task data has been received.

[0111] The task execution module is used to execute the currently pending task based on the task data.

[0112] In a preferred embodiment, the task-to-be-executed acquisition module includes: a task information acquisition unit, an estimated execution time information acquisition unit, and a task-to-be-executed setting unit;

[0113] The task information acquisition unit is used to parse the task list and obtain the task information of each task in the task list;

[0114] The estimated execution time information acquisition unit is used to extract the estimated execution time information of each task based on the task information;

[0115] The task setting unit is used to set tasks whose expected execution time is no later than the current time as the current task to be executed.

[0116] Optionally, the task scheduling device for reducing power consumption of IoT devices further includes: a result verification module;

[0117] The result verification module is used to collect relevant execution status and result data after the current task to be executed is completed; to verify the execution status and result data according to the preset target status and reference standards in the task information; if the task result data verification fails, the error type is recorded according to the preset exception handling strategy, and an error log is generated; when the WiFi module is started again, the error log is sent to the task data platform so that the task data platform can provide feedback on the second WiFi setting instruction and the second task setting instruction after receiving the error log; if the second WiFi setting instruction sent by the task data platform is detected, the WiFi start time point set in the second WiFi setting instruction is written into the timed WiFi start schedule; if the second task setting instruction sent by the task data platform is detected, the task information of the task to be executed set in the second task setting instruction is written into the task list. If the task result data verification passes, an execution log is generated according to the execution status and result data; the execution log is sent to the task data platform when the WiFi module is started again.

[0118] It should be noted that the embodiments of the apparatus described above correspond to the embodiments of the present invention described above, and can implement any of the methods described above in the present invention. Furthermore, the embodiments of the apparatus described above are merely illustrative. The modules described as separate components may or may not be physically separate, and the components shown as modules may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Additionally, in the accompanying drawings of the apparatus embodiments provided by the present invention, the connection relationship between modules indicates that they have a communication connection, which can be specifically implemented as one or more communication buses or signal lines. Those skilled in the art can understand and implement this without creative effort.

[0119] Based on the above-described method embodiments of the present invention, a corresponding embodiment of an electronic device is provided.

[0120] An embodiment of the present invention provides an electronic device, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor. When the processor executes the computer program, it implements the task scheduling method for reducing power consumption of Internet of Things devices as described in any one of the present invention, or the processor executes the computer program to implement the functions of each module in the above-described device embodiments.

[0121] For example, the computer program may be divided into one or more modules, which are stored in the memory and executed by the processor to complete the present invention. The one or more modules may be a series of computer program instruction segments capable of performing specific functions, which describe the execution process of the computer program in the terminal device.

[0122] The terminal device may be a desktop computer, laptop, handheld computer, or cloud server, etc. The terminal device may include, but is not limited to, a processor and a memory.

[0123] The processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor can be a microprocessor or any conventional processor. The processor is the control center of the terminal device, connecting all parts of the terminal device via various interfaces and lines.

[0124] The memory can be used to store the computer programs and / or modules. The processor implements various functions of the terminal device by running or executing the computer programs and / or modules stored in the memory and by calling data stored in the memory. The memory may mainly include a program storage area and a data storage area. The program storage area may store the operating system, at least one application program required for a function, etc.; the data storage area may store data created based on the use of the mobile phone, etc. In addition, the memory may include high-speed random access memory, and may also include non-volatile memory, such as hard disk, RAM, plug-in hard disk, smart media card (SMC), secure digital card (SD), flash card, at least one disk storage device, flash memory device, or other volatile solid-state storage device.

[0125] Based on the above method embodiments, the present invention provides corresponding storage medium embodiments;

[0126] Another embodiment of the present invention provides a storage medium including a stored computer program, wherein, when the computer program is running, the device where the storage medium is located executes any of the above-described task scheduling methods for reducing the power consumption of Internet of Things devices.

[0127] The aforementioned storage medium is a computer-readable storage medium. The computer program includes computer program code, which can be in the form of source code, object code, executable file, or certain intermediate forms. The computer-readable medium can include any entity or device capable of carrying the computer program code, recording media, USB flash drives, portable hard drives, magnetic disks, optical disks, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signals, telecommunication signals, and software distribution media, etc. It should be noted that the content included in the computer-readable medium can be appropriately added or removed according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electrical carrier signals and telecommunication signals.

[0128] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of this application. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples. Moreover, without contradiction, those skilled in the art can combine and integrate the different embodiments or examples described in this specification, as well as the features of those different embodiments or examples.

[0129] The above description represents the preferred embodiments of the present invention. It should be noted that those skilled in the art can make various improvements and modifications without departing from the principles of the present invention, and these improvements and modifications are also considered to be within the scope of protection of the present invention.

Claims

1. A task scheduling method for reducing power consumption of Internet of Things (IoT) devices, characterized in that, include: Retrieve the scheduled WiFi activation timetable and task list from the local cache; Read the scheduled WiFi activation timetable and generate several WiFi activation time points; When a WiFi connection is turned on at any given time, the task list is parsed to obtain the current tasks to be executed. Activate the WiFi module and establish a connection with the task data platform; A data request containing task information of the task to be executed is sent to the task data platform, so that the task data platform, upon receiving the data request, will provide back task data corresponding to the current task to be executed; wherein, the task data platform includes a local gateway and a cloud. Receive the task data, and turn off the WiFi module after the task data has been received; Based on the task data, execute the current tasks to be executed; After executing the current task based on the task data, the process further includes: Collect and process status and result data after the current pending task is completed; The execution status and result data are verified based on the preset target status and reference standards in the task information. If the task result data verification fails, the error type is recorded according to the preset exception handling strategy, and an error log is generated. The error log is sent to the task data platform the next time the WiFi module starts, so that the task data platform, upon receiving the error log, provides feedback on a second WiFi setting instruction and a second task setting instruction. Upon detecting the second WiFi setting instruction sent by the task data platform, the WiFi start time set in the second WiFi setting instruction is written into the scheduled WiFi start timetable. Upon detecting the second task setting instruction sent by the task data platform, the task information of the tasks to be executed set in the second task setting instruction is written into the task list. If the task result data verification passes, an execution log is generated based on the execution status and result data; the execution log is sent to the task data platform the next time the WiFi module is started.

2. The task scheduling method for reducing power consumption of IoT devices as described in claim 1, characterized in that, Also includes: Generate a settings interface that allows users to set the WiFi turn-on time and a task list; If the system detects that a user has entered a WiFi start time in the settings interface, the WiFi start time will be written into the scheduled WiFi start time schedule. If the system detects that a user has entered task information for a task to be executed through the settings interface, the task information for that task will be written into the task list.

3. The task scheduling method for reducing power consumption of IoT devices as described in claim 1, characterized in that, Also includes: Upon detecting the first WiFi setting command sent by an external device, the WiFi start time set in the first WiFi setting command is written into the scheduled WiFi start time schedule. Upon detecting a first task setting instruction sent by an external device, the task information of the task to be executed set in the first task setting instruction is written into the task list.

4. The task scheduling method for reducing power consumption of IoT devices as described in claim 1, characterized in that, The step of parsing the task list to obtain the current tasks to be executed includes: Parse the task list to obtain the task information for each task in the task list; Based on the task information, extract the estimated execution time information for each task; Set tasks whose estimated execution time is no later than the current time as the current pending tasks.

5. A task scheduling device for reducing power consumption of Internet of Things (IoT) devices, characterized in that, include: The system includes a data acquisition module, a WiFi start-up time point generation module, a task to be executed acquisition module, a platform connection establishment module, a task data acquisition module, a WiFi shutdown module, a task execution module, and a result verification module. The data acquisition module is used to acquire the scheduled WiFi activation schedule and task list from the local cache; The WiFi start time point generation module is used to read the timed WiFi start schedule and generate several WiFi start time points. The task-to-be-executed acquisition module is used to parse the task list and obtain the current task-to-be-executed when a WiFi turn-on time point is reached. The platform connection establishment module is used to start the WiFi module and establish a connection with the task data platform; The task data acquisition module is used to send a data request containing task information of the task to be executed to the task data platform, so that the task data platform can return task data corresponding to the current task to be executed after receiving the data request; wherein, the task data platform includes a local gateway and a cloud. The WiFi shutdown module is used to receive the task data and shut down the WiFi module after the task data has been received. The task execution module is used to execute the current task to be executed based on the task data; The result verification module is used to collect relevant execution status and result data after the current task to be executed is completed; to verify the execution status and result data according to the preset target status and reference standards in the task information; if the task result data verification fails, to record the error type and generate an error log according to the preset exception handling strategy; to send the error log to the task data platform when the WiFi module is started again, so that the task data platform can provide feedback on the second WiFi setting instruction and the second task setting instruction after receiving the error log; to write the WiFi start time point set in the second WiFi setting instruction into the timed WiFi start schedule when the second WiFi setting instruction is detected; to write the task information of the task to be executed set in the second task setting instruction into the task list when the second task setting instruction is detected; to generate an execution log according to the execution status and result data when the task result data verification passes; and to send the execution log to the task data platform when the WiFi module is started again.

6. The task scheduling device for reducing power consumption of IoT devices as described in claim 5, characterized in that, The task-to-be-executed acquisition module includes: a task information acquisition unit, an estimated execution time information acquisition unit, and a task-to-be-executed setting unit; The task information acquisition unit is used to parse the task list and obtain the task information of each task in the task list; The estimated execution time information acquisition unit is used to extract the estimated execution time information of each task based on the task information; The task setting unit is used to set tasks whose expected execution time is no later than the current time as the current task to be executed.

7. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, it can implement the task scheduling method for reducing the power consumption of IoT devices as described in any one of claims 1 to 4.

8. A storage medium having a computer program stored thereon, characterized in that: When executed by a processor, the computer program can implement the task scheduling method for reducing power consumption of IoT devices as described in any one of claims 1 to 4.

Citation Information

Patent Citations

  • Timing task processing method and processing system, electronic equipment and storage medium

    CN114579276A

  • Low-power-consumption outdoor electricity box monitoring system

    CN212620875U