CN109788034B - Configuration method for gateway access equipment, electronic equipment and storage medium - Google Patents
Configuration method for gateway access equipment, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN109788034B CN109788034B CN201811553334.6A CN201811553334A CN109788034B CN 109788034 B CN109788034 B CN 109788034B CN 201811553334 A CN201811553334 A CN 201811553334A CN 109788034 B CN109788034 B CN 109788034B
- Authority
- CN
- China
- Prior art keywords
- gateway
- access
- configuration
- access device
- information
- 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.)
- Active
Links
Images
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
- Computer And Data Communications (AREA)
Abstract
The invention discloses a configuration method for gateway access equipment, which comprises the following steps: s1, inquiring the gateway according to the gateway IP by using the configuration software, and accessing the access equipment to the gateway; s2, enabling the gateway to start a gateway transparent transmission mode, and enabling the configuration software to send a broadcast packet command to the access equipment in the gateway transparent transmission mode; s3, receiving the basic information fed back by the access device according to the information stored in its own register in response to the broadcast packet command; s4, obtaining the topology structure of the access device according to the basic device information, and generating a corresponding topology structure file to be imported to the collection point of the gateway, thereby configuring the information of the access device for the collection point of the gateway. The invention also discloses the electronic equipment and a computer readable storage medium. The invention solves the problem that the gateway acquisition point needs to be configured by hands according to the communication protocols of different models and versions of the access equipment.
Description
Technical Field
The present invention relates to the field of configuration technologies for gateway access devices, and in particular, to a configuration method for a gateway access device, an electronic device, and a storage medium.
Background
When a gateway accessing multiple devices is debugged for the first time, the existing configuration software can configure the devices to the corresponding gateways only when the gateway IP and device basic information (such as device model) are known, and can perform acquisition layer configuration of the gateway only when a device point list is obtained. In an actual application scenario, multiple types of devices are generally configured under one gateway, and even if the types of the devices are the same, versions of the devices are different, different versions of the devices have different communication protocols, and on-site, a person needs to configure information of a collection point, such as information of a register number, a data type, a unit, a name, a communication rule and the like, by configuration software respectively according to the different versions of the communication protocols of the different types, so that the configuration process is complicated, the efficiency is low, and errors are easy to occur. Therefore, a more excellent configuration method for gateway access devices is needed.
Disclosure of Invention
In order to overcome the defects of the prior art, one of the objectives of the present invention is to provide a configuration method for a gateway access device, which solves the problem that a person is required to configure a gateway acquisition point according to different models and versions of communication protocols of the access device.
Another object of the present invention is to provide an electronic device for implementing the configuration method for a gateway access device.
It is a further object of the present invention to provide a computer readable storage medium storing the above configuration method for a gateway access device.
One of the purposes of the invention is realized by adopting the following technical scheme:
a configuration method for a gateway access device, comprising the steps of:
s1, inquiring the gateway according to the gateway IP by using the configuration software, and accessing the access equipment to the gateway;
s2, enabling the gateway to start a gateway transparent transmission mode, and enabling the configuration software to send a broadcast packet command to the access equipment in the gateway transparent transmission mode;
s3, receiving the basic information fed back by the access device according to the information stored in its own register in response to the broadcast packet command;
s4, obtaining the topology structure of the access device according to the basic device information, and generating a corresponding topology structure file to be imported to the collection point of the gateway, thereby configuring the information of the access device for the collection point of the gateway.
Further, the query mode of the query gateway is a UDP broadcast query technology.
Further, the registers include a special identification register, a device address register, a device version number register, and a device model register.
Further, the device basic information includes a device specific identifier, a device address, a device version number, and a device model.
Furthermore, the configuration software is provided with a template corresponding to each type of access device, the template comprises the data type, unit, name and communication protocol of the register of the access device with the corresponding type, and the configuration software acquires the corresponding template and learns the topological structure of the access device according to the device type fed back by the access device.
The second purpose of the invention is realized by adopting the following technical scheme:
an electronic device, comprising: one or more processors; a storage device for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement the configuration method for a gateway access equipment of one of the objects of the present invention.
The third purpose of the invention is realized by adopting the following technical scheme:
a computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out a configuration method for a gateway access device, which is one of the objects of the present invention.
Compared with the prior art, the invention has the beneficial effects that: the configuration software scans all access devices under the gateway through a broadcast packet command, the access devices feed back basic information of the devices according to the broadcast packet command, the configuration software obtains the topological structure of the access devices according to the basic information of the devices and guides a topological structure file into an acquisition point of the gateway for configuration; the configuration method for the gateway access equipment solves the problem that the acquisition point needs to be configured manually according to communication protocols of different models and versions, saves working time, improves working efficiency, reduces human errors, further improves the accuracy of configuration information of the acquisition point, and enables the access equipment to be better adapted to complex network environments.
Drawings
Fig. 1 is a flowchart of a configuration method for a gateway access device according to a first embodiment of the present invention;
fig. 2 is a schematic structural diagram of an electronic device according to a second embodiment of the present invention.
Detailed Description
The present invention will be further described with reference to the accompanying drawings and the detailed description, and it should be noted that any combination of the embodiments or technical features described below can be used to form a new embodiment without conflict.
Example one
The embodiment of the present invention discloses a configuration method for a gateway access device, please refer to fig. 1, which includes the following steps:
(in this embodiment, the configuration software is installed in the computer, one end of the 485 converter is connected with the computer, the other end of the 485 converter is connected with the gateway 485 interface, the gateway 485 interface is connected with the 485 bus of the access device, if the computer does not have a serial port, the USB can be used for converting the serial port, and the configuration software is controlled by the computer.)
S1, querying all gateways in the local area network by using configuration software according to the gateway IP by adopting a UDP broadcast query technology, selecting the gateway to be configured, downloading configuration information of the gateway into the configuration software, and accessing the access equipment to the gateway;
s2, enabling the gateway to be configured to start a gateway transparent transmission mode, and enabling the configuration software to send a broadcast packet command to access to the access equipment under the gateway in the gateway transparent transmission mode;
s3, the configuration software receives the basic information of the device fed back by the access device according to the information stored in its own register (the register includes special mark register, device address register, device version number register and device model register, the basic information of the device includes the information of device special mark, device address, device version number and device model);
s4, the configuration software obtains the topology of the access device according to the basic device information (in this embodiment, the configuration software is provided with a template corresponding to each type of access device, where the template includes information such as the data type, unit, name, and communication rule of the register of the access device of the corresponding type, and the configuration software obtains the corresponding template and obtains the topology of the access device according to the device type fed back by the access device), generates a corresponding topology file, and imports the topology file to the collection point of the gateway, so as to perform information configuration of the access device on the collection point of the gateway, and the gateway receives data sent by the collection point corresponding to the gateway.
The configuration software scans all access devices under the gateway through a broadcast packet command, the access devices feed back basic information of the devices according to the broadcast packet command, the configuration software obtains the topological structure of the access devices according to the basic information of the devices and guides a topological structure file into an acquisition point of the gateway for configuration; the configuration method for the gateway access equipment solves the problem that the acquisition point needs to be configured manually according to communication protocols of different models and versions, saves working time, improves working efficiency, reduces human errors, further improves the accuracy of configuration information of the acquisition point, and enables the access equipment to be better adapted to complex network environments.
Example two
Fig. 2 is a schematic structural diagram of an electronic device according to a second embodiment of the present invention, as shown in fig. 2, the electronic device includes a processor 310, a memory 320, an input device 330, and an output device 340; the number of the processors 310 in the computer device may be one or more, and one processor 310 is taken as an example in fig. 2; the processor 310, the memory 320, the input device 330 and the output device 340 in the electronic apparatus may be connected by a bus or other means, and the connection by the bus is exemplified in fig. 2.
The memory 320 is a computer-readable storage medium for storing software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the configuration method for the gateway access device in the embodiment of the present invention. The processor 310 executes various functional applications and data processing of the electronic device by executing software programs, instructions and modules stored in the memory 320, that is, the configuration method for the gateway access device is implemented.
The memory 320 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. Further, the memory 320 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, the memory 320 may further include memory located remotely from the processor 310, which may be connected to the electronic device through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 330 may be used to receive input user identity information. The output device 340 may include a display device such as a display screen.
EXAMPLE III
A third embodiment of the present invention further provides a storage medium containing computer-executable instructions, which when executed by a computer processor, perform a configuration method for a gateway access device, the method including:
s1, querying all gateways in the local area network by using configuration software according to the gateway IP by adopting a UDP broadcast query technology, selecting the gateway to be configured, downloading configuration information of the gateway into the configuration software, and accessing the access equipment to the gateway;
s2, enabling the gateway to be configured to start a gateway transparent transmission mode, and enabling the configuration software to send a broadcast packet command to access to the access equipment under the gateway in the gateway transparent transmission mode;
s3, the configuration software receives the basic information of the device fed back by the access device according to the information stored in its own register (the register includes special mark register, device address register, device version number register and device model register, the basic information of the device includes the information of device special mark, device address, device version number and device model);
s4, the configuration software obtains the topology of the access device according to the basic device information (in this embodiment, the configuration software is provided with a template corresponding to each type of access device, where the template includes information such as the data type, unit, name, and communication rule of the register of the access device of the corresponding type, and the configuration software obtains the corresponding template and obtains the topology of the access device according to the device type fed back by the access device), generates a corresponding topology file, and imports the topology file to the collection point of the gateway, so as to perform information configuration of the access device on the collection point of the gateway, and the gateway receives data sent by the collection point corresponding to the gateway.
Of course, the storage medium containing the computer-executable instructions provided by the embodiments of the present invention is not limited to the method operations described above, and may also perform related operations in the configuration method for the gateway access device provided by any embodiment of the present invention.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which may be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes instructions for enabling an electronic device (which may be a mobile phone, a personal computer, a server, or a network device) to execute the methods according to the embodiments of the present invention.
The above embodiments are only preferred embodiments of the present invention, and the protection scope of the present invention is not limited thereby, and any insubstantial changes and substitutions made by those skilled in the art based on the present invention are within the protection scope of the present invention.
Claims (6)
1. A configuration method for a gateway access device, comprising the steps of:
s1, inquiring the gateway according to the gateway IP by using the configuration software, and accessing the access equipment to the gateway;
s2, enabling the gateway to start a gateway transparent transmission mode, and enabling the configuration software to send a broadcast packet command to the access equipment in the gateway transparent transmission mode;
s3, receiving the basic information fed back by the access device according to the information stored in its own register in response to the broadcast packet command;
s4, obtaining the topology structure of the access device according to the basic device information, generating a corresponding topology structure file, importing the topology structure file to the collection point of the gateway, and performing information configuration of the access device on the collection point of the gateway;
the configuration software is provided with a template corresponding to each type of access equipment, the template comprises data types, units, names and communication protocols of registers of the access equipment with corresponding types, and the configuration software acquires the corresponding template and acquires the topological structure of the access equipment according to the equipment type fed back by the access equipment.
2. The method of claim 1, wherein the query to the gateway is via a UDP broadcast query.
3. The configuration method for a gateway access device of claim 1, wherein the registers comprise a special identification register, a device address register, a device version number register, and a device model number register.
4. The configuration method for gateway access device of claim 3, wherein said device basic information comprises a device specific identification, a device address, a device version number, and a device model number.
5. An electronic device, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the configuration method for a gateway access device of any of claims 1-4.
6. A computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, is adapted to carry out the method of configuration for a gateway access device according to any one of claims 1 to 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811553334.6A CN109788034B (en) | 2018-12-18 | 2018-12-18 | Configuration method for gateway access equipment, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811553334.6A CN109788034B (en) | 2018-12-18 | 2018-12-18 | Configuration method for gateway access equipment, electronic equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109788034A CN109788034A (en) | 2019-05-21 |
CN109788034B true CN109788034B (en) | 2021-12-07 |
Family
ID=66497285
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811553334.6A Active CN109788034B (en) | 2018-12-18 | 2018-12-18 | Configuration method for gateway access equipment, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109788034B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110727846A (en) * | 2019-09-09 | 2020-01-24 | 杭州玖欣物联科技有限公司 | Industrial Internet data acquisition and classification processing method |
CN114338256B (en) * | 2021-11-29 | 2023-10-03 | 广州河东科技有限公司 | Intelligent home gateway configuration method, device, terminal equipment and storage medium |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102185737A (en) * | 2011-05-10 | 2011-09-14 | 中兴通讯股份有限公司 | Automatic equipment information acquisition method and system |
CN102594916B (en) * | 2012-03-19 | 2014-08-13 | 深圳职业技术学院 | Networking method for deeper depth self-organizing wireless sensing network |
CN103095495B (en) * | 2013-01-06 | 2016-05-25 | 华为技术有限公司 | Network beginning collocation method and device, system |
CN105530614B (en) * | 2014-09-30 | 2019-03-22 | 中兴通讯股份有限公司 | Group addressing processing method, device, MTC Interworking gateway and API GW |
-
2018
- 2018-12-18 CN CN201811553334.6A patent/CN109788034B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN109788034A (en) | 2019-05-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109120477B (en) | Dynamic analysis method, device, server and storage medium based on modbus protocol | |
CN108038212B (en) | Data interaction method, device, system, equipment and storage medium | |
CN108401037A (en) | User terminal and the binding method of equipment, device and system | |
KR102274178B1 (en) | Emulating test distributed application on server | |
CN109788034B (en) | Configuration method for gateway access equipment, electronic equipment and storage medium | |
CN106603593A (en) | HTTP calling method and device based on adaption | |
CN107124483A (en) | Domain name analytic method and server | |
CN114338594A (en) | ARP (Address resolution protocol) response-substituting method, device, equipment and storage medium in Kubernetes environment | |
CN111813622B (en) | Equipment monitoring method and device | |
CN110460668B (en) | File uploading method and device, computer equipment and storage medium | |
CN112580730A (en) | Terminal type identification method and device | |
CN103944961A (en) | Application sharing method, device and system | |
CN108769929A (en) | A kind of more controlled plant synchronisation control means and system based on wireless network | |
CN112887451B (en) | Domain name resolution method and device and computer equipment | |
CN112422485B (en) | Communication method and device of transmission control protocol | |
CN105068926A (en) | Program test method and device thereof | |
CN109120731B (en) | Universal communication method, system and device | |
CN104717280A (en) | Data synchronism marking method and device | |
CN103856466A (en) | Acquisition terminal device capable of configuring protocols automatically | |
CN104468645A (en) | Control method, electronic equipment, and information transmission method and device | |
CN110661895A (en) | Network address mapping method and network address mapping equipment of server | |
CN114185804A (en) | Interface testing method and device and terminal equipment | |
CN110890991B (en) | Intelligent home gateway configuration information rapid migration method and device | |
CN113973111A (en) | Data forwarding method and device, gateway equipment and computer readable storage medium | |
CN102891888B (en) | A kind of data access method and relevant device, system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |