Queue processing method and device for scene linkage of Internet of Things
By dividing device events into sensing categories and control categories, and calculating scene linkage priorities based on priorities, the problem of multi-queue management being unable to balance high and low priority queues when the network is congested is solved, achieving high fairness and high processing efficiency. effect.
Patent Information
- Application Number
- CN202410854298.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-28
- Publication Date
- 2024-10-01
AI Technical Summary
In the existing technology, multi-queue management cannot balance the transmission relationship between high-priority and low-priority queues when the network is congested, resulting in poor fairness and low device event processing efficiency.
By dividing device events into sensing categories and control categories, and calculating the scene linkage priority based on execution priority and time-consuming priority, a complete binary tree is used to establish a priority queue to ensure that high-priority queues are processed first and achieve high- and low-priority Queue balancing.
When the network is congested, each queue is guaranteed to obtain network bandwidth resources, achieving high fairness in multi-queue management and high efficiency in device event processing.
Smart Images

Figure CN118740753A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of Internet of Things, and in particular to a queue processing method and device for scene linkage of Internet of Things. Background Art
[0002] The edge computing gateway platform is a comprehensive device that integrates edge computing, gateways, and application platforms. It can extend cloud functions to local edge computing devices, enabling edge computing devices to respond to local events quickly and autonomously, thereby providing low-latency, low-cost, privacy-safe, and local autonomous local computing services. The edge gateway aggregates various messages reported by sensing devices and execution devices. There are many device events, especially a large number of device events reported in a short period of time, and they are queued for processing in turn. Due to the long processing queue, important device events are not processed in time, and unimportant device events occupy the processing resources of the edge program, resulting in excessive memory usage of the edge host.
[0003] In the prior art, when there are many device events and they enter the queue for processing, active queue management technology is usually used to avoid and control network congestion. In the existing multi-queue management, there are often two extremes: bandwidth allocation according to absolute priority and bandwidth allocation according to absolute fairness. When network congestion occurs, if the queues are absolutely prioritized, low-priority queues will not be able to obtain network bandwidth resources; if absolute fairness is implemented, then good differentiated services cannot be achieved. The existing multi-queue relationship cannot balance the transmission relationship between high-priority queues and low-priority queues, resulting in poor fairness in multi-queue management and low efficiency in device event processing.
[0004] Therefore, the prior art has defects and needs to be improved and developed. Summary of the invention
[0005] The embodiment of the present invention provides a method for solving the problem in the prior art that when there are many device events and they enter queue processing, active queue management technology is usually used to avoid and control network congestion. In the existing multi-queue management, there are often two extremes: bandwidth allocation according to absolute priority and bandwidth allocation according to absolute fairness. When network congestion occurs, if absolute priority differentiation is implemented for queues, low-priority queues will not be able to obtain network bandwidth resources; if absolute fairness is implemented, then good differentiated services cannot be achieved. The existing multi-queue relationship cannot balance the transmission relationship between high-priority queues and low-priority queues, resulting in poor fairness in multi-queue management and low efficiency in device event processing.
[0006] According to a first aspect of an embodiment of the present invention, a queue processing method for an Internet of Things scene linkage is provided, comprising: collecting device event information of an Internet of Things scene linkage device; classifying the device event information of the Internet of Things scene linkage device to obtain a device event priority and a device event queue; the device event includes at least a sensor device event and a control device event; the device event queue includes at least a sensor device event queue and a control device event queue; marking the execution priority and the time-consuming priority in the control device event queue according to the device event information of the Internet of Things scene linkage device; calculating the scene linkage priority of the Internet of Things scene linkage device according to the device event priority, the execution priority and the time-consuming priority; and sending the scene linkage priority of the Internet of Things scene linkage device to the Internet of Things scene linkage device to execute the scene linkage action.
[0007] Furthermore, the device event information of the IoT scene linkage device is classified to obtain the device event priority; the device event includes at least sensor device events and control device events, including: according to the device event information of the IoT scene linkage device, the IoT scene linkage device is classified into sensor devices and control devices; according to the sensor devices and the control devices, the sensor devices are marked as the sensor device events, and the control devices are marked as the control device events; the device event priorities are sorted, and the device event priority is that the priority of the sensor device event is greater than the priority of the control device event; the sensor device includes at least sensing devices and acquisition devices with decreasing priorities; the control device includes at least switch devices, socket devices, driver devices and action execution devices with decreasing priorities.
[0008] Furthermore, the execution priority and time-consuming priority in the control device event queue are marked according to the device event information of the IoT scene linkage device, including: marking the execution priority in the control device event queue according to the device event information of the IoT scene linkage device, the execution priority in the control device event queue is the start and close of the switch device, the start and close of the socket device, the start and stop of the driver device, and the start and stop of the action execution device. The execution priority decreases in sequence; marking the time-consuming priority in the control device event queue according to the device event information of the IoT scene linkage device, the shorter the time consumed in the start and close of the switch device, the start and close of the socket device, the start and stop of the driver device, and the start and stop of the action execution device, the higher the time-consuming priority.
[0009] Furthermore, the scene linkage priority of the Internet of Things scene linkage device is calculated according to the device event priority, the execution priority and the time-consuming priority, including: converting the ranking of the device event priority into a first priority value A, wherein the value of A is a natural number greater than 1, and the higher the device event priority, the larger the value of the first priority value A; converting the ranking of the execution priority into a second priority value B, wherein the value of B is a natural number greater than 1, and the higher the execution priority, the larger the value of the second priority value B; converting the ranking of the time-consuming priority into a third priority value C, wherein the value of C is a natural number greater than 1, and the lower the time-consuming priority, the larger the value of the third priority value C; converting the scene linkage priority of the Internet of Things scene linkage device into a fourth priority value D, and the calculation formula of D is: D=A×(B / C); the larger the value of the fourth priority value D, the higher the scene linkage priority of the Internet of Things scene linkage device.
[0010] Furthermore, the sending of the scene linkage priority of the IoT scene linkage device to the IoT scene linkage device to execute the scene linkage action includes: naming the sensor device event queues used by the sensor device to execute the scene linkage action as the first queue, the second queue, ..., the nth queue in sequence, wherein n is a natural number greater than 1, and the value of n is the same as the number of the sensor devices; sending the scene linkage priority of the IoT scene linkage device to the IoT scene linkage device; naming the control device event queues used by the sensor device to execute the scene linkage action as the n+1th queue, the n+2th queue, ..., the mth queue in sequence, wherein m is a natural number greater than n, and the value of mn is the same as the number of the control devices; establishing a priority queue through a complete binary tree, and processing the queue with the highest priority in the priority queue first; listing the first queue to the mth queue in the priority queue according to the priority relationship; and taking out the highest priority events from the priority queue in sequence as the order of executing the scene linkage action through a hierarchical traversal method.
[0011] According to a second aspect of an embodiment of the present invention, a queue processing device for an Internet of Things scene linkage device is provided, comprising: a collection module for collecting device event information of the Internet of Things scene linkage device; a classification module for classifying the device event information of the Internet of Things scene linkage device to obtain device event priority and device event queue; the device events include at least sensor device events and control device events; the device event queue includes at least sensor device event queue and control device event queue; a marking module for marking the execution priority and time priority in the control device event queue according to the device event information of the Internet of Things scene linkage device; a calculation template for calculating the scene linkage priority of the Internet of Things scene linkage device according to the device event priority, the execution priority and the time priority; a sending module for sending the scene linkage priority of the Internet of Things scene linkage device to the Internet of Things scene linkage device to execute the scene linkage action.
[0012] Beneficial effects:
[0013] It can be seen from the above scheme that the present invention provides a method of dividing device events into sensor device events and control device events and designing device event priorities, setting the priority of the sensor device event queue to be greater than the priority of the control device event queue; processing the execution priority and time-consuming priority in the control device event queue, and combining the device event priority to finally obtain the scene linkage priority of the Internet of Things scene linkage device. When network congestion occurs, the scene linkage priority of the Internet of Things scene linkage device is used to ensure that each queue can obtain network bandwidth resources and can achieve differentiated services, thereby achieving a balance in the transmission relationship between high-priority queues and low-priority queues, so that multi-queue management has high fairness and device event processing efficiency is high.
[0014] It should be appreciated that all combinations of the foregoing concepts, as well as additional concepts described in greater detail below, may be considered to be part of the inventive subject matter of the present disclosure, provided such concepts are not mutually inconsistent.
[0015] The foregoing and other aspects, embodiments and features of the present invention can be more fully understood from the following description in conjunction with the accompanying drawings. Other additional aspects of the present invention, such as the features and / or beneficial effects of the exemplary embodiments, will be apparent from the following description or learned from the practice of the specific embodiments according to the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] The accompanying drawings are not drawn to scale according to actual reference objects. In the accompanying drawings, each identical or nearly identical component shown in various figures may be represented by the same reference numeral. For the sake of clarity, not every component is labeled in each figure. Now, embodiments of various aspects of the present invention will be described by way of example and with reference to the accompanying drawings, in which:
[0017] Figure 1 This is a flowchart of a queue processing method for IoT scenario linkage according to an embodiment of the present application.
[0018] Figure 2 A flowchart of calculating the scene linkage priority of the Internet of Things scene linkage device in a queue processing method for Internet of Things scene linkage in an embodiment of the present application. DETAILED DESCRIPTION
[0019] In order to make the purpose, technical solution and advantages of the embodiment of the present invention clearer, the technical solution of the embodiment of the present invention will be clearly and completely described below in conjunction with the drawings of the embodiment of the present invention. Obviously, the described embodiment is a part of the embodiment of the present invention, not all of the embodiments. Based on the described embodiment of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention. Unless otherwise defined, the technical terms or scientific terms used herein should be the common meaning understood by people with general skills in the field to which the present invention belongs.
[0020] The words "first", "second" and similar terms used in the patent specification and claims of the present invention do not indicate any order, quantity or importance, but are only used to distinguish different components. Similarly, unless the context clearly indicates otherwise, the singular form "a" or "an" shall not be construed as "a" or "an";
[0021] The words “a”, “an”, “the” and the like do not denote a limitation of quantity, but rather denote the presence of at least one.
[0022] The words "include" or "comprises" and the like mean that the elements or objects appearing before "includes" or "comprises" include the features, wholes, steps, operations, elements and / or components listed after "includes" or "comprises", and do not exclude the existence or addition of one or more other features, wholes, steps, operations, elements, components and / or their collections. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.
[0023] In the prior art, when there are many device events and they enter the queue for processing, active queue management technology is usually used to avoid and control network congestion. In the existing multi-queue management, there are often two extremes: bandwidth allocation according to absolute priority and bandwidth allocation according to absolute fairness. When network congestion occurs, if the queues are absolutely prioritized, low-priority queues will not be able to obtain network bandwidth resources; if absolute fairness is implemented, then good differentiated services cannot be achieved. The existing multi-queue relationship cannot balance the transmission relationship between high-priority queues and low-priority queues, resulting in poor fairness in multi-queue management and low efficiency in device event processing.
[0024] In view of this, an embodiment of the present invention provides a queue processing method for IoT scene linkage, referring to Figure 1 ,include:
[0025] Collect device event information of IoT scene linkage devices;
[0026] Classify the device event information of IoT scene linkage devices to obtain device event priorities and device event queues; device events include at least sensor device events and control device events; device event queues include at least sensor device event queues and control device event queues;
[0027] According to the device event information of the IoT scene linkage device, mark the execution priority and time-consuming priority in the control device event queue;
[0028] Calculate the scene linkage priority of IoT scene linkage devices based on device event priority, execution priority and time-consuming priority;
[0029] The scene linkage priority of the IoT scene linkage device is sent to the IoT scene linkage device to execute the scene linkage action.
[0030] In some embodiments, the device event information of the IoT scene linkage device is classified to obtain the device event priority; the device event includes at least sensor device events and control device events, including:
[0031] According to the device event information of the IoT scene linkage devices, the IoT scene linkage devices are classified into sensor devices and control devices;
[0032] According to sensor devices and control devices, sensor devices are marked as sensor device events, and control devices are marked as control device events;
[0033] Sort the device event priorities. The device event priority is that the priority of sensor device events is higher than the priority of control device events.
[0034] In some embodiments, the sensing device includes at least a sensing device and a collection device in descending order of priority; the control device includes at least a switch device, a socket device, a driver device, and an action execution device in descending order of priority.
[0035] In some other embodiments, when a queue processing method for IoT scene linkage is applied to an actual edge gateway, the collection device includes a light collection device and an environment collection device; the driver device is a light driver device, and the action execution device is a curtain, so that priority is arranged according to the actual scene.
[0036] In some embodiments, according to the device event information of the IoT scene linkage device, the execution priority and time-consuming priority in the control device event queue are marked, including:
[0037] According to the device event information of the IoT scene linkage device, the execution priority in the control device event queue is marked. The execution priority in the control device event queue is the start and stop of the switch device, the start and stop of the socket device, the start and stop of the driver device, and the start and stop of the action execution device in descending order;
[0038] According to the device event information of the IoT scenario linkage devices, the time consumption priority in the control device event queue is marked. The shorter the time consumption in the opening and closing of the switch device, the opening and closing of the socket device, the starting and stopping of the driver device, and the starting and stopping of the action execution device, the higher the time consumption priority.
[0039] In some embodiments, the scene linkage priority of the IoT scene linkage device is calculated based on the device event priority, execution priority and time-consuming priority, referring to Figure 2 ,include:
[0040] The ranking of the device event priority is converted into a first priority value A, wherein the value of A is a natural number greater than 1, and the higher the device event priority, the greater the value of the first priority value A;
[0041] The execution priority ranking is converted into a second priority value B, wherein the value of B is a natural number greater than 1, and the higher the execution priority, the greater the value of the second priority value B;
[0042] The ranking of the time-consuming priority is converted into a third priority value C, wherein the value of C is a natural number greater than 1, and the lower the time-consuming priority, the larger the value of the third priority value C;
[0043] The scene linkage priority of the IoT scene linkage device is converted into a fourth priority value D, and the calculation formula of D is: D = A × (B / C);
[0044] The larger the value of the fourth priority value D is, the higher the scene linkage priority of the IoT scene linkage device is.
[0045] In some embodiments, the action of sending the scene linkage priority of the IoT scene linkage device to the IoT scene linkage device to execute the scene linkage includes:
[0046] The sensor device event queues used by the sensor devices to perform scene linkage actions are named queue 1, queue 2, ..., queue n in sequence, where n is a natural number greater than 1, and the value of n is the same as the number of sensor devices;
[0047] Send the scene linkage priority of the IoT scene linkage device to the IoT scene linkage device;
[0048] The control device event queues used by the sensor devices to perform scene linkage actions are named the n+1th queue, the n+2th queue, ..., the mth queue in sequence, where m is a natural number greater than n, and the value of mn is the same as the number of control devices;
[0049] A priority queue is established by a complete binary tree, and the queue with the highest priority in the priority queue is processed first;
[0050] According to the priority relationship, queues 1 to m are put into priority queues;
[0051] Through the hierarchical traversal method, the order of taking out the highest priority events from the priority queue is used as the order of executing the scene linkage actions.
[0052] When there are multiple device types, there will be multiple queues, or when there is only one device type, there will be multiple queues for the device. This is a multi-queue scenario. Each queue has a different descriptor. Taking the descriptor as an example, the first descriptor may include the data type, the address of the data buffer, the length of the data, the data constraint, the data access permission, the data association relationship, the data default value, and the data formatting rules, etc. Because there are multiple queues, it is natural to schedule multiple queues to avoid conflicts. However, in the prior art, it is usually necessary to process the queue that is out of the queue first before processing the next queue. However, when the traffic volume between different queues is different, the processing time required is different. This serial processing method will cause the queue with a large amount of data to block the queue with less traffic behind it, resulting in a poor user experience for the queue with less traffic behind it.
[0053] For example, suppose the first descriptor of the first queue is dequeued first, and the second descriptor of the second queue is dequeued later. However, the data buffer corresponding to the first descriptor stores 1 Gbit of data, and the data buffer corresponding to the second descriptor stores 1 Mbit of data. In this way, before the 1 Gbit of data corresponding to the first descriptor is processed, the 100 Mbit of data corresponding to the second descriptor will not have a chance to be transmitted. Only after the 1 Gbit of data corresponding to the first descriptor is transmitted, will it be the turn of the 1 Mbit of data corresponding to the second descriptor to be transmitted. This is obviously unfair. However, through the priority queue of the embodiment of the present invention, priority processing can be performed according to the priority queue, and it is not limited to the step-by-step processing of a single queue, so the processing efficiency is high.
[0054] Another embodiment of the present invention further provides an IoT scene linkage device queue processing device, comprising:
[0055] The collection module is used to collect device event information of IoT scene linkage devices;
[0056] A classification module is used to classify the device event information of the IoT scene linkage device, obtain the device event priority and device event queue; the device event includes at least sensor device events and control device events; the device event queue includes at least sensor device event queue and control device event queue;
[0057] A marking module is used to mark the execution priority and time-consuming priority in the event queue of control devices according to the device event information of the IoT scene linkage device;
[0058] A calculation template is used to calculate the scene linkage priority of IoT scene linkage devices based on device event priority, execution priority and time priority;
[0059] The sending module is used to send the scene linkage priority of the Internet of Things scene linkage device to the Internet of Things scene linkage device to execute the scene linkage action.
[0060] Another embodiment of the present invention also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the computer program is executed by the processor, a queue processing method for IoT scenario linkage is implemented.
[0061] The processor may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc. The processor is the control center of the data processing device of the gateway, and uses various interfaces and lines to connect various parts of the data processing device of the entire gateway.
[0062] Another embodiment of the present invention further provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, a queue processing method for IoT scenario linkage is implemented.
[0063] The memory may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required by at least one function; the data storage area may store data created by the processor, etc. In addition, the memory is preferably but not limited to a high-speed random access memory, for example, it may also be a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may also optionally include a memory remotely arranged relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0064] Those skilled in the art can understand that the implementation of all or part of the processes in the above-mentioned embodiments is a program that can be completed by instructing related hardware through a computer program, which can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the storage medium can be a disk, an optical disk, a read-only memory (ROM), a random access memory (RAM), a flash memory (Flash Memory), a hard disk (HDD) or a solid-state drive (SSD), etc.; the storage medium can also include a combination of the above-mentioned types of memory.
[0065] In summary, a queue processing method and device for scene linkage of the Internet of Things provided by the present invention are used. By dividing device events into sensor device events and control device events and designing device event priorities, the priority of the sensor device event queue is set to be greater than the priority of the control device event queue; by processing the execution priority and time-consuming priority in the control device event queue, combined with the device event priority, the scene linkage priority of the scene linkage device of the Internet of Things is finally obtained. When network congestion occurs, the scene linkage priority of the scene linkage device of the Internet of Things is used to ensure that each queue can obtain network bandwidth resources and can achieve differentiated services, thereby achieving a balance in the transmission relationship between high-priority queues and low-priority queues, so that multi-queue management has high fairness and device event processing efficiency is high.
[0066] Although the present invention has been disclosed as above with preferred embodiments, it is not intended to limit the present invention. A person with ordinary knowledge in the technical field to which the present invention belongs may make various changes and modifications without departing from the spirit and scope of the present invention. Therefore, the protection scope of the present invention shall be determined by the definition of the claims.
Claims
1. A queue processing method for IoT scene linkage, characterized in that: include: Collect device event information of IoT scene linkage devices; Classify the device event information of the IoT scenario linkage device to obtain the device event priority and device event queue; the device event includes at least sensor device events and control device events; the device event queue includes at least sensor device event queue and control device event queue; According to the device event information of the IoT scenario linkage device, mark the execution priority and time-consuming priority in the control device event queue; Calculate the scene linkage priority of the IoT scene linkage device according to the device event priority, the execution priority and the time-consuming priority; The scene linkage priority of the Internet of Things scene linkage device is sent to the Internet of Things scene linkage device to execute the scene linkage action.
2. According to claim 1, a queue processing method for IoT scene linkage is characterized in that: The device event information of the IoT scenario linkage device is classified to obtain the device event priority; the device event includes at least sensor device events and control device events, including: Classify the IoT scene linkage devices into sensor devices and control devices according to device event information of the IoT scene linkage devices; According to the sensor device and the control device, marking the sensor device as the sensor device event and marking the control device as the control device event; Sorting the device event priorities, wherein the device event priorities are such that the priority of the sensor device events is greater than the priority of the control device events; The sensor type equipment includes at least sensing equipment and acquisition equipment with decreasing priorities; the control type equipment includes at least switching equipment, socket equipment, driver equipment and action execution equipment with decreasing priorities.
3. According to claim 2, a queue processing method for IoT scene linkage is characterized in that: The step of marking the execution priority and time-consuming priority in the control device event queue according to the device event information of the IoT scenario linkage device includes: According to the device event information of the IoT scene linkage device, the execution priority in the control device event queue is marked, and the execution priority in the control device event queue is the start and stop of the switch device, the start and stop of the socket device, the start and stop of the driver device, and the start and stop of the action execution device in descending order; According to the device event information of the IoT scenario linkage device, the time-consuming priority in the control device event queue is marked. The shorter the time consumed in the opening and closing of the switch device, the opening and closing of the socket device, the starting and stopping of the driver device, and the starting and stopping of the action execution device, the higher the time-consuming priority.
4. The queue processing method for IoT scene linkage according to claim 3 is characterized in that: The calculating the scene linkage priority of the IoT scene linkage device according to the device event priority, the execution priority and the time-consuming priority includes: Converting the ranking of the device event priority into a first priority value A, wherein the value of A is a natural number greater than 1, and the higher the device event priority, the greater the value of the first priority value A; Converting the execution priority ranking into a second priority value B, wherein the value of B is a natural number greater than 1, and the higher the execution priority, the greater the value of the second priority value B; Converting the ranking of the time-consuming priority into a third priority value C, wherein the value of C is a natural number greater than 1, and the lower the time-consuming priority, the greater the value of the third priority value C; The scene linkage priority of the IoT scene linkage device is converted into a fourth priority value D, where the calculation formula of D is: D=A×(B / C); The larger the value of the fourth priority value D is, the higher the scene linkage priority of the Internet of Things scene linkage device is.
5. The queue processing method for IoT scene linkage according to claim 4 is characterized in that: The action of sending the scene linkage priority of the Internet of Things scene linkage device to the Internet of Things scene linkage device to execute the scene linkage includes: The sensor device event queues used by the sensor devices to perform scene linkage actions are named queue 1, queue 2, ..., queue n in sequence, where n is a natural number greater than 1, and the value of n is the same as the number of the sensor devices; Sending the scene linkage priority of the Internet of Things scene linkage device to the Internet of Things scene linkage device; The control device event queues used by the sensor devices to perform scene linkage actions are named the n+1th queue, the n+2th queue, ..., the mth queue in sequence, where m is a natural number greater than n, and the value of mn is the same as the number of the control devices; A priority queue is established by a complete binary tree, wherein the queue with the highest priority in the priority queue is processed first; According to the first queue to the mth queue, they are included in the priority queue according to the priority relationship; Through the hierarchical traversal method, the order of taking out the highest priority events from the priority queue is used as the order of executing the scene linkage actions.
6. A queue processing device for IoT scene linkage, characterized in that: include: The collection module is used to collect device event information of IoT scene linkage devices; A classification module, used to classify the device event information of the IoT scene linkage device, and obtain the device event priority and device event queue; the device event includes at least sensor device events and control device events; the device event queue includes at least sensor device event queue and control device event queue; A marking module, used to mark the execution priority and time-consuming priority in the control device event queue according to the device event information of the IoT scene linkage device; A calculation template, used for calculating the scene linkage priority of the Internet of Things scene linkage device according to the device event priority, the execution priority and the time-consuming priority; A sending module is used to send the scene linkage priority of the Internet of Things scene linkage device to the Internet of Things scene linkage device to execute the scene linkage action.
