CN114938329A - MQTT-based router gateway device management method and system - Google Patents

MQTT-based router gateway device management method and system Download PDF

Info

Publication number
CN114938329A
CN114938329A CN202210086316.1A CN202210086316A CN114938329A CN 114938329 A CN114938329 A CN 114938329A CN 202210086316 A CN202210086316 A CN 202210086316A CN 114938329 A CN114938329 A CN 114938329A
Authority
CN
China
Prior art keywords
router gateway
equipment
mqtt
cloud platform
platform server
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.)
Pending
Application number
CN202210086316.1A
Other languages
Chinese (zh)
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.)
Xiamen Rigo Communication Equipment Co ltd
Original Assignee
Xiamen Rigo Communication Equipment 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 Xiamen Rigo Communication Equipment Co ltd filed Critical Xiamen Rigo Communication Equipment Co ltd
Priority to CN202210086316.1A priority Critical patent/CN114938329A/en
Publication of CN114938329A publication Critical patent/CN114938329A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • 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
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a method and a system for managing router gateway equipment based on MQTT, wherein the method comprises the following steps: the router gateway equipment is connected to the cloud platform server through the MQTT, subscribes a theme related to the equipment serial number of the router gateway equipment after being online, and actively reports equipment information of the router gateway equipment; the method comprises the steps that a cloud platform server issues a message for requesting to view state parameters of router gateway equipment based on an equipment serial number, and the router gateway equipment receives the message, collects the state parameters and sends the state parameters to the cloud platform server; the cloud platform server issues a message for starting remote configuration equipment or remotely configuring a plurality of pieces of equipment in batches based on the equipment serial number; the cloud platform server sends an upgrade message to a specified equipment serial number based on a customized upgrade plan, and the router gateway equipment receives the upgrade message, starts upgrading and reports an upgrade state. The invention is based on MQTT protocol, and carries out unified management on the router gateway equipment with extremely low overhead.

Description

