CN117135011A - Method for adapting gateway to multiple cloud platforms based on MQTT communication and gateway system - Google Patents

Method for adapting gateway to multiple cloud platforms based on MQTT communication and gateway system Download PDF

Info

Publication number
CN117135011A
CN117135011A CN202311406359.4A CN202311406359A CN117135011A CN 117135011 A CN117135011 A CN 117135011A CN 202311406359 A CN202311406359 A CN 202311406359A CN 117135011 A CN117135011 A CN 117135011A
Authority
CN
China
Prior art keywords
gateway
topic
authentication
equipment
cloud platform
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202311406359.4A
Other languages
Chinese (zh)
Other versions
CN117135011B (en
Inventor
李泽润
连以泉
黎沛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Tiansi Intelligent Technology Co ltd
Original Assignee
Shenzhen Tiansi Intelligent Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Tiansi Intelligent Technology Co ltd filed Critical Shenzhen Tiansi Intelligent Technology Co ltd
Priority to CN202311406359.4A priority Critical patent/CN117135011B/en
Publication of CN117135011A publication Critical patent/CN117135011A/en
Application granted granted Critical
Publication of CN117135011B publication Critical patent/CN117135011B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/66Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0823Network architectures or network communication protocols for network security for authentication of entities using certificates
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/083Network architectures or network communication protocols for network security for authentication of entities using passwords
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0876Network architectures or network communication protocols for network security for authentication of entities based on the identity of the terminal or configuration, e.g. MAC address, hardware or software configuration or device fingerprint
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/26Special purpose or proprietary protocols or architectures
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/40Network security protocols

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses a method for a gateway to adapt to a plurality of cloud platforms based on MQTT communication, which comprises the following steps: connecting the gateway with the cloud platform and the terminal equipment; generating a self-management system interface in a gateway, configuring a gateway TOPIC which is matched with a cloud platform in the self-management system interface, and binding the gateway TOPIC to terminal equipment through the gateway TOPIC; the gateway TOPIC is set according to a defined object model, wherein the object model comprises equipment attributes; the gateway TOPIC is associated with equipment attributes of the terminal equipment; configuring a polling request in a gateway, and acquiring data corresponding to the equipment attribute of the terminal equipment at fixed time according to the polling request; and the gateway analyzes the data, assembles the data into an MQTT message according to the gateway TOPIC and sends the MQTT message to a cloud platform for storage. The invention also discloses a gateway system. The TOPIC can be autonomously configured in the gateway, and different cloud platforms can be adapted.

Description

Method for adapting gateway to multiple cloud platforms based on MQTT communication and gateway system
Technical Field
The invention relates to a gateway, in particular to a method for enabling the gateway to adapt to a plurality of cloud platforms based on MQTT communication and a gateway system.
Background
In the field of the internet of things, a gateway plays a key role, and is an important component in the architecture of the internet of things, and the gateway is used for connecting and coordinating communication and data transmission between the internet of things equipment and the cloud platform.
The existing gateway is connected with the cloud platform in the following ways:
1. directly accessing equipment into a cloud platform
The device is directly connected to a single cloud platform, and data exchange can be rapidly achieved. However, the disadvantage is that the communication protocols and data formats between different cloud platforms are different, so that equipment manufacturers need to adapt and modify the different cloud platforms, which consumes a great deal of time and effort.
2. Data transmission using standard communication protocols
The device is connected with the cloud platform for data transmission using standard communication protocols (e.g., HTTP, HTTPS, MQTT, etc.). However, this approach may lead to slow device start-up times and lifecycle problems when the network is interrupted, and in addition, the different communication protocols and data formats between different cloud platforms may lead to adaptation problems.
3. Cloud edge cooperation based mode
The device and the cloud platform are connected by using an application program, and the device can be transmitted and managed by using an API and an SDK. The biggest disadvantage of this approach is that it requires a strong technical capability for the equipment manufacturer, while requiring a lot of effort to implement the development of APIs and SDKs.
Obviously, although communication is supported between more and more cloud platforms and gateways by using the MQTT, the access modes, data formats and protocols of different cloud platforms are greatly different, so that great difficulty is brought to equipment manufacturers in accessing and managing equipment, and the gateways cannot be well adapted to a plurality of cloud platforms.
Disclosure of Invention
The invention provides a method for enabling a gateway to adapt to a plurality of cloud platforms based on MQTT communication in order to solve the technical problem that the gateway in the prior art cannot adapt to the cloud platforms well.
In order to solve the technical problems, the technical scheme adopted by the invention is to design a method for enabling a gateway to adapt to a plurality of cloud platforms based on MQTT communication, which comprises the following steps:
connecting the gateway with the cloud platform and the terminal equipment;
generating a self-management system interface in a gateway, configuring a gateway TOPIC which is matched with a cloud platform in the self-management system interface, and binding the gateway TOPIC to terminal equipment through the gateway TOPIC; the gateway TOPIC is set according to a defined object model, wherein the object model comprises equipment attributes; the gateway TOPIC is associated with equipment attributes of the terminal equipment;
configuring a polling request in a gateway, and acquiring data corresponding to the equipment attribute of the terminal equipment at fixed time according to the polling request;
and the gateway analyzes the data, assembles the data into an MQTT message according to the gateway TOPIC and sends the MQTT message to a cloud platform for storage.
And generating an equipment attribute setting column, a method setting column and an event setting column in the self-management system interface, and configuring the gateway TOPIC in the equipment attribute setting column, the method setting column and the event setting column.
The step of assembling the data into an MQTT message according to the gateway TOPIC and sending the MQTT message to a cloud platform for storage comprises the following steps:
and associating the data with the gateway TOPIC according to the equipment attribute configured by the gateway TOPIC, replacing attribute parameters corresponding to the equipment attribute configured by the gateway TOPIC, storing the attribute parameters into a gateway, and then assembling the attribute parameters into an MQTT message according to the gateway TOPIC and sending the MQTT message to a cloud platform for storage.
The gateway is also connected with a mobile terminal through a network, the self-management system interface is opened at the mobile terminal, the gateway TOPIC is configured, and the operation of the gateway is monitored through the mobile terminal.
The connecting the gateway with the cloud platform and the terminal equipment comprises the following steps:
configuring an authentication mode for the gateway, wherein the gateway, the cloud platform and the terminal equipment are authenticated firstly, and connection is established after authentication is successful; the authentication mode comprises the following steps: built-in authentication file authentication, certificate authentication, hardware address authentication and user name password authentication.
The method for enabling the gateway to adapt to a plurality of cloud platforms based on MQTT communication further comprises the following steps:
the cloud platform issues a service to the gateway through an MQTT, the gateway performs matching on the service according to the gateway TOPIC, if the matching is successful, the service is checked according to the configuration of the gateway TOPIC, after the check is passed, an execution instruction is issued to the terminal equipment, the terminal equipment executes a function corresponding to the execution instruction, an execution result is returned to the gateway, and the execution result is transmitted to the cloud platform through the gateway.
The invention also provides a gateway system, which comprises a gateway, a cloud platform connected with the gateway and terminal equipment connected with the gateway, wherein the gateway comprises:
the TOPIC configuration module is used for generating a self-management system interface in the gateway, configuring a gateway TOPIC which is matched with the cloud platform in the self-management system interface, and binding the gateway TOPIC to the terminal equipment through the gateway TOPIC; the gateway TOPIC is set according to a defined object model, wherein the object model comprises equipment attributes; the gateway TOPIC is associated with equipment attributes of the terminal equipment;
the data acquisition module is used for configuring a polling request in a gateway and acquiring data corresponding to the equipment attribute of the terminal equipment at fixed time according to the polling request;
and the data processing module analyzes the data, assembles the data into an MQTT message according to the gateway TOPIC and sends the MQTT message to a cloud platform for storage.
Generating a device attribute setting column, a method setting column and an event setting column in the self-management system interface, and configuring the gateway TOPIC in the device attribute setting column, the method setting column and the event setting column;
the step of assembling the data into an MQTT message according to the gateway TOPIC and sending the MQTT message to a cloud platform for storage comprises the following steps:
and associating the data with the gateway TOPIC according to the equipment attribute configured by the gateway TOPIC, replacing attribute parameters corresponding to the equipment attribute configured by the gateway TOPIC, storing the attribute parameters into a gateway, and then assembling the attribute parameters into an MQTT message according to the gateway TOPIC and sending the MQTT message to a cloud platform for storage.
The gateway system also comprises a mobile terminal, the gateway is connected with the mobile terminal through a network, the self-management system interface is opened at the mobile terminal, the gateway TOPIC is configured, and the operation of the gateway is monitored through the mobile terminal.
The gateway further comprises an authentication module, wherein the authentication module configures an authentication mode for the gateway, the cloud platform and the terminal equipment perform authentication firstly, and connection is established after authentication is successful; the authentication mode comprises the following steps: built-in authentication file authentication, certificate authentication, hardware address authentication and user name password authentication.
The invention generates a self-management system interface in the gateway, configures a gateway TOPIC matched with the cloud platform in the self-management system interface, and binds the gateway TOPIC to the terminal equipment; the gateway TOPIC is set according to a defined object model, wherein the object model comprises equipment attributes; the gateway TOPIC is associated with equipment attributes of the terminal equipment; configuring a polling request in a gateway, and acquiring data corresponding to the equipment attribute of the terminal equipment at fixed time according to the polling request; and then analyzing the data through a gateway, and assembling the data into an MQTT message according to the gateway TOPIC and sending the MQTT message to a cloud platform for storage. Therefore, a user can dynamically configure the gateway TOPIC in the gateway through the self-management system interface conveniently so as to adapt to different cloud platforms.
Drawings
The invention is described in detail below with reference to examples and figures, wherein:
FIG. 1 is a flow chart of a method for a gateway to adapt to a plurality of cloud platforms based on MQTT communication according to the present invention;
fig. 2 is a schematic diagram of the gateway system of the present invention.
Detailed Description
Specific embodiments of the invention are further described below with reference to the accompanying drawings:
please refer to fig. 1-2 together. The method for adapting the gateway to the cloud platforms based on the MQTT communication comprises the following steps:
the first step: and connecting the gateway with the cloud platform and the terminal equipment.
An authentication mode can be configured for the gateway, the cloud platform and the terminal equipment are authenticated firstly, and connection is established after authentication is successful; the authentication mode comprises the following steps: built-in authentication file authentication, certificate authentication, hardware address authentication and user name password authentication.
An appropriate authentication method may be configured for each gateway, for example, authentication may be performed by configuring a server address, a port, a user name, a password, a certificate, or the like, or authentication and registration may be performed by incorporating an authentication file when the system is burned.
And a second step of: generating a self-management system interface in a gateway, configuring a gateway TOPIC which is matched with a cloud platform in the self-management system interface, and binding the gateway TOPIC to terminal equipment through the gateway TOPIC; the gateway TOPIC is set according to a defined object model, wherein the object model comprises equipment attributes; the gateway TOPIC is associated with a device attribute of the terminal device.
The use of object models can facilitate the description, control and understanding of the functions of the product by using a unified language, and the object models are composed of a plurality of 'parameters', and the parameters are different according to the described function types and are divided into attributes, methods and events.
In this specific embodiment, an equipment attribute setting column, a method setting column and an event setting column are generated in the self-management system interface, and the gateway TOPIC is configured in the equipment attribute setting column, the method setting column and the event setting column. By generating the menu type setting bar, the user can more conveniently configure the gateway TOPIC.
In this embodiment, in order to facilitate configuration of the gateway TOPIC at any time and any place, and at the same time, the gateway may also be connected to a mobile terminal through a network, the self-management system interface is opened at the mobile terminal, configuration is performed on the gateway TOPIC, and operation of the gateway is monitored through the mobile terminal.
And (3) defining an object model for describing the gateway and the terminal equipment through a JSON format, and describing the equipment function and the data structuring mode. And realizing the functions of the object model at the terminal equipment, wherein the functions comprise the functions corresponding to the attribute, the method and the event.
A separate gateway TOPIC needs to be configured for attributes, methods, events to ensure proper data exchange. This includes publish and subscribe topics. The topics should be associated with the attributes, methods, and events defined in the object model so that the device can send and receive data.
And a third step of: and configuring a polling request in a gateway, and acquiring data corresponding to the equipment attribute of the terminal equipment at fixed time according to the polling request.
Fourth step: and the gateway analyzes the data, assembles the data into an MQTT message according to the gateway TOPIC and sends the MQTT message to a cloud platform for storage.
The step of assembling the data into an MQTT message according to the gateway TOPIC and sending the MQTT message to a cloud platform for storage comprises the following steps: and associating the data with the gateway TOPIC according to the equipment attribute configured by the gateway TOPIC, replacing attribute parameters corresponding to the equipment attribute configured by the gateway TOPIC, storing the attribute parameters into a gateway, and then assembling the attribute parameters into an MQTT message according to the gateway TOPIC and sending the MQTT message to a cloud platform for storage.
For example, define gateway TOPIC as: sky/{ deviceName }/{ product key }/attribute/temperature; the key values of this gateway TOPIC are: { deviceName }/{ product key }, other values may be freely defined according to different cloud platforms, such as: my/{ product Key }/{ deviceName }/properties/temperature.
If the gateway TOPIC is associated with a temperature sensor (i.e. terminal equipment), the key attributes are: { deviceName: '0001', product key: ddda001};
the defined gateway TOPIC is: skisi/0001/ddda 001/attribute/temperature.
Defining a function of acquiring air temperature for a temperature sensor (namely, terminal equipment), wherein the return value is { temperature: xx }; by configuring the reporting data format of the gateway TOPIC, key attributes can be bound to the device's temperature return value.
The reported data format is:
{
date constant acquisition
version constant acquisition
data:{
temperature acquisition temperature-temperature attribute mapped to terminal device
}
}
All keys and format levels on the examples can be adjusted for different cloud platforms.
The following is a specific example.
For example, an object model related to the number of CPUs and the memory size is defined, the number of CPUs and the memory size are attribute names, the two attribute names are in one-to-one correspondence with attribute parameters, the data types of the attribute parameters are of the int type, and meanwhile, a service for giving an alarm is provided. The specific program code is as follows:
{
propertys:{
cpu_rate:{
data_type:int
},
memeny:{
data_type:int
}
},
servers:{
alarm:{
params:{
switch:{
data_type:"string"
}
}
}
}
}
meanwhile, the gateway develops corresponding functions to realize the functions of acquiring the CPU utilization rate and the memory size.
And through associating the corresponding object model in the gateway TOPIC, triggering the corresponding function of the gateway if the object model is a release TOPIC, acquiring a corresponding value, updating the main body parameter, and triggering the corresponding service if the object model is a subscription TOPIC.
TOPIC is of two types: publish and subscribe. Wherein:
the publishing application reports the attribute and the event.
For example, defining the main parameters of attribute report, the specific program code is as follows:
{
id:1212121a
version:"1.0",
params:{
"cpu_rate":{
value: "#propertys>cpu_num"
},
"memory":{
value:"#propertys>memeny"
}
}
}
the gateway automatically recognizes the attribute of the TOPIC according to the rule, and when "# properties > cpu_num", "# properties > means" are recognized, the gateway is associated with cpu_num and means of the model of the device in a one-to-one correspondence manner, invokes the function of the device to obtain a corresponding value, and replaces the original value. For example, when the cpu usage is 20% and the memory size is 8G, the program code corresponding to the main parameter reported after conversion is as follows:
{
id:1212121a
version:"1.0",
params:{
"cpu_num":{
value: 50
},
"memory":{
value:80129911
}
}
}
the subscription application is received at the service. The definition of the subject parameters is as follows:
{
"id": "123",
"version": "1.0",
"params": {
"switch": "#servers>alarm"
},
"method": "thing.service.alarm"
}
when the TOPIC of the gateway receives the message to identify the method attribute, the threshold is related to the service, the program recalls the related method, and the value in the params is used as a parameter to be transferred to the method, so that the function of issuing the adaptation service is achieved.
Because the user can dynamically configure the corresponding TOPIC at the gateway through the self-management system interface, the situation that the TOPIC is directly fixed and cannot be modified when the user is in butt joint with the cloud platform can be avoided, so that the user can conveniently and dynamically configure the TOPIC at the gateway, and different cloud platforms can be adapted.
Please refer to fig. 2. The gateway system of the invention comprises a gateway 1, a cloud platform 2 connected with the gateway and a terminal device 3 connected with the gateway, wherein:
the gateway comprises a TOPIC configuration module, a data acquisition module and a data processing module, wherein:
the TOPIC configuration module generates a self-management system interface in the gateway, configures a gateway TOPIC matched with the cloud platform in the self-management system interface, and binds the gateway TOPIC to the terminal equipment through the gateway TOPIC; the gateway TOPIC is set according to a defined object model, wherein the object model comprises equipment attributes; the gateway TOPIC is associated with a device attribute of the terminal device.
And generating an equipment attribute setting column, a method setting column and an event setting column in the self-management system interface, and configuring the gateway TOPIC in the equipment attribute setting column, the method setting column and the event setting column.
The data acquisition module configures a polling request in a gateway, and acquires data corresponding to the equipment attribute of the terminal equipment at fixed time according to the polling request.
And the data processing module analyzes the data, assembles the data into an MQTT message according to the gateway TOPIC and sends the MQTT message to a cloud platform for storage.
The step of assembling the data into an MQTT message according to the gateway TOPIC and sending the MQTT message to a cloud platform for storage comprises the following steps: and associating the data with the gateway TOPIC according to the equipment attribute configured by the gateway TOPIC, replacing attribute parameters corresponding to the equipment attribute configured by the gateway TOPIC, storing the attribute parameters into a gateway, and then assembling the attribute parameters into an MQTT message according to the gateway TOPIC and sending the MQTT message to a cloud platform for storage.
In this embodiment, the gateway system further includes a mobile terminal 4, where the gateway is further connected to the mobile terminal through a network, and the self-management system interface is opened at the mobile terminal, so as to configure the gateway TOPIC, and monitor the operation of the gateway through the mobile terminal. Therefore, the configuration of the gateway TOPIC can be conveniently carried out anytime and anywhere, and meanwhile, the gateway can be monitored.
In order to ensure orderly connection, the gateway further comprises an authentication module, wherein the authentication module configures an authentication mode for the gateway, the cloud platform and the terminal equipment perform authentication firstly, and connection is established after authentication is successful; the authentication mode comprises the following steps: built-in authentication file authentication, certificate authentication, hardware address authentication and user name password authentication.
The invention has the following characteristics:
1. a user can dynamically configure the gateway TOPIC at the gateway through a self-management system interface, so that the situation that the TOPIC is directly fixed and cannot be modified when the user is in butt joint with a cloud platform can be avoided, the aim of adapting to different cloud platforms is fulfilled, and more flexible and fine data transmission and control means are provided.
2. The support gateway is connected with the cloud platform in a mode of attribute configuration or configuration file import, and high compatibility and expandability of cloud service are improved. Through the modularized design concept and a general software architecture, different cloud platform interfaces and protocols can be adapted, and interoperability and compatibility between equipment and a cloud platform are realized. Meanwhile, the user can freely select the corresponding cloud platform and input corresponding information for authentication and connection.
3. The gateway can be connected with different cloud platforms, so that the flexibility and configurability of the cloud platforms and the gateway are improved, and the maintenance cost is reduced.
4. The device access and data transmission based on the MQTT communication protocol adopts the general MQTT communication protocol, so that the communication and data transmission between the terminal device and the cloud platform can be efficiently, stably and safely carried out.
5. By setting the self-management system interface and through the terminals such as the webpage, the mobile phone and the like, a user can monitor the running state of the gateway, the data transmission condition and the equipment access condition at any time and any place, and configure and manage the system in real time, so that the change and adjustment of different business requirements are met.
The foregoing description of the preferred embodiments of the invention is not intended to be limiting, but rather is intended to cover all modifications, equivalents, and alternatives falling within the spirit and principles of the invention.

Claims (10)

1. The method for enabling the gateway to adapt to a plurality of cloud platforms based on MQTT communication is characterized by comprising the following steps:
connecting the gateway with the cloud platform and the terminal equipment;
generating a self-management system interface in a gateway, configuring a gateway TOPIC which is matched with a cloud platform in the self-management system interface, and binding the gateway TOPIC to terminal equipment through the gateway TOPIC; the gateway TOPIC is set according to a defined object model, wherein the object model comprises equipment attributes; the gateway TOPIC is associated with equipment attributes of the terminal equipment;
configuring a polling request in a gateway, and acquiring data corresponding to the equipment attribute of the terminal equipment at fixed time according to the polling request;
and the gateway analyzes the data, assembles the data into an MQTT message according to the gateway TOPIC and sends the MQTT message to a cloud platform for storage.
2. The method for adapting a gateway to a plurality of MQTT-communication-based cloud platforms according to claim 1, wherein: and generating an equipment attribute setting column, a method setting column and an event setting column in the self-management system interface, and configuring the gateway TOPIC in the equipment attribute setting column, the method setting column and the event setting column.
3. The method for adapting a gateway to a plurality of MQTT-communication-based cloud platforms according to claim 1, wherein: the step of assembling the data into an MQTT message according to the gateway TOPIC and sending the MQTT message to a cloud platform for storage comprises the following steps:
and associating the data with the gateway TOPIC according to the equipment attribute configured by the gateway TOPIC, replacing attribute parameters corresponding to the equipment attribute configured by the gateway TOPIC, storing the attribute parameters into a gateway, and then assembling the attribute parameters into an MQTT message according to the gateway TOPIC and sending the MQTT message to a cloud platform for storage.
4. The method for adapting a gateway to a plurality of MQTT-communication-based cloud platforms according to claim 3, wherein: the gateway is also connected with a mobile terminal through a network, the self-management system interface is opened at the mobile terminal, the gateway TOPIC is configured, and the operation of the gateway is monitored through the mobile terminal.
5. The method for adapting a gateway to a plurality of MQTT-communication-based cloud platforms according to claim 1, wherein: the connecting the gateway with the cloud platform and the terminal equipment comprises the following steps:
configuring an authentication mode for the gateway, wherein the gateway, the cloud platform and the terminal equipment are authenticated firstly, and connection is established after authentication is successful; the authentication mode comprises the following steps: built-in authentication file authentication, certificate authentication, hardware address authentication and user name password authentication.
6. The method for adapting a gateway to a plurality of MQTT-communication-based cloud platforms according to claim 1, wherein: the method for enabling the gateway to adapt to a plurality of cloud platforms based on MQTT communication further comprises the following steps:
the cloud platform issues a service to the gateway through an MQTT, the gateway performs matching on the service according to the gateway TOPIC, if the matching is successful, the service is checked according to the configuration of the gateway TOPIC, after the check is passed, an execution instruction is issued to the terminal equipment, the terminal equipment executes a function corresponding to the execution instruction, an execution result is returned to the gateway, and the execution result is transmitted to the cloud platform through the gateway.
7. The gateway system comprises a gateway, a cloud platform connected with the gateway and terminal equipment connected with the gateway, and is characterized in that: the gateway comprises:
the TOPIC configuration module is used for generating a self-management system interface in the gateway, configuring a gateway TOPIC which is matched with the cloud platform in the self-management system interface, and binding the gateway TOPIC to the terminal equipment through the gateway TOPIC; the gateway TOPIC is set according to a defined object model, wherein the object model comprises equipment attributes; the gateway TOPIC is associated with equipment attributes of the terminal equipment;
the data acquisition module is used for configuring a polling request in a gateway and acquiring data corresponding to the equipment attribute of the terminal equipment at fixed time according to the polling request;
and the data processing module analyzes the data, assembles the data into an MQTT message according to the gateway TOPIC and sends the MQTT message to a cloud platform for storage.
8. The gateway system of claim 7, wherein: generating a device attribute setting column, a method setting column and an event setting column in the self-management system interface, and configuring the gateway TOPIC in the device attribute setting column, the method setting column and the event setting column;
the step of assembling the data into an MQTT message according to the gateway TOPIC and sending the MQTT message to a cloud platform for storage comprises the following steps:
and associating the data with the gateway TOPIC according to the equipment attribute configured by the gateway TOPIC, replacing attribute parameters corresponding to the equipment attribute configured by the gateway TOPIC, storing the attribute parameters into a gateway, and then assembling the attribute parameters into an MQTT message according to the gateway TOPIC and sending the MQTT message to a cloud platform for storage.
9. The gateway system of claim 7, wherein: the gateway system also comprises a mobile terminal, the gateway is connected with the mobile terminal through a network, the self-management system interface is opened at the mobile terminal, the gateway TOPIC is configured, and the operation of the gateway is monitored through the mobile terminal.
10. The gateway system of claim 9, wherein: the gateway further comprises an authentication module, wherein the authentication module configures an authentication mode for the gateway, the cloud platform and the terminal equipment perform authentication firstly, and connection is established after authentication is successful; the authentication mode comprises the following steps: built-in authentication file authentication, certificate authentication, hardware address authentication and user name password authentication.
CN202311406359.4A 2023-10-27 2023-10-27 Method for adapting gateway to multiple cloud platforms based on MQTT communication and gateway system Active CN117135011B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311406359.4A CN117135011B (en) 2023-10-27 2023-10-27 Method for adapting gateway to multiple cloud platforms based on MQTT communication and gateway system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311406359.4A CN117135011B (en) 2023-10-27 2023-10-27 Method for adapting gateway to multiple cloud platforms based on MQTT communication and gateway system

Publications (2)

Publication Number Publication Date
CN117135011A true CN117135011A (en) 2023-11-28
CN117135011B CN117135011B (en) 2024-02-09

Family

ID=88861320

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311406359.4A Active CN117135011B (en) 2023-10-27 2023-10-27 Method for adapting gateway to multiple cloud platforms based on MQTT communication and gateway system

Country Status (1)

Country Link
CN (1) CN117135011B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20200177461A1 (en) * 2017-08-11 2020-06-04 Huawei Technologies Co., Ltd. Configuration Management Method and Apparatus, and Device
CN113572782A (en) * 2021-07-30 2021-10-29 广东机电职业技术学院 Internet of things gateway supporting multiple sensor networks and implementation method thereof
CN113778983A (en) * 2021-08-16 2021-12-10 济南浪潮智投智能科技有限公司 Internet of things equipment and data standardized access and summary presentation method
CN114205375A (en) * 2021-11-01 2022-03-18 国网浙江省电力有限公司信息通信分公司 Electric power data acquisition system based on edge internet of things agent equipment
CN114567620A (en) * 2022-03-10 2022-05-31 河钢数字技术股份有限公司 MQTT protocol-based digital model and physical equipment matching system and method
CN116668988A (en) * 2023-06-15 2023-08-29 江苏天安智联科技股份有限公司 C-V2X unified access gateway and access method based on multi-source sensing equipment
CN116827769A (en) * 2023-04-28 2023-09-29 河南大学 Automatic configuration Internet of things system based on MQTT protocol

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20200177461A1 (en) * 2017-08-11 2020-06-04 Huawei Technologies Co., Ltd. Configuration Management Method and Apparatus, and Device
CN113572782A (en) * 2021-07-30 2021-10-29 广东机电职业技术学院 Internet of things gateway supporting multiple sensor networks and implementation method thereof
CN113778983A (en) * 2021-08-16 2021-12-10 济南浪潮智投智能科技有限公司 Internet of things equipment and data standardized access and summary presentation method
CN114205375A (en) * 2021-11-01 2022-03-18 国网浙江省电力有限公司信息通信分公司 Electric power data acquisition system based on edge internet of things agent equipment
CN114567620A (en) * 2022-03-10 2022-05-31 河钢数字技术股份有限公司 MQTT protocol-based digital model and physical equipment matching system and method
CN116827769A (en) * 2023-04-28 2023-09-29 河南大学 Automatic configuration Internet of things system based on MQTT protocol
CN116668988A (en) * 2023-06-15 2023-08-29 江苏天安智联科技股份有限公司 C-V2X unified access gateway and access method based on multi-source sensing equipment

Also Published As

Publication number Publication date
CN117135011B (en) 2024-02-09

Similar Documents

Publication Publication Date Title
CN109889551B (en) Method for accessing intelligent hardware to Internet of things cloud platform
CN109361550B (en) Method, device and equipment for network equipment configuration management
CN102136933B (en) Equipment management method, middleware and machine communication platform, equipment and system
CN102710593B (en) Method, device and system for publishing message in graph mashup
CA2511912A1 (en) System and method for building and execution of platform-neutral generic services' client applications
JP2002223211A (en) Communication system for controller based on soap protocol
US7191232B2 (en) Extendable provisioning mechanism for a service gateway
WO2018176244A1 (en) Data collection method, device, and dynamic environment network management system
CN117135011B (en) Method for adapting gateway to multiple cloud platforms based on MQTT communication and gateway system
CN113296987A (en) Interface calling method and device for calling module, computer equipment and storage medium
CN113347195A (en) Dynamic mounting system and method for communication protocol packet of Internet of things equipment
CN110113430B (en) Communication method between mobile phone and raspberry pie based on cloud database
CN117118821A (en) Multi-data source management method based on client-server mode
CN116055538A (en) Control method and device of Internet of things equipment, terminal equipment and storage medium
CN114900558B (en) Universal equipment management protocol control method and device
CN113992622B (en) Multi-template aggregation message notification sending system and method based on unified model
CN101521592B (en) Method and device for establishing the SNMP agent of printer
CN114925135A (en) Data export method, device, system, electronic equipment and storage medium
CN116361535A (en) Data subscription and publishing method and device, internet of things data service platform and system
KR100638207B1 (en) Server-Client system and its method for the same
CN105530542B (en) Module television upgrading method and module television
AU2018373682B2 (en) Method for remote management of a device connected to a residential gateway
US6823390B1 (en) Method of setting up data communication with a communication means and furthermore program modules and means therefor
WO2010048815A1 (en) Method and system for developing and installing network management features of services
JP2009187107A (en) Access control system, method thereof and access control program

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant