CN107612715B - Data backup method and device for Internet of things repeater - Google Patents

Data backup method and device for Internet of things repeater Download PDF

Info

Publication number
CN107612715B
CN107612715B CN201710749957.XA CN201710749957A CN107612715B CN 107612715 B CN107612715 B CN 107612715B CN 201710749957 A CN201710749957 A CN 201710749957A CN 107612715 B CN107612715 B CN 107612715B
Authority
CN
China
Prior art keywords
internet
things
backup
repeater
things repeater
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
CN201710749957.XA
Other languages
Chinese (zh)
Other versions
CN107612715A (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.)
Shenzhen Shenglu IoT Communication Technology Co Ltd
Original Assignee
Shenzhen Shenglu IoT Communication 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 Shenzhen Shenglu IoT Communication Technology Co Ltd filed Critical Shenzhen Shenglu IoT Communication Technology Co Ltd
Priority to CN201710749957.XA priority Critical patent/CN107612715B/en
Publication of CN107612715A publication Critical patent/CN107612715A/en
Application granted granted Critical
Publication of CN107612715B publication Critical patent/CN107612715B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application discloses a data backup method of an Internet of things repeater and the Internet of things repeater, wherein the method comprises the following steps: the method comprises the steps that a first internet-of-things repeater detects the probability of failure of the first internet-of-things repeater, and if the probability is larger than a set threshold value, a failure sign is determined; the first Internet of things repeater sends the data of the Internet of things terminal stored in the cache to a second backup Internet of things repeater or a third backup Internet of things repeater for data backup; the second backup internet of things repeater and the first internet of things repeater belong to a data double backup group; the third backup internet of things repeater and the first internet of things repeater belong to another data double backup group. The technical scheme provided by the application has the advantage of good user experience.

Description

