CN111327460A - Gateway configuration method, cloud device, gateway and system - Google Patents
Gateway configuration method, cloud device, gateway and system Download PDFInfo
- Publication number
- CN111327460A CN111327460A CN202010075530.8A CN202010075530A CN111327460A CN 111327460 A CN111327460 A CN 111327460A CN 202010075530 A CN202010075530 A CN 202010075530A CN 111327460 A CN111327460 A CN 111327460A
- Authority
- CN
- China
- Prior art keywords
- gateway
- configuration information
- configuration
- node
- gateway configuration
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 53
- 238000004891 communication Methods 0.000 claims description 20
- 238000010586 diagram Methods 0.000 description 7
- 238000012986 modification Methods 0.000 description 6
- 230000004048 modification Effects 0.000 description 6
- 230000009286 beneficial effect Effects 0.000 description 4
- 230000005540 biological transmission Effects 0.000 description 3
- 238000013500 data storage Methods 0.000 description 2
- 238000013480 data collection Methods 0.000 description 1
- 238000007726 management method Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/66—Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
- H04L67/025—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The embodiment of the invention discloses a gateway configuration method, cloud equipment, a gateway and a system, wherein the cloud equipment is provided with a WEB server and a Modbus slave station, and the method comprises the following steps: the WEB server receives gateway configuration information sent by the client and sends the gateway configuration information to the Modbus slave station; the gateway configuration information is remote configuration information set for the gateway to be configured by the client through an interface configuration mode provided by a WEB server; the Modbus slave station stores gateway configuration information; and when a reading instruction aiming at the gateway configuration information sent by the Modbus master station of the gateway to be configured is received, sending the gateway configuration information to the Modbus master station according to the reading instruction. Therefore, the embodiment of the invention realizes the remote configuration of the client through an interface configuration mode, reduces the difficulty of gateway configuration, realizes the use of the gateway as soon as the gateway is changed, and ensures the real-time property and the integrity of data.
Description
Technical Field
The invention relates to the technical field of data processing, in particular to a gateway configuration method, cloud equipment, a gateway and a system.
Background
Industrial systems enter the big data era and are therefore particularly important for data acquisition. However, most of the gateway configurations for collecting data at present are field modifications, which causes a series of problems: poor real-time performance, large workload, high operation difficulty and the like, thereby delaying the progress of the project.
The prior art is divided into two types:
1. field configuration: and configuring parameters of the gateway on site to realize the acquisition, storage and cloud-going of equipment data by the gateway.
2. Remote software configuration: the configuration of the gateway is realized on remote software, but after the configuration of the method, the gateway needs to be restarted on site, and although part of workload is reduced, the real-time performance cannot be guaranteed.
In summary, the prior art has the disadvantages of high workload, high operation difficulty and poor real-time performance, which may result in data loss during configuration and data integrity failure.
Disclosure of Invention
Because the existing method has the above problems, embodiments of the present invention provide various gateway configuration methods, cloud devices, gateways, and systems.
In a first aspect, an embodiment of the present invention provides a gateway configuration method, where the gateway configuration method is used for a cloud device, and the cloud device is provided with a WEB server and a serial communication protocol Modbus slave station, and the gateway configuration method includes:
the WEB server receives gateway configuration information sent by a client side and sends the gateway configuration information to the Modbus slave station; the gateway configuration information is remote configuration information set for a gateway to be configured by the client through an interface configuration mode provided by the WEB server;
the Modbus slave station stores the gateway configuration information; and when a reading instruction aiming at the gateway configuration information sent by the Modbus master station of the gateway to be configured is received, sending the gateway configuration information to the Modbus master station according to the reading instruction.
Optionally, the gateway configuration information includes one or more of:
the first configuration information is used for representing the configuration information of the gateway to be configured for wired acquisition;
second configuration information, wherein the second configuration information is used for representing configuration information of the gateway to be configured for wireless acquisition;
and third configuration information, wherein the third configuration information is used for representing the configuration information of the gateway to be configured.
Optionally, the first configuration information includes one or more of:
aiming at the equipment number, serial port number, baud rate, data bit, equipment address, check bit and polling time of wired acquisition;
the second configuration information includes one or more of:
aiming at a serial port number, a baud rate, a data bit, a check bit and polling time of wireless acquisition;
the third configuration information includes one or more of:
and aiming at the IP address and the internet access mode of the gateway to be configured.
In a second aspect, an embodiment of the present invention provides a gateway configuration method, where the gateway configuration method is used to support a to-be-configured gateway configured remotely, where the to-be-configured gateway is provided with a serial communication protocol Modbus master station and a gateway configuration node, and the gateway configuration method includes:
the Modbus master station sends a reading instruction aiming at the gateway configuration information to a Modbus slave station of the cloud equipment; receiving the gateway configuration information sent by the Modbus slave station, and sending the gateway configuration information to the gateway configuration node; the gateway configuration information is remote configuration information set for the gateway to be configured by a client through an interface configuration mode provided by a website WEB server of the cloud equipment;
and the gateway configuration node performs corresponding gateway configuration according to the gateway configuration information.
Optionally, the gateway configuration information includes first configuration information, where the first configuration information is used to represent configuration information for performing wired acquisition on the gateway to be configured;
the gateway configuration node is a wired acquisition node;
the gateway configuration node performs corresponding gateway configuration according to the gateway configuration information, including:
and the wired acquisition node determines one or more acquired devices according to the first configuration information, establishes wired connection with each acquired device, and acquires data of each acquired device through the wired connection.
Optionally, the gateway configuration information includes second configuration information, where the second configuration information is used to represent configuration information for wirelessly acquiring by the gateway to be configured;
the gateway configuration node is a wireless acquisition node;
the gateway configuration node performs corresponding gateway configuration according to the gateway configuration information, including:
and the wireless acquisition node determines one or more acquired devices according to the second configuration information, establishes wireless connection with each acquired device, and acquires data of each acquired device through the wireless connection.
Optionally, the gateway configuration information includes third configuration information, where the third configuration information is used to represent configuration information of the gateway to be configured; the third configuration information includes one or more of: aiming at the IP address and the internet access mode of the gateway to be configured;
the gateway configuration node comprises a data cloud node and the wireless configuration node;
the gateway configuration node performs corresponding gateway configuration according to the gateway configuration information, including:
after the wireless configuration node sends the IP address of the gateway to be configured to the wireless nodes of the acquired devices, the IP address of the current gateway is modified into the IP address in the third configuration information;
and the data cloud node modifies the current internet access mode into the internet access mode in the third configuration information.
In a third aspect, an embodiment of the present invention provides a cloud device, where the cloud device is provided with a WEB server and a serial communication protocol Modbus slave station;
the WEB server is used for receiving gateway configuration information sent by a client and sending the gateway configuration information to the Modbus slave station; the gateway configuration information is remote configuration information set for a gateway to be configured by the client through an interface configuration mode provided by the WEB server;
the Modbus slave station is used for storing the gateway configuration information; and when a reading instruction aiming at the gateway configuration information sent by the Modbus master station of the gateway to be configured is received, sending the gateway configuration information to the Modbus master station according to the reading instruction.
In a fourth aspect, an embodiment of the present invention provides a gateway, where the gateway is a gateway to be configured and capable of supporting remote configuration, and the gateway to be configured is provided with a serial communication protocol Modbus master station and a gateway configuration node;
the Modbus master station is used for sending a reading instruction aiming at the gateway configuration information to a Modbus slave station of the cloud equipment; receiving the gateway configuration information sent by the Modbus slave station, and sending the gateway configuration information to the gateway configuration node; the gateway configuration information is remote configuration information set for the gateway to be configured by a client through an interface configuration mode provided by a WEB server of the cloud equipment;
and the gateway configuration node is used for carrying out corresponding gateway configuration according to the gateway configuration information.
In a fifth aspect, an embodiment of the present invention provides a gateway configuration system, including a cloud device, a gateway, and a device to be acquired for acquiring data, where the cloud device is configured to execute the steps of the gateway configuration method in the first aspect; the gateway is configured to perform the steps of the gateway configuration method of the second aspect.
According to the technical scheme, the WEB server and the Modbus slave station are arranged on the cloud equipment, and the WEB server receives gateway configuration information sent by the client and sends the gateway configuration information to the Modbus slave station; the gateway configuration information is remote configuration information set for a gateway to be configured by the client through an interface configuration mode provided by the WEB server, and the gateway configuration information is stored by a Modbus slave station; when a reading instruction aiming at gateway configuration information sent by a Modbus master station of a gateway to be configured is received, the gateway configuration information is sent to the Modbus master station according to the reading instruction, so that the remote configuration of the gateway by a client side through cloud equipment is realized, particularly the remote configuration realized by an interface configuration mode is realized, the difficulty in gateway configuration is reduced, the gateway can be changed and used, and the real-time performance and the integrity of data are ensured.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic flowchart of a gateway configuration method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of configuration information provided by an embodiment of the present invention;
fig. 3 is a schematic flowchart of a gateway configuration method according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a cloud device according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a gateway according to an embodiment of the present invention;
fig. 6 is a schematic diagram of a gateway application provided in the embodiment of the present invention.
Detailed Description
The following further describes embodiments of the present invention with reference to the accompanying drawings. The following examples are only for illustrating the technical solutions of the present invention more clearly, and the protection scope of the present invention is not limited thereby.
Fig. 1 is a schematic flowchart of a gateway configuration method according to an embodiment of the present invention; the gateway configuration method can be used for cloud equipment, and the cloud equipment is provided with a WEB (namely a website) server and a Modbus (namely a serial communication protocol) slave station; as shown in fig. 1, the gateway configuration method may include the following steps:
s110, the WEB server receives gateway configuration information sent by the client and sends the gateway configuration information to the Modbus slave station; the gateway configuration information is remote configuration information set for the gateway to be configured by the client through an interface configuration mode provided by the WEB server.
Specifically, the client may perform various information configurations on the gateway to be configured on a WEB configuration interface of the WEB server, where the configuration information may be stored in addresses corresponding to Modbus slave stations, and the configuration information may be as shown in fig. 2.
S120, storing gateway configuration information by the Modbus slave station; and when a reading instruction aiming at the gateway configuration information sent by the Modbus master station of the gateway to be configured is received, sending the gateway configuration information to the Modbus master station according to the reading instruction.
Specifically, the cloud device is provided with a Modbus slave station, and configuration information set by the client on the to-be-configured gateway at the WEB server is mainly stored.
As can be seen from the above embodiments, by providing the WEB server and the Modbus slave station in the cloud device, the WEB server receives the gateway configuration information sent by the client, and sends the gateway configuration information to the Modbus slave station; the gateway configuration information is remote configuration information set for a gateway to be configured by the client through an interface configuration mode provided by the WEB server, and the gateway configuration information is stored by a Modbus slave station; when a reading instruction aiming at gateway configuration information sent by a Modbus master station of a gateway to be configured is received, the gateway configuration information is sent to the Modbus master station according to the reading instruction, so that the remote configuration of the gateway by a client side through cloud equipment is realized, particularly the remote configuration realized by an interface configuration mode is realized, the difficulty in gateway configuration is reduced, the gateway can be changed and used, and the real-time performance and the integrity of data are ensured.
Further, on the basis of the above method embodiment, the gateway configuration information in the above S110 may include one or more of the following items:
the first configuration information is used for representing the configuration information of the gateway to be configured for wired acquisition;
second configuration information, wherein the second configuration information is used for representing configuration information of the gateway to be configured for wireless acquisition;
and third configuration information, wherein the third configuration information is used for representing the configuration information of the gateway to be configured.
Specifically, the first configuration information may be configuration information required when the gateway to be configured acquires wired modbus device data or device layer newly added devices; the second configuration information may be configuration information required when the gateway to be configured collects wireless device data or device layer newly added devices.
It can be seen from the above embodiments that the network configuration information may include information such as wired acquisition configuration, wireless acquisition configuration, and configuration of the gateway itself, so that the gateway configuration content is enriched, and the application range of the gateway configuration is expanded.
Further, on the basis of the above method embodiment, the first configuration information includes one or more of:
aiming at the equipment number, serial port number, baud rate, data bit, equipment address, check bit and polling time of wired acquisition;
the second configuration information includes one or more of:
aiming at a serial port number, a baud rate, a data bit, a check bit and polling time of wireless acquisition;
the third configuration information includes one or more of:
and aiming at the IP address and the internet access mode of the gateway to be configured.
Specifically, the client may further modify the IP address and/or the internet access mode of the gateway to be configured through the third configuration information. The gateway to be configured may support multiple internet access modes, such as: WIFI (Wireless Fidelity), 4G network, Ethernet, NB-IoT (Narrow Band Internet of Things), and the like.
As can be seen from the above embodiments, the client can implement wired acquisition configuration, wireless acquisition configuration, and gateway self configuration on the gateway through the cloud device, and thus the gateway can directly perform corresponding wired acquisition configuration, wireless acquisition configuration, and gateway self configuration by using the remote configuration information, thereby implementing the remote configuration of the client on the gateway, avoiding the client performing field configuration on the gateway, reducing the gateway configuration difficulty, and further improving the flexibility of gateway configuration.
Fig. 3 is a flowchart illustrating a gateway configuration method according to an embodiment of the present invention, where the gateway configuration method may be used to support a gateway to be configured of a remote configuration, where the gateway to be configured is provided with a Modbus master station and a gateway configuration node; as shown in fig. 3, the gateway configuration method may include the steps of:
s310, the Modbus master station sends a reading instruction aiming at gateway configuration information to a Modbus slave station of the cloud equipment; receiving gateway configuration information sent by the Modbus slave station, and sending the gateway configuration information to a gateway configuration node; the gateway configuration information is remote configuration information set for the gateway to be configured in an interface configuration mode provided by the client through a WEB server of the cloud device.
Specifically, the cloud equipment sets up the Modbus master station, and the Modbus slave station of mainly used follow cloud equipment acquires gateway configuration information. Such as: and polling and reading gateway configuration information stored in the Modbus slave station in a TCP (Transmission Control Protocol) communication mode.
And S320, the gateway configuration node performs corresponding gateway configuration according to the gateway configuration information.
As can be seen from the above embodiment, a Modbus master station and a gateway configuration node are set through a gateway, and the Modbus master station sends a read instruction for gateway configuration information to a Modbus slave station of a cloud device; receiving gateway configuration information sent by the Modbus slave station, and sending the gateway configuration information to a gateway configuration node; the gateway configuration information is remote configuration information set for a gateway to be configured in an interface configuration mode provided by a client through a WEB server of the cloud equipment; the gateway configuration node performs corresponding gateway configuration according to the gateway configuration information, so that the remote configuration of the gateway by the client through the cloud equipment is realized, particularly the remote configuration realized in an interface configuration mode, the difficulty in gateway configuration is reduced, the gateway can be changed and used immediately, and the instantaneity and the integrity of data are ensured.
Further, on the basis of the above method embodiment, the gateway configuration information includes first configuration information, where the first configuration information is used to represent configuration information for performing wired acquisition on the gateway to be configured;
the gateway configuration node is a wired acquisition node;
in performing S320, the following implementations may be employed, but are not limited to:
(1-1) the wired acquisition node determines one or more acquired devices according to the first configuration information, establishes wired connection with each acquired device, and acquires data of each acquired device through the wired connection.
Specifically, wired collection node can be Modbus read node, and the equipment of being gathered can be Modbus equipment, and Modbus read node can establish 485 communication connection with each Modbus equipment according to first configuration information like this to and carry out data acquisition through 485 communication connection to each Modbus equipment.
According to the embodiment, the wired acquisition node determines one or more acquired devices according to the first configuration information, establishes wired connection with each acquired device, and acquires data of each acquired device through the wired connection, so that the wired acquisition configuration of the gateway is remotely realized by the client, the difficulty in gateway configuration is reduced, and the flexibility in gateway configuration is improved.
Further, on the basis of the above method embodiment, the gateway configuration information includes second configuration information, where the second configuration information is used to characterize configuration information for wirelessly acquiring by the gateway to be configured;
the gateway configuration node is a wireless acquisition node;
in performing S320, the following implementations may be employed, but are not limited to:
(2-1) the wireless acquisition node determines one or more acquired devices according to the second configuration information, establishes wireless connection with each acquired device, and acquires data of each acquired device through the wireless connection.
Specifically, the wireless collection node may be a serial port serial node, the gateway to be configured may further include a zigbee module of zigbee protocol, and the collected device may be a zigbee device, so that the serial node may establish a wireless communication connection with each zigbee device according to the second configuration information, and perform data collection on each zigbee device through the wireless communication connection.
According to the embodiment, the wireless acquisition node determines one or more acquired devices according to the second configuration information, establishes wireless connection with each acquired device, and acquires data of each acquired device through the wireless connection, so that the wireless acquisition configuration of the gateway is remotely realized by the client, the gateway configuration content is enriched, and the application range of the gateway configuration is expanded.
Further, on the basis of the above method embodiment, the gateway configuration information includes third configuration information, where the third configuration information is used to characterize configuration information of the gateway to be configured; the third configuration information includes one or more of: aiming at the IP address and the internet access mode of the gateway to be configured;
the gateway configuration node comprises a data cloud node and the wireless configuration node;
in performing S320, the following implementations may be employed, but are not limited to:
(3-1) after the wireless configuration node sends the IP address of the gateway to be configured to the wireless nodes of the acquired devices, modifying the IP address of the current gateway into the IP address in the third configuration information;
and (3-2) the data cloud node modifies the current internet access mode into the internet access mode in the third configuration information.
Specifically, the client may further modify the IP address and/or the internet access mode of the gateway to be configured through the third configuration information. The gateway to be configured may support multiple internet access modes, such as: WIFI, 4G network, ethernet, and NB-IoT, among others.
As can be seen from the above embodiment, after the wireless configuration node sends the IP address of the gateway to be configured to the wireless nodes of the acquired devices, the wireless configuration node may modify the IP address of the current gateway to the IP address in the third configuration information; the cloud node on the data modifies the current internet access mode into the internet access mode in the third configuration information, so that the remote configuration of the IP address and the internet access mode of the gateway by the client is realized, the realization mode of the gateway configuration is enriched, and the instantaneity and the integrity of the data are ensured.
Fig. 4 is a schematic structural diagram of a cloud device according to an embodiment of the present invention, where the cloud device may be used to execute the gateway configuration method shown in fig. 1, and as shown in fig. 4, the cloud device is provided with a WEB server 31 and a Modbus slave station 32.
The WEB server 31 is used for receiving gateway configuration information sent by a client and sending the gateway configuration information to the Modbus slave station; the gateway configuration information is remote configuration information set for a gateway to be configured by the client through an interface configuration mode provided by the WEB server;
the Modbus slave station 32 is used for storing the gateway configuration information; and when a reading instruction aiming at the gateway configuration information sent by the Modbus master station of the gateway to be configured is received, sending the gateway configuration information to the Modbus master station according to the reading instruction.
As can be seen from the above embodiments, by providing the WEB server and the Modbus slave station in the cloud device, the WEB server receives the gateway configuration information sent by the client, and sends the gateway configuration information to the Modbus slave station; the gateway configuration information is remote configuration information set for a gateway to be configured by the client through an interface configuration mode provided by the WEB server, and the gateway configuration information is stored by a Modbus slave station; when a reading instruction aiming at gateway configuration information sent by a Modbus master station of a gateway to be configured is received, the gateway configuration information is sent to the Modbus master station according to the reading instruction, so that the remote configuration of the gateway by a client side through cloud equipment is realized, particularly the remote configuration realized by an interface configuration mode is realized, the difficulty in gateway configuration is reduced, the gateway can be changed and used, and the real-time performance and the integrity of data are ensured.
It should be noted that the cloud device provided in this embodiment can implement all the method steps that can be implemented by the foregoing method embodiment, and can achieve the same beneficial effects, and the same contents and beneficial effects in this terminal embodiment as those in the foregoing method embodiment are not described again.
Fig. 5 is a schematic structural diagram of a gateway according to an embodiment of the present invention, where the gateway may be used to execute the gateway configuration method shown in fig. 2, and the gateway is a gateway to be configured, which is capable of supporting remote configuration, and as shown in fig. 5, the gateway to be configured is provided with a Modbus master station 51 and a gateway configuration node 52;
the Modbus master station 51 is used for sending a reading instruction aiming at the gateway configuration information to a Modbus slave station of the cloud equipment; receiving the gateway configuration information sent by the Modbus slave station, and sending the gateway configuration information to the gateway configuration node; the gateway configuration information is remote configuration information set for the gateway to be configured by a client through an interface configuration mode provided by a WEB server of the cloud equipment;
the gateway configuration node 52 is configured to perform corresponding gateway configuration according to the gateway configuration information.
As can be seen from the above embodiment, a Modbus master station and a gateway configuration node are set through a gateway, and the Modbus master station sends a read instruction for gateway configuration information to a Modbus slave station of a cloud device; receiving gateway configuration information sent by the Modbus slave station, and sending the gateway configuration information to a gateway configuration node; the gateway configuration information is remote configuration information set for a gateway to be configured in an interface configuration mode provided by a client through a WEB server of the cloud equipment; the gateway configuration node performs corresponding gateway configuration according to the gateway configuration information, so that the remote configuration of the gateway by the client through the cloud equipment is realized, particularly the remote configuration realized in an interface configuration mode, the difficulty in gateway configuration is reduced, the gateway can be changed and used immediately, and the instantaneity and the integrity of data are ensured.
Further, on the basis of the above embodiment, the gateway configuration information includes first configuration information, where the first configuration information is used to represent configuration information for performing wired acquisition on the gateway to be configured;
the gateway configuration node 52 is a wired acquisition node;
the wired acquisition node is used for determining one or more acquired devices according to the first configuration information, establishing wired connection with each acquired device, and acquiring data of each acquired device through the wired connection.
Further, on the basis of the above embodiment, the gateway configuration information includes second configuration information, where the second configuration information is used to represent configuration information for wirelessly acquiring by the gateway to be configured;
the gateway configuration node 52 is a wireless acquisition node;
the wireless acquisition node is used for determining one or more acquired devices according to the second configuration information, establishing wireless connection with each acquired device, and acquiring data of each acquired device through the wireless connection.
Further, on the basis of the above embodiment, the gateway configuration information includes third configuration information, where the third configuration information is used to represent configuration information of the gateway to be configured; the third configuration information includes one or more of: aiming at the IP address and the internet access mode of the gateway to be configured;
the gateway configuration node 52 comprises a data cloud node and the wireless configuration node;
the wireless configuration node is used for modifying the IP address of the current gateway into the IP address in the third configuration information after the IP address of the gateway to be configured is sent to the wireless node of each acquired device;
and the data cloud node is used for modifying the current internet access mode into the internet access mode in the third configuration information.
It should be noted that the gateway device provided in this embodiment can implement all the method steps that can be implemented by the foregoing method embodiment, and can achieve the same beneficial effects, and the same contents and beneficial effects in this terminal embodiment as those in the foregoing method embodiment are not described again.
In addition, the embodiment of the invention discloses a gateway configuration system, which comprises a cloud device, a gateway and a device to be acquired for acquired data, wherein the cloud device is used for executing the steps of the gateway configuration method shown in fig. 1; the gateway is configured to perform the steps of the gateway configuration method shown in fig. 3.
The following describes in detail the functions that can be implemented by the gateway provided in the embodiment of the present invention, with reference to the gateway application diagram shown in fig. 6:
as shown in fig. 6, the gateway provided in the embodiment of the present invention may support remote configuration of a cloud server (i.e., the cloud device in fig. 1 and 3), and may further implement operations such as data acquisition, data cloud, data storage, and the like for wired devices and wireless devices according to the remote configuration.
(1) Acquisition function
The gateway provided by the embodiment of the invention has the functions of acquiring field wired and wireless devices, and data acquisition of wired devices of a Modbus protocol is realized through 485 communication by utilizing Modbusread nodes (namely limited acquisition nodes); for wireless equipment, firstly, a wireless node is constructed, and then a proper wireless transmission mode is selected according to the field requirement: WIFI, zigbee and Bluetooth, and then selecting the corresponding node module: a serial node, a TCP node and the like, and realizes the acquisition of wireless equipment data.
(2) Cloud on data
The gateway provided by the embodiment of the invention utilizes an MQTT (Message queue Telemetry Transport) node to realize cloud application of the acquired data through an MQTT protocol.
The gateway provided by the embodiment of the invention supports various internet access modes: 4G, Ethernet, WIFI and NB-IoT, and selecting a proper internet access mode according to the field requirement.
(3) Data storage
The gateway provided by the embodiment of the invention realizes the transmission of the acquired data to the local MySQL database through TCP communication by utilizing MySQL (relational database management system) nodes, and the data can be completely stored when the network is interrupted and fluctuated.
(4) Remote configuration
(4-1) cloud Server
The cloud server (i.e. the cloud device involved in the embodiment of the present invention) constructs a Modbus slave station, and mainly stores configuration information of a client on a web server for a gateway.
The configuration information includes:
when the gateway gathers wired Modbus device data or the newly-increased equipment of equipment layer, the configuration information includes: device number, serial port number, baud rate, data bits, device address, check bits, polling time.
When the gateway collects the data of the wireless equipment or the wireless equipment is newly added to the equipment layer, the configuration information comprises the following steps: serial port number, baud rate, data bits, check bits, polling time.
Configuration of the gateway by the client: IP address and Internet access mode. When the gateway IP address is modified, the modified IP address of the gateway is firstly sent to the wireless node, and after the modification, the gateway modifies the IP address, so that the communication connection between the wireless node and the gateway after the modification of the gateway IP address is ensured, and the loss of data is avoided.
Configuration of the gateway by the client: IP address and Internet access mode. When the gateway IP address is modified, the modified IP address of the gateway is firstly sent to the wireless node, and after the modification, the gateway modifies the IP address, so that the communication connection between the wireless node and the gateway after the modification of the gateway IP address is ensured, and the loss of data is avoided.
The client configures the gateway, the configuration information is stored in the corresponding address of the constructed Modbus slave station, the Modbus master station of the gateway reads the configuration information stored by the Modbus slave station established by the cloud server, the read configuration information is sent to the wireless node (namely zigbee, WIFI and Bluetooth between the gateway and wireless collection in figure 6), judgment is carried out, after the sending is finished, the gateway changes the IP address, the gateway is connected with the wireless node after the IP address of the gateway is changed, and data loss is avoided.
(4-2) gateway
The gateway can utilize the Modbus node as the Modbus master station, and the gateway configuration information stored by the Modbus slave station constructed by the cloud server is read in a TCP communication mode.
Specifically, the Modbus master station of the gateway adopts a tcp communication mode to realize connection with the Modbus slave station of the cloud server, then the Modbus master station of the gateway polls and reads the Modbus slave station of the cloud server, the read data is analyzed and processed through the functional nodes, and then the analyzed data is input to the corresponding gateway configuration node, so that remote configuration of the gateway is realized.
When the functional node is used for analyzing, the number of the equipment name of the gateway configuration information can be read, the corresponding gateway configuration node is correspondingly matched, then the corresponding node information is reconfigured, and if the equipment number does not exist, the gateway configuration information stored in the Modbus slave station can be read again.
As can be seen from the foregoing embodiments, the remote configuration method provided by the embodiments of the present invention does not need to restart the gateway, thereby ensuring the integrity and real-time performance of data.
The above-described embodiments are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.
Claims (10)
1. A gateway configuration method is used for a cloud device, the cloud device is provided with a website WEB server and a serial communication protocol Modbus slave station, and the gateway configuration method comprises the following steps:
the WEB server receives gateway configuration information sent by a client side and sends the gateway configuration information to the Modbus slave station; the gateway configuration information is remote configuration information set for a gateway to be configured by the client through an interface configuration mode provided by the WEB server;
the Modbus slave station stores the gateway configuration information; and when a reading instruction aiming at the gateway configuration information sent by the Modbus master station of the gateway to be configured is received, sending the gateway configuration information to the Modbus master station according to the reading instruction.
2. The gateway configuration method according to claim 1, wherein the gateway configuration information comprises one or more of:
the first configuration information is used for representing the configuration information of the gateway to be configured for wired acquisition;
second configuration information, wherein the second configuration information is used for representing configuration information of the gateway to be configured for wireless acquisition;
and third configuration information, wherein the third configuration information is used for representing the configuration information of the gateway to be configured.
3. The gateway configuration method according to claim 2, wherein the first configuration information comprises one or more of the following:
aiming at the equipment number, serial port number, baud rate, data bit, equipment address, check bit and polling time of wired acquisition;
the second configuration information includes one or more of:
aiming at a serial port number, a baud rate, a data bit, a check bit and polling time of wireless acquisition;
the third configuration information includes one or more of:
and aiming at the IP address and the internet access mode of the gateway to be configured.
4. A gateway configuration method is characterized in that the gateway configuration method is used for supporting a gateway to be configured of remote configuration, the gateway to be configured is provided with a serial communication protocol Modbus master station and a gateway configuration node, and the gateway configuration method comprises the following steps:
the Modbus master station sends a reading instruction aiming at the gateway configuration information to a Modbus slave station of the cloud equipment; receiving the gateway configuration information sent by the Modbus slave station, and sending the gateway configuration information to the gateway configuration node; the gateway configuration information is remote configuration information set for the gateway to be configured by a client through an interface configuration mode provided by a website WEB server of the cloud equipment;
and the gateway configuration node performs corresponding gateway configuration according to the gateway configuration information.
5. The gateway configuration method according to claim 4, wherein the gateway configuration information includes first configuration information, and the first configuration information is used to characterize configuration information of the gateway to be configured for wired acquisition;
the gateway configuration node is a wired acquisition node;
the gateway configuration node performs corresponding gateway configuration according to the gateway configuration information, including:
and the wired acquisition node determines one or more acquired devices according to the first configuration information, establishes wired connection with each acquired device, and acquires data of each acquired device through the wired connection.
6. The gateway configuration method according to claim 4, wherein the gateway configuration information includes second configuration information, and the second configuration information is used to characterize configuration information of the gateway to be configured for wireless acquisition;
the gateway configuration node is a wireless acquisition node;
the gateway configuration node performs corresponding gateway configuration according to the gateway configuration information, including:
and the wireless acquisition node determines one or more acquired devices according to the second configuration information, establishes wireless connection with each acquired device, and acquires data of each acquired device through the wireless connection.
7. The gateway configuration method according to claim 4, wherein the gateway configuration information includes third configuration information, and the third configuration information is used to characterize configuration information of the gateway to be configured; the third configuration information includes one or more of: aiming at the IP address and the internet access mode of the gateway to be configured;
the gateway configuration node comprises a data cloud node and the wireless configuration node;
the gateway configuration node performs corresponding gateway configuration according to the gateway configuration information, including:
after the wireless configuration node sends the IP address of the gateway to be configured to the wireless nodes of the acquired devices, the IP address of the current gateway is modified into the IP address in the third configuration information;
and the data cloud node modifies the current internet access mode into the internet access mode in the third configuration information.
8. The cloud equipment is characterized by being provided with a website WEB server and a serial communication protocol Modbus slave station;
the WEB server is used for receiving gateway configuration information sent by a client and sending the gateway configuration information to the Modbus slave station; the gateway configuration information is remote configuration information set for a gateway to be configured by the client through an interface configuration mode provided by the WEB server;
the Modbus slave station is used for storing the gateway configuration information; and when a reading instruction aiming at the gateway configuration information sent by the Modbus master station of the gateway to be configured is received, sending the gateway configuration information to the Modbus master station according to the reading instruction.
9. A gateway is characterized in that the gateway is a gateway to be configured which can support remote configuration, and the gateway to be configured is provided with a serial communication protocol Modbus master station and a gateway configuration node;
the Modbus master station is used for sending a reading instruction aiming at the gateway configuration information to a Modbus slave station of the cloud equipment; receiving the gateway configuration information sent by the Modbus slave station, and sending the gateway configuration information to the gateway configuration node; the gateway configuration information is remote configuration information set for the gateway to be configured by a client through an interface configuration mode provided by a WEB server of the cloud equipment;
and the gateway configuration node is used for carrying out corresponding gateway configuration according to the gateway configuration information.
10. A gateway configuration system, comprising a cloud device, a gateway, and a collected device for collected data, wherein the cloud device is configured to perform the steps of the gateway configuration method according to any one of claims 1 to 3; the gateway is adapted to perform the steps of the gateway configuration method according to any of claims 4 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010075530.8A CN111327460A (en) | 2020-01-22 | 2020-01-22 | Gateway configuration method, cloud device, gateway and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010075530.8A CN111327460A (en) | 2020-01-22 | 2020-01-22 | Gateway configuration method, cloud device, gateway and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111327460A true CN111327460A (en) | 2020-06-23 |
Family
ID=71172114
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010075530.8A Pending CN111327460A (en) | 2020-01-22 | 2020-01-22 | Gateway configuration method, cloud device, gateway and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111327460A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112350914A (en) * | 2020-11-12 | 2021-02-09 | 广州河东科技有限公司 | Modbus communication method and system based on MQTT cloud platform |
CN113194038A (en) * | 2021-04-06 | 2021-07-30 | 重庆芯力源科技有限公司 | Data forwarding method of intelligent edge gateway |
CN113259169A (en) * | 2021-06-01 | 2021-08-13 | 武汉慧联无限科技有限公司 | Data processing method and device, electronic equipment and storage medium |
CN114884760A (en) * | 2022-03-24 | 2022-08-09 | 浙江猫精人工智能科技有限公司 | Networking method, networking display interface and computer readable storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103853139A (en) * | 2014-02-28 | 2014-06-11 | 广东美的暖通设备有限公司 | Air conditioner gateway and building centralized control system |
CN104506516A (en) * | 2014-12-19 | 2015-04-08 | 平顶山中选自控系统有限公司 | Gateway for conversion between Modbus RTU/ASCII (remote terminal unit/American standard code for information interchange) communication protocol and Modbus TCP (transmission control protocol) communication protocol and implementation method for gateway |
CN107612710A (en) * | 2017-08-11 | 2018-01-19 | 北京百度网讯科技有限公司 | A kind of local gateway to Internet of Things carries out the method and system of high in the clouds configuration |
CN108183855A (en) * | 2017-12-12 | 2018-06-19 | 开放物联(北京)科技发展有限公司 | The design method of smart home home gateway software architecture based on Internet of Things |
CN110224910A (en) * | 2019-05-28 | 2019-09-10 | 江苏阿农物联网有限公司 | Data communications method and system based on Modbus |
CN209676258U (en) * | 2019-02-27 | 2019-11-22 | 山东普奥智能软件科技有限公司 | General-purpose gateway devices and Internet of things system |
-
2020
- 2020-01-22 CN CN202010075530.8A patent/CN111327460A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103853139A (en) * | 2014-02-28 | 2014-06-11 | 广东美的暖通设备有限公司 | Air conditioner gateway and building centralized control system |
CN104506516A (en) * | 2014-12-19 | 2015-04-08 | 平顶山中选自控系统有限公司 | Gateway for conversion between Modbus RTU/ASCII (remote terminal unit/American standard code for information interchange) communication protocol and Modbus TCP (transmission control protocol) communication protocol and implementation method for gateway |
CN107612710A (en) * | 2017-08-11 | 2018-01-19 | 北京百度网讯科技有限公司 | A kind of local gateway to Internet of Things carries out the method and system of high in the clouds configuration |
CN108183855A (en) * | 2017-12-12 | 2018-06-19 | 开放物联(北京)科技发展有限公司 | The design method of smart home home gateway software architecture based on Internet of Things |
CN209676258U (en) * | 2019-02-27 | 2019-11-22 | 山东普奥智能软件科技有限公司 | General-purpose gateway devices and Internet of things system |
CN110224910A (en) * | 2019-05-28 | 2019-09-10 | 江苏阿农物联网有限公司 | Data communications method and system based on Modbus |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112350914A (en) * | 2020-11-12 | 2021-02-09 | 广州河东科技有限公司 | Modbus communication method and system based on MQTT cloud platform |
CN113194038A (en) * | 2021-04-06 | 2021-07-30 | 重庆芯力源科技有限公司 | Data forwarding method of intelligent edge gateway |
CN113259169A (en) * | 2021-06-01 | 2021-08-13 | 武汉慧联无限科技有限公司 | Data processing method and device, electronic equipment and storage medium |
CN114884760A (en) * | 2022-03-24 | 2022-08-09 | 浙江猫精人工智能科技有限公司 | Networking method, networking display interface and computer readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111327460A (en) | Gateway configuration method, cloud device, gateway and system | |
CN102821414B (en) | System and method for managing CWSN (cloud wireless sensor network) communication data based on GUI (graphical user interface) | |
CN104767682A (en) | Routing method and system as well as routing information distributing method and device | |
CN103761309A (en) | Operation data processing method and system | |
CN101227265B (en) | Method for data synchronization among client ends in equipment monitoring system | |
CN103248512A (en) | Method and system for generating topological structure of application layer in communication network | |
CN109246008A (en) | The network equipment, system and the method for sending bgp information | |
CN101621548A (en) | Method and system for realizing terminal resource sharing based on peer connection system | |
CN112737847B (en) | Node upgrading method and device, storage medium and electronic device | |
CN106302230B (en) | A kind of data transmission method and device | |
CN113242317B (en) | Addressing route synchronization method and related device for alliance chain supervision system | |
CN115004650B (en) | Node configuration method, node configuration device, distributed system and computer readable medium | |
CN112769901A (en) | Rail transit signal equipment communication interaction method and system | |
CN114760304B (en) | Processing method, processing system and computing gateway of computing information | |
CN114827293B (en) | Edge intelligent gateway management method and edge intelligent gateway | |
CN106357723A (en) | Synchronous system and method for multi-cluster information caching based on cloud host | |
EP3910505B1 (en) | Data processing method and device | |
CN107979498A (en) | A kind of mesh network clusters and the big document transmission method based on the cluster | |
CN116915827A (en) | Data transmission method and device of internet of things edge gateway, electronic equipment and medium | |
CN106534259B (en) | Web data acquisition method, Web server and web data acquisition system based on Docker | |
CN110417875B (en) | Method, system, equipment and storage medium for docking between cloud servers | |
CN110505648A (en) | A kind of anti-lost line method of wireless device | |
CN102780570A (en) | Achieving method and system for management of cloud computing devices | |
CN115396523A (en) | Internet of things data processing method, device, equipment, medium and internet of things soft gateway | |
CN103368862B (en) | Load balance dispatching method and load balance dispatching device |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20200623 |