[go: up one dir, main page]

CN113542446B - Gateway equipment IP address remote management method based on lwm m protocol - Google Patents

Gateway equipment IP address remote management method based on lwm m protocol Download PDF

Info

Publication number
CN113542446B
CN113542446B CN202110651979.9A CN202110651979A CN113542446B CN 113542446 B CN113542446 B CN 113542446B CN 202110651979 A CN202110651979 A CN 202110651979A CN 113542446 B CN113542446 B CN 113542446B
Authority
CN
China
Prior art keywords
address
request
setting
lwm
parameters
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
Application number
CN202110651979.9A
Other languages
Chinese (zh)
Other versions
CN113542446A (en
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.)
Hangzhou Jiuxin Internet Of Things Science & Technology Co ltd
Original Assignee
Hangzhou Jiuxin Internet Of Things Science & Technology 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 Hangzhou Jiuxin Internet Of Things Science & Technology Co ltd filed Critical Hangzhou Jiuxin Internet Of Things Science & Technology Co ltd
Priority to CN202110651979.9A priority Critical patent/CN113542446B/en
Publication of CN113542446A publication Critical patent/CN113542446A/en
Application granted granted Critical
Publication of CN113542446B publication Critical patent/CN113542446B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5076Update or notification mechanisms, e.g. DynDNS
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4505Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
    • H04L61/4511Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total 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 lwm m protocol, which comprises the following steps: a terminal user initiates a setting automatic IP acquisition request/a setting static IP request/a query request to a cloud service, the request is transferred to a lwm m protocol server, parameters are encapsulated through an IP address model and are forwarded to a lwm m protocol client, the parameters are analyzed through the IP address model, the setting automatic IP acquisition request/the setting static IP request is set, after the parameters are analyzed, parameters are written into a configuration file through setting an automatic IP function/a setting static IP function, then a system IP function is set, the function reads the setting in the configuration file, and whether the automatic IP acquisition is carried out or not is judged according to the value of an attribute name 'automatically acquiring IP' 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 side and the client side under the weak network condition.

Description

Gateway equipment IP address remote management method based on lwm m protocol
[ 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 lwm m protocol.
[ background ] A method for producing a semiconductor device
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 is connected to the internet through the Internet of things card, connection is unstable due to the fact that weak network problems exist, and the problems that operation faults are many and experience is poor exist in maintenance of an IP address set by the gateway. Therefore, a gateway device IP address remote management method based on the lwm m protocol is provided.
[ summary of the invention ]
The invention aims to solve the problems in the prior art, and provides a remote management method for an IP address of gateway equipment based on a lwm m protocol, namely a lwm m protocol Internet of things communication protocol, which can effectively guarantee communication between a server end and a client end 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 lwm m protocol, which 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 lwm m protocol server, parameters of the automatic IP acquisition request are packaged through an IP address model and forwarded to a lwm m 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 in the configuration file, whether the automatic IP acquisition is carried out or not 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 lwm m protocol server, parameters for setting the static IP request are packaged through an IP address model and forwarded to a lwm m 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 the 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 acquiring the 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, a terminal user initiates a query request to the cloud service, the request is transferred to a lwm m protocol server, the request is encapsulated through an IP address model and is forwarded to a lwm m protocol client of the client industrial field gateway, parameters in the request are analyzed through the IP address model, and then configuration information related to the configuration file is read through a query function according to the parameters and is 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 through 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, namely, 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 through the IP address model.
The invention has the beneficial effects that:
1. by means of the lwm m protocol, remote operation and maintenance of the IP address of the gateway equipment can be achieved, and on-site maintenance is not needed.
2. The lwm m protocol can guarantee communication between the server and the gateway device, and system stability and 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 flowchart of a method for remotely managing an IP address of a gateway device based on a lwm m protocol according to the present invention.
[ detailed description ] embodiments
Referring to fig. 1, the invention relates to a gateway device IP address remote management method based on lwm m protocol, comprising the following steps:
s1, a terminal user initiates a request for setting automatic IP acquisition to a cloud service, the request comprises a network interface name and two parameters for automatically acquiring IP, the request is transferred to a lwm m protocol server, the two parameters are packaged through an IP address model and forwarded to a lwm m 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 and set, the function reads the setting (including automatically acquiring the IP, the network interface name, the IP address, a domain name resolution address, a subnet mask and a gateway address) in the configuration file, judges whether the IP is automatically acquired according to the value of 'automatically acquiring the IP' in a setting item, and if the IP is automatically acquired through 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 lwm m protocol server, the five parameters are packaged through an IP address model and forwarded to a lwm m 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 the static IP function, then a system IP function is set, the function reads the settings (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, whether the IP is automatically acquired is judged 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 DHCP; if not, the static IP address is set according to the remaining setting items.
And S3, the terminal user initiates a query request to the cloud service, the query request contains a parameter of the network interface name, the request is transferred to a lwm m protocol server, the parameter is packaged through an IP address model and is forwarded to a lwm m protocol client 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 is 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 equipment IP address remote management method based on lwm m 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 lwm m protocol server, parameters of the automatic IP acquisition request are packaged through an IP address model and forwarded to a lwm m 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 in the configuration file, whether the automatic IP acquisition is carried out or not 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 lwm m protocol server, parameters of the request for setting the static IP are packaged through an IP address model and forwarded to a lwm m 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 the 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 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 a lwm m protocol server, the request is encapsulated through an IP address model and forwarded to a lwm m protocol client of the client industrial field gateway, parameters in the request are analyzed through the IP address model, and then 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 lwm m protocol, comprising: in the step S1, a terminal user initiates a request for setting automatic IP acquisition to a cloud service, wherein the request comprises a network interface name and two parameters of automatic IP acquisition, the request is transferred to a lwm m protocol server, and the network interface name and the automatic IP acquisition are packaged through an IP address model.
3. The gateway device IP address remote management method according to claim 1, based on lwm m protocol, comprising: 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 lwm m protocol, comprising: 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 network interface name, the IP address, the domain name resolution address, the subnet mask, and the gateway address are encapsulated by the IP address model.
5. The gateway device IP address remote management method according to claim 1, based on lwm m protocol, comprising: 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 lwm m protocol, comprising: 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 lwm m protocol server, and the parameter is encapsulated through the IP address model.
CN202110651979.9A 2021-06-11 2021-06-11 Gateway equipment IP address remote management method based on lwm m protocol Active CN113542446B (en)

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 CN113542446A (en) 2021-10-22
CN113542446B true 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)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN120378332A (en) * 2025-06-25 2025-07-25 创远信科(上海)技术股份有限公司 Method, device, processor and medium for realizing network performance test without network connection

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4188074B2 (en) * 2002-12-19 2008-11-26 株式会社沖データ Parameter setting computer via network

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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)

