Control efficiency optimization method and system based on message aggregation protocol

Through batch packaging and parallel execution technology based on message aggregation protocol, the transmission delay and channel resource tightness of traditional control protocols when the number of smart home devices surges, efficient and accurate complex scenario control is achieved, and system response speed and user experience are improved.

CN120301725APending Publication Date: 2025-07-11INSPUR COMM TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510579381.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-07
Publication Date
2025-07-11

AI Technical Summary

Technical Problem

With the surge in the number of smart home devices, traditional control protocols have problems such as transmission delay and the number of devices being linearly positively correlated. Channel resources are tight and cannot meet the multicast control needs of complex scenarios, affecting user experience and network efficiency.

Method used

Using a method based on the message aggregation protocol, the batch packaging and transmission of multiple control instructions is realized through the message aggregation adapter middleware, combined with PLC broadcasting and IP multicasting technology, the lightweight analytical algorithm is used to execute in parallel to form closed-loop control.

Benefits of technology

Significantly reduce the number of command transmissions, reduce control delay, improve channel utilization, realize efficient and precise control of complex scenarios, and improve system response speed and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120301725A_ABST
    Figure CN120301725A_ABST
Patent Text Reader

Abstract

The invention discloses a control efficiency optimization method and system based on a message aggregation protocol, and relates to the technical field of communication efficiency, the method realizes batch packaging and transmission of a plurality of control instructions by means of message aggregation adapter middleware of a software layer, and comprises the following steps: deploying the message aggregation adapter middleware in a computing network host, grouping and packaging the plurality of control instructions according to a preset dimension to generate a composite instruction frame; the message aggregation adapter middleware is combined with a PLC broadcast and IP multicast technology to realize dual-channel transmission of a control instruction; a lightweight analysis algorithm is embedded in the smart home device, the composite instruction is disassembled into single executable instructions, parallel execution of the single instructions is realized, and after execution is completed, the smart home device feeds back an execution result to the message aggregation adapter middleware to form closed-loop control; and after receiving feedback of the equipment, the message aggregation adapter middleware analyzes an instruction execution state and transmission efficiency. The transmission efficiency can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of communication efficiency, and in particular to a control efficiency optimization method and system based on a message aggregation protocol. Background Art

[0002] With the rapid increase in the number of smart home devices (such as more than 100 devices in a single system), traditional control protocols have the following defects.

[0003] 1. One-by-one transmission mechanism: Under the traditional control protocol architecture, each instruction adopts a serial communication mode, that is, the sender needs to send instructions to the target device separately, and wait for the receiving device to feedback confirmation information before continuing to send the next instruction. This mechanism makes the transmission delay and the number of devices show a linear positive correlation (formula: total delay = number of devices × single transmission time). Taking a home system with 100 smart devices as an example, if a single transmission takes 50 milliseconds, it will take 5 seconds to complete the basic instruction transmission of all devices. When the complexity of the instructions increases or the network fluctuates, the delay problem will be further exacerbated, seriously affecting the user control experience.

[0004] 2. Channel resource contention: With the explosive growth in the number of smart home devices, a large number of devices send feedback messages at the same time, resulting in extremely tight wireless channel resources. Since traditional protocols lack effective channel allocation and conflict avoidance mechanisms, massive feedback messages can easily cause wireless channel conflicts. Actual measured data shows that in a dense device environment, the message retransmission rate can reach more than 30%. Frequent conflicts and retransmissions not only aggravate transmission delays, but also greatly increase network bandwidth consumption, resulting in a significant reduction in network efficiency and even communication congestion, causing some devices to be unable to respond to control commands in a timely manner.

[0005] 3. Protocol efficiency bottleneck: Existing broadcast technology only supports simple scene control, such as turning on all lights or turning off all devices with one click, but when faced with complex multicast scenarios (such as fine-grained control by room, function or user-defined group), the limitations of traditional protocols are exposed. Due to the lack of multi-target addressing and differentiated command distribution required for multicast control, it is unable to meet the diverse and personalized control needs of modern smart homes. For example, in dinner mode, users want to only adjust the color temperature of the restaurant lights and control the kitchen appliances to enter standby mode. Traditional protocols are difficult to efficiently and accurately achieve collaborative control of such complex scenes. Summary of the invention

