CN116032743A - 485 data gateway-based intelligent configuration method - Google Patents

485 data gateway-based intelligent configuration method Download PDF

Info

Publication number
CN116032743A
CN116032743A CN202211693013.2A CN202211693013A CN116032743A CN 116032743 A CN116032743 A CN 116032743A CN 202211693013 A CN202211693013 A CN 202211693013A CN 116032743 A CN116032743 A CN 116032743A
Authority
CN
China
Prior art keywords
data
data gateway
definition
uploading
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
Application number
CN202211693013.2A
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.)
Zhongyifeng Digital Technology Group Co ltd
Original Assignee
Zhongyifeng Digital Technology Group 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 Zhongyifeng Digital Technology Group Co ltd filed Critical Zhongyifeng Digital Technology Group Co ltd
Priority to CN202211693013.2A priority Critical patent/CN116032743A/en
Publication of CN116032743A publication Critical patent/CN116032743A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Communication Control (AREA)

Abstract

The invention discloses a 485 data gateway intelligent configuration method, which belongs to the technical field of data communication and solves the problem of how to improve gateway configuration efficiency and convenience.

Description

485 data gateway-based intelligent configuration method
Technical Field
The invention relates to the technical field of data communication, in particular to a 485 data gateway-based intelligent configuration method.
Background
Currently, data gateway devices are related to data processing methods such as protocol conversion, web page configuration, data local storage, and data remote reporting. The 485 data gateway is a device for reading data of terminal equipment (water meter, ammeter and the like) through a 485 data interface and uploading the data to the cloud through a wired or wireless mode. The existing 485 data gateway has complex configuration and higher requirements on technicians when facing equipment models and protocol types of a plurality of manufacturers. The existing technical scheme is that the configuration of the data gateway is realized by loading plug-ins corresponding to terminal equipment and models through PC end software. And in the face of a device model that is not entered, a plug-in needs to be written for configuration.
Disclosure of Invention
The invention aims to solve the technical problems in the related art to at least a certain extent aiming at the defects of the prior art, provides a 485 data gateway intelligent configuration-based method and solves the problems of 485 data gateway configuration, new equipment introduction and network disconnection data storage.
In order to solve the technical problems, the technical scheme of the invention is as follows: the 485 data gateway device is used for carrying out webpage setting on each terminal device in a wired or wireless connection mode through an HTTP protocol, and the 485 data gateway device is used for carrying out configuration on own gateway by pulling cloud server configuration data through an MQTT or TCP protocol, wherein the configuration file of the 485 data gateway device is stored in the cloud server, and when the terminal device configures a webpage, the corresponding gateway configuration file is called from the cloud server by sending manufacturer information and model information of the terminal device.
Preferably, the configuration file is in json format, and is mainly composed of three parts, namely port configuration definition, table register content definition and data uploading definition.
Preferably, the port configuration definition includes a port number, a baud rate, data bits, a check method, and a stop bit.
Preferably, the table register content definition includes a protocol frame format definition of the table, and a register address.
Preferably, the data uploading definition includes a data uploading method, an uploading data port number, an uploading data device ID, an uploading data name, and an uploading data calculating method, the data uploading method includes a TCP protocol or an MQTT protocol, and the uploading data calculating method includes adopting a prefix expression definition.
Preferably, the 485 data gateway device performs initialization configuration on the corresponding ports through port configuration definition.
Preferably, the 485 data gateway device captures the content of the corresponding register of the terminal device through the content definition of the table register.
Preferably, the 485 data gateway device calculates the actually required value through a preset calculation method and uploads the register content grabbed in the last step through data uploading definition.
Preferably, the format definitions of protocol data conversion and data reporting of the 485 data gateway device are determined by configuration files.
Compared with the background art, the invention has the technical effects that:
by using the 485 data gateway device, the device and the terminal equipment can be conveniently configured, and data after network disconnection can not be lost.
Drawings
Fig. 1 is a configuration flowchart of a 485 data gateway device in an embodiment.
Reference numerals: 1. a terminal device; 2. 485 data gateway device; 3. and the cloud server.
Detailed Description
The following detailed description of the invention is provided in connection with the accompanying drawings to facilitate understanding and grasping of the technical scheme of the invention.
Examples:
the 485 data gateway intelligent configuration method comprises a 485 data gateway device 2, terminal equipment 1 and a cloud server, wherein the 485 data gateway device 2 sets a webpage of each terminal equipment 1 in a wired or wireless connection mode through an HTTP protocol, the 485 data gateway device 2 also pulls cloud server configuration data through an MQTT or TCP protocol to configure own gateway, configuration files of the 485 data gateway device 2 are stored in the cloud server, and when the terminal equipment 1 configures the webpage, corresponding gateway configuration files are called from the cloud server through sending manufacturer information and model information of the terminal equipment 1.
The hypertext transfer protocol (Hyper Text Transfer Protocol, HTTP) is a simple request-response protocol that typically runs on top of TCP. It specifies what messages the client might send to the server and what responses it gets. The header of the request and response messages is given in ASCII form.
MQTT (message queue telemetry transport) is a message protocol based on the publish/subscribe paradigm under the ISO standard (ISO/IEC PRF 20922). It works on the TCP/IP protocol family and is a publish/subscribe message protocol designed for remote devices with low hardware performance and in poor network conditions.
The transmission control protocol (TCP, transmission Control Protocol) is a transport protocol specifically designed to provide reliable end-to-end byte streams over unreliable internetworks. TCP is intended to accommodate a layered protocol hierarchy that supports multiple network applications. Reliable communication services are provided by means of TCP between pairs of processes in host computers connected to different but interconnected computer communication networks. TCP assumes that it can obtain simple, possibly unreliable datagram services from lower level protocols. In principle, TCP should be able to operate over a variety of communication systems from hardwired to packet-switched or circuit-switched networks.
Preferably, the configuration file is in json format, and is mainly composed of three parts, namely port configuration definition, table register content definition and data uploading definition. JSON (JavaScript Object Notation, JS object profile) is a lightweight data exchange format. It stores and presents data in a text format that is completely independent of the programming language based on a subset of ECMAScript (European Computer Manufacturers Association, js specification by the european computer institute). The compact and clear hierarchical structure makes JSON an ideal data exchange language. Is easy to read and write by people, is easy to analyze and generate by machines, and effectively improves the network transmission efficiency.
Specifically, the port configuration definition includes a port number, a baud rate, data bits, a check method, and a stop bit. This definition facilitates subsequent communications and handshakes.
Specifically, the table register content definition includes a communication protocol frame format definition of the table, and a register address. The data uploading definition comprises a data uploading method, an uploading data port number, an uploading data equipment ID, an uploading data name and an uploading data calculating method, wherein the data uploading method comprises a TCP protocol or an MQTT protocol, and the uploading data calculating method comprises adopting a prefix expression definition. 485 data gateway device 2 performs initialization configuration on the corresponding ports through port configuration definition. 485 data gateway device 2 captures the content of the corresponding register of terminal equipment 1 through the table register content definition. 485 data gateway device 2 calculates the value actually needed by the preset calculation method through the definition of data uploading and uploads the content of the register which is grabbed in the last step. The format definition of the protocol data conversion and the data reporting of the 485 data gateway device 2 is determined by the configuration file. When networked, the data may be placed on a cloud device, or on a memory in the field. After the network is disconnected, the data can be reloaded from the local place while maintaining the state when the network is disconnected.
The method of the invention has outstanding substantial effects that: by using 485 data gateway device 2, the device and terminal device 1 can be conveniently configured, and the data after network disconnection will not be lost.
Of course, the above is only a typical example of the invention, and other embodiments of the invention are also possible, and all technical solutions formed by equivalent substitution or equivalent transformation fall within the scope of the invention claimed.

