Search

CN-121722526-B - Task processing system based on intelligent internet of things equipment

CN121722526BCN 121722526 BCN121722526 BCN 121722526BCN-121722526-B

Abstract

The invention discloses a task processing system based on intelligent Internet of things equipment. The system comprises a system initialization and task table dynamic construction unit, a hierarchical event polling and priority processing unit, a self-adaptive low-power management unit, a dynamic task expansion and hot plug support unit, a task resource allocation unit and a task resource allocation unit, wherein the system initialization and task table dynamic construction unit initializes hardware and protocol stacks, creates an event table and the like and predefines core tasks, the hierarchical event polling and priority processing unit processes events according to priorities, and the self-adaptive low-power management unit adjusts system power consumption. Wherein the hierarchical event polling unit is capable of distinguishing between critical and normal event processing. According to the invention, through the cooperative work of the units, the high-efficiency processing of the tasks of the equipment of the Internet of things is realized, the dynamic expansion capability is realized, the power consumption can be adaptively adjusted, and the system performance and the energy utilization efficiency are improved.

Inventors

  • XU SONGSONG

Assignees

  • 成都工业职业技术学院

Dates

Publication Date
20260508
Application Date
20260225

Claims (7)

  1. 1. The utility model provides a task processing system based on intelligent thing networking equipment which characterized in that, this system includes: The system comprises a system initialization and task table dynamic construction unit, a hierarchical event polling and priority processing unit, a system processing unit and a system processing unit, wherein the system initialization and task table dynamic construction unit is used for carrying out initialization setting on hardware and protocol stacks, creating a task table, an event table and a function table, the event table records the event state of the task in a bit mask mode, and gives priority weight to each event record timestamp, predefining a core task, distributing a fixed event mask and a dynamic priority adjustment and recovery strategy, outputting a system environment with the initialized and constructed task table, the function table is provided with an intelligent binding function and can be automatically associated with corresponding processing functions according to the characteristics and the event types of the task; The hierarchical event polling and priority processing unit comprises a key event scanning and processing unit and a common event batch processing unit, wherein the key event scanning and processing unit receives a system environment output by the system initialization and task table dynamic construction unit and an event state in an event table, scans a key event bit mask in the event table, interrupts a low-priority task currently being executed if a key event is detected, saves the current register state of the task and the context information of a program counter to a special memory area which is divided in advance by the system and is used for storing the context information of the task, calls a corresponding processing function in a function table according to the type of the key event, and clears a flag bit corresponding to the key event in the event table after the processing is completed; The self-adaptive low-power consumption management unit adjusts the power consumption state of the system according to the system state output by the hierarchical event polling and priority processing unit, and reduces the energy consumption of the system; And the dynamic task expansion and hot plug support unit is used for identifying equipment according to equipment type and communication protocol when detecting a new equipment access signal, distributing corresponding tasks and resources for the equipment, and adding the new tasks into the event table and the function table.
  2. 2. The task processing system based on intelligent internet of things equipment according to claim 1, wherein the hierarchical event polling and priority processing unit comprises a key event processing subunit and an event classifying subunit, the key event processing subunit continuously monitors whether a key event flag exists, and when the event classifying subunit recognizes that a certain event belongs to a key event, the key event flag is set to inform the key event processing subunit that the key event needs to be processed.
  3. 3. The task processing system based on intelligent internet of things equipment according to claim 2, wherein when a key event needs to be processed, the key event processing subunit further analyzes the key event to determine a specific type of the key event, calls a processing function for the key event of the specific type according to the type of the key event and a preset corresponding relation, and clears a key event flag when the processing function for the key event is executed.
  4. 4. The task processing system based on intelligent internet of things equipment according to claim 3, wherein the process of scanning the key event bitmask in the event table comprises initializing a scanning pointer, positioning the scanning pointer to a starting position of the key event bitmask in the event table, scanning the key event bitmask from the starting position, extracting features according to a preset rule in each scanning process, combining the extracted features into feature vectors along with the scanning, searching a mode most similar to the feature vectors in a mode library, and judging the key event type according to a matching result.
  5. 5. The task processing system based on intelligent internet of things device according to claim 4, wherein the adaptive low power management unit comprises the unit: The system state monitoring unit is used for receiving the system state output by the hierarchical event polling and priority processing unit, analyzing the number and the type of tasks in the task queue, judging the current load condition of the system and outputting real-time running state data of the system; The power consumption strategy decision unit is used for receiving the real-time running state data of the system, which is output by the system state monitoring unit, and judging that the system can enter a low-power consumption mode and select a deep sleep mode when the system is in a low-load state; And the power consumption execution control unit is used for receiving the power consumption adjustment strategy instruction output by the power consumption strategy decision unit, and sending a closing signal to the wireless communication module through the hardware control interface to reduce the CPU working frequency to a set value if the instruction is that the power consumption adjustment strategy instruction enters the deep sleep mode.
  6. 6. The task processing system based on intelligent internet of things equipment according to claim 5, wherein the dynamic task extension and hot plug support unit comprises: the task expansion request analysis unit is used for receiving a task expansion request sent by external equipment or other modules of the system, analyzing the task expansion request and determining the specific content and the requirement of the request; the resource evaluation and allocation unit evaluates whether the system has enough resources to support the new task currently according to the information provided by the task expansion request analysis unit and allocates the resources; And the task loading and initializing unit loads a new task into the system and performs initializing setting after the resource evaluation and allocation unit successfully allocates the resource.
  7. 7. The intelligent internet of things device-based task processing system of claim 6, wherein the dynamic task extension and hot plug support unit further comprises: the hot plug equipment detection and processing unit is used for receiving an equipment plug detection signal from a hardware layer, acquiring information of the plug equipment through an equipment identification protocol when the equipment plug is detected, searching a corresponding driving program according to the equipment type and loading the driving program into the system; when a device unplugging is detected, all tasks associated with the device are stopped, resources allocated to the tasks are released, and then the corresponding device drivers are uninstalled.