[0006] In view of the needs and shortcomings of current technological development, the present invention provides a control efficiency optimization method and system based on a message aggregation protocol, which reduces control delay through a batch transmission mechanism, improves channel utilization, and supports rapid configuration of large-scale equipment groups.

[0007] In a first aspect, the present invention provides a method for optimizing control efficiency based on a message aggregation protocol. The technical solution adopted to solve the above technical problems is as follows:

[0008] A method for optimizing control efficiency based on a message aggregation protocol, which realizes batch encapsulation and transmission of multiple control instructions by means of a message aggregation adapter middleware at the software layer. The specific steps are as follows:

[0009] S1. Deploy a message aggregation adapter middleware as an aggregation engine on the computing and networking host, group and package multiple control instructions according to a preset dimension, and generate a composite instruction frame.

[0010] S2. The message aggregation adapter middleware combines PLC broadcast and IP multicast technologies to achieve dual-channel transmission of control instructions.

[0011] S3. Embed a lightweight parsing algorithm in the smart home device, disassemble the composite instruction into single executable instructions, and implement parallel execution of single instructions. After execution is completed, the smart home device feeds back the execution result to the message aggregation adapter middleware to form a closed-loop control.

[0012] S4. After receiving the device feedback, the message aggregation adapter middleware analyzes the instruction execution status and transmission efficiency.

[0013] Optionally, the specific steps involved in S1 include:

[0014] S1.1. Deploy a message aggregation adapter middleware as an aggregation engine on the computing and networking host to collect multiple control instructions to be sent in real time.

[0015] S1.2. The message aggregation adapter middleware groups the control instructions in detail according to the device ID and parameter type.

[0016] S1.3. After grouping is completed, the message aggregation adapter middleware packs the control instructions within the same group, generates a composite instruction frame, and compresses the instruction data using variable-length field encoding.

[0017] Further optionally, the message aggregation adapter middleware involved has a built-in conflict detection algorithm. For mutually exclusive instructions, the instruction order is automatically adjusted through a priority determination or delayed execution strategy to ensure the compatibility of the instruction logic within the composite instruction frame.

[0018] Further optionally, the message aggregation adapter middleware packs the control instructions within the same group to generate a hierarchical composite instruction frame, where the outer layer is a global control header, including an aggregation identifier, verification information, and the total number of instructions, and the inner layer is a sub-instruction block, and each sub-block corresponds to an instruction set of a device.

[0019] Further optionally, the involved message aggregation adapter middleware transmits composite instructions to the smart home device. The lightweight parsing algorithm embedded in the smart home device adopts a pipeline design, and divides the composite instruction disassembling process into multiple parallel processing stages such as "frame header parsing → instruction extraction → parameter verification". Subsequently, using the multi-core processor resources of the smart home device, the disassembled single instructions are allocated to different cores for parallel execution.

[0020] In a second aspect, the present invention provides a control efficiency optimization system based on a message aggregation protocol. The technical solution adopted to solve the above technical problems is as follows:

[0021] A control efficiency optimization system based on a message aggregation protocol, which includes:

[0022] A message aggregation adapter middleware, deployed on a computing and networking host, for grouping and packing multiple control instructions according to a preset dimension to generate a composite instruction frame; for adopting variable-length field encoding during the instruction transmission process, and combining PLC broadcast and IP multicast technologies to achieve dual-channel transmission of control instructions; and also for receiving feedback from the smart home device and analyzing the instruction execution status and transmission efficiency;

[0023] A lightweight parsing algorithm module, embedded in the smart home device, for disassembling the composite instruction into single executable instructions and implementing parallel execution of single instructions. After the execution is completed, the smart home device feeds back the execution result to the message aggregation adapter middleware to form a closed-loop control.

[0024] Optionally, the involved message aggregation adapter middleware collects multiple control instructions to be sent in real time, carefully groups the control instructions according to the device ID and parameter type. After the grouping is completed, the control instructions within the same group are packed to generate a composite instruction frame, and variable-length field encoding is used to compress the instruction data.