Claims (9)

1. The intelligent configuration method based on the 485 data gateway comprises a 485 data gateway device (2), terminal equipment (1) and a cloud server, and is characterized in that: the 485 data gateway device (2) performs webpage setting on each terminal device (1) in a wired or wireless connection mode through an HTTP protocol, the 485 data gateway device (2) also pulls cloud server configuration data through an MQTT or TCP protocol to configure own gateway, wherein configuration files of the 485 data gateway device (2) are stored in the cloud server, and when the terminal device (1) configures a webpage, corresponding gateway configuration files are called from the cloud server by sending manufacturer information and model information of the terminal device.
2. The intelligent configuration method based on 485 data gateway as set forth in claim 1, wherein: the configuration file is in json format, and is mainly composed of three parts, namely port configuration definition, table register content definition and data uploading definition.
3. The intelligent configuration method based on 485 data gateway as set forth in claim 2, wherein: the port configuration definition includes a port number, a baud rate, data bits, a check method, and a stop bit.
4. The intelligent configuration method based on 485 data gateway as set forth in claim 2, wherein: the table register content definition includes a communication protocol frame format definition of the table, and a register address.
5. The intelligent configuration method based on 485 data gateway as set forth in claim 2, wherein: the data uploading definition comprises a data uploading method, an uploading data port number, an uploading data equipment ID, an uploading data name and an uploading data calculating method, wherein the data uploading method comprises a TCP protocol or an MQTT protocol, and the uploading data calculating method comprises adopting a prefix expression definition.
6. The intelligent configuration method based on 485 data gateway as set forth in claim 1, wherein: the 485 data gateway device (2) performs initialization configuration on the corresponding ports through port configuration definition.
7. The intelligent configuration method based on 485 data gateway as set forth in claim 1, wherein: the 485 data gateway device (2) is used for defining the content of a corresponding register of the grabbing terminal equipment (1) through the content of a table register.
8. The intelligent configuration method based on 485 data gateway as set forth in claim 7, wherein: and the 485 data gateway device (2) calculates the actually required value through a preset calculation method and uploads the register content which is grabbed in the last step through data uploading definition.
9. The intelligent configuration method based on 485 data gateway as set forth in claim 1, wherein: the format definition of protocol data conversion and data reporting of the 485 data gateway device (2) is determined by a configuration file.
CN202211693013.2A 2022-12-28 2022-12-28 485 data gateway-based intelligent configuration method Pending CN116032743A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211693013.2A CN116032743A (en) 2022-12-28 2022-12-28 485 data gateway-based intelligent configuration method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211693013.2A CN116032743A (en) 2022-12-28 2022-12-28 485 data gateway-based intelligent configuration method

