CN112506704B - Configuration information backup method and device for gateway of Internet of things - Google Patents

Configuration information backup method and device for gateway of Internet of things Download PDF

Info

Publication number
CN112506704B
CN112506704B CN202011405043.XA CN202011405043A CN112506704B CN 112506704 B CN112506704 B CN 112506704B CN 202011405043 A CN202011405043 A CN 202011405043A CN 112506704 B CN112506704 B CN 112506704B
Authority
CN
China
Prior art keywords
internet
things
gateway
configuration data
configuration
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011405043.XA
Other languages
Chinese (zh)
Other versions
CN112506704A (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.)
Guangzhou Jixiang Technology Co Ltd
Original Assignee
Guangzhou Jixiang 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 Guangzhou Jixiang Technology Co Ltd filed Critical Guangzhou Jixiang Technology Co Ltd
Priority to CN202011405043.XA priority Critical patent/CN112506704B/en
Publication of CN112506704A publication Critical patent/CN112506704A/en
Application granted granted Critical
Publication of CN112506704B publication Critical patent/CN112506704B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1448Management of the data involved in backup or backup restore
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • G06F16/2228Indexing structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/602Providing cryptographic facilities or services
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16YINFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
    • G16Y10/00Economic sectors
    • G16Y10/75Information technology; Communication
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16YINFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
    • G16Y40/00IoT characterised by the purpose of the information processing
    • G16Y40/30Control
    • G16Y40/35Management of things, i.e. controlling in accordance with a policy or in order to achieve specified objectives
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16YINFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
    • G16Y40/00IoT characterised by the purpose of the information processing
    • G16Y40/50Safety; Security of things, users, data or systems

Abstract

The embodiment of the application discloses a method and a device for backing up configuration information of an Internet of things gateway. According to the technical scheme, the configuration information of the gateway of the Internet of things is divided into the plurality of configuration data packets through the gateway of the Internet of things, the configuration data packets contain mutually redundant configuration information, and the plurality of configuration data packets are distributed and stored to all terminals of the Internet of things in the communication range of the gateway of the Internet of things. Subsequently, when a new internet of things terminal is detected to be accessed to the network, generating a corresponding configuration data packet according to the newly generated configuration information and sending the corresponding configuration data packet to the new internet of things terminal; when the new gateway replaces the gateway of the internet of things to access the network, the new gateway extracts the configuration data packet stored in each terminal of the internet of things to configure the operation parameters of the new gateway. By adopting the technical means, the safe redundant backup of the configuration information of the gateway of the Internet of things can be ensured, the condition that the configuration information is lost or easily stolen is avoided, and the configuration efficiency of the operation parameters of the system is improved.

Description

