Protocol Gateway Batching MQTT to HTTP Payloads
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
The existing technologies face challenges in enabling efficient communication between Internet devices using HTTP/HTTPS protocols and IoT devices using MQTT protocols due to the lack of protocol support in many devices, making interconversion difficult.
Innovation Solution
A method for interconversion between protocols involves pre-establishing a publication/subscription list to record relationships between publishers and subscribers, extracting packet data payloads based on protocol types, determining payload sizes, and performing protocol conversion when necessary to send packets to corresponding subscribers.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Adaptability or versatility
If protocol conversion is performed for every packet between MQTT and HTTP/HTTPS, then communication compatibility between IoT devices and Internet devices is improved, but data transmission efficiency deteriorates due to increased processing overhead
Solution Approach 1:
The patent combines multiple small packet data payloads into a single batch for processing and transmission. The gateway accumulates packets from multiple IoT devices and merges their payloads before converting to HTTP/HTTPS format, reducing the number of conversion operations and improving transmission efficiency while maintaining protocol compatibility
Solution Approach 2:
The patent performs preliminary extraction of packet data payloads from MQTT packets before protocol conversion. By separating the payload extraction step from the full protocol conversion process, the system prepares data in advance for efficient batch processing and reduces the processing overhead of individual packet conversions
2Speed
If packet data payloads are sent individually to subscribers, then real-time communication is improved, but data transmission efficiency deteriorates due to increased network overhead
Solution Approach 1:
The patent merges packet data payloads from multiple sources into batches before transmission to HTTP/HTTPS subscribers. By combining multiple small payloads into larger batch transmissions, the system reduces network overhead and improves transmission efficiency while still maintaining acceptable real-time communication through controlled batching with preset waiting durations
3Reliability
If protocol conversion is performed for each packet, then communication accuracy between different protocols is improved, but processing overhead increases reducing overall system performance
Solution Approach 1:
The patent performs preliminary extraction of packet data payloads from MQTT packets before protocol conversion to HTTP/HTTPS. By separating payload extraction from the full conversion process and processing payloads in batches, the system reduces the computational overhead of individual packet conversions while maintaining communication accuracy through structured batch processing and protocol type matching
Data Source
AI summary
A method for interconversion between protocols, including the following steps: pre-establishing a publication/subscription list; when a packet published by a publisher is received, searching the publication/subscription list for a protocol type of the packet; extracting a packet data payload from the packet; determining whether a size of the packet data payload is less than a preset combination threshold; if yes, sending the packet data payload to a packet data payload queue of the publisher, and combining a packet data payload in the packet data payload queue when a size of the packet data payload queue reaches a preset transmission threshold or no new packet is received after a preset waiting duration; searching the publication/subscription list for all subscribers corresponding to the publisher; and performing protocol conversion on the packet one by one based on protocol types used by the corresponding subscribers, and sending protocol-converted packets to the corresponding subscribers.


