Method for connecting industrial acquisition module with MQTT cloud server

A collection module, cloud server technology, applied in the direction of model-driven code, program code conversion, creation/generation of source code, etc. Good results

CN110430169AInactive Publication Date: 2019-11-08HUAZHONG UNIV OF SCI & TECH
3 Cites 6 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Publication Date
2019-11-08
Estimated Expiration
Not applicable · inactive patent

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

Abstract

The invention belongs to the related technical field of MQTT transmission protocols, and discloses a method for connecting an industrial acquisition module with an MQTT cloud server. The method comprises the following steps: (1) performing connection compiling on a logic program to generate a static library; (2) compiling a user program and the static library link to generate an HEX file, and downloading the HEX file into an acquisition module by using a serial port; (3) initializing an authentication parameter of the MQTT server by the acquisition module, and sending an access authenticationrequest through the wireless communication module to connect the MQTT server; (4) publishing the data information acquired in real time by the acquisition module to a predetermined theme of the MQTT server, and forwarding the published information to a client subscribing the predetermined theme by the MQTT server; meanwhile, subscribing to the theme by the acquisition module and sending the information under the corresponding theme to the acquisition module by the MQTT server. According to the invention, the applicability and the flexibility are improved.
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] The invention belongs to the technical field related to the MQTT transmission protocol, and more specifically relates to a method for connecting an industrial collection module to an MQTT cloud server. Background technique

[0002] At present, the emergence of new technologies such as big data, smart factories, and cloud computing heralds the arrival of a new era. In the field of industrial control, the R&D, production, and maintenance methods of traditional industrial sites appear to be limited and closed. The cost of manual operation and maintenance alone is too high and the production efficiency is not high. It is easy to make mistakes when processing more and more production data, and Failures cannot be dealt with in a timely manner.

[0003] The MQTT protocol is a TCP / IP-based application layer communication protocol developed by IBM. It has the advantages of light weight, open source, low power consumption, and low traffic. It is usually suitabl...

Examples

Embodiment Construction

[0029] In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not constitute a conflict with each other.

[0030] see figure 1 , figure 2 , image 3 and Figure 4 , the method that industrial acquisition module provided by the present invention connects MQTT cloud server, described method mainly comprises the following steps:

[0031] In step 1, the logic program is written in a modular form, and the logic program is linked and compiled to generate a static library.

[0032] Specifically, IEC61...