Configuration information backup method and device for gateway of Internet of things
Technical Field
The embodiment of the application relates to the technical field of Internet of things, in particular to a method and a device for backing up configuration information of an Internet of things gateway.
Background
At present, the technology of the internet of things is applied to building a communication network in various fields in life. Generally, in the internet of things systems in these fields, various wireless networking modes are generally used, networking is performed in a certain area range, then a plurality of data concentrators or intelligent gateways are arranged at appropriate positions, and each terminal of the internet of things selects a corresponding gateway as a communication relay to perform service data interaction with a cloud. The internet of things gateway can generate relevant configuration information in the running and using process, and the configuration information is generally backed up at a cloud end in order to ensure that the configuration information is not lost. However, once the cloud is attacked by the network, the configuration information of the internet of things gateway is easily lost, and the operation of the internet of things system is affected.
Disclosure of Invention
The embodiment of the application provides a method and a device for backing up configuration information of an Internet of things gateway, which can ensure safe redundant backup of the configuration information of the Internet of things gateway, avoid the situation that the configuration information is lost or easily stolen, and improve the configuration efficiency of system operation parameters.
In a first aspect, an embodiment of the present application provides a method for backing up configuration information of an internet of things gateway, including:
the method comprises the steps that the Internet of things gateway divides self configuration information into a plurality of configuration data packets, the configuration data packets contain mutually redundant configuration information, and the configuration data packets are distributed and stored to all Internet of things terminals in the communication range of the Internet of things gateway;
when the gateway of the Internet of things detects that the corresponding configuration information is replaced, generating a new configuration data packet and updating the new configuration data packet to the corresponding terminal of the Internet of things; when configuration information is newly generated, generating a corresponding configuration data packet and selecting one Internet of things terminal to store according to the memory condition of each Internet of things terminal;
when a new Internet of things terminal is detected to be accessed to the network, generating a corresponding configuration data packet according to newly generated configuration information and sending the corresponding configuration data packet to the new Internet of things terminal;
when a new gateway replaces the gateway of the internet of things to access the network, the new gateway extracts configuration data packets stored by the terminals of the internet of things to configure the operation parameters of the new gateway.
Further, after the distributing and storing the plurality of configuration data packets to each internet of things terminal in the communication range of the internet of things gateway, the method further includes:
and binding the label information of each configuration data packet with the identification information of the corresponding Internet of things terminal to generate index information, storing the index information in the Internet of things gateway, and using the index information as a data index for extracting the corresponding configuration data packet.
Further, after the tag information of each configuration data packet is bound with the identification information of the corresponding internet of things terminal to generate index information and the index information is stored in the internet of things gateway, the method further includes:
and the Internet of things gateway backs up the index information to a cloud end for storage.
Further, when a new gateway replaces the internet of things gateway to access the network, the new gateway extracts configuration data packets stored in each internet of things terminal to perform operation parameter configuration on the new gateway, including:
and the new gateway downloads the index information from the cloud terminal and requests the corresponding configuration data packet from each Internet of things terminal based on the index information.
Further, the distributing and storing the plurality of configuration data packets to each internet of things terminal in the communication range of the internet of things gateway further includes:
and the gateway of the Internet of things encrypts the configuration data packet by using a preset asymmetric encryption key, and reserves the corresponding asymmetric decryption key for decrypting the configuration data packet.
Further, the new gateway extracting configuration data packets stored in each terminal of the internet of things to perform operation parameter configuration on the new gateway, including:
and analyzing each configuration data packet to obtain corresponding configuration information, screening out redundant configuration information and configuring the running parameters of the configuration data packet.
Further, the distributing and storing the plurality of configuration data packets to each internet of things terminal in the communication range of the internet of things gateway further includes:
and based on a storage state balance principle, the configuration data packets are distributed and stored to the terminals of the Internet of things.
In a second aspect, an embodiment of the present application provides a configuration information backup device for an internet of things gateway, including:
the storage module is used for dividing self configuration information into a plurality of configuration data packets through the gateway of the Internet of things, wherein the configuration data packets contain the mutually redundant configuration information, and the plurality of configuration data packets are distributed and stored to all terminals of the Internet of things in the communication range of the gateway of the Internet of things;
the updating module is used for generating a new configuration data packet and updating the new configuration data packet to the corresponding Internet of things terminal when the Internet of things gateway detects that the corresponding configuration information is replaced; when configuration information is newly generated, generating a corresponding configuration data packet and selecting one Internet of things terminal to store according to the memory condition of each Internet of things terminal;
the detection module is used for generating a corresponding configuration data packet according to newly generated configuration information and sending the corresponding configuration data packet to a new Internet of things terminal when the new Internet of things terminal is detected to be accessed to the network;
and the configuration module is used for extracting the configuration data packet stored by each Internet of things terminal by the new gateway to configure the operation parameters of the new gateway when the new gateway replaces the Internet of things gateway to access the network.
In a third aspect, an embodiment of the present application provides an electronic device, including:
a memory and one or more processors;
the memory for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors implement the method for backing up configuration information of an internet of things gateway according to the first aspect.
In a fourth aspect, embodiments of the present application provide a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform the configuration information backup method for an internet of things gateway according to the first aspect.
According to the embodiment of the application, the configuration information of the gateway of the Internet of things is divided into the plurality of configuration data packets through the gateway of the Internet of things, the configuration data packets contain mutually redundant configuration information, and the plurality of configuration data packets are distributed and stored to all terminals of the Internet of things in the communication range of the gateway of the Internet of things. Subsequently, when the gateway of the Internet of things detects that the corresponding configuration information is replaced, generating a new configuration data packet and updating the new configuration data packet to the corresponding terminal of the Internet of things; when newly generated configuration information is generated, generating a corresponding configuration data packet and selecting one Internet of things terminal for storage according to the memory condition of each Internet of things terminal; when a new internet of things terminal is detected to be accessed to the network, generating a corresponding configuration data packet according to newly generated configuration information and sending the corresponding configuration data packet to the new internet of things terminal; when the new gateway replaces the gateway of the internet of things to access the network, the new gateway extracts the configuration data packet stored in each terminal of the internet of things to configure the operation parameters of the new gateway. By adopting the technical means, the safe redundant backup of the configuration information of the gateway of the Internet of things can be ensured, the condition that the configuration information is lost or easily stolen is avoided, and the configuration efficiency of the operation parameters of the system is improved.
Drawings
Fig. 1 is a flowchart of a configuration information backup method for an internet of things gateway according to an embodiment of the present application;
FIG. 2 is a schematic diagram of configuration data packet storage according to an embodiment of the present application;
FIG. 3 is a diagram illustrating a corresponding configuration data packet update according to an embodiment of the present application;
fig. 4 is a schematic diagram illustrating configuration packet storage for a new internet of things terminal accessing a network according to a first embodiment of the present application;
FIG. 5 is a diagram illustrating a configuration packet extraction for a new gateway according to an embodiment of the present application;
FIG. 6 is a flowchart illustrating configuration information backup and configuration according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a configuration information backup device of an internet of things gateway according to a second embodiment of the present application;
fig. 8 is a schematic structural diagram of an electronic device according to a third embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, specific embodiments of the present application will be described in detail with reference to the accompanying drawings. It is to be understood that the specific embodiments described herein are merely illustrative of the application and are not limiting of the application. It should be further noted that, for the convenience of description, only some but not all of the relevant portions of the present application are shown in the drawings. Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the operations (or steps) as a sequential process, many of the operations can be performed in parallel, concurrently or simultaneously. In addition, the order of the operations may be re-arranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
The first embodiment is as follows:
fig. 1 is a flowchart of a configuration information backup method for an internet of things gateway according to an embodiment of the present disclosure, where the configuration information backup method for the internet of things gateway provided in this embodiment may be executed by a configuration information backup device for the internet of things gateway, the configuration information backup device for the internet of things gateway may be implemented in a software and/or hardware manner, and the configuration information backup device for the internet of things gateway may be formed by two or more physical entities or may be formed by one physical entity. Generally, the configuration information backup device of the internet of things gateway can be an internet of things system.
The following description will be given by taking an internet of things system as an example of a main body for executing a configuration information backup method of an internet of things gateway. Referring to fig. 1, the method for backing up configuration information of an internet of things gateway specifically includes:
s110, dividing configuration information of the gateway of the Internet of things into a plurality of configuration data packets by the gateway of the Internet of things, wherein the configuration data packets contain the mutually redundant configuration information, and storing the plurality of configuration data packets to each terminal of the Internet of things in the communication range of the gateway of the Internet of things in a distributed manner.
The configuration information backup method of the internet of things gateway in the embodiment of the application aims to avoid the situation of configuration information loss and facilitate the subsequent equipment operation parameter configuration when the internet of things gateway is replaced by backing up the configuration information of the internet of things gateway. Moreover, when the configuration information is backed up, the configuration information is distributed and backed up to the plurality of internet of things terminals, so that the condition that the configuration information is easily stolen due to centralized backup of the configuration information can be avoided, and the security of the configuration information backup is improved.
Specifically, referring to fig. 2, in the internet of things system according to the embodiment of the present application, the internet of things gateway 10 is in signal connection with the cloud 1H to which the internet of things gateway 10 belongs and each of the internet of things terminals 11, 12, and 13. In addition, the configuration data packets contain mutually redundant partial configuration information, so that when one configuration data packet is lost, the lost configuration information can be supplemented by the redundant information of other configuration data packets. In an embodiment, the internet of things gateway 10 may also preferentially select a plurality of internet of things terminals with better communication quality or larger memory resources from the plurality of internet of things terminals to store the configuration data packets, wherein the configuration data packets of the corresponding number are generated according to the number of the selected internet of things terminals.
Furthermore, a plurality of correspondingly generated configuration data packets are sent to the corresponding internet of things terminals for distributed storage, generally speaking, the configuration data packets stored by each internet of things terminal contain a part of all configuration information of the internet of things gateway, and redundant parts exist in all the configuration information, so that distributed storage of the configuration information is guaranteed, and the problem of incomplete configuration information caused by loss of a single configuration data packet is solved.
In one embodiment, after the internet of things gateway distributes and stores the plurality of configuration data packets to each internet of things terminal within the communication range of the internet of things gateway, the tag information of each configuration data packet is bound with the identification information of the corresponding internet of things terminal to generate index information, and the index information is stored in the internet of things gateway and used as a data index for extracting the corresponding configuration data packet. It can be understood that index information is generated by binding the tag information of each configuration data packet with the identification information of the corresponding internet of things terminal, and the corresponding configuration data packet needs to be extracted subsequently, the index information is queried according to the tag information of the configuration data packet, the identification information of the corresponding internet of things terminal is determined, and the configuration data packet is requested to be extracted from the internet of things terminal according to the identification information, so that the configuration data packet can be conveniently stored and extracted.
Further, as shown in fig. 2, after the tag information of each configuration data packet is bound with the identification information of the corresponding internet of things terminal to generate index information and stored in the internet of things gateway 10, the internet of things gateway 10 backs up the index information to the cloud 1H for storage. By backing up the index information to the cloud, the condition that the index information is lost due to upgrading, replacing and the like of the Internet of things gateway equipment is avoided, and subsequent configuration information extraction corresponding to the Internet of things gateway is facilitated.
In one embodiment, when the internet of things gateway distributes and stores a plurality of configuration data packets to each internet of things terminal within the communication range of the internet of things gateway, the internet of things gateway further encrypts the configuration data packets by using a preset asymmetric encryption key, and reserves the corresponding asymmetric decryption key for decryption of the configuration data packets. The configuration data packet is encrypted by using the asymmetric encryption key and then is distributed and stored to each Internet of things terminal, so that the difficulty of cracking and stealing the configuration information can be enhanced, and the storage safety of the configuration information is further ensured. And after the subsequent gateway of the Internet of things extracts the encrypted configuration data packet, the configuration data packet is further decrypted through the reserved asymmetric decryption key to obtain the configuration information of the configuration data packet. Furthermore, in order to improve the security of information storage, different encryption keys can be configured corresponding to different configuration data packets, and a plurality of different decryption keys are reserved corresponding to configuration data packet labels, so that the situation that other data are easily stolen due to the fact that a single data packet encryption key is cracked is avoided.
In one embodiment, after the internet of things gateway distributes and stores the plurality of configuration data packets to the plurality of internet of things terminals in the communication range of the internet of things gateway, when any one internet of things terminal is replaced, the corresponding configuration data packet is returned to the internet of things gateway, and the corresponding configuration data packet is redistributed by the internet of things gateway. It can be understood that, when the terminal of the internet of things is replaced, in order to avoid the configuration data packet stored at the terminal of the internet of things from being lost, the configuration data packet is returned to the gateway of the internet of things by the terminal of the internet of things to perform the backuping of the configuration data packet, so that the integrity of the configuration information can be ensured. Further, when the gateway of the internet of things backs up the corresponding configuration data packet again, the terminal of the internet of things can be selected to reselect to send the configuration data packet within the communication range. Or after the replacement of the original internet of things terminal is finished, the configuration data packet can be retransmitted to the newly replaced internet of things terminal. And after the configuration data packet is backed up again, modifying corresponding index information according to the change of the identification information of the terminal of the Internet of things, and updating the index information backed up at the cloud end. In addition, in an embodiment, after the internet of things gateway distributes and stores the configuration data packets to the internet of things terminals in the communication range, any one of the internet of things terminals can temporarily store the configuration data packets in the internet of things gateway under the condition of equipment upgrade and the like, and the configuration data packets are downloaded back to the local for backup storage after the equipment upgrade is completed.
On the other hand, in one embodiment, when the internet of things gateway distributes and stores the plurality of configuration data packets to each internet of things terminal within the communication range of the internet of things gateway, the configuration data packets are also distributed and stored to each internet of things terminal based on a storage state balancing principle. It can be understood that, in order to avoid a situation that storage resources are in short supply due to storage of configuration data packets, the embodiment of the application preferably selects the internet of things terminal with an idle storage state to store the configuration data packets by analyzing the storage state of each internet of things terminal. And, the larger the storage space, the more configuration packets it allocates. Therefore, the storage state can be balanced when each terminal of the Internet of things stores the configuration data packet, and the situation that the storage resources are deficient due to the over-centralized storage of the configuration data packet is avoided.
S120, when the gateway of the Internet of things detects that the corresponding configuration information is changed, generating a new configuration data packet and updating the new configuration data packet to the corresponding terminal of the Internet of things; and when newly generated configuration information is generated, generating the corresponding configuration data packet and selecting one Internet of things terminal for storage according to the memory condition of each Internet of things terminal.
Further, after the internet of things gateway distributes and stores the configuration data packets to each internet of things terminal, the corresponding configuration data packets are further generated according to real-time replacement and addition of the configuration information to perform backup updating of the configuration data packets. Referring to fig. 3, in response to the changed configuration information, the internet of things gateway 10 generates a new configuration data packet according to the changed configuration information, and sends the new configuration data packet to the corresponding internet of things terminal. As shown in fig. 3, if the original configuration data packet is stored at the terminal 13 of the internet of things, the new configuration data packet is sent to the terminal 13 of the internet of things to replace the original configuration data packet, so as to complete the change backup of the configuration information. It should be noted that, since the configuration data packet is changed, the tag information of the configuration data packet is also changed, and at this time, the corresponding index information is updated based on the new tag information, and the index information is updated to the cloud 1H, so as to ensure real-time backup update of the information.
And when the configuration information is newly generated, generating a corresponding configuration data packet based on the configuration information, and further selecting one Internet of things terminal to store the configuration data packet. When the internet of things terminal is selected, the internet of things terminal with idle storage state is preferably selected to store the configuration data packet based on the storage state balancing principle, so that the phenomenon that storage resources are occupied due to excessive storage configuration information of the individual internet of things terminal and the operation of the service of the individual internet of things terminal is influenced is avoided. Similarly, as the newly added configuration data packet is stored in the corresponding internet of things terminal, new index information is generated according to the tag information of the newly added configuration data packet and the identification information of the corresponding internet of things terminal, and the index information is backed up to the cloud end, so that the backup of the newly added configuration information is completed.
S130, when a new Internet of things terminal is detected to be accessed to the network, generating a corresponding configuration data packet according to newly generated configuration information and sending the corresponding configuration data packet to the new Internet of things terminal.
Specifically, referring to fig. 4, when the new internet of things terminal 1M accesses the network, the internet of things gateway 10 generates a configuration data packet according to newly generated configuration information of itself, and the configuration data packet is preferentially sent to the new internet of things terminal 1M for storage. It can be understood that the memory state of the new internet of things terminal 1M should be relatively idle when accessing the network, and according to the principle of memory state balancing, the configuration information newly generated by the internet of things gateway 10 at this time is sent to the new internet of things terminal 1M for backup storage. And corresponding to the configuration data packet, the internet of things gateway generates corresponding index information and backups and stores the index information to the cloud end 1H so as to extract the configuration data packet subsequently.
And S140, when a new gateway replaces the gateway of the Internet of things to access the network, the new gateway extracts configuration data packets stored in the terminals of the Internet of things to configure the operation parameters of the new gateway.
Further, based on the configuration information that is completed with the backup, referring to fig. 5, when a new gateway 1F replaces the internet of things gateway to access the internet of things system, each configuration data packet that is backed up in advance by the original internet of things gateway is extracted from each internet of things terminal 11, 12.. 1N corresponding to the new gateway 1F that replaces the internet of things, and configuration information is obtained according to the configuration data packet and configuration of its own operation parameters is performed. It can be understood that, when the new gateway 1F replaces the internet of things gateway to access the network, in order to improve the configuration efficiency of the operation parameters of the new gateway 1F, the operation parameters of the new gateway 1F are configured according to the configuration information backed up by the internet of things gateway, so that the configuration of the operation parameters of the new gateway 1F is efficient and accurate, and the normal operation of the system service is not affected. Specifically, when a new gateway replaces the internet of things gateway to access the network, and the new gateway extracts a configuration data packet stored in each internet of things terminal to perform operation parameter configuration on the new gateway, the new gateway downloads the index information from the cloud, and requests the corresponding configuration data packet from each internet of things terminal based on the index information. It can be understood that, because the new gateway 1F replaces the internet of things gateway to access the network, it needs to obtain the original configuration information of the internet of things gateway to configure its own operation parameters, so that it can replace the internet of things gateway to operate normally in the system. Therefore, the new gateway 1F needs to request a corresponding configuration data packet from each internet of things terminal according to the index information backed up at the cloud 1H to acquire configuration information to perform operation parameter configuration.
After that, the new gateway analyzes each configuration data packet to obtain the corresponding configuration information, screens out the redundant configuration information and configures the running parameters of the new gateway. It can be understood that, since each configuration data packet includes configuration information of a redundant portion, when the operation parameter configuration is performed according to the configuration information, the redundant portion of configuration information needs to be screened out, and then the operation parameter configuration is performed, so as to complete the extraction and configuration of the configuration information in the embodiment of the present application.
Referring to fig. 6, in the embodiment of the application, the configuration information of the internet of things gateway is divided into a plurality of configuration data packets, the configuration data packets contain mutually redundant configuration information, and the plurality of configuration data packets are distributed and stored to each internet of things terminal in the communication range of the internet of things gateway. Subsequently, when the gateway of the Internet of things detects that the corresponding configuration information is replaced, generating a new configuration data packet and updating the new configuration data packet to the corresponding terminal of the Internet of things; when newly generated configuration information is generated, generating a corresponding configuration data packet and selecting one Internet of things terminal for storage according to the memory condition of each Internet of things terminal; when a new internet of things terminal is detected to be accessed to the network, generating a corresponding configuration data packet according to newly generated configuration information and sending the corresponding configuration data packet to the new internet of things terminal; when the new gateway replaces the gateway of the internet of things to access the network, the new gateway extracts the configuration data packet stored in each terminal of the internet of things to configure the operation parameters of the new gateway. By adopting the technical means, the safe redundant backup of the configuration information of the gateway of the Internet of things can be ensured, the condition that the configuration information is lost or easily stolen is avoided, and the configuration efficiency of the operation parameters of the system is improved.
Example two:
on the basis of the foregoing embodiment, fig. 7 is a schematic structural diagram of a configuration information backup device of an internet of things gateway according to a second embodiment of the present application. Referring to fig. 7, the configuration information backup device for an internet of things gateway provided in this embodiment specifically includes: the device comprises a storage module, an updating module, a detection module and a configuration module.
The storage module is used for dividing self configuration information into a plurality of configuration data packets through an Internet of things gateway, the configuration data packets contain mutually redundant configuration information, and the configuration data packets are distributed and stored to all Internet of things terminals in a communication range of the Internet of things gateway;
the updating module is used for generating a new configuration data packet and updating the new configuration data packet to the corresponding Internet of things terminal when the Internet of things gateway detects that the corresponding configuration information is replaced; when configuration information is newly generated, generating a corresponding configuration data packet and selecting one Internet of things terminal to store according to the memory condition of each Internet of things terminal;
the detection module is used for generating a corresponding configuration data packet according to newly generated configuration information and sending the corresponding configuration data packet to a new Internet of things terminal when the new Internet of things terminal is detected to be accessed to the network;
and the configuration module is used for extracting the configuration data packet stored by each Internet of things terminal by the new gateway to configure the operation parameters of the new gateway when the new gateway replaces the Internet of things gateway to access the network.
In the above, the configuration information of the gateway of the internet of things is divided into the plurality of configuration data packets through the gateway of the internet of things, the configuration data packets contain mutually redundant configuration information, and the plurality of configuration data packets are distributed and stored to each internet of things terminal in the communication range of the gateway of the internet of things. Subsequently, when the gateway of the Internet of things detects that the corresponding configuration information is replaced, generating a new configuration data packet and updating the new configuration data packet to the corresponding terminal of the Internet of things; when newly generated configuration information is generated, generating a corresponding configuration data packet and selecting one Internet of things terminal for storage according to the memory condition of each Internet of things terminal; when a new internet of things terminal is detected to be accessed to the network, generating a corresponding configuration data packet according to newly generated configuration information and sending the corresponding configuration data packet to the new internet of things terminal; when the new gateway replaces the gateway of the internet of things to access the network, the new gateway extracts the configuration data packet stored in each terminal of the internet of things to configure the operation parameters of the new gateway. By adopting the technical means, the safe redundant backup of the configuration information of the gateway of the Internet of things can be ensured, the condition that the configuration information is lost or easily stolen is avoided, and the configuration efficiency of the operation parameters of the system is improved.
The configuration information backup device for the internet of things gateway provided by the second embodiment of the present application can be used for executing the configuration information backup method for the internet of things gateway provided by the first embodiment of the present application, and has corresponding functions and beneficial effects.
Example three:
an embodiment of the present application provides an electronic device, and with reference to fig. 8, the electronic device includes: a processor 31, a memory 32, a communication module 33, an input device 34, and an output device 35. The number of processors in the electronic device may be one or more, and the number of memories in the electronic device may be one or more. The processor, memory, communication module, input device, and output device of the electronic device may be connected by a bus or other means.
The memory 32 is a computer-readable storage medium and can be used for storing software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the configuration information backup method of the internet of things gateway according to any embodiment of the present application (for example, a storage module, an update module, a detection module, and a configuration module in the configuration information backup device of the internet of things gateway). The memory can mainly comprise a program storage area and a data storage area, wherein the program storage area can store an operating system and an application program required by at least one function; the storage data area may store data created according to use of the device, and the like. Further, the memory 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 may further include memory located remotely from the processor, and these remote memories may be connected to the device over 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 communication module 33 is used for data transmission.
The processor 31 executes various functional applications and data processing of the device by running software programs, instructions and modules stored in the memory, that is, the method for backing up the configuration information of the internet of things gateway is implemented.
The input device 34 may be used to receive entered numeric or character information and to generate key signal inputs relating to user settings and function controls of the apparatus. The output device 35 may include a display device such as a display screen.
The electronic device provided by the embodiment can be used for executing the configuration information backup method of the internet of things gateway provided by the embodiment, and has corresponding functions and beneficial effects.
Example four:
embodiments of the present application further provide a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform a method for backing up configuration information of an internet of things gateway, where the method for backing up configuration information of an internet of things gateway includes: the method comprises the steps that the Internet of things gateway divides self configuration information into a plurality of configuration data packets, the configuration data packets contain mutually redundant configuration information, and the configuration data packets are distributed and stored to all Internet of things terminals in the communication range of the Internet of things gateway; when the gateway of the Internet of things detects that the corresponding configuration information is replaced, generating a new configuration data packet and updating the new configuration data packet to the corresponding terminal of the Internet of things; when configuration information is newly generated, generating a corresponding configuration data packet and selecting one Internet of things terminal to store according to the memory condition of each Internet of things terminal; when a new Internet of things terminal is detected to be accessed to the network, generating a corresponding configuration data packet according to newly generated configuration information and sending the corresponding configuration data packet to the new Internet of things terminal; when a new gateway replaces the gateway of the internet of things to access the network, the new gateway extracts configuration data packets stored by the terminals of the internet of things to configure the operation parameters of the new gateway.
Storage medium-any of various types of memory devices or storage devices. The term "storage medium" is intended to include: mounting media such as CD-ROM, floppy disk, or tape devices; computer system memory or random access memory such as DRAM, DDR RAM, SRAM, EDO RAM, Lanbas (Rambus) RAM, etc.; non-volatile memory such as flash memory, magnetic media (e.g., hard disk or optical storage); registers or other similar types of memory elements, etc. The storage medium may also include other types of memory or combinations thereof. In addition, the storage medium may be located in a first computer system in which the program is executed, or may be located in a different second computer system connected to the first computer system through a network (such as the internet). The second computer system may provide program instructions to the first computer for execution. The term "storage medium" may include two or more storage media residing in different locations, e.g., in different computer systems connected by a network. The storage medium may store program instructions (e.g., embodied as a computer program) that are executable by one or more processors.
Of course, the storage medium containing the computer-executable instructions provided in the embodiments of the present application is not limited to the above-described configuration information backup method for the internet of things gateway, and may also perform related operations in the configuration information backup method for the internet of things gateway provided in any embodiments of the present application.
The configuration information backup device, the storage medium, and the electronic device of the internet of things gateway provided in the embodiments may execute the configuration information backup method of the internet of things gateway provided in any embodiment of the present application, and reference may be made to the configuration information backup method of the internet of things gateway provided in any embodiment of the present application without detailed technical details described in the embodiments.
The foregoing is considered as illustrative of the preferred embodiments of the invention and the technical principles employed. The present application is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present application has been described in more detail with reference to the above embodiments, the present application is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present application, and the scope of the present application is determined by the scope of the claims.

Claims (7)

1. A method for backing up configuration information of an Internet of things gateway is characterized by comprising the following steps:
the method comprises the steps that the Internet of things gateway divides self configuration information into a plurality of configuration data packets, the configuration data packets contain mutually redundant configuration information, and the configuration data packets are distributed and stored to all Internet of things terminals in the communication range of the Internet of things gateway;
when the gateway of the Internet of things detects that the corresponding configuration information is replaced, generating a new configuration data packet and updating the new configuration data packet to the corresponding terminal of the Internet of things; when configuration information is newly generated, generating a corresponding configuration data packet and selecting one Internet of things terminal to store according to the memory condition of each Internet of things terminal;
when a new Internet of things terminal is detected to be accessed to the network, generating a corresponding configuration data packet according to newly generated configuration information and sending the corresponding configuration data packet to the new Internet of things terminal;
when a new gateway replaces the gateway of the internet of things to access the network, the new gateway extracts configuration data packets stored by the terminals of the internet of things to configure the operation parameters of the new gateway;
the step of storing the configuration data packets to the internet of things terminals in the communication range of the internet of things gateway in a distributed manner further comprises the following steps:
the gateway of the Internet of things encrypts the configuration data packet by using a preset asymmetric encryption key, and reserves a corresponding asymmetric decryption key for decryption of the configuration data packet;
the new gateway extracts configuration data packets stored by each internet of things terminal to configure the operation parameters of the new gateway, and the configuration method comprises the following steps:
analyzing each configuration data packet to obtain corresponding configuration information, screening out redundant configuration information and configuring running parameters of the configuration information;
the step of storing the configuration data packets to the internet of things terminals in the communication range of the internet of things gateway in a distributed manner further comprises the following steps:
and based on a storage state balance principle, the configuration data packets are distributed and stored to the terminals of the Internet of things.
2. The method for backing up configuration information of an internet of things gateway according to claim 1, wherein after the plurality of configuration data packets are distributed and stored to each internet of things terminal in a communication range of the internet of things gateway, the method further comprises:
and binding the label information of each configuration data packet with the identification information of the corresponding Internet of things terminal to generate index information, storing the index information in the Internet of things gateway, and using the index information as a data index for extracting the corresponding configuration data packet.
3. The method for backing up configuration information of an internet of things gateway according to claim 2, wherein after the tag information of each configuration data packet is bound with the identification information of the corresponding internet of things terminal to generate index information and the index information is stored in the internet of things gateway, the method further comprises:
and the Internet of things gateway backs up the index information to a cloud end for storage.
4. The method for backing up configuration information of an internet of things gateway as claimed in claim 3, wherein when a new gateway replaces the internet of things gateway for network access, the new gateway extracts configuration data packets stored in each of the terminals of the internet of things to perform configuration on the operating parameters of the new gateway, and the method comprises the following steps:
and the new gateway downloads the index information from the cloud terminal and requests the corresponding configuration data packet from each Internet of things terminal based on the index information.
5. The utility model provides a configuration information backup device of thing networking gateway which characterized in that includes:
the storage module is used for dividing self configuration information into a plurality of configuration data packets through the gateway of the Internet of things, wherein the configuration data packets contain the mutually redundant configuration information, and the plurality of configuration data packets are distributed and stored to all terminals of the Internet of things in the communication range of the gateway of the Internet of things;
the updating module is used for generating a new configuration data packet and updating the new configuration data packet to the corresponding Internet of things terminal when the Internet of things gateway detects that the corresponding configuration information is replaced; when configuration information is newly generated, generating a corresponding configuration data packet and selecting one Internet of things terminal to store according to the memory condition of each Internet of things terminal;
the detection module is used for generating a corresponding configuration data packet according to newly generated configuration information and sending the corresponding configuration data packet to a new Internet of things terminal when the new Internet of things terminal is detected to be accessed to the network;
the configuration module is used for extracting configuration data packets stored by each Internet of things terminal by a new gateway to configure the operation parameters of the new gateway when the new gateway replaces the Internet of things gateway to access the network;
the step of storing the configuration data packets to the internet of things terminals in the communication range of the internet of things gateway in a distributed manner further comprises the following steps:
the gateway of the Internet of things encrypts the configuration data packet by using a preset asymmetric encryption key, and reserves a corresponding asymmetric decryption key for decryption of the configuration data packet;
the new gateway extracts configuration data packets stored by each internet of things terminal to configure the operation parameters of the new gateway, and the configuration method comprises the following steps:
analyzing each configuration data packet to obtain corresponding configuration information, screening out redundant configuration information and configuring running parameters of the configuration information;
the step of storing the configuration data packets to the internet of things terminals in the communication range of the internet of things gateway in a distributed manner further comprises the following steps:
and based on a storage state balance principle, the configuration data packets are distributed and stored to the terminals of the Internet of things.
6. An electronic device, comprising:
a memory and one or more processors;
the memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the method for backing up configuration information of an internet of things gateway as claimed in any one of claims 1-4.
7. A storage medium containing computer-executable instructions, which when executed by a computer processor, perform the method for backing up configuration information of an internet of things gateway as claimed in any one of claims 1 to 4.
CN202011405043.XA 2020-12-05 2020-12-05 Configuration information backup method and device for gateway of Internet of things Active CN112506704B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011405043.XA CN112506704B (en) 2020-12-05 2020-12-05 Configuration information backup method and device for gateway of Internet of things

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011405043.XA CN112506704B (en) 2020-12-05 2020-12-05 Configuration information backup method and device for gateway of Internet of things

Publications (2)

Publication Number Publication Date
CN112506704A CN112506704A (en) 2021-03-16
CN112506704B true CN112506704B (en) 2022-01-18

Family

ID=74968482

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011405043.XA Active CN112506704B (en) 2020-12-05 2020-12-05 Configuration information backup method and device for gateway of Internet of things

Country Status (1)

Country Link
CN (1) CN112506704B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101918927A (en) * 2008-01-18 2010-12-15 Tivo有限公司 Distributed backup and retrieval system
CN104156279A (en) * 2014-08-04 2014-11-19 上海斐讯数据通信技术有限公司 Backup method for configuration data of router
CN106972958A (en) * 2017-03-13 2017-07-21 海信集团有限公司 Gateway device collocation method, apparatus and system
CN107861843A (en) * 2017-11-30 2018-03-30 紫光股份有限公司 A kind of file backup system based on LAN computer
CN111131014A (en) * 2020-01-22 2020-05-08 北方工业大学 Internet of things gateway
CN111628996A (en) * 2020-05-26 2020-09-04 南通职业大学 Electronic data communication method and system based on Internet of things
CN111930560A (en) * 2020-06-29 2020-11-13 东风汽车集团有限公司 ECU self-learning data backup method and system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102076276B1 (en) * 2018-05-31 2020-02-12 (주)그립 Stand alone Gateway for Controlling Internet of Things Device
CN109714218B (en) * 2019-03-05 2021-11-23 佛山点度物联科技有限公司 Internet of things server configuration information synchronization method
CN111343020A (en) * 2020-02-26 2020-06-26 杭州物源科技有限公司 Unified management method and device for multi-protocol Internet of things equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101918927A (en) * 2008-01-18 2010-12-15 Tivo有限公司 Distributed backup and retrieval system
CN104156279A (en) * 2014-08-04 2014-11-19 上海斐讯数据通信技术有限公司 Backup method for configuration data of router
CN106972958A (en) * 2017-03-13 2017-07-21 海信集团有限公司 Gateway device collocation method, apparatus and system
CN107861843A (en) * 2017-11-30 2018-03-30 紫光股份有限公司 A kind of file backup system based on LAN computer
CN111131014A (en) * 2020-01-22 2020-05-08 北方工业大学 Internet of things gateway
CN111628996A (en) * 2020-05-26 2020-09-04 南通职业大学 Electronic data communication method and system based on Internet of things
CN111930560A (en) * 2020-06-29 2020-11-13 东风汽车集团有限公司 ECU self-learning data backup method and system

Also Published As

Publication number Publication date
CN112506704A (en) 2021-03-16

Similar Documents

Publication Publication Date Title
CN112333213B (en) Privacy protection method and device for business data of power Internet of things
CN111625496B (en) Deployment method, device and equipment of distributed file system in virtual machine environment
KR20160139493A (en) Method and apparatus for managing encryption keys for cloud service
CN111625497B (en) Deployment method, device and equipment of distributed file system and storage medium
CN109639692B (en) Offline login method, device, equipment, system and storage medium
CN103001965A (en) Method for updating server certificates and servers
CN112769761B (en) Signal transmission mode selection method and device based on service classification, electronic equipment and storage medium
CN113839814B (en) Decentralized Kubernetes cluster federal implementation method and system
CN105260377B (en) A kind of upgrade method and system based on classification storage
CN105095103A (en) Storage device management method and device used for cloud environment
CN111343003A (en) Data analysis method and device based on block chain and SDN edge computing network system
CN112506705B (en) Distributed storage configuration information backup method and device
CN112035062B (en) Migration method of local storage of cloud computing, computer equipment and storage medium
CN112506704B (en) Configuration information backup method and device for gateway of Internet of things
CN112506703B (en) Backup method and device for configuration information of terminal of Internet of things
EP3843361A1 (en) Resource configuration method and apparatus, and storage medium
CN112559252B (en) Configuration data management method and device based on attribute classification
CN112350875B (en) Centralized management configuration method and device for configuration data
CN112468350B (en) Operation parameter configuration management method and device of power Internet of things
CN112559250B (en) Configuration data backup method and device for electric power Internet of things
CN112559251A (en) Configuration data management method and device for power Internet of things
CN112367410B (en) Operation parameter management method and device
CN112560097B (en) Storage management method and device for power business data
CN112511345A (en) Gateway replacement configuration system, method and device
CN112333036B (en) Multi-storage-node-based power Internet of things configuration data backup method and device

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