[0025] Further optionally, the involved message aggregation adapter middleware is built with a conflict detection algorithm. For mutually exclusive instructions, the instruction order is automatically adjusted through a priority determination or delayed execution strategy to ensure the instruction logic compatibility within the composite instruction frame.

[0026] Further optionally, the involved message aggregation adapter middleware packs the control instructions within the same group to generate a hierarchical composite instruction frame, where the outer layer is a global control header, including an aggregation identifier, verification information, and the total number of instructions, and the inner layer is a sub-instruction block, and each sub-block corresponds to an instruction set of a device.

[0027] Further optionally, the lightweight parsing algorithm module embedded in the smart home device adopts a pipeline design, and divides the composite instruction disassembling process into multiple parallel processing stages of "frame header parsing → instruction extraction → parameter verification". Subsequently, using the multi-core processor resources of the smart home device, the disassembled single instructions are distributed to different cores for parallel execution.

[0028] A method and system for optimizing control efficiency based on a message aggregation protocol according to the present invention have the beneficial effects compared with the prior art as follows:

[0029] The present invention can effectively compress the volume of multiple instructions, reduce the number of instruction transmissions, improve the transmission efficiency, realize the dual-channel transmission of control instructions, and ensure that the instructions can reach the target device quickly and accurately in different network environments. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] Att Figure 1 is a flowchart of the method according to Embodiment 1 of the present invention;

[0031] Att Figure 2 is a block diagram of the system composition according to Embodiment 2 of the present invention. DETAILED DESCRIPTION OF THE INVENTION

[0032] To make the technical solutions, the technical problems to be solved, and the technical effects of the present invention clearer and more understandable, the following describes the technical solutions of the present invention clearly and completely in conjunction with specific embodiments.

[0033] Embodiment 1:

[0034] Refer to Att Figure 1 , this embodiment proposes a method for optimizing control efficiency based on a message aggregation protocol. This method realizes the batch encapsulation and transmission of multiple control instructions with the help of the message aggregation adapter middleware at the software layer, and specifically includes the following steps:

[0035] S1. Deploy the message aggregation adapter middleware as an aggregation engine on the computing and networking host, group and package multiple control instructions according to a preset dimension, and generate a composite instruction frame; this process specifically includes:

[0036] S1.1. Deploy the message aggregation adapter middleware as an aggregation engine on the computing and networking host to collect multiple control instructions to be sent in real time;

[0037] S1.2. The message aggregation adapter middleware groups the control instructions in detail according to the device ID and parameter type;

[0038] S1.3. After grouping, the message aggregation adapter middleware packs the control instructions within the same group, generates a composite instruction frame, and compresses the instruction data using variable-length field encoding. Specifically, the message aggregation adapter middleware packs the control instructions within the same group to generate a hierarchical composite instruction frame, where the outer layer is the global control header, including the aggregation identifier, verification information, and total number of instructions, and the inner layer is the sub-instruction block, with each sub-block corresponding to the instruction set of a device.

[0039] It should be added that the involved message aggregation adapter middleware also has a built-in conflict detection algorithm. For mutually exclusive instructions, the instruction order is automatically adjusted through priority determination or delayed execution strategies to ensure the logical compatibility of the instructions within the composite instruction frame.

[0040] S2. The message aggregation adapter middleware combines PLC broadcasting and IP multicast technologies to achieve dual-channel transmission of control instructions, increasing the channel utilization rate by more than three times.

[0041] S3. A lightweight parsing algorithm is embedded in the smart home device to disassemble the composite instruction into single executable instructions and achieve parallel execution of single instructions, ensuring that the processing delay of a single device is less than 5 ms. After execution, the smart home device feeds back the execution result to the message aggregation adapter middleware to form a closed-loop control.

[0042] After step S2, the message aggregation adapter middleware transmits the composite instruction to the smart home device. Subsequently, the lightweight parsing algorithm embedded in the smart home device adopts a pipeline design, and the process of disassembling the composite instruction is divided into multiple parallel processing stages such as "frame header parsing → instruction extraction → parameter verification". Subsequently, using the multi-core processor resources of the smart home device, the disassembled single instructions are allocated to different cores for parallel execution.

[0043] S4. After the message aggregation adapter middleware receives the device feedback, it analyzes the instruction execution status and transmission efficiency:

[0044] If it is found that the instruction execution is incorrect or the transmission delay is too high, adjust the grouping strategy, encoding method, or transmission channel selection logic to optimize the subsequent instruction aggregation and transmission process;

[0045] If the device feedback is normal, continuously receive new control instructions and repeat the S1-S4 process to achieve efficient and stable control of the smart home device.

[0046] Embodiment 2:

[0047] Refer to Appendix Figure 2 , this embodiment proposes a control efficiency optimization system based on the message aggregation protocol, which includes:

[0048] The message aggregation adapter middleware is deployed on the computing and networking host and is used to group and package multiple control instructions according to preset dimensions to generate a composite instruction frame; it is used to adopt variable-length field coding during the instruction transmission process and combine PLC broadcasting and IP multicast technologies to achieve dual-channel transmission of control instructions, increasing the channel utilization rate by more than 3 times; it is also used to receive feedback from smart home devices and analyze the instruction execution status and transmission efficiency.

[0049] The lightweight parsing algorithm module is embedded in the smart home device and is used to disassemble the composite instruction into single executable instructions and implement parallel execution of single instructions. After execution is completed, the smart home device feeds back the execution result to the message aggregation adapter middleware to form a closed-loop control.

[0050] In this embodiment, the message aggregation adapter middleware involved collects multiple control instructions to be sent in real time, groups the control instructions in detail according to the device ID and parameter type. After grouping is completed, the control instructions within the same group are packaged to generate a composite instruction frame, and variable-length field coding is used to compress the instruction data. Specifically, the message aggregation adapter middleware packages the control instructions within the same group to generate a hierarchical composite instruction frame, where the outer layer is the global control header, including the aggregation identifier, verification information, and total number of instructions, and the inner layer is the sub-instruction block, and each sub-block corresponds to the instruction set of a device.

[0051] It should be added that the message aggregation adapter middleware involved also has a built-in conflict detection algorithm. For mutually exclusive instructions, the instruction order is automatically adjusted through priority determination or delayed execution strategies to ensure that the instruction logic within the composite instruction frame is compatible.

[0052] In this embodiment, the lightweight parsing algorithm module embedded in the smart home device adopts a pipeline design, and the process of disassembling the composite instruction is divided into multiple parallel processing stages such as "frame header parsing → instruction extraction → parameter verification". Subsequently, using the multi-core processor resources of the smart home device, the disassembled single instructions are allocated to different cores for parallel execution.

[0053] In this embodiment, after the message aggregation adapter middleware receives the feedback from the smart home device, it analyzes the instruction execution status and transmission efficiency:

[0054] If it is found that the instruction execution is incorrect or the transmission delay is too high, adjust the grouping strategy, coding method, or transmission channel selection logic to optimize the subsequent instruction aggregation and transmission process;

[0055] If the device feedback is normal, continuously receive new control instructions and repeat the S1-S4 process to achieve efficient and stable control of the smart home device.

[0056] In summary, by adopting the control efficiency optimization method and system based on the message aggregation protocol of the present invention, the number of message transmissions can be reduced by more than 90%, the control delay can be reduced, the channel utilization rate can be increased by more than 3 times, and the system response speed and user experience can be significantly improved.

[0057] The above specific application examples have elaborated in detail the principle and implementation manner of the present invention. These examples are only used to help understand the core technical content of the present invention. Based on the above specific embodiments of the present invention, any improvements and modifications made by those skilled in the art in the technical field of the present invention without departing from the principle of the present invention shall fall within the scope of the patent protection of the present invention.

Claims

1. A method for optimizing control efficiency based on a message aggregation protocol, characterized in that This method realizes the batch encapsulation and transmission of multiple control instructions with the help of the message aggregation adapter middleware in the software layer, specifically including the following steps: S1. Deploy the message aggregation adapter middleware as an aggregation engine on the computing and networking host, group and package multiple control instructions according to a preset dimension, and generate a composite instruction frame; S2. The message aggregation adapter middleware combines PLC broadcasting and IP multicast technologies to achieve dual-channel transmission of control instructions; S3. Embed a lightweight parsing algorithm in the smart home device, disassemble the composite instruction into single executable instructions, and achieve parallel execution of single instructions. After execution, the smart home device feeds back the execution result to the message aggregation adapter middleware to form a closed-loop control; S4. After receiving the device feedback, the message aggregation adapter middleware analyzes the instruction execution status and transmission efficiency.

2. The control efficiency optimization method based on the message aggregation protocol according to claim 1, wherein The specific steps of step S1 include: S1.

1. Deploy the message aggregation adapter middleware as an aggregation engine on the computing and networking host to collect multiple control instructions to be sent in real time; S1.

2. The message aggregation adapter middleware carefully groups the control instructions according to the device ID and parameter type; S1.

3. After grouping, the message aggregation adapter middleware packages the control instructions within the same group, generates a composite instruction frame, and compresses the instruction data using variable-length field encoding.

3. The control efficiency optimization method based on the message aggregation protocol according to claim 2, characterized in that, The message aggregation adapter middleware is built-in with a conflict detection algorithm. For mutually exclusive instructions, the instruction order is automatically adjusted through a priority determination or delayed execution strategy to ensure the compatibility of the instruction logic within the composite instruction frame.

4. A method for optimizing control efficiency based on a message aggregation protocol according to claim 2, characterized in that The message aggregation adapter middleware packages the control instructions within the same group to generate a hierarchical composite instruction frame, where the outer layer is a global control header, including an aggregation identifier, verification information, and the total number of instructions, and the inner layer is a sub-instruction block, and each sub-block corresponds to an instruction set of a device.

5. A method for optimizing control efficiency based on a message aggregation protocol according to claim 4, characterized in that, When the message aggregation adapter middleware transmits the composite instruction to the smart home device, the lightweight parsing algorithm embedded in the smart home device adopts a pipeline design, and the process of disassembling the composite instruction is divided into multiple parallel processing stages such as "frame header parsing → instruction extraction → parameter verification". Subsequently, using the multi-core processor resources of the smart home device, the disassembled single instructions are allocated to different cores for parallel execution.

6. A control efficiency optimization system based on a message aggregation protocol, characterized in that, It includes: The message aggregation adapter middleware, deployed on the computing and networking host, is used to group and package multiple control instructions according to a preset dimension to generate a composite instruction frame; It is used to adopt variable-length field encoding during the instruction transmission process, combine PLC broadcasting and IP multicast technologies to achieve dual-channel transmission of control instructions; it is also used to receive the feedback from the smart home device and analyze the instruction execution status and transmission efficiency; The lightweight parsing algorithm module, embedded in the smart home device, is used to disassemble the composite instruction into single executable instructions and achieve parallel execution of single instructions. After execution, the smart home device feeds back the execution result to the message aggregation adapter middleware to form a closed-loop control.

7. The control efficiency optimization system based on the message aggregation protocol according to claim 6, characterized in that, The message aggregation adapter middleware collects multiple control instructions to be sent in real time, carefully groups the control instructions according to the device ID and parameter type. After grouping, the control instructions within the same group are packaged to generate a composite instruction frame, and variable-length field coding is used to compress the instruction data.

8. A control efficiency optimization method based on a message aggregation protocol according to claim 7, characterized in that The message aggregation adapter middleware has a built-in conflict detection algorithm. For mutually exclusive instructions, the instruction order is automatically adjusted through a priority determination or delayed execution strategy to ensure the compatibility of the instruction logic within the composite instruction frame.

9. The control efficiency optimization system based on the message aggregation protocol according to claim 7, wherein The message aggregation adapter middleware packages the control instructions within the same group to generate a hierarchical composite instruction frame, where the outer layer is a global control header, including an aggregation identifier, verification information, and the total number of instructions, and the inner layer is a sub-instruction block, with each sub-block corresponding to the instruction set of a device.

10. The control efficiency optimization system based on the message aggregation protocol according to claim 9, wherein, The lightweight parsing algorithm module embedded in the smart home device adopts a pipeline design, and divides the composite instruction disassembling process into multiple parallel processing stages such as "frame header parsing → instruction extraction → parameter verification". Subsequently, using the multi-core processor resources of the smart home device, the disassembled single instructions are allocated to different cores for parallel execution.