Chemical industry area conference communication method and system based on MQTT protocol
By adopting the publish/subscribe message mode of the MQTT protocol in the chemical regional conference system, the problems of high resource occupation and large bandwidth consumption caused by long WebSocket links are solved, and efficient conference message transmission is achieved, suitable for complex network environments.
Patent Information
- Application Number
- CN202510317471.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-18
- Publication Date
- 2025-06-10
AI Technical Summary
Due to the long linking of WebSocket in the chemical area, the existing paperless conference system has high server resource usage, large network bandwidth consumption, and complex network environment and difficult to ensure stability.
The chemical regional conference communication method based on the MQTT protocol is adopted, and the publish/subscribe message mode between the MQTT server cluster and the MQTT client is used to realize efficient transmission of conference messages and reduce network resource consumption.
Effectively utilize network resources, reduce bandwidth consumption, improve conference message transmission efficiency, and is suitable for complex chemical network environments.
Smart Images

Figure CN120128576A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of digital information transmission, and in particular relates to a chemical industry regional conference communication method and system based on the MQTT protocol. Background Art
[0002] In the existing paperless conference system, WebSocket technology is usually used to realize instant message transmission. Before the meeting, the speaker and the participants establish a WebSocket connection in advance. During the meeting, when the speaker performs operations such as opening the same screen, switching the meeting topic, and turning the page of the meeting materials, the instructions and messages are distributed to all participants through the server in real time to ensure that the content of both parties is synchronized.
[0003] Due to the characteristics of WebSocket long links, the server needs to maintain a large number of links, which may occupy more server resources and affect the performance and stability of the application. In addition, the network environment in the chemical industry is complex, and it is often difficult to ensure the stability of the network connection. In the process of using WebSocket to establish a long link and transmit messages, more network bandwidth will be consumed. Summary of the invention
[0004] In view of this, on the one hand, some embodiments disclose a chemical industry regional conference communication method based on the MQTT protocol, including:
[0005] Create a meeting and generate the corresponding meeting topic in the MQTT server cluster;
[0006] The conference speaker publishes conference messages through the main control terminal, which interacts with the system server. The system server performs permission verification and data processing according to business rules and combines them into conference message data.
[0007] The system server establishes a connection with the MQTT server cluster and sends the combined conference message data to the MQTT server cluster;
[0008] The MQTT server cluster receives conference message data and sends it to the client, and participants receive conference message data through the client.
[0009] Furthermore, some embodiments disclose a chemical industry regional conference communication method based on the MQTT protocol, further comprising:
[0010] The master and client establish connections with the MQTT server cluster respectively;
[0011] The master and client subscribe to the conference topic from the MQTT server cluster respectively.
[0012] The chemical industry area conference communication method based on the MQTT protocol disclosed in some embodiments, where the system server is connected to the MQTT server cluster in the MQTT Client mode.
[0013] The chemical industry area conference communication method based on the MQTT protocol disclosed in some embodiments, where the main control end and the client are MQTT clients integrated with the MQTT protocol.
[0014] The chemical industry area conference communication method based on the MQTT protocol disclosed in some embodiments, where the QoS service level of the MQTT protocol is set to deliver only once.
[0015] The chemical industry area conference communication method based on the MQTT protocol disclosed in some embodiments, where the main control end interacts with the lightweight REST API interface service of the system server.
[0016] The chemical industry area conference communication method based on the MQTT protocol disclosed in some embodiments, after the main control end and the client subscribe to the conference topic, the conference speaker and the participants respectively publish or receive messages to / from the subscribed conference topic through the main control end and the client, realizing two-way data exchange between the main control end and the client.
[0017] The chemical industry area conference communication method based on the MQTT protocol disclosed in some embodiments, where the conference messages include starting the conference, screen sharing, turning the conference materials page, switching topics, switching the speaker, and closing the screen sharing.
[0018] On the other hand, some embodiments disclose a chemical industry area conference communication system based on the MQTT protocol, for executing the chemical industry area conference communication method based on the MQTT protocol, including:
[0019] System server;
[0020] MQTT server cluster, configured to be connected to the system server in the MQTT Client mode;
[0021] Main control end, configured to be connected to the MQTT server cluster and serve as the MQTT client of the conference speaker;
[0022] Client, configured to be connected to the MQTT server cluster and serve as the MQTT client of the participants.
[0023] The chemical industry area conference communication method based on the MQTT protocol disclosed in the embodiments of the present invention eliminates the limitations of the traditional client / server mode with the publish / subscribe message mode of the MQTT protocol, can utilize network resources more effectively, reduce bandwidth consumption, and the conference message transmission is more efficient, being suitable for the chemical environment with complex network structures. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] Figure 1 Flowchart of a chemical industrial area conference communication method based on the MQTT protocol disclosed in some embodiments;
[0025] Figure 2 Composition diagram of a chemical industrial area conference system based on the MQTT protocol disclosed in some embodiments. Detailed implementation manners
[0026] The special term "embodiment" used herein, any embodiment described as "exemplary" does not have to be construed as superior to or better than other embodiments. For the performance index tests in the embodiments of the present invention, unless otherwise specified, conventional test methods in the art are adopted. It should be understood that the terms described in the embodiments of the present invention are only used to describe specific implementation manners and are not used to limit the content disclosed in the embodiments of the present invention.
[0027] Unless otherwise specified, the technical and scientific terms used herein have the same meanings as those commonly understood by those of ordinary skill in the technical field to which the embodiments of the present invention belong; other test methods and technical means not specifically noted in the embodiments of the present invention refer to the experimental methods and technical means commonly adopted by those of ordinary skill in the art.
[0028] The terms "substantially" and "about" used herein are used to describe small fluctuations. For example, they can refer to less than or equal to ±5%, such as less than or equal to ±2%, such as less than or equal to ±1%, such as less than or equal to ±0.5%, such as less than or equal to ±0.2%, such as less than or equal to ±0.1%, such as less than or equal to ±0.05%. Numerical data presented or represented in a range format herein is used only for convenience and brevity and should therefore be interpreted flexibly as including not only the values explicitly listed as the bounds of the range, but also all individual values or sub-ranges included within that range. For example, the numerical range of "1 to 5%" should be interpreted as including not only the explicitly listed values from 1% to 5%, but also the individual values and sub-ranges within the indicated range. Thus, within this numerical range, individual values such as 2%, 3.5%, and 4% are included, and sub-ranges such as 1% to 3%, 2% to 4%, and 3% to 5% are included, etc. This principle also applies to ranges that list only one numerical value. In addition, such an interpretation applies regardless of the width of the range or the characteristics described.
[0029] In this document, including in the claims, conjunctions such as "comprising", "including", "carrying", "having", "containing", "involving", "accommodating", etc. are understood to be open-ended, that is, meaning "including but not limited to". Only the conjunctions "consisting of" and "composed of" are closed conjunctions.
[0030] To better illustrate the content of the present invention, numerous specific details are given in the following specific embodiments. Those skilled in the art should understand that the present invention can also be implemented without certain specific details. In the embodiments, some methods, means, instruments, devices, etc. well-known to those skilled in the art are not described in detail in order to highlight the gist of the present invention.
[0031] On the premise of no conflict, the technical features disclosed in the embodiments of the present invention can be arbitrarily combined, and the obtained technical solutions belong to the content disclosed in the embodiments of the present invention.
[0032] In some embodiments, as Figure 1 shown, the chemical industrial area conference communication method based on the MQTT protocol includes:
[0033] Create a conference and generate a corresponding conference topic in the MQTT server cluster; generally, the conference topic is an MQTT topic, which can be designed hierarchically, similar to a URL path, and the generated conference topic can be subscribed through wildcards;
[0034] The conference speaker publishes conference messages through the main control end. The main control end interacts with the system server, and the system server performs permission verification and data processing according to business rules and combines them into conference message data;
[0035] The system server establishes a connection with the MQTT server cluster and sends the combined conference message data to the MQTT server cluster;
[0036] The MQTT server cluster receives the conference message data and sends it to the client, and the participants receive the conference message data through the client.
[0037] Generally, in the actual application scenario of the paperless conference system in the chemical industrial area, after creating a conference, the MQTT server cluster will generate a corresponding conference topic; when the speaker sends a message about the conference topic through the main control end, the main control end first interacts with the interface service of the system server, and the interface service performs permission verification and data processing according to business rules and combines them into the conference message data corresponding to the conference topic. Then the system server connects to the MQTT server cluster in the manner of an MQTT Client and sends the combined conference message data to the MQTT server cluster; after receiving the conference message data, the MQTT server cluster immediately publishes the message to the clients of all participants who have subscribed to the current topic. After receiving the conference message data, the client parses it, and the participants perform corresponding operations.
[0038] Generally, the MQTT protocol defines three QoS levels. Among them, the QoS0 level is for at most one delivery and does not guarantee success; the QoS1 level is for at least one delivery, but there may be duplicates; the QoS2 level is for exactly one delivery, which not only ensures successful delivery but also avoids duplicates. Given the complex and ever-changing network environment in the chemical industry area, the highest QoS2 level is adopted in the chemical industry area conference communication method based on the MQTT protocol to ensure that the instructions sent by the master control end can be accurately received only once by the clients of each participant, thus ensuring the smooth arrival of the instructions and avoiding chaos caused by repeated reception, and ensuring the smooth progress of the conference.
[0039] In some embodiments of the chemical industry area conference communication method based on the MQTT protocol, the master control end and the client are MQTT clients integrated with the MQTT protocol. After the master control end and the client are respectively connected to the MQTT server cluster, the master control end and the client respectively subscribe to the conference topic from the MQTT server cluster; after the master control end and the client subscribe to the conference topic, the conference speaker and the participants respectively send or receive messages to / from the subscribed conference topic through the master control end and the client, realizing two-way data exchange between the master control end and the client.
[0040] During the network communication process, the client of the participant only needs to establish one MQTT connection to quickly respond to various instructions sent by the master control end by subscribing to the corresponding topic or parsing the service message.
[0041] In some embodiments of the chemical industry area conference communication method based on the MQTT protocol, the conference messages include starting the conference, starting screen sharing, turning the conference materials page, switching the topic, switching the speaker, closing the screen sharing, etc.
[0042] In some embodiments of the chemical industry area conference communication method based on the MQTT protocol, all the devices used by the people entering the conference, including the speaker and the participants, will be connected to the MQTT server as MQTT clients, and realize message communication between devices based on the publish / subscribe mode of the MQTT protocol. There is no need to directly establish a connection between devices, but the MQTT server is responsible for message routing and distribution. Generally, the device used by the speaker is the master control end, and the devices used by the participants are the clients or controlled ends.
[0043] In some embodiments of the chemical industry area conference communication method based on the MQTT protocol, when the speaker enters the conference through the master control end and the participant enters the conference through the controlled end, they will use the conference ID as an identifier to connect to a specific conference topic. The speaker and the participant can both send messages to the specific conference topic and subscribe to receive messages on the specific conference topic, thus realizing two-way data exchange between the master control end and the controlled end.
[0044] In some embodiments, a chemical industrial zone conference communication method based on the MQTT protocol is disclosed. When the keynote speaker starts a conference, the master control end calls the MQTT interface encapsulated by the client SDK to publish a start conference message to a specific conference topic. After receiving the start conference message, the MQTT server forwards it to all clients subscribed to the corresponding topic. When the client receives the message, it executes the start conference instruction, and the conference starts on the participants' pages. This is equivalent to the keynote speaker making a single message publication and simultaneously achieving multiple message deliveries to the participants, thus realizing synchronous start of the conference.
[0045] In some embodiments, a chemical industrial zone conference communication method based on the MQTT protocol is disclosed. When the keynote speaker enables screen sharing, the master control end calls the MQTT interface encapsulated by the client SDK to publish a screen sharing message to a specific conference topic. After receiving the screen sharing message, the MQTT server forwards it to all clients subscribed to the corresponding conference topic. When the client receives the message, it executes the screen sharing instruction, and the participants' pages follow the screen sharing. This is equivalent to the keynote speaker making a single message publication, simultaneously achieving multiple message deliveries to the participants, and realizing screen sharing at the same time.
[0046] Some embodiments disclose a chemical industrial zone conference system based on the MQTT protocol for the chemical industrial zone conference communication method as Figure 2 shown, including:
[0047] A system server; generally, the interface service of the system server is a lightweight REST API, which is the core interface layer of the system, responsible for both handling business logic and encapsulating complex business information in a concise manner;
[0048] An MQTT server cluster, configured to connect to the system server in the MQTT Client mode; generally, the MQTT server is configured with a privatized distributed EMQX service, which can be horizontally scaled by adding service nodes to achieve seamless expansion of service capabilities and meet the growing business needs;
[0049] A master control end, configured to connect to the MQTT server cluster and act as the MQTT client of the conference keynote speaker; the master control end is also configured to interact with the lightweight REST API interface service of the system server;
[0050] Clients, configured to connect to the MQTT server cluster and act as the MQTT clients of the participants. Multiple participants can participate in the conference synchronously through multiple clients, such as Client 1, Client 2, and Client 3. Generally, the client SDK integrates the MQTT protocol, supports an automatic reconnection mechanism to ensure the continuity of data transmission; supports service quality (QoS) grading, and its core designs multiple message interaction mechanisms to provide different service qualities, which can meet users' requirements for message reliability in various scenarios.
[0051] The chemical industrial zone conference communication method and system based on the MQTT protocol disclosed in the embodiments of the present invention eliminate the limitations of the traditional client / server mode with the publish / subscribe message mode of the MQTT protocol, can utilize network resources more effectively, reduce bandwidth consumption, and make the conference message transmission more efficient, being suitable for the chemical industrial environment with a complex network structure.
[0052] The technical solutions disclosed in the embodiments of the present invention and the technical details disclosed in the embodiments are only exemplary illustrations of the inventive concept of the present invention, and do not constitute a limitation on the technical solutions of the embodiments of the present invention. Any conventional changes, substitutions, combinations, etc. made to the technical details disclosed in the embodiments of the present invention have the same inventive concept as the present invention and are within the protection scope of the claims of the present invention.
Claims
1. A chemical industry regional conference communication method based on the MQTT protocol, characterized in that: include: Create a meeting and generate the corresponding meeting topic in the MQTT server cluster; The conference speaker publishes conference messages through the main control terminal, which interacts with the system server. The system server performs permission verification and data processing according to business rules and combines them into conference message data. The system server establishes a connection with the MQTT server cluster and sends the combined conference message data to the MQTT server cluster; The MQTT server cluster receives conference message data and sends it to the client, and participants receive conference message data through the client.
2. The chemical area conference communication method based on the MQTT protocol according to claim 1 is characterized in that: Also includes: The master and client establish connections with the MQTT server cluster respectively; The master and client subscribe to the conference topic from the MQTT server cluster respectively.
3. The chemical area conference communication method based on the MQTT protocol according to claim 1 is characterized in that: The system server is connected to the MQTT server cluster in MQTT Client mode.
4. The chemical area conference communication method based on the MQTT protocol according to claim 1 is characterized in that: The master and client are MQTT clients integrated with the MQTT protocol.
5. According to claim 4, the chemical area conference communication method based on the MQTT protocol is received, characterized in that: The MQTT protocol QoS service level is set to deliver only once.
6. The chemical area conference communication method based on the MQTT protocol according to claim 1, characterized in that: The master terminal interacts with the system server's lightweight REST API interface service.
7. The chemical area conference communication method based on the MQTT protocol according to claim 2 is characterized in that: After the control terminal and the client subscribe to the conference topic, the conference presenter and the participants publish messages to the subscribed conference topic or receive messages through the control terminal and the client respectively, thus realizing two-way data exchange between the control terminal and the client.
8. The chemical area conference communication method based on the MQTT protocol according to claim 1, characterized in that: Meeting messages include starting a meeting, sharing the same screen, turning pages of meeting materials, switching topics, switching speakers, and closing sharing the same screen.
9. A chemical regional conference communication system based on the MQTT protocol, used to execute the method described in any one of claims 1 to 8, characterized in that: include: System server; An MQTT server cluster, configured to connect to the system server in MQTT Client mode; A master control terminal, configured to connect to the MQTT server cluster and serve as an MQTT client for the conference presenter; The client is configured to connect to the MQTT server cluster and serve as the MQTT client of the participant.
