CN112260864A - Method for configuring equipment configuration information - Google Patents
Method for configuring equipment configuration information Download PDFInfo
- Publication number
- CN112260864A CN112260864A CN202011108195.3A CN202011108195A CN112260864A CN 112260864 A CN112260864 A CN 112260864A CN 202011108195 A CN202011108195 A CN 202011108195A CN 112260864 A CN112260864 A CN 112260864A
- Authority
- CN
- China
- Prior art keywords
- configuration
- configuration item
- time value
- server
- configuration table
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 17
- 238000011144 upstream manufacturing Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 1
- 238000007726 management method Methods 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer And Data Communications (AREA)
Abstract
The method for configuring the equipment configuration information comprises an equipment configuration table P, wherein the configuration table comprises a configuration equipment serial number, a configuration table updating time value T and each configuration item content, and the configuration item content comprises a configuration item content inAnd updates the time value t thereofnWhere n is a non-negative integer, the configuration item content represents various attributes, commands and functions that can be set in the device, the configuration table update time value T is from the latest update time value of each configuration item content, and the update time value T of the configuration item content must be updated each time the configuration item content is updatednAnd meanwhile, updating the updating time value T of the configuration table P. The method effectively avoids that when the server fails to issue the configuration item information, the server needs to actively issue the failed configuration item contents again, effectively saves the resources of the server and improves the utilization rate of the server.
Description
Technical Field
The invention relates to the field of Internet of things. In particular to a method and a system for configuring terminal equipment of the internet of things.
Background
With the continuous popularization of electronic devices of the internet of things, the number of devices managed by a device control platform is increasing, and some attributes in the devices need to be set by a server. In the face of millions, or even billions or more of devices, the server needs to have an effective configuration management method for the devices to be configured and managed effectively.
Disclosure of Invention
In order to solve the above problems, the present invention provides a method for configuring device configuration information, which can effectively reduce server complexity, save server resources and network bandwidth, and improve network utilization.
In order to achieve the above object, the method for configuring device configuration information according to the present invention includes a device configuration table P, where the configuration table includes a serial number of a configured device, an update time value T of the configuration table, and contents of configuration items, where the contents of the configuration items include a content i of the configuration itemnAnd updates the time value t thereofnWhere n is a non-negative integer, the configuration item content represents various attributes, commands and functions that can be set in the device, the configuration table update time value T is from the latest update time value of each configuration item content, and the update time value T of the configuration item content must be updated each time the configuration item content is updatednAnd meanwhile, updating the updating time value T of the configuration table P. The time or time value is not limited to the representation of the character string and the time stamp, but the representation between two comparison values should be converted to agreement when a comparison of the present values is concerned. The method of updating the configuration item content may be input by a client or the like, or may be started to be imported from an upstream server.
Further, the device updates the initial value T of the device configuration table P' in the device0' reporting to a server; the server finds out the device configuration table P corresponding to the device; obtaining the updating time T of the equipment configuration table from the equipment configuration table P; comparison T0' and the value of T; if T0If the value is more than or equal to T, the server does not issue configuration item information to the equipment; if T0If the value is less than T, the server searches the updating time value of each configuration item in the device configuration table again, and the updating time value is more than T0' issuing the configuration item contents to the device; if the contents of the configuration items are successfully transmitted to the equipment, the T is updated0' value of TA value; if the issued configuration item is unsuccessful, not updating T0' value while waiting for the next cycle of the method. The equipment reported T in the invention0The method of' value is not limited to timed reporting and externally triggered reporting, etc.
The method effectively avoids that when the server fails to issue the configuration item information, the server needs to actively issue the failed configuration item contents again, effectively saves the resources of the server and improves the utilization rate of the server. Meanwhile, the configuration table is decomposed into configuration item information and the configuration item information is issued to the equipment, so that the method and the equipment are more suitable for the narrow-band network environment with lower bandwidth.
Drawings
Fig. 1 is an exemplary system architecture diagram of embodiment 1.
FIG. 2 is a flow chart of example 1.
Detailed Description
The technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.
Example 1.
As shown in fig. 1, the present embodiment describes a method for configuring device configuration information, and is applied to the exemplary system architecture shown in fig. 1. The system architecture may include a cloud, a logging device 104, and a device 105. The cloud may include an application server 101, a cache server 102, and a database server 103. The servers can be simply deployed on one computer device, and can also be deployed in a distributed mode according to implementation requirements. The recording device 104 may also be a personal computer, a smart phone, a pad, etc. The device 105 may be an internet of things device such as a networked smart door lock, a smart switch, a smart light, and a smart meter.
As shown in fig. 2, the method comprises the following steps:
step S201: and acquiring the content of the equipment configuration item in the equipment configuration table of the logging equipment.
In this embodiment, a user inputs an apparatus configuration item content i in an apparatus configuration table P to be issued to an apparatus by an apparatusnAnd (6) recording. TheseThe entry of the content of the configuration item can also be imported through a server of an upstream system, and the system does not limit the specific entry equipment.
Step S202: and saving the acquired device configuration item content in a database.
In this embodiment, the server stores the acquired contents of the device configuration items in the database, and simultaneously stores the time values of updating the contents of the device configuration items in the device configuration item update time values t of the corresponding devices in the device corresponding databasen。
Step S203: and generating a device configuration table P to be issued corresponding to the device from the database.
In this embodiment, the server may obtain the latest device configuration item content of the corresponding device from the database server at regular time, and generate the device configuration table P of the corresponding device. Updating time values t from these device configuration item contents simultaneouslynFinding out the latest time value and generating the updating time T of the device configuration table.
Step S204: and acquiring an equipment configuration table acquisition instruction sent by the equipment, searching the equipment configuration table P' of the corresponding equipment, and sending the equipment configuration item content which is not sent to the corresponding equipment.
In this embodiment, the server obtains, from the device, an instruction requesting the device configuration table to issue, and obtains, from the content of the instruction, the update time value T of the device configuration table in the device0'. If the configuration table in the device updates the time value T0If the update time value T is more than or equal to the update time value T of the equipment configuration table to be issued, the equipment configuration item content is not issued to the equipment; if the configuration table in the device updates the time value T0If the update time value is less than the update time value T of the equipment configuration table to be issued, the update time value T of the equipment configuration item is found from the equipment configuration table to be issuednIs greater than the update time value T of the configuration table of the equipment to be issued0The device configuration item information of' issues the device configuration item information to the corresponding devices.
Step S205: and judging whether the configuration item to be issued is successfully sent.
In this embodiment, if the server successfully receives a reply of the device to each piece of configuration item information issued to the server, it indicates that the server successfully issues the configuration items this time; if the failure reply of the equipment to one of the configuration items issued to the equipment is not received or is received, the information of the configuration item issued at the time is considered to be failed. And if the configuration item information is failed to be issued at this time, the server waits for the next acquisition instruction of the configuration item information by the equipment.
Step S206: device update time value T for updating device configuration table in device0' update the time value T for the device configuration table of the corresponding device in the server.
In this embodiment, for a device that successfully issues configuration item information, the server needs to issue an instruction to the device again to update the update time value of the device configuration table corresponding to the device, so as to achieve consistency between the update time value of the server device configuration table and the update time of the device configuration table in the device.
Claims (2)
1. A method for configuring device configuration information is characterized by comprising a device configuration table P, wherein the configuration table comprises a configuration device serial number, a configuration table updating time value T and each configuration item content, and the configuration item content comprises a configuration item content inAnd updates the time value t thereofnWhere n is a non-negative integer, the configuration item content represents various attributes, commands and functions that can be set in the device, the configuration table update time value T is from the latest update time value of each configuration item content, and the update time value T of the configuration item content must be updated each time the configuration item content is updatednAnd meanwhile, updating the updating time value T of the configuration table P.
2. The method as claimed in claim 1, wherein the device assigns an initial value T representing an update time of the device configuration table P' in the device0' reporting to a server; the server finds out the device configuration table P corresponding to the device; obtaining the updating time T of the equipment configuration table from the equipment configuration table P; comparison T0' and the value of T; if T0If T is greater than T, the server does not send the configuration item information toEquipment; if T0If the value is less than T, the server searches the updating time value of each configuration item in the device configuration table again, and the updating time value is more than T0' issuing the configuration item contents to the device; if the contents of the configuration items are successfully transmitted to the equipment, the T is updated0' value of T; if the issued configuration item is unsuccessful, not updating T0' value while waiting for the next cycle of the method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011108195.3A CN112260864A (en) | 2020-10-16 | 2020-10-16 | Method for configuring equipment configuration information |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011108195.3A CN112260864A (en) | 2020-10-16 | 2020-10-16 | Method for configuring equipment configuration information |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112260864A true CN112260864A (en) | 2021-01-22 |
Family
ID=74244303
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011108195.3A Pending CN112260864A (en) | 2020-10-16 | 2020-10-16 | Method for configuring equipment configuration information |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112260864A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113434585A (en) * | 2021-06-29 | 2021-09-24 | 中国联合网络通信集团有限公司 | Resource saving method and equipment |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060083217A1 (en) * | 2004-10-19 | 2006-04-20 | Keun-Ah Bae | Element management method and system in multiple networks |
CN101232467A (en) * | 2008-02-22 | 2008-07-30 | 中兴通讯股份有限公司 | Method for obtaining information using time jab in real time communicating business |
CN102236707A (en) * | 2011-06-28 | 2011-11-09 | 贵阳朗玛信息技术股份有限公司 | Method, device and system for obtaining update data of database |
CN102314368A (en) * | 2011-09-26 | 2012-01-11 | 贵阳朗玛信息技术股份有限公司 | Method and equipment for updating configuration data of server program |
CN106878370A (en) * | 2016-09-19 | 2017-06-20 | 阿里巴巴集团控股有限公司 | The update method and equipment of a kind of local cache |
CN107526581A (en) * | 2016-07-28 | 2017-12-29 | 腾讯科技(深圳)有限公司 | Data update notifying method and device |
CN108632078A (en) * | 2018-03-13 | 2018-10-09 | 网宿科技股份有限公司 | A kind of acquisition methods of configuration |
CN111259019A (en) * | 2020-01-09 | 2020-06-09 | 腾讯科技(深圳)有限公司 | Resource allocation method, device, equipment and storage medium |
-
2020
- 2020-10-16 CN CN202011108195.3A patent/CN112260864A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060083217A1 (en) * | 2004-10-19 | 2006-04-20 | Keun-Ah Bae | Element management method and system in multiple networks |
CN101232467A (en) * | 2008-02-22 | 2008-07-30 | 中兴通讯股份有限公司 | Method for obtaining information using time jab in real time communicating business |
CN102236707A (en) * | 2011-06-28 | 2011-11-09 | 贵阳朗玛信息技术股份有限公司 | Method, device and system for obtaining update data of database |
CN102314368A (en) * | 2011-09-26 | 2012-01-11 | 贵阳朗玛信息技术股份有限公司 | Method and equipment for updating configuration data of server program |
CN107526581A (en) * | 2016-07-28 | 2017-12-29 | 腾讯科技(深圳)有限公司 | Data update notifying method and device |
CN106878370A (en) * | 2016-09-19 | 2017-06-20 | 阿里巴巴集团控股有限公司 | The update method and equipment of a kind of local cache |
CN108632078A (en) * | 2018-03-13 | 2018-10-09 | 网宿科技股份有限公司 | A kind of acquisition methods of configuration |
CN111259019A (en) * | 2020-01-09 | 2020-06-09 | 腾讯科技(深圳)有限公司 | Resource allocation method, device, equipment and storage medium |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113434585A (en) * | 2021-06-29 | 2021-09-24 | 中国联合网络通信集团有限公司 | Resource saving method and equipment |
CN113434585B (en) * | 2021-06-29 | 2024-03-26 | 中国联合网络通信集团有限公司 | Resource preservation method and equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110119292B (en) | System operation parameter query method, matching method, device and node equipment | |
CN110311983B (en) | Service request processing method, device and system, electronic equipment and storage medium | |
CN112527528A (en) | Data transmission method, device and storage medium based on message queue | |
US10956667B2 (en) | Operational transformations proxy for thin clients | |
CN110471848B (en) | Method and device for dynamically returning message | |
CN106657314A (en) | Cross-data center data synchronization system and method | |
JP7114772B2 (en) | Certificate sending method, certificate receiving method, cloud and terminal equipment | |
CN112202661A (en) | Session message processing method and device, computer equipment and storage medium | |
CN111241189B (en) | Method and device for synchronizing data | |
CN113271359A (en) | Method and device for refreshing cache data, electronic equipment and storage medium | |
CN112260864A (en) | Method for configuring equipment configuration information | |
CN110933145A (en) | Remote scheduling method, device, equipment and medium | |
CN113111626A (en) | Sequence generation method and device, electronic equipment and storage medium | |
CN107786661B (en) | Information synchronization method | |
CN115865974A (en) | Edge device, cloud device, edge computing system and method, and storage medium | |
CN111865576B (en) | Method and device for synchronizing URL classification data | |
CN113824675B (en) | Method and device for managing login state | |
CN111400060B (en) | Equipment linkage method, device, server and medium | |
CN112559001B (en) | Method and device for updating application | |
CN110661857B (en) | Data synchronization method and device | |
CN114385570A (en) | Data synchronization method and device, electronic equipment and readable medium | |
CN114564318A (en) | Data processing method, device and system, electronic equipment and storage medium | |
CN113779122A (en) | Method and apparatus for exporting data | |
CN110019671B (en) | Method and system for processing real-time message | |
CN113760343A (en) | Method and device for processing service request |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20210122 |
|
RJ01 | Rejection of invention patent application after publication |