MQTT-based router gateway device management method and system
Technical Field
The invention relates to the technical field of router gateway equipment, in particular to a method and a system for managing router gateway equipment based on MQTT.
Background
In practical applications, the intelligent wireless router gateway devices used by users may be very numerous and distributed in various locations. If the status information needs to be checked, the configuration items are modified, the version upgrading and other operations need to be performed, and the method is very troublesome and time-consuming. The existing router remote management system (Chinese patent invention 'a router remote management method, system and device', 201510563550.9) includes an intelligent terminal and a remote server end, the intelligent terminal and the intelligent router are intelligently matched, the remote server receives user data transmitted from the intelligent terminal and automatically generates a set of executive programs, the intelligent terminal receives the executive programs, the intelligent terminal and the intelligent router are intelligently matched, the intelligent terminal transmits the executive programs to the intelligent router, the intelligent router automatically executes the executive programs to complete the setting of the router, the remote server end automatically generates a set of executive programs for the intelligent terminal to enter into the intelligent router, and the router is quickly set. The existing remote management technology of the router has the following problems: the network overhead is large; the technical function is single; the operation is troublesome, and the humanization is not enough.
Disclosure of Invention
The invention mainly aims to provide a method and a system for managing router gateway equipment based on MQTT, which adopt a method for providing equipment state monitoring, configuration and firmware management based on MQTT for an intelligent wireless router gateway equipment manager, transmit control state information through an MQTT protocol, have low occupied bandwidth and low consumption flow, uniformly manage remote intelligent wireless router gateway equipment, and can reduce the participation of manpower on the equipment side, thereby reducing the manpower maintenance cost.
The invention adopts the following technical scheme:
in one aspect, a method for managing gateway equipment of a router based on MQTT comprises the following steps:
s10, the router gateway device is connected to the cloud platform server through MQTT, subscribes the theme related to the device serial number of the router gateway device after online, and actively reports the device information of the router gateway device; the related subject at least comprises parameter query, parameter configuration and version upgrade;
s20, the cloud platform server issues an MQTT request message based on the equipment serial number of the router gateway equipment, and requests to view the state parameters of the router gateway equipment; the router gateway equipment receives the request message, collects corresponding state parameters and sends the state parameters to the cloud platform server;
s30, the cloud platform server issues an MQTT message based on the equipment serial number of the router gateway equipment, and starts remote configuration equipment or remotely configures a plurality of pieces of equipment in batch to configure the designated state parameters;
s40, the cloud platform server sends an upgrade message to the assigned equipment serial number based on the customized upgrade plan; and the router gateway equipment receives the upgrading message, starts upgrading and reports the upgrading state.
Preferably, the S10 specifically includes:
the router gateway equipment receives the configured relevant parameters; the relevant parameters comprise the address and the port of the cloud platform server and the equipment serial number of the router gateway equipment;
the router gateway equipment initiates an MQTT request message to request to be connected to a cloud platform server; after the connection is successful, subscribing related topics;
the router gateway equipment reports a subscription theme and reports equipment information of the router gateway equipment based on the equipment serial number; the equipment information at least comprises a model number, an equipment serial number, a connection state and a function version number;
and the router gateway equipment is successfully on line and is displayed on the cloud platform server.
Preferably, the router gateway device successfully comes online, and before the cloud platform server displays the online, the method further includes:
the cloud platform server receives the equipment information of the router gateway equipment, judges whether the function version number is an old version or not, and pushes a new function version to the router gateway equipment if the function version number is the old version;
the router gateway equipment automatically downloads and installs the new version function, and the router gateway equipment is successfully installed and automatically re-online.
Preferably, after the router gateway device initiates an MQTT request message to request to connect to the cloud platform server, the method further includes:
if the connection fails, an exponential reconnect mechanism is initiated.
Preferably, the status parameters include: the device information of the router gateway device, the mobile network information of the gateway module and the wired network information of the gateway module; the equipment information at least comprises an IMEI number, a module number and a version; the mobile network information at least comprises an IP address, a mask, an operator and a connection state; the mobile network information includes at least an IP address and a protocol.
Preferably, the remote configuration device specifically includes:
the cloud platform server issues parameters including server addresses, ports and tunnel domain names penetrated by the VPN intranet through the equipment serial number corresponding to the MQTT;
and the router gateway equipment establishes a tunnel according to the issued parameters and the currently configured local configuration page port, and reports the state to the cloud platform server.
Preferably, the remote configuration device specifically includes:
the cloud platform server receives the filled configuration information in the JSON format, receives the filled router gateway equipment to be configured and sends a message to the corresponding router gateway equipment through the MQTT;
and after receiving the configuration message, the router gateway equipment to be configured analyzes the message body and modifies the local configuration file in a patch mode or a coverage mode.
Preferably, the patch mode is to fill the value of the issued configuration parameter into the parameter corresponding to the original configuration file; the covering mode refers to that the issued configuration is taken as the standard, but the value of the issued configuration parameter is reserved.
Preferably, the S40 specifically includes:
s401, receiving the uploaded firmware on a cloud platform server, customizing an upgrade plan, and issuing an upgrade request to corresponding router gateway equipment through MQTT;
s402, the router gateway device successfully receives the upgrade message, replies to the cloud platform server successfully, compares the target version in the message body with the local version, reports the same state of the theme report version to the cloud platform server if the target version is the same as the local version through the MQTT upgrade state, and continues to execute downwards if the target version is different from the local version;
s403, the router gateway device stores the target version number, downloads the firmware according to the firmware path in the message body, reports a theme reporting downloading failure state to the cloud platform server through the MQTT upgrading state if the downloading fails, and continues to execute the downloading if the downloading succeeds;
s404, the router gateway device judges whether the model number of the downloaded firmware is the same as the local model number, if the model number is different from the local model number, the theme is reported through the MQTT upgrading state, the firmware matching failure state is reported to the cloud platform server, and if the model number is the same, the router gateway device continues to execute downwards;
s405, the router gateway equipment checks the firmware MD5, reports a firmware error state to the server through the MQTT upgrade state report theme if the check is wrong, and continues to execute downwards if the check is successful;
s406, the router gateway device is upgraded and restarted, is on-line again after being restarted, judges whether the target version number stored before is the same as the current version number, if so, the upgrade is successful, and reports the success of firmware upgrade to the server through the MQTT upgrade state.
On the other hand, the router gateway equipment management system based on the MQTT comprises a plurality of router gateway equipment and a cloud platform server; the router gateway equipment and the cloud platform server communicate through MQTT; the router gateway device and the cloud platform server are used for realizing the MQTT-based router gateway device management method.
Compared with the prior art, the invention has the following beneficial effects:
1. the invention is based on MQTT protocol, carries out data transmission with extremely small network bandwidth occupation, and has low cost and high efficiency;
2. the invention provides a whole set of router gateway equipment for remote operation, and when the router gateway equipment is online, the router gateway equipment starts theme subscription (remote state viewing, remote configuration, remote batch configuration, remote upgrading and the like) based on the equipment serial number, and reports and upgrades the equipment information to the latest version; after the router gateway equipment is online, an administrator can start any subscription on a cloud platform server, namely, remote state checking, remote configuration, remote batch configuration, remote upgrading and the like are carried out, specifically, whether the state of the router gateway equipment is normal, whether the configuration is proper, whether the version is latest and the like can be checked through the remote state, if not, the remote configuration/remote batch configuration can be started, and if the version is not latest, an upgrading plan is created to start upgrading;
3. when the method and the system are used for operating a plurality of router gateway devices to be configured with the same parameter value, remote batch configuration can be carried out, the requirement of configuring the plurality of router gateway devices at one time is met, and the local configuration file can be modified in a patch mode or a coverage mode.
The above description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the description of the technical means more comprehensible.
The above and other objects, advantages and features of the present invention will become more apparent to those skilled in the art from the following detailed description of specific embodiments thereof, taken in conjunction with the accompanying drawings.
Drawings
Fig. 1 is a flowchart of a method for managing an MQTT-based router gateway device according to an embodiment of the present invention;
FIG. 2 is a diagram illustrating a local boot function and configuration of related parameters according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a subscription topic based on a device serial number according to an embodiment of the present invention;
fig. 4 is a schematic diagram of device information actively reported by a router gateway device according to an embodiment of the present invention;
FIG. 5 is a diagram illustrating collected status parameters according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of a remote configuration device according to an embodiment of the present invention;
FIG. 7 is a schematic diagram of remote batch configuration of multiple devices according to an embodiment of the present invention; wherein, (a) represents a configuration information schematic; (b) a schematic diagram showing configuration packets; (c) a schematic diagram of a configuration task is shown;
FIG. 8 is a schematic diagram of a customized upgrade plan according to an embodiment of the present invention.
Detailed Description
The technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention; it is to be understood that the embodiments described are merely exemplary embodiments, rather than exemplary embodiments, and that all other embodiments may be devised by those skilled in the art without departing from the scope of the present invention.
In the description of the present invention, it is to be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
Referring to fig. 1, the method for managing gateway devices of a router based on MQTT of the present invention includes:
s10, the router gateway device is connected to the cloud platform server through MQTT, subscribes the theme related to the device serial number of the router gateway device after being online, and actively reports the device information of the router gateway device; the related subject at least comprises parameter query, parameter configuration and version upgrade;
s20, the cloud platform server issues an MQTT request message based on the equipment serial number of the router gateway equipment, and requests to view the state parameters of the router gateway equipment; the router gateway equipment receives the request message, collects corresponding state parameters and sends the state parameters to the cloud platform server;
s30, the cloud platform server issues an MQTT message based on the equipment serial number of the router gateway equipment, and starts remote configuration equipment or remotely configures a plurality of pieces of equipment in batch to configure the designated state parameters;
s40, the cloud platform server sends an upgrade message to the specified equipment serial number based on the customized upgrade plan; and the router gateway equipment receives the upgrading message, starts upgrading and reports the upgrading state.
Specifically, as shown in fig. 2 to 4, the S10 specifically includes:
s101, the intelligent wireless router gateway equipment locally starts a function and configures related parameters (the parameters mainly comprise an address, a port and an equipment serial number of a cloud platform server, then MQTT is initiated to be connected to the cloud platform server, an exponential reconnection mechanism is carried out if the connection fails, the connection online successfully subscribes themes including states, commands, upgrades, events and the like, and then basic information such as the model number, the equipment serial number, the software and hardware version number, the function version number and the like of the theme reporting equipment is reported through the router gateway equipment;
s102, the cloud platform server receives the equipment information of the router gateway equipment on the far-end line, judges whether the function version number is an old version to push a new function version, upgrades the function to the latest version, and the router gateway equipment automatically downloads and installs the new version function after receiving the information, and automatically re-puts the line after the function is successfully installed;
s103, the router gateway device is successfully on line, and the corresponding router gateway device can be checked and seen on the cloud platform server.
Specifically, the device serial number is the device ID in fig. 1, and the device serial number cannot be configured after being configured once, and is usually solidified after being shipped from a factory. The "enable" in fig. 1 is the local turn-on function of the intelligent wireless router gateway device.
The exponential reconnection mechanism specifically comprises:
if the first connection fails, reconnection will be attempted after 2 seconds, if the connection fails, reconnection will be attempted after 4 seconds, and so on, the time of the power n of 2 is respectively 8, 16, 32, 64, 128 and 256, and the connection is repeated after 0, 2 and 4 seconds after exceeding 256 seconds.
Referring to fig. 5, the state parameters described in this embodiment include: the device information of the router gateway device, the mobile network information of the gateway module and the wired network information of the gateway module; the equipment information at least comprises an IMEI number, a module number and a version; the mobile network information at least comprises an IP address, a mask, an operator and a connection state; the mobile network information includes at least an IP address and a protocol.
Referring to fig. 6, the remote configuration device specifically includes:
the cloud platform server issues parameters including a server address, a port, a tunnel domain name and the like penetrating through a VPN intranet through an execution theme of an equipment serial number corresponding to MQTT, the routing gateway equipment establishes a tunnel according to the parameters and a currently configured local configuration page port (the function principle is that a WEB configuration page of the router gateway equipment is accessed through VPN penetration, the WEB page port of the equipment can be configured and is usually 80 ports when leaving a factory, and therefore VPN establishment is required according to a serial port configured by the current equipment during penetration), and then the tunnel is reported to the cloud platform server.
Through the remote configuration equipment, the WEB configuration page of the router gateway can be remotely logged in for operation without going to a field for executing operation, and the participation of manpower on the router gateway equipment side is reduced, so that the manpower maintenance cost is reduced.
Referring to fig. 7, the remote configuration device specifically includes:
the cloud platform server receives the filled configuration information in the JSON format, receives the filled router gateway equipment to be configured, and sends a message to the corresponding router gateway equipment through the MQTT;
and after receiving the configuration message, the gateway equipment of the router to be configured analyzes the message body and modifies the local configuration file in a patch mode or a coverage mode.
The patch mode is to fill the value of the issued configuration parameter into the parameter corresponding to the original configuration file; the covering mode refers to that the issued configuration is taken as the standard, but the value of the issued configuration parameter is reserved.
When a plurality of router gateway devices which need to be configured with the same parameter value are operated, remote batch configuration can be carried out, the requirement of configuring the plurality of router gateway devices at one time is met, a local configuration file can be modified in a patch mode or a coverage mode, specifically, when only one or a small number of parameters need to be configured, user operation can be reduced in the patch mode (only one or a small number of data need to be configured in a configuration information frame in the figure 7), when a plurality of parameters need to be configured, the user operation can be reduced in the coverage mode (because the coverage mode is to reserve the value of the issued configuration parameter, only one or a small number of data need to be configured in the configuration information frame in the figure 7), the diversified requirement of users is met, and the configuration is more humanized.
Referring to fig. 8, the S40 specifically includes:
s401, receiving the uploaded firmware on a cloud platform server, customizing an upgrade plan, and issuing an upgrade request to corresponding router gateway equipment through MQTT;
s402, the router gateway device successfully receives the upgrade message, replies to the cloud platform server successfully, compares the target version in the message body with the local version, reports the same state of the theme report version to the cloud platform server if the target version is the same as the local version through the MQTT upgrade state, and continues to execute downwards if the target version is different from the local version;
s403, the router gateway device stores the target version number, downloads the firmware according to the firmware path in the message body, reports a theme reporting downloading failure state to the cloud platform server through the MQTT upgrading state if the downloading fails, and continues to execute the downloading if the downloading succeeds;
s404, the router gateway device judges whether the model number of the downloaded firmware is the same as the local model number, if the model number is different from the local model number, the theme is reported through the MQTT upgrading state, the firmware matching failure state is reported to the cloud platform server, and if the model number is the same, the router gateway device continues to execute downwards;
s405, the router gateway equipment checks the firmware MD5, reports a firmware error state to the server through the MQTT upgrade state report theme if the check is wrong, and continues to execute downwards if the check is successful;
s406, the router gateway device is upgraded and restarted, is on-line again after being restarted, judges whether the target version number stored before is the same as the current version number, if so, the upgrade is successful, and reports the success of firmware upgrade to the server through the MQTT upgrade state.
The invention can ensure that the specified router gateway equipment is quickly upgraded to the latest version by operating the cloud platform server, thereby realizing the maintenance of the version.
According to another aspect of the invention, the MQTT-based router gateway equipment management system comprises a plurality of router gateway equipment and a cloud platform server; the router gateway equipment and the cloud platform server communicate through MQTT; the router gateway device and the cloud platform server are used for realizing the MQTT-based router gateway device management method.
The foregoing is only a preferred embodiment of the present invention; the scope of the invention is not limited thereto. Any person skilled in the art should be able to cover the technical scope of the present invention by equivalent or modified solutions and modifications within the technical scope of the present invention.

Claims (10)

1. A router gateway device management method based on MQTT is characterized by comprising the following steps:
s10, the router gateway device is connected to the cloud platform server through MQTT, subscribes the theme related to the device serial number of the router gateway device after being online, and actively reports the device information of the router gateway device; the related subject at least comprises parameter query, parameter configuration and version upgrade;
s20, the cloud platform server issues an MQTT request message based on the equipment serial number of the router gateway equipment, and requests to view the state parameters of the router gateway equipment; the router gateway equipment receives the request message, collects corresponding state parameters and sends the state parameters to the cloud platform server;
s30, the cloud platform server issues an MQTT message based on the equipment serial number of the router gateway equipment, and starts remote configuration equipment or remotely configures a plurality of pieces of equipment in batch to configure the designated state parameters;
s40, the cloud platform server sends an upgrade message to the assigned equipment serial number based on the customized upgrade plan; and the router gateway equipment receives the upgrading message, starts upgrading and reports the upgrading state.
2. The MQTT-based router gateway device management method according to claim 1, wherein the S10 specifically includes:
the router gateway equipment receives the configured relevant parameters; the relevant parameters comprise the address and the port of the cloud platform server and the equipment serial number of the router gateway equipment;
the router gateway equipment initiates an MQTT request message to request to be connected to a cloud platform server; after the connection is successful, subscribing related topics;
the router gateway equipment reports a subscription theme and reports equipment information of the router gateway equipment based on the equipment serial number; the equipment information at least comprises a model number, an equipment serial number, a connection state and a function version number;
and the router gateway equipment is successfully online and is displayed on the cloud platform server.
3. The MQTT-based router gateway device management method according to claim 2, wherein the router gateway device successfully comes online and further comprises, before the cloud platform server displays:
the cloud platform server receives the equipment information of the router gateway equipment, judges whether the function version number is an old version or not, and pushes a new function version to the router gateway equipment if the function version number is the old version;
the router gateway equipment automatically downloads and installs the new version function, and the router gateway equipment is successfully installed and automatically re-online.
4. The MQTT-based router gateway device management method according to claim 2, wherein the router gateway device initiates an MQTT request message requesting connection to the cloud platform server, and further comprising:
if the connection fails, an exponential reconnect mechanism is initiated.
5. The MQTT-based router gateway device management method according to claim 1, wherein the state parameters include: the device information of the router gateway device, the mobile network information of the gateway module and the wired network information of the gateway module; the equipment information at least comprises an IMEI number, a module number and a version; the mobile network information at least comprises an IP address, a mask, an operator and a connection state; the mobile network information includes at least an IP address and a protocol.
6. The MQTT-based router gateway device management method according to claim 1, wherein the remote configuration device specifically includes:
the cloud platform server issues parameters including server addresses, ports and tunnel domain names penetrated by the VPN intranet through the equipment serial number corresponding to the MQTT;
and the router gateway equipment establishes a tunnel according to the issued parameters and the currently configured local configuration page port and reports the state to the cloud platform server.
7. The MQTT-based router gateway device management method according to claim 1, wherein the remote configuration device specifically includes:
the cloud platform server receives the filled configuration information in the JSON format, receives the filled router gateway equipment to be configured, and sends a message to the corresponding router gateway equipment through the MQTT;
and after receiving the configuration message, the gateway equipment of the router to be configured analyzes the message body and modifies the local configuration file in a patch mode or a coverage mode.
8. The method for managing gateway devices of routers based on MQTT of claim 7, wherein the patching mode is to fill the values of the delivered configuration parameters into the parameters corresponding to the original configuration file; the covering mode refers to that the issued configuration is taken as the standard, but the value of the issued configuration parameter is reserved.
9. The MQTT-based router gateway device management method according to claim 1, wherein the S40 specifically includes:
s401, receiving the uploaded firmware on a cloud platform server, customizing an upgrade plan, and issuing an upgrade request to corresponding router gateway equipment through MQTT;
s402, the router gateway device successfully receives the upgrade message, successfully replies to the cloud platform server, compares the target version in the message body with the local version, reports the same state of the theme reporting version to the cloud platform server through the MQTT upgrade state if the target version is the same as the local version, and continues to execute downwards if the target version is different from the local version;
s403, the router gateway device stores the target version number, downloads the firmware according to the firmware path in the message body, reports a theme reporting downloading failure state to the cloud platform server through the MQTT upgrading state if the downloading fails, and continues to execute the downloading if the downloading succeeds;
s404, the router gateway device judges whether the model number of the downloaded firmware is the same as the local model number, if the model number is different from the local model number, the theme is reported through the MQTT upgrading state, the firmware matching failure state is reported to the cloud platform server, and if the model number is the same, the router gateway device continues to execute downwards;
s405, the router gateway equipment checks the firmware MD5, reports a theme and reports a firmware error state to a server through an MQTT upgrade state if errors are detected, and continues to execute downwards if the errors are detected successfully;
s406, the router gateway device is upgraded and restarted, is on-line again after being restarted, judges whether the target version number stored before is the same as the current version number, if so, the upgrade is successful, and reports the success of firmware upgrade to the server through the MQTT upgrade state.
10. A router gateway device management system based on MQTT is characterized by comprising a plurality of router gateway devices and a cloud platform server; the router gateway equipment and the cloud platform server communicate through MQTT; the router gateway device and the cloud platform server are configured to implement the method of any of claims 1 to 9.
CN202210086316.1A 2022-01-25 2022-01-25 MQTT-based router gateway device management method and system Pending CN114938329A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210086316.1A CN114938329A (en) 2022-01-25 2022-01-25 MQTT-based router gateway device management method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210086316.1A CN114938329A (en) 2022-01-25 2022-01-25 MQTT-based router gateway device management method and system

Publications (1)

Publication Number Publication Date
CN114938329A true CN114938329A (en) 2022-08-23

Family

ID=82861982

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210086316.1A Pending CN114938329A (en) 2022-01-25 2022-01-25 MQTT-based router gateway device management method and system

Country Status (1)

Country Link
CN (1) CN114938329A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115580534A (en) * 2022-11-24 2023-01-06 锱云(上海)物联网科技有限公司 Data acquisition and transmission method, system, equipment and gateway
CN116489025A (en) * 2023-04-26 2023-07-25 国网河北省电力有限公司 Power grid regulation and control cloud control platform and maintenance method thereof

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101183968A (en) * 2006-11-14 2008-05-21 中兴通讯股份有限公司 Gateway equipment login and automatic configuration method
CN101540700A (en) * 2009-04-10 2009-09-23 成都市华为赛门铁克科技有限公司 Configuration linkage method, system, terminal and network equipment management server
WO2017070958A1 (en) * 2015-10-30 2017-05-04 华为技术有限公司 Gateway configuration method and gateway device
CN109474454A (en) * 2017-12-29 2019-03-15 北京安天网络安全技术有限公司 A kind of device management method and system
CN110278092A (en) * 2018-03-13 2019-09-24 成都市共维科技有限公司 Router long-range control method and system based on MQTT agreement
WO2020063048A1 (en) * 2018-09-29 2020-04-02 深圳前海达闼云端智能科技有限公司 Pon network and communication method therefor, olt, mqtt-sn gateway, onu, and mqtt server
CN111327693A (en) * 2020-02-07 2020-06-23 天津大学 Remote control industrial gateway system based on MQTT
CN112039708A (en) * 2020-09-02 2020-12-04 广东优力普物联科技有限公司 Network equipment operation and maintenance method
CN112350914A (en) * 2020-11-12 2021-02-09 广州河东科技有限公司 Modbus communication method and system based on MQTT cloud platform
WO2021083083A1 (en) * 2019-10-29 2021-05-06 京东方科技集团股份有限公司 Upgrading method and system, server, and terminal device
CN112995302A (en) * 2021-02-07 2021-06-18 深圳市桑达无线通讯技术有限公司 Remote terminal management method based on MQTT transmission protocol

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101183968A (en) * 2006-11-14 2008-05-21 中兴通讯股份有限公司 Gateway equipment login and automatic configuration method
CN101540700A (en) * 2009-04-10 2009-09-23 成都市华为赛门铁克科技有限公司 Configuration linkage method, system, terminal and network equipment management server
WO2017070958A1 (en) * 2015-10-30 2017-05-04 华为技术有限公司 Gateway configuration method and gateway device
CN109474454A (en) * 2017-12-29 2019-03-15 北京安天网络安全技术有限公司 A kind of device management method and system
CN110278092A (en) * 2018-03-13 2019-09-24 成都市共维科技有限公司 Router long-range control method and system based on MQTT agreement
WO2020063048A1 (en) * 2018-09-29 2020-04-02 深圳前海达闼云端智能科技有限公司 Pon network and communication method therefor, olt, mqtt-sn gateway, onu, and mqtt server
WO2021083083A1 (en) * 2019-10-29 2021-05-06 京东方科技集团股份有限公司 Upgrading method and system, server, and terminal device
CN111327693A (en) * 2020-02-07 2020-06-23 天津大学 Remote control industrial gateway system based on MQTT
CN112039708A (en) * 2020-09-02 2020-12-04 广东优力普物联科技有限公司 Network equipment operation and maintenance method
CN112350914A (en) * 2020-11-12 2021-02-09 广州河东科技有限公司 Modbus communication method and system based on MQTT cloud platform
CN112995302A (en) * 2021-02-07 2021-06-18 深圳市桑达无线通讯技术有限公司 Remote terminal management method based on MQTT transmission protocol

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115580534A (en) * 2022-11-24 2023-01-06 锱云(上海)物联网科技有限公司 Data acquisition and transmission method, system, equipment and gateway
CN115580534B (en) * 2022-11-24 2023-02-21 锱云(上海)物联网科技有限公司 Data acquisition and transmission method, system, equipment and gateway
CN116489025A (en) * 2023-04-26 2023-07-25 国网河北省电力有限公司 Power grid regulation and control cloud control platform and maintenance method thereof
CN116489025B (en) * 2023-04-26 2024-01-26 国网河北省电力有限公司 Power grid regulation and control cloud control platform and maintenance method thereof

Similar Documents

Publication Publication Date Title
CN114938329A (en) MQTT-based router gateway device management method and system
CN108023773B (en) Method for realizing zero configuration online of network equipment and configuration server
EP1168711B1 (en) Process for controlling devices of an intranet network through the web
WO2020135355A1 (en) Wireless network configuration method and device
WO2006131077A1 (en) Download update method for software/firmware of terminal equipment
EP2324596B1 (en) Managing of network equipment
CN101241364B (en) Local controller, remote management controller and method for automatically updating the local controller of an air conditioner system
WO2011156998A1 (en) System and method for implementing automatic configuration for equipments
EP2978144A1 (en) Unified device management method and system
WO2011137793A1 (en) Method, apparatus and network system for achieving remote update of zigbee devices
WO2012163093A1 (en) Software updating system and method
KR20050117936A (en) System and method of managing device for device managing technology
US20140208307A1 (en) Method and System for Upgrading CPE Firmware
JP2009500759A (en) Method and system for data management based on simple network management protocol
EP2628273B1 (en) Method for operating a remote controlled network element
CN112104501A (en) Remote software upgrading method for agricultural machinery subsoiling Internet of things terminal equipment
CN1996885A (en) Method, management server and device for remote control of the device upgrade time
EP3149890A1 (en) System and method for network apparatus management
CN113645068B (en) Method for realizing automatic deployment and computer readable storage medium
WO2022110645A1 (en) Software upgrade method and device, storage medium and electronic device
CN106254105A (en) A kind of assembly update method and device
CN111224828A (en) Network management method of intelligent CPE (customer premise equipment)
WO2017124741A1 (en) Method and device for synchronizing apparatus version
CN112039708A (en) Network equipment operation and maintenance method
CN107707406B (en) Method for upgrading equipment based on TR069

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