Description

Task processing system based on intelligent internet of things equipment Technical Field The invention relates to the field of intelligent Internet of things, in particular to a task processing system based on intelligent Internet of things equipment, which is used for efficiently processing and managing tasks of the intelligent Internet of things equipment. Background Along with the rapid development of the Internet of things technology, the application scene of the Internet of things technology is increasingly wide, and the Internet of things technology covers various fields such as intelligent home, industrial automation, intelligent transportation, medical health and the like. In an intelligent home scene, a large number of intelligent devices such as intelligent door locks, intelligent cameras, intelligent household appliances and the like are connected together through the Internet of things to realize remote control and automatic management, various sensors, robots and the like in the industrial automation field cooperate with each other to improve production efficiency and quality, vehicles, road facilities and the like in an intelligent transportation system realize information interaction through a network to improve traffic safety and fluency, and in the medical health field, wearable devices and medical monitoring devices collect health data of patients in real time and transmit the health data to medical institutions for analysis and processing. However, the existing task processing system of the internet of things exposes a plurality of problems in practical application. In the device initialization stage, because of the wide variety of devices in the internet of things, the hardware architecture and the communication protocol have large differences, and the existing system often lacks an effective integration mechanism. For example, in some smart home systems, when smart devices of different brands access a network, complex configuration and debugging may be required to implement interconnection and interworking, which not only increases the use difficulty of users, but also may cause the system to be started for too long, so as to affect the user experience. Moreover, the planning of the system task is unreasonable, the cooperative work requirement among the devices is not fully considered, so that the resource allocation is uneven, and part of the devices can not work normally due to insufficient resources. In terms of event processing, most of the existing task processing systems of the internet of things adopt a simple first-in first-out (FIFO) or random processing mode, and effective distinction of event priorities is lacking. In some critical scenarios, critical events such as emergency fault alarms in industrial automation or fire alarms in smarthouses may be delayed in processing because the system is handling a large number of common events, with serious consequences. In addition, real-time requirements for events are also difficult to meet, and when multiple events occur simultaneously, the system may be confused. With the continuous development of the internet of things technology, the updating speed of equipment is faster and faster, and new equipment is continuously emerging. But the existing task processing system of the internet of things lacks dynamic expansion and hot plug supporting capability for new access equipment. When a new device is accessed, the system may need to perform large-scale software upgrading and hardware transformation to be compatible with the new device, which not only increases cost and workload, but also may cause the system to fail in the upgrading process, thereby affecting normal operation. Moreover, for some temporarily accessed devices, such as mobile detection devices, the system has difficulty in rapidly allocating tasks and resources to the devices, and flexibility and adaptability of the system are reduced. In the aspect of energy consumption management, most of the existing task processing systems of the Internet of things adopt a fixed power consumption mode, and cannot be adaptively adjusted according to the actual load condition of the system. Under some low load conditions, the system still operates in a high power consumption mode, resulting in energy waste, and under high load conditions, the system may suffer from performance degradation due to insufficient power consumption. Particularly, in some internet of things devices which rely on battery power supply, such as wireless sensor nodes, the problem of energy consumption is particularly remarkable, and the service life and reliability of the devices are directly affected. Therefore, a new task processing system based on intelligent internet of things equipment is urgently needed to solve the above problems, so as to improve the performance, reliability and energy utilization efficiency of the internet of things system. Disclosure of Invention The task processing system aims to solve