Data backup method and device for Internet of things repeater
Technical Field
The application relates to the field of communication, in particular to a data backup method and device for an internet of things repeater.
Background
The Internet of things is an important component of a new generation of information technology and is also an important development stage of the 'informatization' era. Its english name is: "Internet of things (IoT)". As the name implies, the Internet of things is the Internet with connected objects. This has two layers: firstly, the core and the foundation of the internet of things are still the internet, and the internet is an extended and expanded network on the basis of the internet; and secondly, the user side extends and expands to any article to perform information exchange and communication, namely, the article information. The internet of things is widely applied to network fusion through communication perception technologies such as intelligent perception, identification technology and pervasive computing, and is also called as the third wave of development of the world information industry after computers and the internet. The internet of things is an application expansion of the internet, and is not a network, but a business and an application. Therefore, the application innovation is the core of the development of the internet of things, and the innovation 2.0 taking the user experience as the core is the soul of the development of the internet of things.
When the existing internet of things repeater breaks down, data backup of a support internet of things terminal cannot be carried out, operation of an internet of things local area network is influenced, and all user experience degrees are low.
Disclosure of Invention
The application provides a data backup method of an Internet of things repeater. The data of the terminal of the Internet of things can be backed up in real time, and user experience is improved.
In a first aspect, a data backup method for an internet of things repeater is provided, where the method includes the following steps: the method comprises the steps that a first internet-of-things repeater detects the probability of failure of the first internet-of-things repeater, and if the probability is larger than a set threshold value, a failure sign is determined; the first Internet of things repeater sends the data of the Internet of things terminal stored in the cache to a second backup Internet of things repeater or a third backup Internet of things repeater for data backup; the second backup internet of things repeater and the first internet of things repeater belong to a data double backup group; the third backup internet of things repeater and the first internet of things repeater belong to another data double backup group.
Optionally, the sending, by the first internet of things repeater, the data of the internet of things terminal stored in the cache to the second backup internet of things repeater or the third backup internet of things repeater for data backup specifically includes:
the first internet-of-things repeater receives a second cache allowance of the second backup internet-of-things repeater sent by the second backup internet-of-things repeater, and the first internet-of-things repeater receives a third cache allowance of the third backup internet-of-things repeater sent by the third backup internet-of-things;
when the second cache allowance is larger than the third cache allowance, the first internet of things repeater transmits more than 50% of the data of the internet of things terminal to a second backup internet of things repeater, and transmits the residual data of the internet of things terminal to a third backup internet of things repeater;
the first internet of things repeater sends a first switching message to the internet of things terminal, and the first switching message is used for indicating the internet of things terminal to be switched to the second backup internet of things repeater.
Optionally, the sending, by the first internet of things repeater, the data of the internet of things terminal stored in the cache to the second backup internet of things repeater or the third backup internet of things repeater for data backup specifically includes:
the first internet-of-things repeater receives a second cache allowance and a second fault probability of the second backup internet-of-things repeater sent by the second backup internet-of-things repeater, and the first internet-of-things repeater receives a third cache allowance and a third fault probability of the third backup internet-of-things repeater sent by the third backup internet-of-things;
when the second cache allowance is larger than the third cache allowance and the second failure probability is lower than the set threshold, the first internet of things repeater transmits more than 50% of the data of the internet of things terminal to a second backup internet of things repeater and transmits the remaining data of the internet of things terminal to a third backup internet of things repeater, the first internet of things repeater transmits a first switching message to the internet of things terminal, and the first switching message is used for indicating the internet of things terminal to be switched to the second backup internet of things repeater;
when the second cache allowance is larger than the third cache allowance and the second failure probability is higher than the set threshold, the first internet of things repeater transmits the data of the internet of things terminal to the third backup internet of things repeater for backup, the first internet of things repeater transmits a second switching message to the internet of things terminal, and the second switching message is used for indicating the internet of things terminal to be switched to the third backup internet of things repeater; the third failure probability is lower than the set threshold.
Optionally, the method further includes:
the first internet of things repeater receives fault probabilities sent by other internet of things repeaters, if the fault probability of the second backup internet of things repeater is higher than a set threshold, the first internet of things repeater exits the data double backup group, the first internet of things repeater and a fourth internet of things repeater are recombined to form a further data double backup group, the fault probability of the fourth internet of things repeater is lower than the set threshold, and the other internet of things repeaters comprise all internet of things repeaters except the first internet of things repeater in an internet of things local area network.
Optionally, the method further includes:
the first internet-of-things repeater receives the cache allowance sent by other internet-of-things repeaters, if the cache allowance of the second backup internet-of-things repeater is lower than the data of the internet-of-things terminal stored in the cache, the first internet-of-things repeater exits the data double backup group, the first internet-of-things repeater and a fifth internet-of-things repeater are reconstructed into a further data double backup group, the fault probability of the fifth internet-of-things repeater is lower than the set threshold, and the other internet-of-things repeaters include all internet-of-things repeaters except the first internet-of-things repeater in the internet-of-things local area network.
In a second aspect, an internet of things repeater is provided, the internet of things repeater being a first internet of things repeater, the internet of things repeater comprising:
the detection unit is used for detecting the probability of the self fault;
the processing unit is used for determining that a fault sign appears if the probability is larger than a set threshold;
the receiving and sending unit is used for sending the data of the Internet of things terminal stored in the cache to the second backup Internet of things repeater or the third backup Internet of things repeater for data backup;
the second backup internet of things repeater and the first internet of things repeater belong to a data double backup group; the third backup internet of things repeater and the first internet of things repeater belong to another data double backup group.
Optionally, the transceiver unit is further configured to receive a second cache margin of the second backup internet-of-things repeater sent by the second backup internet-of-things repeater, and receive a third cache margin of the third backup internet-of-things repeater sent by the third backup internet-of-things;
the transceiver unit is further configured to, when the second cache margin is greater than the third cache margin, send more than 50% of the data of the internet of things terminal to a second backup internet of things repeater by the first internet of things repeater, and send the remaining data of the internet of things terminal to a third backup internet of things repeater;
the receiving and sending unit is further configured to send a first switching message to the internet of things terminal, where the first switching message is used to instruct the internet of things terminal to switch to the second backup internet of things repeater.
Optionally, the transceiver unit is further configured to receive a second cache margin and a second failure probability of the second backup internet-of-things relay sent by the second backup internet-of-things relay, and receive a third cache margin and a third failure probability of the third backup internet-of-things relay sent by the third backup internet-of-things;
the transceiver unit is further configured to, when the second cache margin is greater than the third cache margin and the second failure probability is lower than the set threshold, send, by the first internet of things repeater, more than 50% of data of the internet of things terminal to a second backup internet of things repeater, send remaining data of the internet of things terminal to a third backup internet of things repeater, and send a first switching message to the internet of things terminal, where the first switching message is used to instruct the internet of things terminal to switch to the second backup internet of things repeater;
the transceiver unit is further configured to send the data of the internet of things terminal to the third backup internet of things repeater backup and send a second switching message to the internet of things terminal when the second cache allowance is greater than the third cache allowance and the second failure probability is higher than the set threshold, where the second switching message is used to instruct the internet of things terminal to switch to the third backup internet of things repeater; the third failure probability is lower than the set threshold.
Optionally, the transceiver unit is further configured to receive fault probabilities sent by other internet of things repeaters;
the processing unit is configured to, if the failure probability of the second backup internet of things repeater is higher than a set threshold, cause the first internet of things repeater to exit the data dual-backup group, reconstruct the first internet of things repeater and a fourth internet of things repeater into another data dual-backup group, where the failure probability of the fourth internet of things repeater is lower than the set threshold, and the other internet of things repeaters include all internet of things repeaters in the internet of things local area network except the first internet of things repeater.
Optionally, the transceiver unit is further configured to receive a cache margin sent by another internet of things repeater;
the processing unit is further configured to, if the cache remaining amount of the second backup internet-of-things repeater is smaller than the data of the internet-of-things terminal stored in the cache, withdraw from the data dual-backup group, reconstruct the first internet-of-things repeater and a fifth internet-of-things repeater into another data dual-backup group, where the failure probability of the fifth internet-of-things repeater is smaller than the set threshold, and the other internet-of-things repeaters include all internet-of-things repeaters in the internet-of-things local area network except the first internet-of-things repeater.
In a third aspect, a computer storage medium is provided, where the computer storage medium may store a program, and the program includes some or all of the steps of any one of the data backup methods of the internet of things repeater described in the first aspect.
In a fourth aspect, an internet of things repeater is provided, which includes: a processor, a memory, a transceiver, and a bus, the processor, the memory, the transceiver being connected by the bus, the memory storing program code. The processor is used for calling the program codes stored in the memory and executing part or all of the steps of any data backup method of the internet of things repeater described in the first aspect.
According to the technical scheme provided by the invention, the first Internet of things repeater detects the fault probability of the first Internet of things repeater, and when the fault probability exceeds a set threshold value, a backup request is sent to the other Internet of things repeater in the backup group to backup the data of the Internet of things terminal stored in the cache, so that the data backup is realized, the fault resistance capability of the Internet of things repeater is improved, and the user experience is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic diagram of a network based on a repeater of the internet of things.
Fig. 2 is a flowchart of a data backup method for an internet of things repeater according to an embodiment of the present application.
Fig. 3 is a flowchart of a data backup method for an internet of things repeater according to another embodiment of the present application.
Fig. 4 is a schematic structural diagram of an internet of things repeater provided in an embodiment of the present application.
Fig. 5 is a schematic diagram of a hardware structure of an internet of things repeater provided in the present application.
Detailed Description
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 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 term "computer device" or "computer" in this context refers to an intelligent electronic device that can execute predetermined processes such as numerical calculation and/or logic calculation by running predetermined programs or instructions, and may include a processor and a memory, wherein the processor executes a pre-stored instruction stored in the memory to execute the predetermined processes, or the predetermined processes are executed by hardware such as ASIC, FPGA, DSP, or a combination thereof. Computer devices include, but are not limited to, servers, personal computers, laptops, tablets, smart phones, and the like.
The methods discussed below, some of which are illustrated by flow diagrams, may be implemented by hardware, software, firmware, middleware, microcode, hardware description languages, or any combination thereof. When implemented in software, firmware, middleware or microcode, the program code or code segments to perform the necessary tasks may be stored in a machine or computer readable medium such as a storage medium. The processor(s) may perform the necessary tasks.
Specific structural and functional details disclosed herein are merely representative and are provided for purposes of describing example embodiments of the present invention. The present invention may, however, be embodied in many alternate forms and should not be construed as limited to only the embodiments set forth herein.
It will be understood that, although the terms first, second, etc. may be used herein to describe various elements, these elements should not be limited by these terms. These terms are only used to distinguish one element from another. For example, a first element may be termed a second element, and, similarly, a second element may be termed a first element, without departing from the scope of example embodiments. As used herein, the term "and/or" includes any and all combinations of one or more of the associated listed items.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of example embodiments. As used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used herein, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be noted that, in some alternative implementations, the functions/acts noted may occur out of the order noted in the figures. For example, two figures shown in succession may, in fact, be executed substantially concurrently, or the figures may sometimes be executed in the reverse order, depending upon the functionality/acts involved.
The present invention is described in further detail below with reference to the attached drawing figures.
According to one aspect of the invention, a data backup method for an internet of things repeater is provided. The method is applied to an internet of things network shown in fig. 1, and as shown in fig. 1, the internet of things network includes: the internet of things terminal 10, the internet of things access point AP20, the gateway 30, and the repeater 40 may have different expression forms according to different situations, for example, the internet of things terminal may specifically be: the mobile phone, the tablet computer, the computer, and the like may also include other devices with networking functions, such as a smart television, a smart air conditioner, a smart water bottle, or some terminal devices of the internet of things, the terminal 10 of the internet of things is connected with the repeater 40 in a wireless manner, the repeater 40 is connected with the AP20, and the AP20 is connected with the gateway 30 in another manner (i.e., a connection manner different from the wireless manner) to access the internet, where the wireless manner includes but is not limited to: the other mode may be an LTE or wired mode, and the gateway may specifically be a mobile base station, a mobile relay station, an exchange, and other devices. Fig. 1 is a wired example, and for convenience of representation, only one solid line is shown here.
The gateway 30 may be a Personal Computer (PC) according to the size of the internet of things, and may also be a plurality of PCs, servers or server groups in practical applications, and the specific embodiment of the present invention is not limited to the specific representation form of the gateway 30.
Referring to fig. 2, fig. 2 is a data backup method for an internet of things repeater, which is implemented under a network architecture shown in fig. 1, where as shown in fig. 1, one repeater may be connected to a plurality of terminals of the internet of things, and the repeater may specifically be a mobile phone that opens a hot spot, a personal computer that provides wireless connection, or a conventional hot spot device such as a router, and the method is shown in fig. 2 and includes the following steps:
step S201, the first Internet of things repeater detects the probability of the fault of the first Internet of things repeater, and if the probability is larger than a set threshold value, the first Internet of things repeater determines that a fault sign appears.
The implementation method of the step S201 may specifically be:
the first internet-of-things relay may determine the probability of the failure by detecting a packet loss rate of the data packet, and certainly, in practical application, the probability of the failure may also be detected by using other methods, for example, detecting an uploading network speed and the like.
Step S202, the first Internet of things repeater sends the data of the Internet of things terminal stored in the cache to a second backup Internet of things repeater or a third backup Internet of things repeater for data backup.
The implementation method of the step S202 may be:
the first internet of things terminal sends the data of the internet of things terminal stored in the cache to the AP, and the AP forwards the data of the internet of things terminal stored in the cache to the second backup internet of things repeater or the third backup internet of things repeater so as to realize data backup.
Each manufacturer of the type of the internet of things terminal in the step S202 may set according to its own condition, for example, the internet of things terminal may specifically include: intelligent electric light, intelligent TV, intelligent cleaning equipment, intelligent sleep equipment, intelligent supervisory equipment etc. the form of its performance can be various, for intelligent electric light for example, this intelligent electric light includes but not limited to: intelligence desk lamp, intelligence ceiling lamp, equipment such as intelligence wall lamp, for example to intelligent television, it can be three stars brand intelligent television, of course it also can be sharp brand intelligent television, for example to intelligent cleaning equipment, it can be, intelligence robot of sweeping the floor, of course it can also include equipment such as intelligent dust catcher, intelligent garbage disposer, for example to intelligent sleep equipment, it can be: for example, for an intelligent monitoring device, the intelligent monitoring device may be an intelligent sphygmomanometer, an intelligent thermometer, or the like, and the specific form, number, or type of the internet of things terminal is not limited in the present invention.
In the step S202, the data transmission mode from the terminal of the internet of things to the relay may be a mode of sending a data packet through wireless connection, where the wireless mode includes but is not limited to: wireless modes such as bluetooth, Wireless Fidelity (WIFI) and Zigbee, wherein the WIFI needs to comply with the standard of ieee802.11b.
It should be noted that the internet of things and the relay are only for the wireless relay, because the internet of things has a large number of devices to access, and for the relay, if the relay is connected by wire, the number of terminals to access is limited, and for the home, the terminals are connected by wire, which is not imaginable for the wiring of the home user, and in addition, the cost of the wire is very high, so the connection between the terminal of the internet of things and the relay in the technical solution of the present invention is only limited to wireless connection.
The second backup internet-of-things repeater and the first internet-of-things repeater belong to a data double backup group; the third backup internet of things repeater and the first internet of things repeater belong to another data double backup group. Two internet of things repeaters in the backup group are provided with backup settings, and if one internet of things repeater is about to fail in the same backup group, the other internet of things repeater in the backup group can send cached data to backup the cached data.
Optionally, the implementation method of step S202 may specifically be:
the first internet-of-things repeater receives a second cache allowance and a second fault probability of the second backup internet-of-things repeater sent by the second backup internet-of-things repeater, and the first internet-of-things repeater receives a third cache allowance and a third fault probability of the third backup internet-of-things repeater sent by the third backup internet-of-things;
when the second cache allowance is larger than the third cache allowance and the second failure probability is lower than the set threshold, the first internet of things repeater transmits more than 50% of the data of the internet of things terminal to a second backup internet of things repeater and transmits the remaining data of the internet of things terminal to a third backup internet of things repeater, the first internet of things repeater transmits a first switching message to the internet of things terminal, and the first switching message is used for indicating the internet of things terminal to be switched to the second backup internet of things repeater;
when the second cache allowance is larger than the third cache allowance and the second failure probability is higher than the set threshold, the first internet of things repeater transmits the data of the internet of things terminal to the third backup internet of things repeater for backup, the first internet of things repeater transmits a second switching message to the internet of things terminal, and the second switching message is used for indicating the internet of things terminal to be switched to the third backup internet of things repeater; the third failure probability is lower than the set threshold.
The arrangement of the scheme is mainly to avoid the situation that backup occurs again when the failure probability of the internet of things relay station after data transmission is too high, and for the backup grouping, because only two internet of things relay stations exist, if the failure probability of the two internet of things relay stations is too high, the situation that the backup internet of things relay station is not selectable may occur, and the mode can also avoid the situation.
Optionally, the implementation method of step S202 may specifically be:
and the first internet-of-things repeater receives fault probabilities sent by other internet-of-things repeaters, if the fault probability of the second backup internet-of-things repeater is higher than a set threshold, the first internet-of-things repeater exits the data double backup group, the first internet-of-things repeater and a fourth internet-of-things repeater are reconstructed into a further data double backup group, the fault probability of the fourth internet-of-things repeater is lower than the set threshold, and the other internet-of-things repeaters comprise all internet-of-things repeaters except the first internet-of-things repeater in the internet-of-things local area network.
The technical scheme is used for updating the backup grouping, and mainly avoids the situation that when backup is needed, the other Internet of things repeater has higher fault probability and cannot realize backup, so that equipment with higher fault probability, which meets the requirements in the middle of the backup grouping, needs to be removed and updated.
Optionally, the implementation method of step S202 may specifically be:
the first internet-of-things repeater receives the cache allowance sent by other internet-of-things repeaters, if the cache allowance of the second backup internet-of-things repeater is lower than the data of the internet-of-things terminal stored in the cache, the first internet-of-things repeater exits the data double backup group, the first internet-of-things repeater and a fifth internet-of-things repeater are reconstructed into a further data double backup group, the fault probability of the fifth internet-of-things repeater is lower than the set threshold, and the other internet-of-things repeaters include all internet-of-things repeaters except the first internet-of-things repeater in the internet-of-things local area network.
The technical scheme is to avoid the problem that the backup of the data of the relay station of the internet of things cannot be realized due to too much cached data.
According to the method provided by the figure 2, when the probability of the failure of the first internet of things repeater is detected, and when the probability of the failure exceeds a set threshold value, a backup request is sent to the other internet of things repeater in the backup group to backup the data of the internet of things terminal stored in the cache, so that the data backup is realized, the failure resistance of the internet of things repeaters is improved, and the user experience is improved.
Referring to fig. 3, fig. 3 is a data backup method for an internet of things repeater provided by the present invention, the method is implemented under a network architecture as shown in fig. 1, a plurality of terminals of the internet of things can be connected to one repeater, the repeater can be specifically a mobile phone that opens a hot spot, a personal computer that provides wireless connection, or a conventional hot spot device such as a router, and the method is shown in fig. 3, and includes the following steps:
step S301, the first Internet of things repeater detects the probability of the fault of the first Internet of things repeater, and if the probability is larger than a set threshold value, the first Internet of things repeater determines that the fault occurs.
The implementation method of step S301 may specifically be:
the first internet-of-things relay may determine the probability of the failure by detecting a packet loss rate of the data packet, and certainly, in practical application, the probability of the failure may also be detected by using other methods, for example, detecting an uploading network speed and the like.
Step S302, the first internet of things repeater receives a second cache allowance of the second backup internet of things repeater, which is sent by the second backup internet of things repeater, and the first internet of things repeater receives a third cache allowance of the third backup internet of things repeater, which is sent by the third backup internet of things.
The implementation method of the step S302 may be:
the first Internet of things repeater receives a second cache allowance of the second backup Internet of things repeater sent by the second backup Internet of things repeater in a wireless mode; and the first Internet of things repeater receives the third cache allowance of the third backup Internet of things repeater sent by the third backup Internet of things in a wireless mode. Wireless means include, but are not limited to: wireless modes such as bluetooth, Wireless Fidelity (WIFI) and Zigbee, wherein the WIFI needs to comply with the standard of ieee802.11b.
Each manufacturer of the type of the internet of things terminal in the step S302 may set according to its own condition, for example, the internet of things terminal may specifically include: intelligent electric light, intelligent TV, intelligent cleaning equipment, intelligent sleep equipment, intelligent supervisory equipment etc. the form of its performance can be various, for intelligent electric light for example, this intelligent electric light includes but not limited to: intelligence desk lamp, intelligence ceiling lamp, equipment such as intelligence wall lamp, for example to intelligent television, it can be three stars brand intelligent television, of course it also can be sharp brand intelligent television, for example to intelligent cleaning equipment, it can be, intelligence robot of sweeping the floor, of course it can also include equipment such as intelligent dust catcher, intelligent garbage disposer, for example to intelligent sleep equipment, it can be: for example, for an intelligent monitoring device, the intelligent monitoring device may be an intelligent sphygmomanometer, an intelligent thermometer, or the like, and the specific form, number, or type of the internet of things terminal is not limited in the present invention.
In the step S302, the data transmission mode from the terminal of the internet of things to the relay may be a mode of sending a data packet through wireless connection, where the wireless mode includes but is not limited to: wireless modes such as bluetooth, Wireless Fidelity (WIFI) and Zigbee, wherein the WIFI needs to comply with the standard of ieee802.11b.
It should be noted that the internet of things and the relay are only for the wireless relay, because the internet of things has a large number of devices to access, and for the relay, if the relay is connected by wire, the number of terminals to access is limited, and for the home, the terminals are connected by wire, which is not imaginable for the wiring of the home user, and in addition, the cost of the wire is very high, so the connection between the terminal of the internet of things and the relay in the technical solution of the present invention is only limited to wireless connection.
Step S303, when the second cache allowance is larger than the third cache allowance, the first Internet of things repeater sends more than 50% of the data of the Internet of things terminal to a second backup Internet of things repeater, and sends the residual data of the Internet of things terminal to a third backup Internet of things repeater.
The second backup internet-of-things repeater and the first internet-of-things repeater belong to a data double backup group; the third backup internet of things repeater and the first internet of things repeater belong to another data double backup group. Two internet of things repeaters in the backup group are provided with backup settings, and if one internet of things repeater is about to fail in the same backup group, the other internet of things repeater in the backup group can send cached data to backup the cached data.
Step S304, the first Internet of things repeater sends a first switching message to the Internet of things terminal, and the first switching message is used for indicating the Internet of things terminal to be switched to the second backup Internet of things repeater.
According to the method provided by the figure 3, when the probability of the failure of the first internet of things repeater is detected, and when the probability of the failure exceeds a set threshold value, a backup request is sent to the other internet of things repeater in the backup group to backup the data of the internet of things terminal stored in the cache, so that the data backup is realized, the failure resistance of the internet of things repeaters is improved, and the user experience is improved.
Referring to fig. 4, fig. 4 provides an internet of things repeater 400, where the internet of things repeater 400 may be configured to perform the method in the embodiment shown in fig. 2 or fig. 3, and the definition of the technical terms of the internet of things repeater may be described in the embodiment shown in fig. 2 or fig. 3, which is not described herein again, and the internet of things repeater includes:
a detection unit 401, configured to detect a probability of a failure of itself;
the processing unit 402 is configured to determine that a fault sign occurs if the probability is greater than a set threshold;
the transceiver unit 403 is configured to send the data of the internet of things terminal stored in the cache to the second backup internet of things repeater or the third backup internet of things repeater for data backup;
the second backup internet of things repeater and the first internet of things repeater belong to a data double backup group; the third backup internet of things repeater and the first internet of things repeater belong to another data double backup group.
Optionally, the transceiver 403 is further configured to receive a second cache margin of the second backup internet-of-things repeater sent by the second backup internet-of-things repeater, and receive a third cache margin of the third backup internet-of-things repeater sent by the third backup internet-of-things;
the transceiver unit 403 is further configured to, when the second cache margin is greater than the third cache margin, send more than 50% of the data of the internet of things terminal to a second backup internet of things repeater by the first internet of things repeater, and send the remaining data of the internet of things terminal to a third backup internet of things repeater;
the transceiver 403 is further configured to send a first switching message to the internet of things terminal, where the first switching message is used to instruct the internet of things terminal to switch to the second backup internet of things repeater.
Optionally, the transceiver 403 is further configured to receive a second cache margin and a second failure probability of the second backup internet-of-things relay sent by the second backup internet-of-things relay, and receive a third cache margin and a third failure probability of the third backup internet-of-things relay sent by the third backup internet-of-things;
the transceiver unit 403 is further configured to, when the second cache margin is greater than the third cache margin and the second failure probability is lower than the set threshold, send, by the first internet of things repeater, more than 50% of data of the internet of things terminal to a second backup internet of things repeater, send remaining data of the internet of things terminal to a third backup internet of things repeater, and send a first switching message to the internet of things terminal, where the first switching message is used to instruct the internet of things terminal to switch to the second backup internet of things repeater;
the transceiver 403 is further configured to send the data of the internet of things terminal to the third backup internet of things repeater backup and send a second switching message to the internet of things terminal when the second cache allowance is greater than the third cache allowance and the second failure probability is higher than the set threshold, where the second switching message is used to instruct the internet of things terminal to switch to the third backup internet of things repeater; the third failure probability is lower than the set threshold.
Optionally, the transceiver 403 is further configured to receive fault probabilities sent by other internet of things repeaters;
if the failure probability of the second backup internet-of-things repeater is higher than a set threshold, the first internet-of-things repeater exits the data dual-backup group, the first internet-of-things repeater and a fourth internet-of-things repeater are reconfigured into another data dual-backup group, the failure probability of the fourth internet-of-things repeater is lower than the set threshold, and the other internet-of-things repeaters include all internet-of-things repeaters in the internet-of-things local area network except the first internet-of-things repeater.
Optionally, the transceiver 403 is further configured to receive a cache margin sent by another internet of things repeater;
if the cache margin of the second backup internet-of-things repeater is less than the data of the internet-of-things terminal stored in the cache, the first internet-of-things repeater exits the data dual-backup group, the first internet-of-things repeater and a fifth internet-of-things repeater are reconfigured into another data dual-backup group, the failure probability of the fifth internet-of-things repeater is less than the set threshold, and the other internet-of-things repeaters include all internet-of-things repeaters in the internet-of-things local area network except the first internet-of-things repeater.
A specific embodiment of the present invention further provides a computer storage medium, where the computer storage medium may store a program, and when the program is executed, the program includes some or all of the steps of any one of the data backup methods for an internet of things repeater described in the first aspect. The specific implementation manner of the above method can be referred to the description of the embodiment shown in fig. 2 or fig. 3.
Referring to fig. 5, fig. 5 is a diagram of an internet of things repeater 500 according to the present invention, where the internet of things repeater may be a node deployed in an internet system, and the internet system may further include: the internet of things repeater 500 includes but is not limited to: as shown in fig. 5, the internet of things repeater 500 includes: a processor 501, a memory 502, a transceiver 503, and a bus 504. The transceiver 503 is used for transceiving data with external devices (e.g., other devices in the interconnected system, including but not limited to repeaters, core network devices, etc.). The number of processors 501 in the internet of things repeater 500 may be one or more. In some embodiments of the present application, the processor 501, the memory 502, and the transceiver 503 may be connected by a bus system or other means. Regarding the meaning and examples of the terms related to this embodiment, reference may be made to the embodiment corresponding to fig. 2 or fig. 3, which is not described herein again.
Wherein the memory 502 may have program code stored therein. The processor 501 is configured to call up program code stored in the memory 502 for performing the following operations:
and the processor 501 is configured to measure a probability of a failure of the processor, and determine that a failure sign occurs if the probability is greater than a set threshold.
The transceiver 503 is configured to send the data of the internet of things terminal stored in the cache to the second backup internet of things repeater or the third backup internet of things repeater for data backup;
the second backup internet of things repeater and the internet of things repeater 500 belong to a data dual backup group; the third backup internet of things repeater and the internet of things repeater 500 belong to another data dual backup group.
Optionally, the processor 501, the transceiver 503, may also be used to perform steps and refinements of steps and alternatives as in the embodiment shown in fig. 2 or fig. 3.
It should be noted that the processor 501 may be a single processing element or may be a general term for multiple processing elements. For example, the Processing element may be a Central Processing Unit (CPU), an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits configured to implement embodiments of the present Application, such as: one or more microprocessors (digital signal processors, DSPs), or one or more Field Programmable Gate Arrays (FPGAs).
The memory 503 may be a single storage device or a combination of multiple storage elements, and is used for storing executable program codes or parameters, data, etc. required by the running device of the application program. And the memory 903 may include a Random Access Memory (RAM) or a non-volatile memory (non-volatile memory), such as a magnetic disk memory, a Flash memory (Flash), and the like.
The bus 504 may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended ISA (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 5, but this is not intended to represent only one bus or type of bus.
The user equipment may also include input and output devices coupled to bus 504 for interfacing with the processor 501 or other components via the bus. The input and output device can provide an input interface for an operator so that the operator can select a control item through the input interface, and can also be other interfaces through which other equipment can be externally connected.
It should be noted that, for simplicity of description, the above-mentioned embodiments of the method are described as a series of acts or combinations, but those skilled in the art should understand that the present application is not limited by the order of acts described, as some steps may be performed in other orders or simultaneously according to the present application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable storage medium, and the storage medium may include: flash Memory disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The content downloading method, the related device and the system provided by the embodiment of the present application are described in detail above, a specific example is applied in the present application to explain the principle and the implementation of the present application, and the description of the above embodiment is only used to help understand the method and the core idea of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (8)

1. A data backup method for an Internet of things repeater is characterized by comprising the following steps:
the first internet of things repeater detects the probability of self failure, and specifically comprises the following steps: determining the probability of failure by detecting the uploaded network speed; if the probability is larger than a set threshold value, determining that a fault sign appears;
the first Internet of things repeater sends the data of the Internet of things terminal stored in the cache to a second backup Internet of things repeater or a third backup Internet of things repeater for data backup;
the second backup internet of things repeater and the first internet of things repeater belong to a data double backup group; the third backup Internet of things repeater and the first Internet of things repeater belong to another data double backup group;
the first internet of things repeater sends the data of the internet of things terminal stored in the cache to the second backup internet of things repeater or the third backup internet of things repeater for data backup, and the data backup method specifically comprises the following steps:
the first internet-of-things repeater receives a second cache allowance and a second fault probability of the second backup internet-of-things repeater sent by the second backup internet-of-things repeater, and the first internet-of-things repeater receives a third cache allowance and a third fault probability of the third backup internet-of-things repeater sent by the third backup internet-of-things;
when the second cache allowance is larger than the third cache allowance and the second failure probability is lower than the set threshold, the first internet of things repeater transmits more than 50% of the data of the internet of things terminal to a second backup internet of things repeater and transmits the remaining data of the internet of things terminal to a third backup internet of things repeater, the first internet of things repeater transmits a first switching message to the internet of things terminal, and the first switching message is used for indicating the internet of things terminal to be switched to the second backup internet of things repeater;
when the second cache allowance is larger than the third cache allowance and the second failure probability is higher than the set threshold, the first internet of things repeater transmits the data of the internet of things terminal to the third backup internet of things repeater for backup, the first internet of things repeater transmits a second switching message to the internet of things terminal, and the second switching message is used for indicating the internet of things terminal to be switched to the third backup internet of things repeater; the third failure probability is lower than the set threshold.
2. The method according to claim 1, wherein the first internet of things repeater sends the data of the internet of things terminal stored in the cache to a second backup internet of things repeater or a third backup internet of things repeater for data backup, and the data backup specifically comprises:
the first internet-of-things repeater receives a second cache allowance of the second backup internet-of-things repeater sent by the second backup internet-of-things repeater, and the first internet-of-things repeater receives a third cache allowance of the third backup internet-of-things repeater sent by the third backup internet-of-things;
when the second cache allowance is larger than the third cache allowance, the first internet of things repeater transmits more than 50% of the data of the internet of things terminal to a second backup internet of things repeater, and transmits the residual data of the internet of things terminal to a third backup internet of things repeater;
the first internet of things repeater sends a first switching message to the internet of things terminal, and the first switching message is used for indicating the internet of things terminal to be switched to the second backup internet of things repeater.
3. The method according to any one of claims 1 or 2, further comprising:
the first internet of things repeater receives fault probabilities sent by other internet of things repeaters, if the fault probability of the second backup internet of things repeater is higher than a set threshold, the first internet of things repeater exits the data double backup group, the first internet of things repeater and a fourth internet of things repeater are recombined to form a further data double backup group, the fault probability of the fourth internet of things repeater is lower than the set threshold, and the other internet of things repeaters comprise all internet of things repeaters except the first internet of things repeater in an internet of things local area network.
4. The method according to any one of claims 1 or 2, further comprising:
the first internet-of-things repeater receives the cache allowance sent by other internet-of-things repeaters, if the cache allowance of the second backup internet-of-things repeater is lower than the data of the internet-of-things terminal stored in the cache, the first internet-of-things repeater exits the data double backup group, the first internet-of-things repeater and a fifth internet-of-things repeater are reconstructed into a further data double backup group, the fault probability of the fifth internet-of-things repeater is lower than the set threshold, and the other internet-of-things repeaters include all internet-of-things repeaters except the first internet-of-things repeater in the internet-of-things local area network.
5. An internet of things repeater, the internet of things repeater being a first internet of things repeater, the internet of things repeater comprising:
the detection unit is used for detecting the probability of the self fault, and specifically comprises the following steps: determining the probability of failure by detecting the uploaded network speed;
the processing unit is used for determining that a fault sign appears if the probability is larger than a set threshold;
the receiving and sending unit is used for sending the data of the Internet of things terminal stored in the cache to the second backup Internet of things repeater or the third backup Internet of things repeater for data backup;
the second backup internet of things repeater and the first internet of things repeater belong to a data double backup group; the third backup Internet of things repeater and the first Internet of things repeater belong to another data double backup group;
wherein the content of the first and second substances,
the transceiver unit is further configured to receive a second cache margin and a second failure probability of the second backup internet-of-things repeater sent by the second backup internet-of-things repeater, and receive a third cache margin and a third failure probability of the third backup internet-of-things repeater sent by the third backup internet-of-things;
the transceiver unit is further configured to, when the second cache margin is greater than the third cache margin and the second failure probability is lower than the set threshold, send, by the first internet of things repeater, more than 50% of data of the internet of things terminal to a second backup internet of things repeater, send remaining data of the internet of things terminal to a third backup internet of things repeater, and send a first switching message to the internet of things terminal, where the first switching message is used to instruct the internet of things terminal to switch to the second backup internet of things repeater;
the transceiver unit is further configured to send the data of the internet of things terminal to the third backup internet of things repeater backup and send a second switching message to the internet of things terminal when the second cache allowance is greater than the third cache allowance and the second failure probability is higher than the set threshold, where the second switching message is used to instruct the internet of things terminal to switch to the third backup internet of things repeater; the third failure probability is lower than the set threshold.
6. The Internet of things repeater of claim 5,
the transceiver unit is further configured to receive a second cache allowance of the second backup internet-of-things repeater sent by the second backup internet-of-things repeater, and receive a third cache allowance of the third backup internet-of-things repeater sent by the third backup internet-of-things;
the transceiver unit is further configured to, when the second cache margin is greater than the third cache margin, send more than 50% of the data of the internet of things terminal to a second backup internet of things repeater by the first internet of things repeater, and send the remaining data of the internet of things terminal to a third backup internet of things repeater;
the receiving and sending unit is further configured to send a first switching message to the internet of things terminal, where the first switching message is used to instruct the internet of things terminal to switch to the second backup internet of things repeater.
7. The Internet of things repeater of any one of claims 5 or 6,
the receiving and sending unit is also used for receiving the fault probability sent by other relays of the Internet of things;
the processing unit is configured to, if the failure probability of the second backup internet of things repeater is higher than a set threshold, cause the first internet of things repeater to exit the data dual-backup group, reconstruct the first internet of things repeater and a fourth internet of things repeater into another data dual-backup group, where the failure probability of the fourth internet of things repeater is lower than the set threshold, and the other internet of things repeaters include all internet of things repeaters in the internet of things local area network except the first internet of things repeater.
8. A computer-readable storage medium, characterized in that it stores a computer program for electronic data exchange, wherein the computer program causes a computer to perform the method according to any one of claims 1-4.
CN201710749957.XA 2017-08-28 2017-08-28 Data backup method and device for Internet of things repeater Active CN107612715B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710749957.XA CN107612715B (en) 2017-08-28 2017-08-28 Data backup method and device for Internet of things repeater

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710749957.XA CN107612715B (en) 2017-08-28 2017-08-28 Data backup method and device for Internet of things repeater

Publications (2)

Publication Number Publication Date
CN107612715A CN107612715A (en) 2018-01-19
CN107612715B true CN107612715B (en) 2021-01-26

Family

ID=61056240

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710749957.XA Active CN107612715B (en) 2017-08-28 2017-08-28 Data backup method and device for Internet of things repeater

Country Status (1)

Country Link
CN (1) CN107612715B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116614346B (en) * 2023-05-26 2023-10-10 浙江省公众信息产业有限公司 Cross-region-based distributed storage backup method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10222312A (en) * 1997-02-07 1998-08-21 Hitachi Ltd Storage system
CN101160794A (en) * 2005-10-26 2008-04-09 华为技术有限公司 Disaster recovery system and method of service controlling device in intelligent network
CN105493192A (en) * 2013-09-01 2016-04-13 英派尔科技开发有限公司 Increased refresh interval and energy efficiency in a DRAM
CN105912422A (en) * 2016-04-05 2016-08-31 广州杰赛科技股份有限公司 Data backup method, backup client and data backup system
CN106058848A (en) * 2016-05-16 2016-10-26 国电南瑞科技股份有限公司 Optimization and arrangement method for generation unit ahead generation scheduling and spinning reserve within frequency security constrains

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10222312A (en) * 1997-02-07 1998-08-21 Hitachi Ltd Storage system
CN101160794A (en) * 2005-10-26 2008-04-09 华为技术有限公司 Disaster recovery system and method of service controlling device in intelligent network
CN105493192A (en) * 2013-09-01 2016-04-13 英派尔科技开发有限公司 Increased refresh interval and energy efficiency in a DRAM
CN105912422A (en) * 2016-04-05 2016-08-31 广州杰赛科技股份有限公司 Data backup method, backup client and data backup system
CN106058848A (en) * 2016-05-16 2016-10-26 国电南瑞科技股份有限公司 Optimization and arrangement method for generation unit ahead generation scheduling and spinning reserve within frequency security constrains

Also Published As

Publication number Publication date
CN107612715A (en) 2018-01-19

Similar Documents

Publication Publication Date Title
CN105897860B (en) Network device and information processing method
CN107466079B (en) Automatic relay switching method and device
CN104243265A (en) Gateway control method, device and system based on virtual machine migration
CN104702665A (en) Information sharing method and information sharing device
CN112543468B (en) Disaster recovery method for gateway equipment and communication equipment
KR20190047598A (en) Method and device of transmitting data
CN110769033A (en) Intelligent networking method and system
CN107612719B (en) Data backup method and device for Internet of things access point
WO2018053894A1 (en) Internet-of-things access point handover method and device based on transmission rate
CN107484214B (en) Internet of things access point frequency point selection method and device
CN107465609B (en) Terminal routing method based on Internet of things and Internet of things terminal
CN107612715B (en) Data backup method and device for Internet of things repeater
CN104572179A (en) IAAS (infrastructure as a service) software upgrading method and device
CN106162775B (en) Method and device for accessing wireless network
WO2019010799A1 (en) Internet of things terminal migration method and gateway
CN111565479B (en) Communication method, device and system thereof
CN102143031B (en) A kind of network access seamless switching method and terminal
WO2019015036A1 (en) Repeater bridging method and gateway
US9773248B2 (en) Troubleshooting a problem with user equipment based on a location of a user
CN114884805B (en) Data transmission method, device, terminal and storage medium
CN113261249A (en) Data transmission method, related equipment and computer storage medium
CN107404404B (en) Terminal routing method based on Internet of things and Internet of things terminal
CN107302538B (en) Sub-equipment encryption method and device for data received by AP (Access Point) of Internet of things
CN107612805B (en) Internet of things communication method and internet of things gateway
CN107733983B (en) Internet of things communication method and first repeater

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