* Cited by examiner, † Cited by third party
Title
DSL终端自动配置管理的研究与实现;李新国;《湖南文理学院学报(自然科学版)》;20080315(第01期);全文 *
浅析DHCP及其在Cable Modem系统中的应用;邢浩等;《有线电视技术》;20130120(第01期);全文 *

Also Published As

Publication number Publication date
CN113542446A (en) 2021-10-22

Similar Documents

Publication Publication Date Title
US7028081B2 (en) Network-device management apparatus and method, recording medium, and transmission apparatus
KR100942480B1 (en) Communication devices, systems, and methods for remotely managing local network devices
CN103516541B (en) Configuration information automatic management method based on Intelligent transformer station
CN101478553B (en) Dynamic domain name management system and method
US7337242B1 (en) Method and apparatus utilizing communication means hierarchy to configure or monitor an interface device
US20100073192A1 (en) System and method for providing automated meter management layer intelligence to a power line communications system
CN101442566A (en) Method and apparatus for implementing dynamic domain name update
CN101778264A (en) Video monitoring method and video monitoring system
CN101141422A (en) Method and system to access family gateway and family gateway
Neisse et al. Implementation and bandwidth consumption evaluation of SNMP to web services gateways
CN101202745A (en) Method, device and application system for obtaining functional configuration information of user premises equipment
CN113542446B (en) Gateway equipment IP address remote management method based on lwm m protocol
CN101483543A (en) Network management method and system, terminal and automatic configuration server
CN103873271B (en) A kind of gateway type EoC terminals and its management system and management method
CN108111589A (en) Collecting method, device, equipment and computer readable storage medium
CN104901954A (en) Soft switching system of Internet of Things and method thereof
CN104821899A (en) Intelligent device dynamic identification method
CN108011870B (en) A kind of remote software online upgrading information automatic identification management method
JP2003233417A (en) Data communication device and method, data communication program and recording medium recording the program
CN104955067B (en) A kind of wireless networking information statistical method and system
CN113259425A (en) 61850 standard-based data conversion method, transformer substation gateway and storage medium
CN113382038B (en) Lwm2m protocol-based gateway equipment user remote management method
CN103152195B (en) Collecting method and device
CN114726916B (en) Data transmission management system and method based on edge internet of things proxy
Li et al. Research on designing methods of the secondary system in digital substation

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