Publications (1)

Publication Number Publication Date
CN116032743A true CN116032743A (en) 2023-04-28

Family

ID=86073509

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211693013.2A Pending CN116032743A (en) 2022-12-28 2022-12-28 485 data gateway-based intelligent configuration method

Country Status (1)

Country Link
CN (1) CN116032743A (en)

Similar Documents

Publication Publication Date Title
CN102546800B (en) Handshake and communication methods for gateway, gateway and Web communication system
US7126494B2 (en) Remote access to electronic meters using a TCP/IP protocol suite
CN101680775B (en) Method and system of reading of utility meter data over a network
KR20170057228A (en) System and method for secure real-time cloud services
BRPI0608105B1 (en) system, method and apparatus for remote instrumentation command and control
CN103236960A (en) Method and system for data interaction between home server and plurality of terminals
CN107342934A (en) A kind of mixed mode Mobile solution real-time messages method for pushing and system based on WebSocket
CN109921986A (en) A kind of multi-protocol data cut-in method, device, intelligent gateway and storage medium
CN111818040A (en) Method for realizing communication by Internet of things transmission standard protocol
WO2015000230A1 (en) Industrial ethernet packet loss detection method based on heartbeat signals
EP4030725A1 (en) Data subscription method, apparatus and system
US20030229716A1 (en) System and method for transferring financial information
US10757032B2 (en) Methods, apparatuses and computer-readable storage mediums for communication via user services platform
CN102006195A (en) Network management equipment and network management method
CN103581228A (en) Method and system for device communication in Internet of Things
US20240129279A1 (en) Secure remote access to historical data
CN116032743A (en) 485 data gateway-based intelligent configuration method
CN115695090A (en) Data transmission method, internet of things gateway equipment and computer readable storage medium
CN101777999A (en) Uploading method, system and server of network element historical performance data
CN102263796B (en) Data transmission method based on simple network management protocol
TWI782630B (en) Iot gateway with configurable data transmission mode
CN117615043B (en) Inter-service communication method and system on edge gateway
US11632417B2 (en) IoT gateway with configurable data transmission mode
Chu et al. Design of Remote Monitoring and Control System based on DTU and Cloud Platform
US20090097470A1 (en) Methods and systems for communicating data

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