CN113542446A - Gateway equipment IP address remote management method based on lwm2m protocol - Google Patents
Gateway equipment IP address remote management method based on lwm2m protocol Download PDFInfo
- Publication number
- CN113542446A CN113542446A CN202110651979.9A CN202110651979A CN113542446A CN 113542446 A CN113542446 A CN 113542446A CN 202110651979 A CN202110651979 A CN 202110651979A CN 113542446 A CN113542446 A CN 113542446A
- Authority
- CN
- China
- Prior art keywords
- address
- setting
- request
- parameters
- lwm2m protocol
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/50—Address allocation
- H04L61/5076—Update or notification mechanisms, e.g. DynDNS
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/45—Network directories; Name-to-address mapping
- H04L61/4505—Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
- H04L61/4511—Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/50—Address allocation
- H04L61/5007—Internet protocol [IP] addresses
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/02—Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention provides a gateway equipment IP address remote management method based on lwm2m protocol, which comprises the following steps: a terminal user initiates a setting automatic IP acquisition request/static IP setting request/query request to a cloud service, the request is transferred to an lwm2m protocol server, parameters are packaged through an IP address model and forwarded to a lwm2m protocol client, the parameters are analyzed through the IP address model, for the setting automatic IP acquisition request/static IP setting request, after the parameters are analyzed, parameters are written into a configuration file through setting an automatic IP acquisition function/static IP setting function, then a system IP function is set, the function reads the setting in the configuration file, and whether the IP is automatically acquired or not is judged according to the value of 'automatically acquiring IP' of an attribute name in a setting item; and for the query request, analyzing the parameters, reading the configuration information related to the configuration file through a query function according to the parameters, and returning the configuration information to the user. The method can effectively ensure the communication between the server and the client under the weak network condition.
Description
[ technical field ] A method for producing a semiconductor device
The invention relates to the technical field of industrial Internet, in particular to a gateway equipment IP address remote management method based on lwm2m protocol.
[ background of the invention ]
The gateway device is deployed in an industrial field, and realizes the functions of acquiring and writing the operation data of the industrial enterprise device through a bottom layer industrial protocol (such as modbus, opua and the like). Because the gateway device is in the industrial field, if the gateway is connected with the local area network through the network port, the IP address in the gateway device needs to be remotely managed.
The existing gateway device IP address management mode has certain defects: 1. the gateway equipment is deployed in an industrial field, and the maintenance of user information in the gateway needs to be carried out on site, so that the time and labor cost are wasted; 2. the gateway surfs the internet through the Internet of things card, and the problems of unstable connection, many operation faults, poor experience and the like exist in the maintenance of the IP address set by the gateway due to the weak network problem. Therefore, a gateway device IP address remote management method based on lwm2m protocol is provided.
[ summary of the invention ]
The invention aims to solve the problems in the prior art, and provides a gateway equipment IP address remote management method based on lwm2m protocol, wherein lwm2m protocol is internet of things communication protocol, so that the communication between a server end and a client end can be effectively guaranteed under the condition of a weak network.
In order to achieve the above purpose, the present invention provides a gateway device IP address remote management method based on lwm2m protocol, which includes the following steps:
s1, a terminal user initiates a request for setting automatic IP acquisition to a cloud service, the request is transferred to a lwm2m protocol server, parameters for setting the automatic IP acquisition request are packaged through an IP address model, the parameters are forwarded to a lwm2m protocol client of a client industrial field gateway, the parameters are analyzed through the IP address model, then the parameters are written into a configuration file through setting an automatic IP acquisition function, then a system IP function is set, the function reads the setting in the configuration file, whether the automatic IP acquisition is carried out is judged according to the value of 'automatic IP acquisition' of an attribute name in a setting item, and if the automatic IP acquisition is carried out, an IP address is automatically acquired through DHCP; if not, setting a static IP address according to the rest setting items;
s2, a terminal user initiates a request for setting a static IP to a cloud service, the request is transferred to a lwm2m protocol server, parameters of the request for setting the static IP are packaged through an IP address model, the request is forwarded to a lwm2m protocol client of a client industrial field gateway, the parameters are analyzed through the IP address model, the parameters are written into a configuration file through setting a static IP function, then a system IP function is set, the function reads the setting in the configuration file, whether the IP is automatically acquired or not is judged according to the value of 'automatically acquired IP' of an attribute name in a setting item, and if the IP is automatically acquired through DHCP; if not, setting a static IP address according to the rest setting items;
and S3, the terminal user initiates a query request to the cloud service, the request is transferred to an lwm2m protocol server, the request is encapsulated through an IP address model and forwarded to a lwm2m protocol client of the client industrial field gateway, parameters of the request are analyzed through the IP address model, and configuration information related to the configuration file is read through a query function according to the parameters and returned to the user.
Preferably, in step S1, the end user initiates a request for setting an automatic IP acquisition function to the cloud service, where the request includes two parameters, namely a network interface name and an automatic IP acquisition function, and the request is forwarded to the lwm2m protocol server, and the parameters are encapsulated by the IP address model.
Preferably, in step S1, the setting in the function reading configuration file includes automatically acquiring an IP, a network interface name, an IP address, a domain name resolution address, a subnet mask, and a gateway address.
Preferably, in step S2, the end user initiates a request for setting a static IP to the cloud service, where the request includes five parameters, i.e., a network interface name, an IP address, a domain name resolution address, a subnet mask, and a gateway address, and the request is forwarded to the lwm2m protocol server, and the parameters are encapsulated by the IP address model.
Preferably, in step S2, the setting in the function reading configuration file includes automatically acquiring an IP, a network interface name, an IP address, a domain name resolution address, a subnet mask, and a gateway address.
Preferably, in step S3, the end user sends a query request to the cloud service, where the query request includes a parameter of the network interface name, and the request is forwarded to the lwm2m protocol server, and the parameter is encapsulated by the IP address model.
The invention has the beneficial effects that:
1. by means of the lwm2m protocol, remote operation and maintenance of the IP address of the gateway device can be achieved, and on-site maintenance is not needed.
2. The lwm2m protocol can ensure the communication between the server and the gateway device, and the system stability and the user experience are improved.
The features and advantages of the present invention will be described in detail by embodiments in conjunction with the accompanying drawings.
[ description of the drawings ]
Fig. 1 is a flow chart of a gateway device IP address remote management method based on lwm2m protocol.
[ detailed description ] embodiments
Referring to fig. 1, the invention relates to a gateway device IP address remote management method based on lwm2m protocol, comprising the following steps:
s1, a terminal user initiates a request for setting an automatic IP acquisition to a cloud service, the request is transferred to a lwm2m protocol server, the two parameters are packaged through an IP address model and forwarded to a lwm2m protocol client of a client industrial field gateway, the parameters are analyzed through the IP address model, then the parameters are written into a configuration file through setting an automatic IP acquisition function, then a system IP function is executed, the function reads the setting (including the automatic acquisition of the IP, the network interface name, the IP address, a domain name analysis address, a subnet mask and a gateway address) in the configuration file, whether the IP is automatically acquired is judged according to the value of the attribute name of the automatic IP acquisition in the setting item, and if the IP is automatically acquired through a DHCP; if not, the static IP address is set according to the remaining setting items.
S2, a terminal user initiates a request for setting a static IP to a cloud service, the request comprises five parameters including a network interface name, an IP address, a domain name resolution address, a subnet mask and a gateway address, the request is transferred to a lwm2m protocol server, the five parameters are packaged through an IP address model and forwarded to a lwm2m protocol client of a client industrial field gateway, the parameters are resolved through the IP address model, then the parameters are written into a configuration file through setting a static IP function, then a system IP function is set, the function reads the setting (including automatically acquiring the IP, the network interface name, the IP address, the domain name resolution address, the subnet mask and the gateway address) in the configuration file, judges whether the IP is automatically acquired according to the value of 'automatically acquiring the IP' of an attribute name in a setting item, and if the IP is automatically acquired through a DHCP; if not, the static IP address is set according to the remaining setting items.
And S3, the terminal user sends a query request to the cloud service, the query request contains a parameter of the network interface name, the request is transferred to an lwm2m protocol server side, the parameter is packaged through an IP address model and forwarded to a lwm2m protocol client side of the client industrial field gateway, the parameter is analyzed through the IP address model, and then the configuration information related to the configuration file is read through a query function according to the parameter and returned to the user.
The above embodiments are illustrative of the present invention, and are not intended to limit the present invention, and any simple modifications of the present invention are within the scope of the present invention.
Claims (6)
1. A gateway device IP address remote management method based on lwm2m protocol is characterized in that: the method comprises the following steps:
s1, a terminal user initiates a request for setting automatic IP acquisition to a cloud service, the request is transferred to a lwm2m protocol server, parameters for setting the automatic IP acquisition request are packaged through an IP address model, the parameters are forwarded to a lwm2m protocol client of a client industrial field gateway, the parameters are analyzed through the IP address model, then the parameters are written into a configuration file through setting an automatic IP acquisition function, then a system IP function is set, the function reads the setting in the configuration file, whether the automatic IP acquisition is carried out is judged according to the value of 'automatic IP acquisition' of an attribute name in a setting item, and if the automatic IP acquisition is carried out, an IP address is automatically acquired through DHCP; if not, setting a static IP address according to the rest setting items;
s2, a terminal user initiates a request for setting a static IP to a cloud service, the request is transferred to a lwm2m protocol server, parameters of the request for setting the static IP are packaged through an IP address model, the request is forwarded to a lwm2m protocol client of a client industrial field gateway, the parameters are analyzed through the IP address model, the parameters are written into a configuration file through setting a static IP function, then a system IP function is set, the function reads the setting in the configuration file, whether the IP is automatically acquired or not is judged according to the value of 'automatically acquired IP' of an attribute name in a setting item, and if the IP is automatically acquired through DHCP; if not, setting a static IP address according to the rest setting items;
and S3, the terminal user initiates a query request to the cloud service, the request is transferred to an lwm2m protocol server, the request is encapsulated through an IP address model and forwarded to a lwm2m protocol client of the client industrial field gateway, parameters of the request are analyzed through the IP address model, and configuration information related to the configuration file is read through a query function according to the parameters and returned to the user.
2. The gateway device IP address remote management method according to claim 1, based on lwm2m protocol, characterized in that: in step S1, the end user initiates a request for setting an automatic IP acquisition request, including two parameters, namely, a network interface name and an automatic IP acquisition, to the cloud service, and the request is forwarded to the lwm2m protocol server, and the parameters are encapsulated by the IP address model.
3. The gateway device IP address remote management method according to claim 1, based on lwm2m protocol, characterized in that: in step S1, the setting in the function reading configuration file includes automatically acquiring an IP, a network interface name, an IP address, a domain name resolution address, a subnet mask, and a gateway address.
4. The gateway device IP address remote management method according to claim 1, based on lwm2m protocol, characterized in that: in step S2, the end user initiates a static IP setting request to the cloud service, including five parameters, i.e., a network interface name, an IP address, a domain name resolution address, a subnet mask, and a gateway address, and the request is forwarded to the lwm2m protocol server, and the parameters are encapsulated by the IP address model.
5. The gateway device IP address remote management method according to claim 1, based on lwm2m protocol, characterized in that: in step S2, the setting in the function reading configuration file includes automatically acquiring an IP, a network interface name, an IP address, a domain name resolution address, a subnet mask, and a gateway address.
6. The gateway device IP address remote management method according to claim 1, based on lwm2m protocol, characterized in that: in step S3, the end user sends a query request to the cloud service, including a parameter of the network interface name, and the request is forwarded to the lwm2m protocol server, and the parameter is encapsulated by the IP address model.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110651979.9A CN113542446B (en) | 2021-06-11 | 2021-06-11 | Gateway equipment IP address remote management method based on lwm m protocol |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110651979.9A CN113542446B (en) | 2021-06-11 | 2021-06-11 | Gateway equipment IP address remote management method based on lwm m protocol |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113542446A true CN113542446A (en) | 2021-10-22 |
CN113542446B CN113542446B (en) | 2023-04-07 |
Family
ID=78124856
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110651979.9A Active CN113542446B (en) | 2021-06-11 | 2021-06-11 | Gateway equipment IP address remote management method based on lwm m protocol |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113542446B (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040133553A1 (en) * | 2002-12-19 | 2004-07-08 | Oki Data Corporation | Method for setting parameter via network and host computer |
WO2011000258A1 (en) * | 2009-06-29 | 2011-01-06 | 中兴通讯股份有限公司 | Method and device for acquiring configuration information based on dynamic host configuration protocol |
WO2013078814A1 (en) * | 2011-12-01 | 2013-06-06 | 中兴通讯股份有限公司 | Ip address allocation method and device |
CN103905580A (en) * | 2012-12-29 | 2014-07-02 | 重庆重邮信科通信技术有限公司 | Method and system for allowing PC to configure network addresses and send and receive data through mobile terminal |
CN104702624A (en) * | 2015-03-27 | 2015-06-10 | 深圳市研唐科技有限公司 | Method and system for logging virtual machine based on Cloud Stack platform |
CN105827464A (en) * | 2016-05-16 | 2016-08-03 | 江南大学 | Automatically deployable virtual router establishment method |
-
2021
- 2021-06-11 CN CN202110651979.9A patent/CN113542446B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040133553A1 (en) * | 2002-12-19 | 2004-07-08 | Oki Data Corporation | Method for setting parameter via network and host computer |
WO2011000258A1 (en) * | 2009-06-29 | 2011-01-06 | 中兴通讯股份有限公司 | Method and device for acquiring configuration information based on dynamic host configuration protocol |
WO2013078814A1 (en) * | 2011-12-01 | 2013-06-06 | 中兴通讯股份有限公司 | Ip address allocation method and device |
CN103905580A (en) * | 2012-12-29 | 2014-07-02 | 重庆重邮信科通信技术有限公司 | Method and system for allowing PC to configure network addresses and send and receive data through mobile terminal |
CN104702624A (en) * | 2015-03-27 | 2015-06-10 | 深圳市研唐科技有限公司 | Method and system for logging virtual machine based on Cloud Stack platform |
CN105827464A (en) * | 2016-05-16 | 2016-08-03 | 江南大学 | Automatically deployable virtual router establishment method |
Non-Patent Citations (2)
Title |
---|
李新国: "DSL终端自动配置管理的研究与实现", 《湖南文理学院学报(自然科学版)》 * |
邢浩等: "浅析DHCP及其在Cable Modem系统中的应用", 《有线电视技术》 * |
Also Published As
Publication number | Publication date |
---|---|
CN113542446B (en) | 2023-04-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR100942480B1 (en) | A communication device and a system for managing the local devies remotely and the method thereof | |
CN103516541A (en) | Configuration information automatic management method based on intelligent transformer substation | |
CN101552804A (en) | Network video distribution system and network video access method thereof | |
WO2008075355A2 (en) | System and method for providing automated meter management layer intelligence to a power line communications system | |
CN101778264A (en) | Video monitoring method and video monitoring system | |
CN111949456B (en) | Automatic serial port protocol testing system and method based on configuration updating | |
CN113792008B (en) | Method and device for acquiring network topology structure, electronic equipment and storage medium | |
CN107979489A (en) | Integrated access equipment configuration monitoring method | |
CN106230857A (en) | A kind of active leakage location towards industrial control system and detection method | |
CN114827293B (en) | Edge intelligent gateway management method and edge intelligent gateway | |
CN103873271A (en) | Gateway EoC terminal, and management system and management method thereof | |
US8504702B2 (en) | Providing server identification to a client | |
CN202094935U (en) | Dynamic IP network based remote switch signal control system | |
CN104901954A (en) | Soft switching system of Internet of Things and method thereof | |
CN113542446B (en) | Gateway equipment IP address remote management method based on lwm m protocol | |
CN106603339A (en) | Test system and method of simulating wide area network environment | |
CN114726916B (en) | Data transmission management system and method based on edge internet of things proxy | |
CN102752135A (en) | Method for realizing configuration of network devices | |
CN213817812U (en) | Test service system based on Router OS is built | |
CN114765633B (en) | Network message analysis method and device based on real-time Ethernet protocol of train | |
CN103152195A (en) | Data collection method and device | |
Li et al. | Research on designing methods of the secondary system in digital substation | |
CN107612768B (en) | Windows-based local database access flow acquisition method and system | |
CN106789256B (en) | Test system and test method for simulating wide area network environment | |
CN113382038B (en) | Lwm2m protocol-based gateway equipment user remote management method |
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 |