CN107483228A - The method and system of Internet of Things repeater split-type backup - Google Patents

The method and system of Internet of Things repeater split-type backup Download PDF

Info

Publication number
CN107483228A
CN107483228A CN201710578815.1A CN201710578815A CN107483228A CN 107483228 A CN107483228 A CN 107483228A CN 201710578815 A CN201710578815 A CN 201710578815A CN 107483228 A CN107483228 A CN 107483228A
Authority
CN
China
Prior art keywords
repeater
internet
terminal
backup
things
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710578815.1A
Other languages
Chinese (zh)
Other versions
CN107483228B (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 CN201710578815.1A priority Critical patent/CN107483228B/en
Priority to PCT/CN2017/100564 priority patent/WO2019010784A1/en
Publication of CN107483228A publication Critical patent/CN107483228A/en
Application granted granted Critical
Publication of CN107483228B publication Critical patent/CN107483228B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0663Performing the actions predefined by failover planning, e.g. switching to standby network elements
    • 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

Abstract

The invention discloses a kind of method of Internet of Things repeater split-type backup, including:The backup relays device of the first repeater is obtained, data cached by first repeater backs up to the backup relays device;When detecting first repeaters fail, the priority of the backup relays device is obtained according to the performance parameter of the backup relays device;The priority of the backup relays device is ranked up, when the priority of the 3rd repeater is less than the priority of second repeater, the backup relays device using the 3rd repeater as second repeater;The internet-of-things terminal being connected with first repeater is divided into first terminal set and second terminal set, internet-of-things terminal in the first terminal set is switched into second repeater, the internet-of-things terminal in the second terminal set is switched into the 3rd repeater.The present invention, fault-resistant ability can be improved, ensure that transmission data are not lost and network normal operation.

Description

The method and system of Internet of Things repeater split-type backup
Technical field
The present invention relates to internet of things field, more particularly to a kind of method of Internet of Things repeater split-type backup and it is System.
Background technology
The tide of Internet of Things has influence on the various aspects of society and life, general due to close range communication techniques and product And increasing internet-of-things terminal forms LAN or wide area network by things-internet gateway equipment.For example, in some families Under scene, many internet-of-things terminals composition home network inside family, terminal such as mobile terminal, game machine etc. of user are set It is standby, household electrical appliance such as TV, computer, electronic lock antitheft door, refrigerator and washing machine etc., it is accessible to this real-time performance intelligence Household.
Repeater is a kind of system for connecting network line, the main function of completing physical layer, is responsible in two nodes Step-by-step transmission information in physical layer, the duplication, adjustment and enlarging function of signal are completed, extend the length of network with this.Internet of Things The premise that network termination is normally carried out business is that the communication with platform of internet of things keeps normal, in the case where communicating to connect disconnection, Internet-of-things terminal can not send business datum can not also monitor the working condition of internet-of-things terminal to business platform, business platform. When there is relay failure, then network signal interrupts, and causes loss of data and the internet-of-things terminal operation irregularity of transmission Technical problem.
The content of the invention
Based on this, to cause the technology of the loss of data of transmission and internet-of-things terminal operation irregularity when solving relay failure Problem, spy propose a kind of method of Internet of Things repeater split-type backup.
A kind of method of Internet of Things repeater split-type backup, methods described are based on repeater subsystem, the repeater Subsystem comprises at least the first repeater, the second repeater and the 3rd repeater, and the backup relays device of first repeater is extremely Including second repeater and the 3rd repeater, methods described less includes:
The backup relays device of the first repeater is obtained, data cached by first repeater is backed up in the backup After device;
When detecting first repeaters fail, according to obtaining the performance parameter of the backup relays device The priority of backup relays device;
The priority of the backup relays device is ranked up, is less than described second in the priority of the 3rd repeater During the priority of repeater, the backup relays device using the 3rd repeater as second repeater;
The internet-of-things terminal being connected with first repeater is divided into first terminal set and second terminal set;
Internet-of-things terminal in the first terminal set is switched into second repeater, by the second terminal collection Internet-of-things terminal in conjunction switches to the 3rd repeater;
By the data cached transmission of second repeater to the 3rd repeater.
Optionally, methods described also includes:
When the data traffic of first repeater is less than or equal to preset flow threshold value, first repeater is determined Break down.
In one of the embodiments, described before first repeaters fail is detected, methods described Also include:
When the data cached amount of capacity of first repeater reaches preset capacity threshold value or timer record When time reaches default backup interval time, calculated according to the performance parameter of the backup relays device of first repeater described standby The priority of part repeater, it is standby according to data cached carry out of the priority of the backup relays device to first repeater Part.
Wherein, performance parameter includes transmission band occupation rate, the bit error rate and/or packet loss.
In one of the embodiments, it is described that the internet-of-things terminal being connected with first repeater is divided into first terminal Set and second terminal set, including:
The data type for the internet-of-things terminal being connected described in obtaining with first repeater;
The Internet of Things for determining to include in the first terminal set and the second terminal set according to the data type Terminal.
In one of the embodiments, the internet-of-things terminal by the first terminal set switches to described second Repeater, the internet-of-things terminal in the second terminal set is switched into the 3rd repeater, including:
Open the radio-frequency enabled of second repeater and the 3rd repeater;
The device identification for the internet-of-things terminal being connected described in obtaining with first repeater;
Device authentication coding is generated according to the device identification;
The device authentication coding that internet-of-things terminal in the first terminal set is generated is sent to the described second relaying Device, the device authentication coding that the internet-of-things terminal in the second terminal set is generated are sent to the 3rd repeater;
Second repeater and the 3rd repeater judge when receiving the connection request of the internet-of-things terminal It is described initiate connection request internet-of-things terminal device identification whether with the device authentication codes match;
If the match is successful, it is attached with the internet-of-things terminal.
In one of the embodiments, it is described that the first terminal set and described second are determined according to the data type The internet-of-things terminal included in terminal set, including:
By the data type of the internet-of-things terminal of first repeater connection for corresponding to upstream data and downlink data Internet-of-things terminal is distributed to the first terminal set, is Internet of Things corresponding to upstream data or downlink data by the data type Network termination is distributed to the second terminal set;
After the data cached transmission by second repeater to the 3rd repeater, methods described is also wrapped Include:
According to the device authentication of internet-of-things terminal coding and data type generation data report.
The default checking information of internet-of-things terminal is the device identification of the internet-of-things terminal, refers to and is built in internet-of-things terminal and sets The identification information for being used to be different from other equipment in standby chip, cannot be changed after equipment is dispatched from the factory, including manufacturer Sequence number, the model of equipment, the information such as MAC Address of equipment.Device authentication coding is generated according to equipment identification information, i.e., by this A little information change into the form of character code, such as specific format as " sequence number-model-MAC Address ", are easy to other to set It is standby to be read out.
Optionally, the evaluation index of backup relays device is obtained, the second repeater and the are determined according to the ratio of evaluation index The internet-of-things terminal quantity of three repeaters distribution.Wherein, the performance parameter of evaluation index includes:Transmission band occupation rate, error code Rate and packet loss etc..
Optionally, divided according to the correlation degree of internet-of-things terminal and the first repeater.It will be associated with the first repeater close The internet-of-things terminal cut is divided into first terminal set, and remaining is divided into second terminal set.
Optionally, the signal intensity of first repeater is detected;When the signal intensity is less than preset signals threshold value, Data latency time will be received and be arranged to the second transmission duration;Judge whether receive the thing in the described second transmission duration The data that networked terminals are sent, if so, the reception data latency time is arranged into the first transmission duration, if it is not, then Confirm first repeaters fail.
In addition, to cause the loss of data of transmission and the technology of internet-of-things terminal operation irregularity to be asked when solving relay failure Topic, spy propose a kind of system of Internet of Things repeater split-type backup.
A kind of system of Internet of Things repeater split-type backup, the system are based on repeater subsystem, the repeater Subsystem comprises at least the first repeater, the second repeater and the 3rd repeater, and the backup relays device of first repeater is extremely Including second repeater and the 3rd repeater, the system less includes:
First backup module, for obtaining the backup relays device of the first repeater, by the caching number of first repeater According to backing up to the backup relays device;
Priority acquisition module, for when detecting first repeaters fail, according to the backup relays The performance parameter of device obtains the priority of the backup relays device;
Repeater setup module, for being ranked up to the priority of the backup relays device, in the 3rd repeater Priority be less than second repeater priority when, the backup using the 3rd repeater as second repeater Repeater;
Terminal division module, for by the internet-of-things terminal being connected with first repeater be divided into first terminal set and Second terminal set;
Terminal handover module, for the internet-of-things terminal in the first terminal set to be switched into second relaying Device, the internet-of-things terminal in the second terminal set is switched into the 3rd repeater;
Second backup module, for by the data cached transmission of second repeater to the 3rd repeater.
In one of the embodiments, the system also includes:
Priority acquisition module, preset capacity threshold is reached for the data cached amount of capacity when first repeater During value or when time of timer record reaches default backup interval time, according to the backup relays device of first repeater Performance parameter calculates the priority of the backup relays device;
First backup module is specifically used for the priority according to the backup relays device to first repeater It is data cached to be backed up.
In one of the embodiments, the system also includes:
First acquisition module, for obtaining the data type of the internet-of-things terminal being connected with first repeater;
The terminal division module is specifically used for determining the first terminal set and described the according to the data type The internet-of-things terminal included in two terminal set.
In one of the embodiments, the system also includes:
Radio-frequency module, for opening the radio-frequency enabled of second repeater and the 3rd repeater;
Second acquisition module, for obtaining the device identification of the internet-of-things terminal being connected with first repeater;
Generation module, for generating device authentication coding according to the device identification;
Sending module, the device authentication coding for the internet-of-things terminal in the first terminal set to be generated are sent extremely Second repeater, the device authentication coding that the internet-of-things terminal in the second terminal set is generated are sent to described the Three repeaters;
Judge module, the company of the internet-of-things terminal is being received for second repeater and the 3rd repeater When connecing request, judge it is described initiation connection request internet-of-things terminal device identification whether with the device authentication coding Match somebody with somebody;
If the terminal handover module is specifically used for the judge module when the match is successful, connected with the internet-of-things terminal Connect.
In one of the embodiments, the terminal division module is specifically used for the Internet of Things for connecting first repeater The data type of network termination is distributed to the first terminal set for internet-of-things terminal corresponding to upstream data and downlink data, will The data type is distributed to the second terminal set for internet-of-things terminal corresponding to upstream data or downlink data;
The system also includes:
Data report generation module, for being given birth to according to the device authentication of internet-of-things terminal coding and the data type Into data report.
Implement the embodiment of the present invention, will have the advantages that:
After employing above-mentioned Internet of Things repeater split-type backup method and system, the backup relays device of the first repeater Data cached on first repeater is backed up, when the first repeater breaks down, according to the performance of backup relays device Parameter obtains the priority of backup relays device, because the priority of the second repeater is higher than the 3rd repeater, therefore by the 3rd After the backup relays device that device is the second repeater, cache data cached on the second repeater.The thing that first repeater is connected Networked terminals are divided into first terminal set and second terminal set, the internet-of-things terminal in first terminal set are switched to described Second repeater, the internet-of-things terminal in the second terminal set is switched into the 3rd repeater.So that occur Data in first repeater of failure are able to move to the repeater of other normal works with the internet-of-things terminal being attached thereto On, avoid relay failure from causing Internet of Things to be paralysed, improve the fault-resistant ability of Internet of Things, it is ensured that network service is persistently provided, Complete the smooth transmission of data.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are only this Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with Other accompanying drawings are obtained according to these accompanying drawings.
Wherein:
Fig. 1 is a kind of group-network construction figure of Internet of Things provided in an embodiment of the present invention;
Fig. 2 is a kind of structure chart of the standby system of Internet of Things repeater provided in an embodiment of the present invention;
Fig. 3 is a kind of flow chart of Internet of Things repeater split-type backup method provided in an embodiment of the present invention;
Fig. 4 is a kind of structure chart of Internet of Things repeater split-type standby system provided in an embodiment of the present invention;
Fig. 5 is a kind of structural representation of internet-of-things terminal provided in an embodiment of the present invention;
Fig. 6 is the structural representation of another internet-of-things terminal provided in an embodiment of the present invention.
Embodiment
The term " comprising " and " having " occurred in description of the invention, claims and accompanying drawing and their any changes Shape, it is intended that cover non-exclusive include.Such as contain the process of series of steps or unit, method, system, product or The step of equipment is not limited to list or unit, but alternatively also include the step of not listing or unit, or it is optional Ground is also included for the intrinsic other steps of these processes, method, product or equipment or unit.In addition, term " first ", " the Two " and " the 3rd " etc. are for distinguishing different objects, and are not intended to describe specific order.
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.It is based on Embodiment in the present invention, those of ordinary skill in the art are obtained every other under the premise of creative work is not made Embodiment, belong to the scope of protection of the invention.
To cause loss of transmitted data and the technical problem of network operation irregularity when solving relay failure, in an implementation In example, spy proposes a kind of processing method of failed repeater.The realization of this method can be dependent on computer program, the computer Program can run on the computer installation based on von Neumann system, and the computer program can be the driving tube of repeater Manage program or virtual device manager.
The network architecture of Internet of Things as shown in Figure 1 includes server, gateway, M access point, N number of repeater and some Individual internet-of-things terminal, access point are connected by latticed forms such as Ethernet or 2G, 3G, 4G with gateway, repeater and multiple things Networked terminals are connected with access point, and the data of collection are transmitted by internet-of-things terminal by repeater, by access point and net Close the exchange that equipment upload server carries out data.
And the computer system is based on repeater subsystem, repeater subsystem as shown in Figure 2 is comprised at least in first After device, the second repeater and the 3rd repeater, wherein the backup node of the first repeater comprises at least the second repeater and the 3rd Repeater, the first repeater and backup relays device are the repeater at same node, and its function phase is same, can be used as repeater It is connected in Internet of Things, and the backup relays device of the first repeater is used to back up the data cached of the first repeater.Backup relays Device can be the repeater or idle repeater to work.It should be noted that in order to improve the anti-event of network Barrier ability, backup relays device can more than two, and the first repeater data cached while back up in multiple backup relays devices.
Specifically, as shown in figure 3, a kind of backup method of Internet of Things repeater, including:
Step S101:The backup relays device of the first repeater is obtained, data cached by the first repeater backs up to backup Repeater.
Repeater is mainly used in strengthening the coverage of access point AP wireless signal, for example, repeater can be Wi-Fi Signal amplifier.In advance to the repeater design backup relays device in Internet of Things network environment, obtain in repeater subsystem Repeater obtains the first repeater and comprises at least two repeaters of the second repeater and the 3rd repeater.Obtain the first repeater Backup relays device, by the data backup cached on the first repeater to backup relays device, that is to say, that read the second repeater and Data storage on 3rd repeater can obtain the data cached of the first repeater, it is ensured that data are not lost.On first repeater It is data cached include internet-of-things terminal collection data, the data also sent including server to internet-of-things terminal.
Optionally, when the data cached amount of capacity of the first repeater reaches preset capacity threshold value or timer record Time when reaching default backup interval time, perform the data cached step for backing up to backup relays device of the first repeater Suddenly.The situation of backup failure is caused to occur so as to avoid to be attached with backup relays device in the first relay failure, Improve fault-resistant ability.
That is, when data cached capacity is more than or equal to load threshold, repeater subsystem is just carried out to it Backup.Or backup interval time threshold value is set, and backed up at regular intervals to data cached, it is standby in real time so as to alleviate The operating load and network operation expense of Internet of Things network caused by part, and avoid the first relay failure from causing loss of data.
Such as:If preset capacity threshold value is 10M, the second repeater is carried out when data cached amount of capacity is 10M Backup;If default backup interval time is 5 minutes, often spends 5 minutes and data cached on the first repeater is backed up. Further, when the data cached amount of capacity of the first repeater reaches preset capacity threshold value or timer record time When reaching default backup interval time, the excellent of backup relays device is calculated according to the performance parameter of the backup relays device of the first repeater First level;The data cached of the first repeater is backed up according to the priority of backup relays device.Backed up according to priority, So as to improve backup efficiency.
The performance parameter of backup relays device includes:Processing unit utilization rate, memory usage, the load letter of input/output The backup job number for ceasing and being currently running.Specifically, backup relays device can first establish the data knot for including above-mentioned four kinds of information Structure, the load sample information of backup relays device itself is then gathered, load sample information recorded in the data structure of foundation; The load sample information of record is sent into Internet of Things to the processor for being responsible for handling failure accident by local ethernet again;Place Reason device is weighted according to the performance parameter of backup relays device, and it is standby that determination is compared with the numerical value in default priority The performance parameter of part repeater.Wherein, the data structure can be chained list or array etc., and the embodiment of the present invention is to data structure Concrete form is not construed as limiting.
When processing unit utilization rate is C, memory usage M, the backup job number that is currently running are J, input/output When load information is IO, master server calculates the processing unit utilization rate of backup server, memory usage, input/output The weighted sum of load information and the backup job number being currently running, obtaining the priority L of backup relays device can be:
L=b1*C+b2*W+b3*D+b4*IO (1)
In formula (1), b1, b2, b3 and b4 represent C, M, J and IO and are calculating the weight of priority, b1+b2+b3+b4=respectively 1.Wherein, bi (i=1,2,3,4) specific value can be set or using recommended setting according to the running situation of server.For example, B1=0.3, b2=0.3, b3=0.2, b4=0.2 are set.
For example, in an Internet of Things, there is 4 repeaters at a node, respectively repeater 1, repeater 2, in After device 3 and repeater 4, wherein repeater 3 is the first repeater, according to above-mentioned formula (1) calculate repeater 1, repeater 2 and in After the priority of device 4, it is assumed that b1=0.4, b2=0.3, b3=0.3, it is 89 so as to obtain the priority of repeater 1, repeater 2 Priority be 75, the priority of repeater 4 is 67, then repeater 1 is first backed up, and repeater 2 is carried out standby after the completion of backup Part, repeater 4 is backed up after the completion of backup, the operating load of Internet of Things network caused by alleviating while backing up and network dimension Expense is protected, improves backup efficiency.
Step S102:When detecting the first repeaters fail, obtained according to the performance parameter of backup relays device standby The priority of part repeater.
In the present embodiment, when detecting the first repeaters fail, it should be determined that the priority of backup relays device, Backed up according to priority, so as to improve backup efficiency.
For example, in an Internet of Things, there is 4 repeaters at a node, respectively repeater 1, repeater 2, in After device 3 and repeater 4, wherein repeater 3 is the first repeater, is communicated in a network, other three repeater all conducts The backup relays device of repeater 3 uses.In certain communication process once, repeater 3 breaks down, now calculate repeater 1, The priority of repeater 2 and repeater 4.Assuming that calculated according to above-mentioned formula (1), wherein b1=0.4, b2=0.3, b3= 0.3, it is 89 so as to obtain the priority of repeater 1, the priority of repeater 2 is 75, and the priority of repeater 4 is 67, to this Three result of calculations are ranked up, and select the repeater 1 of highest priority to be used as the second repeater, by repeater 2 and repeater 4 Backup relays device as repeater 1.So as to ensure repeater proper communication, the reliability of Internet of Things is improved.
Optionally, the signal intensity of the first repeater is detected;When signal intensity is less than preset signals threshold value, number will be received The second transmission duration is arranged to according to the stand-by period;Judge the number that internet-of-things terminal is sent whether is received in the second transmission duration According to if so, the first transmission duration is arranged to by data latency time is received, if it is not, then confirming the first repeaters fail.
That is, when signal intensity is less than presupposed information threshold value, judge whether to receive in the second transmission duration The data sent to internet-of-things terminal, if can, though illustrating that signal is weak, the first repeater does not have failure problem;If no Can, then illustrate that the first repeater may break down, that is, prevent trouble before it happens, improve the fault-resistant ability of Internet of Things repeater.And The internet-of-things terminal that first repeater connects can be distributed to backup relays device, extend and receive data latency time, so as to reduce The burden of first repeater, improve data transmission efficiency.
Optionally, judged according to data traffic size, when the data traffic of the first repeater is less than or equal to preset flow During threshold value, the first repeaters fail is determined.
That is, when data traffic is less than or equal to preset flow threshold value, then illustrate that the first repeater may occur Failure, that is, prevent trouble before it happens, improve the fault-resistant ability of Internet of Things repeater.And the Internet of Things in advance connecting the first repeater Terminal distribution gives backup relays device, extends and receives data latency time, so as to reduce the burden of the first repeater, improves data and passes Defeated efficiency.
As an example it is assumed that preset flow threshold value is 60%, when the data traffic of the first repeater is 50%, it is determined that First relay failure, the priority of backup relays device is then obtained, data backup is carried out according to priority height.
Further, the order of backup is carried out according to the height of priority, so as to not influence network bandwidth, reduces network fortune Row load.It is assumed that according to backup relays device mark order priority from small to large from high to low, if the mark of backup relays device Know for 1~n when, that is, be identified as 1 backup relays device highest priority, the backup relays device priority for being identified as n is minimum.It is if pre- If load threshold is 10M, then the backup of the second repeater is carried out when data cached amount of capacity is 10M, when the second relaying Device backup is completed, the backup of the 3rd repeater, the like.Because the amount of capacity for transmitting data is uncontrollable, as long as so caching The second repeater begins to back up when the amount of capacity of data reaches default load threshold.
Step S103:The priority of backup relays device is ranked up, is less than in the priority of the 3rd repeater in second When the priority of device, the backup relays device using the 3rd repeater as the second repeater.
After the priority of backup relays device is obtained, backup relays device is ranked up according to the height of priority, The priority of second repeater is higher than the 3rd repeater, then the second repeater takes over the work of the first repeater, and the 3rd relays Backup relays device of the device as the second repeater.
Step S104:The internet-of-things terminal being connected with the first repeater is divided into first terminal set and second terminal collection Close.
Optionally, the data type for the internet-of-things terminal being connected with the first repeater is obtained;Is determined according to data type The internet-of-things terminal included in one terminal set and second terminal set.That is, according to data type by the first repeater The internet-of-things terminal of upper connection is classified, and can improve parallel processing performance and the backup of Internet of Things backup relays device system Energy.
Step S105:Internet-of-things terminal in first terminal set is switched into the second repeater, by second terminal set In internet-of-things terminal switch to the 3rd repeater.
By the way of backing up, the first backup relays device is backed up to the first repeater more so that the first repeater is sent out During raw failure, on the first repeater first it is data cached do not lose, and choose the second repeater of highest priority to connect the The internet-of-things terminal of first terminal set on one repeater, connect the 3rd repeater as the backup relays device of the second repeater The internet-of-things terminal of the second terminal set on the first repeater is connect, caches data cached on the second repeater, switching first The second repeater is backed up while repeater, so as to improve the parallel processing performance of Internet of Things backup relays device system And backup performance.
Step S106:By the data cached transmission of the second repeater to the 3rd repeater.
Preferably, the 3rd repeater back up the second repeater on second it is data cached when, due on the first repeater First Backup Data has backed up completion before the first relay failure, can be only to cached second on the second repeater It is data cached to be backed up, avoid repeating to back up, save BACKUP TIME.Specifically:First backup relays device is additionally operable to back up First data cached Status of Backups of the first repeater completed is arranged to back up;3rd repeater is additionally operable to acquisition second The Status of Backups of the Backup Data of repeater, it is that Backup Data to be backed up backs up to the 3rd repeater by Status of Backups.
Optionally, the radio-frequency enabled of the second repeater and the 3rd repeater is opened;Obtain the thing being connected with the first repeater The device identification of networked terminals;
Device authentication coding is generated according to device identification;The equipment that internet-of-things terminal in first terminal set generates is recognized Card coding is sent to the second repeater, and the device authentication coding that the internet-of-things terminal in second terminal set is generated is sent to the Three repeaters;Second repeater and the 3rd repeater judge that initiating connection asks when receiving the connection request of internet-of-things terminal The device identification for the internet-of-things terminal asked whether with device authentication codes match;If the match is successful, carried out with the internet-of-things terminal Connection.
In an alternative embodiment, in order to improve the security of Backup Data, internet-of-things terminal is in this connection when device The device identification of internet-of-things terminal should be verified, when the match is successful for the device identification of internet-of-things terminal, then receives and initiates connection The internet-of-things terminal of request is attached, if otherwise it fails to match, closes the radio-frequency enabled of backup relays device.
Internet-of-things terminal is that Sensor Network network layers and transport network layer are connected in Internet of Things, realizes gathered data and to Internet The equipment for sending data, different device identifications are used for the different equipment of distinctive mark.For example, the device identification of internet-of-things terminal Can be the MAC Address of internet-of-things terminal, MAC Address is also known as physical address or hardware address, for defining the network equipment Position, the date of network time can also be accessed plus the terminal type life that either computer program is given tacit consent to internet-of-things terminal Name or terminal type addend combinatorics on words, can also be the title that user saves as to internet-of-things terminal.By in first The second repeater is switched to after the internet-of-things terminal on device, that is to say, that successful first relaying of the second repeater connectivity verification Internet-of-things terminal on device.
In one embodiment, after the first relay failure, the internet-of-things terminal being connected with the first repeater is obtained Device identification, device identification here refer to be built in the knowledge for being used to be different from other equipment in internet-of-things terminal device chip Other information, cannot be changed after equipment is dispatched from the factory, including MAC Address of the model of manufacturer's sequence number, equipment, equipment etc. Information.Device authentication coding is generated according to equipment identification information, i.e., these information are changed into the form of character code, such as Specific format as " sequence number-model-MAC Address ", is easy to other equipment to be read out.Afterwards, by generation and first The device authentication coding of the internet-of-things terminal of terminal set connection is sent to the second repeater, by generation and second terminal set The device authentication coding of the internet-of-things terminal of connection is sent to the 3rd repeater.Received in the second repeater and the 3rd repeater During the connection request of internet-of-things terminal, the device identification of internet-of-things terminal is obtained, therefrom reads out facility information and with protecting before The device authentication coding deposited is matched, in the device authentication codes match success of device identification with the preservation of internet-of-things terminal When, internet-of-things terminal can be received and be attached.Encoded by preserving device authentication, directly connected after judging that the match is successful Connect, can avoid, when internet-of-things terminal initiates connection request to the second repeater and the 3rd repeater, again carrying out equipment The process such as session information certification and key pair, so as to improve the communication efficiency of Internet of Things.
It should be noted that the device identification of internet-of-things terminal here is successfully wrapped with the device authentication codes match preserved Situation about containing can have it is a variety of, for example, sequence number, model are all identical with MAC Address;Or only identification sequence number is identical When, that is, judge device identification and the device authentication codes match success preserved;Or more than certain percentage only in character string Character, which matches, thinks that the match is successful.The workload of data processing can be reduced by such mode, improves efficiency.
In the present embodiment, after the first relay failure, the second repeater and the 3rd relaying are broadcasted to internet-of-things terminal The MAC Address of device, MAC Address are also known as physical address or hardware address, for defining the position of the network equipment, each repeater There is a single MAC Address, internet-of-things terminal can be after the MAC Address of the second repeater be received, to the second relaying Device initiates connection request.
It should be noted that backup relays device can close the angle that radio-frequency enabled functions only as storage device when backup Color, and when connection is established with the internet-of-things terminal of the first repeater, radio-frequency enabled is just opened, remaining backup relays device is still Radio-frequency enabled is closed, the occupancy of Installed System Memory is reduced, save electricity, strengthens cruising time.
The implementation procedure of the present invention is stated with reference to a specific application scenarios.In the application scenarios, Internet of Things There are 3 repeaters at a node in net, respectively repeater J, repeater K and repeater L, wherein repeater J are first Repeater, communicated in a network, other the backup relays devices of two repeaters all as repeater J use, and only open Store function.
In certain communication process once, repeater J breaks down, and is calculated according to repeater K and repeater L priority As a result the priority for obtaining repeater K is higher than repeater L, and repeater K is arranged into the second repeater, repeater L is arranged to Repeater K backup relays device.
Before repeater J breaks down, internet-of-things terminal 1, internet-of-things terminal 2 and Internet of Things are connected with repeater J Terminal 3, now, open repeater K and repeater L radio-frequency enabled.Repeater K obtains internet-of-things terminal 1 and internet-of-things terminal 2 Device authentication coding be respectively " 001-A1070-00010010 " and " 011-BC79-00101100 ", and preserved.Relaying The device authentication coding that device L obtains internet-of-things terminal 3 is respectively that " 001-D1070-00010110 " is preserved.Afterwards, relay Device K is to internet-of-things terminal 1 and the broadcast repeater K of internet-of-things terminal 2 MAC Address " 00-01-6C-06-A6-29 ", repeater L To the broadcast repeater L of internet-of-things terminal 3 MAC Address " 00-01-6C-06-A6-30 ".
Internet-of-things terminal 1 and internet-of-things terminal 2 are after repeater K MAC Address is received according to the MAC Address to relaying Device K initiates connection request, and internet-of-things terminal 3 is sent out after repeater L MAC Address is received according to the MAC Address to repeater L Play connection request.
Repeater K obtains internet-of-things terminal 1 and Internet of Things according to internet-of-things terminal 1 and the connection request of internet-of-things terminal 2 The equipment identification information of terminal 2 is respectively " 001-A1070-00010010 " and " 011-BC79-00101100 ", with preserving before Device authentication coding it is identical, judge that the match is successful, receive the connection of internet-of-things terminal 1 and internet-of-things terminal 2.And repeater L According to the connection request of internet-of-things terminal 3, the equipment identification information for obtaining internet-of-things terminal 3 is respectively " 001-A1070- 00011010 " and " 001-D1070-00010110 ", encode and mismatch with the device authentication preserved before, then repeater L and thing Networked terminals 3 are without connection.In the repeater K course of work, while by data cached Hot Spare into repeater L, protect The reliability of exhibit connected network communication.
Optionally, it is the data type of the internet-of-things terminal of the first repeater connection is corresponding for upstream data and downlink data Internet-of-things terminal distribute to first terminal set, be internet-of-things terminal corresponding to upstream data or downlink data by data type Distribute to second terminal set;After by the data cached transmission of the second repeater to the 3rd repeater, method also includes:Root According to the device authentication coding and data type generation data report of internet-of-things terminal;Close radio-frequency enabled.
In an alternative embodiment, first terminal set and second terminal collection are divided according to the data type of internet-of-things terminal Close.Data type is distributed to first terminal set for internet-of-things terminal corresponding to upstream data and downlink data, by data class Type is distributed to second terminal set for internet-of-things terminal corresponding to upstream data or downlink data.So as to priority it is higher second Repeater receives data, transmits data again, and relatively low the 3rd repeater of priority only receives data or transmission data, improves The efficiency of transmission of data, reduce the performance pressures of the 3rd repeater.
In an alternative embodiment, after the completion of Backup Data, according to the device authentication of internet-of-things terminal coding and data class Type generates data report, and closes radio-frequency enabled.Backup Data can be arranged, prevent from misinformating and retransmit, and be beneficial to energy-conservation, Strengthen endurance.
To cause loss of transmitted data and the technical problem of network operation irregularity when solving relay failure, in an implementation In example, spy proposes a kind of Internet of Things repeater split-type standby system.The system is based on repeater subsystem, repeater subsystem System comprises at least the first repeater, the second repeater and the 3rd repeater, and the backup node of the first repeater comprises at least second Repeater and the 3rd repeater.As shown in figure 4, above-mentioned Internet of Things repeater split-type standby system includes:
First backup module 101, for obtaining the backup relays device of the first repeater, by the data cached of the first repeater Back up to backup relays device.
Priority acquisition module 102, for when detecting the first repeaters fail, according to the property of backup relays device The priority of energy parameter acquiring backup relays device.
Backup relays device determining module 103, for being ranked up to the priority of backup relays device, in the 3rd repeater When priority is less than the priority of the second repeater, the backup relays device using the 3rd repeater as the second repeater.
Terminal division module 104, for by the internet-of-things terminal being connected with the first repeater be divided into first terminal set and Second terminal set.
Terminal handover module 105, for the internet-of-things terminal in first terminal set to be switched into the second repeater, by Internet-of-things terminal in two terminal set switches to the 3rd repeater.
Second backup module 106, for by the data cached transmission of the second repeater to the 3rd repeater.
In one of the embodiments, system also includes:
Priority acquisition module 107, preset capacity threshold is reached for the data cached amount of capacity when the first repeater During value or when time of timer record reaches default backup interval time, according to the performance of the backup relays device of the first repeater Parameter calculates the priority of backup relays device;
First backup module 101 be specifically used for according to the priority of backup relays device to the first repeater it is data cached enter Row backup.
In one of the embodiments, system also includes:
First acquisition module 108, for obtaining the data type for the internet-of-things terminal being connected with the first repeater;
Terminal division module 104 is specifically used for determining to wrap in first terminal set and second terminal set according to data type The internet-of-things terminal contained.
In one of the embodiments, system also includes:
Second acquisition module 109, for obtaining the device identification for the internet-of-things terminal being connected with the first repeater;
Generation module 110, for generating device authentication coding according to device identification;
Sending module 111, the device authentication coding for the internet-of-things terminal in first terminal set to be generated are sent extremely Second repeater, the device authentication coding that the internet-of-things terminal in second terminal set is generated are sent to the 3rd repeater;
Judge module 112, for the second repeater and the 3rd repeater when receiving the connection request of internet-of-things terminal, Judge initiate connection request internet-of-things terminal device identification whether with device authentication codes match;
If terminal handover module 105 is specifically used for judge module when the match is successful, it is attached with the internet-of-things terminal.
In one of the embodiments, terminal division module 104 is specifically used for the Internet of Things of the first repeater connection is whole The data type at end is distributed to first terminal set for internet-of-things terminal corresponding to upstream data and downlink data, by data type Distributed for internet-of-things terminal corresponding to upstream data or downlink data to second terminal set;System also includes:
Data report generation module 113, for generating number according to the device authentication of internet-of-things terminal coding and data type It was reported that.
Implement the embodiment of the present invention, will have the advantages that:
After employing above-mentioned Internet of Things repeater split-type backup method and system, the backup relays device of the first repeater Data cached on first repeater is backed up, when the first repeater breaks down, according to the performance of backup relays device Parameter obtains the priority of backup relays device, because the priority of the second repeater is higher than the 3rd repeater, therefore by the 3rd After the backup relays device that device is the second repeater, cache data cached on the second repeater.The thing that first repeater is connected Networked terminals are divided into first terminal set and second terminal set, and the internet-of-things terminal in first terminal set is switched into second Repeater, the internet-of-things terminal in second terminal set is switched into the 3rd repeater.So that in break down first After on the repeater that the data in device and the internet-of-things terminal that is attached thereto are able to move to other normal works, repeater is avoided Failure causes Internet of Things to be paralysed, and improves the fault-resistant ability of Internet of Things, it is ensured that persistently provides network service, completes the suitable of data Profit transmission.
Referring to Fig. 5, Fig. 5 is the structural representation of another terminal provided in an embodiment of the present invention.As shown in figure 5, this reality Applying the terminal in example can include:One or more processors 801;One or more input equipments 802, one or more output Equipment 803 and memory 804.Above-mentioned processor 801, input equipment 802, output equipment 803 and memory 804 pass through bus 805 connections.Memory 802 is used for store instruction, and processor 801 is used for the instruction for performing the storage of memory 802.Wherein, handle Device 801 is used for:The backup relays device of the first repeater is obtained, data cached by the first repeater backs up to backup relays device; When detecting the first repeaters fail, the priority of backup relays device is obtained according to the performance parameter of backup relays device; The priority of backup relays device is ranked up, will when the priority of the 3rd repeater is less than the priority of the second repeater Backup relays device of 3rd repeater as the second repeater;The internet-of-things terminal being connected with the first repeater is switched to second Repeater, by the data cached transmission of the second repeater to the 3rd repeater.
It should be appreciated that in embodiments of the present invention, alleged processor 801 can be CPU (Central Processing Unit, CPU), the processor can also be other general processors, digital signal processor (Digital Signal Processor, DSP), application specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other FPGAs Device, discrete gate or transistor logic, discrete hardware components etc..General processor can be microprocessor or this at It can also be any conventional processor etc. to manage device.
Input equipment 802 can include Trackpad, fingerprint adopt sensor (finger print information that is used to gathering user and fingerprint Directional information), microphone etc., output equipment 803 can include display (LCD etc.), loudspeaker etc..
The memory 804 can include read-only storage and random access memory, and to processor 801 provide instruction and Data.The a part of of memory 804 can also include nonvolatile RAM.For example, memory 804 can also be deposited Store up the information of device type.
In the specific implementation, processor 801, input equipment 802, the output equipment 803 described in the embodiment of the present invention can Perform the realization side described in the first embodiment and second embodiment of the method for charge prompting provided in an embodiment of the present invention Formula, the implementation of the terminal described by the embodiment of the present invention is also can perform, will not be repeated here.
A kind of computer-readable recording medium, above computer readable storage medium are provided in another embodiment of the invention Matter is stored with computer program, and above computer program is realized when being executed by processor:Obtain the backup relays of the first repeater Device, data cached by the first repeater back up to backup relays device;When detecting the first repeaters fail, according to standby The performance parameter of part repeater obtains the priority of backup relays device;The priority of backup relays device is ranked up, the 3rd When the priority of repeater is less than the priority of the second repeater, the backup relays using the 3rd repeater as the second repeater Device;The internet-of-things terminal being connected with the first repeater is divided into first terminal set and second terminal set;By first terminal collection Internet-of-things terminal in conjunction switches to the second repeater, and the internet-of-things terminal in second terminal set is switched into the 3rd relaying Device;By the data cached transmission of the second repeater to the 3rd repeater.
Above computer readable storage medium storing program for executing can be the internal storage unit of the above-mentioned terminal of foregoing any embodiment, example Such as the hard disk or internal memory of terminal.Above computer readable storage medium storing program for executing can also be the External memory equipment of above-mentioned terminal, such as The plug-in type hard disk being equipped with above-mentioned terminal, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash card (Flash Card) etc..Further, above computer readable storage medium storing program for executing can also be wrapped both Including the internal storage unit of above-mentioned terminal also includes External memory equipment.Above computer readable storage medium storing program for executing is above-mentioned for storing Other programs and data needed for computer program and above-mentioned terminal.Above computer readable storage medium storing program for executing can be also used for temporarily When store the data that has exported or will export.
Fig. 6 is illustrated that the block diagram of the part-structure of the mobile phone related to terminal provided in an embodiment of the present invention.Reference chart 6, mobile phone includes:Radio frequency (Radio Frequency, RF) circuit 910, memory 920, input block 930, display unit 940, Sensor 950, voicefrequency circuit 960, Wireless Fidelity (wireless fidelity, Wi-Fi) module 970, processor 980 and The grade part of power supply 990.It will be understood by those skilled in the art that the handset structure shown in Fig. 6 does not form the restriction to mobile phone, It can include than illustrating more or less parts, either combine some parts or different parts arrangement.
Each component parts of mobile phone is specifically introduced with reference to Fig. 6:
RF circuits 910 can be used for receive and send messages or communication process in, the reception and transmission of signal, especially, by base station After downlink information receives, handled to processor 980;In addition, it is sent to base station by up data are designed.Generally, RF circuits 910 Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier (Low Noise Amplifier, LNA), duplexer etc..In addition, RF circuits 910 can also be communicated by radio communication with network and other equipment. Above-mentioned radio communication can use any communication standard or agreement, including but not limited to global system for mobile communications (Global System of Mobile communication, GSM), general packet radio service (General Packet Radio Service, GPRS), CDMA (Code Division Multiple Access, CDMA), WCDMA (Wideband Code Division Multiple Access, WCDMA), Long Term Evolution (Long Term Evolution, LTE), Email, Short Message Service (Short Messaging Service, SMS) etc..
Memory 920 can be used for storage software program and module, and processor 980 is stored in memory 920 by operation Software program and module, so as to perform the various function application of mobile phone and data processing.Memory 920 can mainly include Storing program area and storage data field, wherein, storing program area can storage program area, the application journey needed at least one function Sequence (such as sound-playing function, image player function etc.) etc.;Storage data field can store uses what is created according to mobile phone Data (such as voice data, phone directory etc.) etc.., can be with addition, memory 920 can include high-speed random access memory Including nonvolatile memory, for example, at least a disk memory, flush memory device or other volatile solid-states Part.
Input block 930 can be used for the numeral or character information for receiving input, and produce with the user of mobile phone set with And the key signals input that function control is relevant.Specifically, input block 930 may include that contact panel 931 and other inputs are set Standby 932.Contact panel 931, also referred to as touch-screen, collect user on or near it touch operation (such as user use The operation of any suitable object such as finger, stylus or annex on contact panel 930 or near contact panel 930), and root Corresponding attachment means are driven according to formula set in advance.Optionally, contact panel 930 may include touch detecting apparatus and touch Two parts of controller.Wherein, the touch orientation of touch detecting apparatus detection user, and the signal that touch operation is brought is detected, Transmit a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and is converted into touching Point coordinates, then give processor 980, and the order sent of reception processing device 980 and can be performed.Furthermore, it is possible to using electricity The polytypes such as resistive, condenser type, infrared ray and surface acoustic wave realize contact panel 930.Except contact panel 930, input Unit 930 can also include other input equipments 932.Specifically, other input equipments 932 can include but is not limited to secondary or physical bond One or more in disk, function key (such as volume control button, switch key etc.), trace ball, mouse, action bars etc..
Display unit 940 can be used for display by user input information or be supplied to user information and mobile phone it is various Menu.Display unit 940 may include display panel 941, optionally, can use liquid crystal display (Liquid Crystal Display, LCD), the form such as Organic Light Emitting Diode (Organic Light-Emitting Diode, OLED) it is aobvious to configure Show panel 941.Further, contact panel 930 can cover display panel 941, when contact panel 930 is detected thereon or attached After near touch operation, processor 980 is sent to determine the type of touch event, is followed by subsequent processing device 980 according to touch event Type corresponding visual output is provided on display panel 941.Although in figure 6, contact panel 930 and display panel 941 It is the part independent as two to realize the input of mobile phone and input function, but in some embodiments it is possible to by touch-control Panel 930 is integrated with display panel 941 and realizes input and the output function of mobile phone.
Mobile phone may also include at least one sensor 950, such as optical sensor, motion sensor and other sensors. Specifically, optical sensor may include ambient light sensor and proximity transducer, wherein, ambient light sensor can be according to ambient light Light and shade adjust the brightness of display panel 941, proximity transducer can close display panel 941 when mobile phone is moved in one's ear And/or backlight.As one kind of motion sensor, accelerometer sensor can detect in all directions (generally three axles) acceleration Size, size and the direction of gravity are can detect that when static, (for example horizontal/vertical screen is cut available for the application of identification mobile phone posture Change, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;May be used also as mobile phone The other sensors such as the gyroscope of configuration, barometer, hygrometer, thermometer, infrared ray sensor, will not be repeated here.
Voicefrequency circuit 960, loudspeaker 961, microphone 962 can provide the COBBAIF between user and mobile phone.Audio-frequency electric Electric signal after the voice data received conversion can be transferred to loudspeaker 961, sound is converted to by loudspeaker 961 by road 960 Signal output;On the other hand, the voice signal of collection is converted to electric signal by microphone 962, is turned after being received by voicefrequency circuit 960 Voice data is changed to, then after voice data output processor 980 is handled, through RF circuits 910 to be sent to such as another mobile phone, Or voice data is exported to memory 920 further to handle.
Wi-Fi belongs to short range wireless transmission technology, and mobile phone can help user's transceiver electronicses by Wi-Fi module 970 Mail, browse webpage and access streaming video etc., it has provided the user wireless broadband internet and accessed.Although Fig. 6 is shown Wi-Fi module 970, but it is understood that, it is simultaneously not belonging to must be configured into for mobile phone, completely can be as needed not Change in the essential scope of invention and omit.
Processor 980 is the control centre of mobile phone, using various interfaces and the various pieces of connection whole mobile phone, is led to Cross operation or perform the software program and/or module being stored in memory 920, and call and be stored in memory 920 Data, the various functions and processing data of mobile phone are performed, so as to carry out integral monitoring to mobile phone.Optionally, processor 980 can wrap Include one or more processing units;Preferably, processor 980 can integrate application processor and modem processor, wherein, should Operating system, user interface and application program etc. are mainly handled with processor, modem processor mainly handles radio communication. It is understood that above-mentioned modem processor can not also be integrated into processor 980.
Mobile phone also includes the power supply 990 (such as battery) to all parts power supply, it is preferred that power supply can pass through power supply pipe Reason system and processor 980 are logically contiguous, so as to realize management charging, electric discharge and power managed by power-supply management system Etc. function.
Although being not shown, mobile phone can also include camera, bluetooth module etc., will not be repeated here.
Those of ordinary skill in the art are it is to be appreciated that the list of each example described with reference to the embodiments described herein Member and algorithm steps, it can be realized with electronic hardware, computer software or the combination of the two, in order to clearly demonstrate hardware With the interchangeability of software, the composition and step of each example are generally described according to function in the above description.This A little functions are performed with hardware or software mode actually, application-specific and design constraint depending on technical scheme.Specially Industry technical staff can realize described function using distinct methods to each specific application, but this realization is not It is considered as beyond the scope of this invention.
It is apparent to those skilled in the art that for convenience of description and succinctly, the end of foregoing description End and the specific work process of unit, may be referred to the corresponding process in preceding method embodiment, will not be repeated here.
In several embodiments provided herein, it should be understood that disclosed terminal and method, it can be passed through Its mode is realized.For example, device embodiment described above is only schematical, for example, the division of said units, only Only a kind of division of logic function, there can be other dividing mode when actually realizing, such as multiple units or component can be tied Another system is closed or is desirably integrated into, or some features can be ignored, or do not perform.In addition, shown or discussed phase Coupling or direct-coupling or communication connection between mutually can be INDIRECT COUPLING or the communication by some interfaces, device or unit Connection or electricity, the connection of mechanical or other forms.
The above-mentioned unit illustrated as separating component can be or may not be physically separate, show as unit The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On NE.Some or all of unit therein can be selected to realize scheme of the embodiment of the present invention according to the actual needs Purpose.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can also It is that unit is individually physically present or two or more units are integrated in a unit.It is above-mentioned integrated Unit can both be realized in the form of hardware, can also be realized in the form of SFU software functional unit.
If above-mentioned integrated unit is realized in the form of SFU software functional unit and is used as independent production marketing or use When, it can be stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially The part to be contributed in other words to prior art, or all or part of the technical scheme can be in the form of software product Embody, the computer software product is stored in a storage medium, including some instructions are causing a computer Equipment (can be personal computer, server, or network equipment etc.) performs the complete of each embodiment above method of the present invention Portion or part steps.And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can store journey The medium of sequence code.
The method and system of Internet of Things repeater split-type provided in an embodiment of the present invention backup have been carried out in detail above Introduce, specific case used herein is set forth to the principle and embodiment of the present invention, the explanation of above example It is only intended to help the method and its core concept for understanding the present invention;Meanwhile for those of ordinary skill in the art, according to this The thought of invention, there will be changes in specific embodiments and applications, to sum up, this specification content should not be understood For limitation of the present invention.

Claims (10)

  1. A kind of 1. method of Internet of Things repeater split-type backup, it is characterised in that methods described is based on repeater subsystem, institute State repeater subsystem and comprise at least the first repeater, the second repeater and the 3rd repeater, the backup of first repeater Repeater, which comprises at least second repeater and the 3rd repeater, methods described, to be included:
    The backup relays device of the first repeater is obtained, data cached by first repeater backs up to the backup relays Device;
    When detecting first repeaters fail, the backup is obtained according to the performance parameter of the backup relays device The priority of repeater;
    The priority of the backup relays device is ranked up, relayed in the priority of the 3rd repeater less than described second During the priority of device, the backup relays device using the 3rd repeater as second repeater;
    The internet-of-things terminal being connected with first repeater is divided into first terminal set and second terminal set;
    Internet-of-things terminal in the first terminal set is switched into second repeater, by the second terminal set Internet-of-things terminal switch to the 3rd repeater;
    By the data cached transmission of second repeater to the 3rd repeater.
  2. 2. according to the method for claim 1, it is characterised in that detecting first repeaters fail described Before, methods described also includes:
    When the data cached amount of capacity of first repeater reaches preset capacity threshold value or timer record time When reaching default backup interval time, calculated according to the performance parameter of the backup relays device of first repeater in the backup After the priority of device;
    The data cached of the first repeater is backed up according to the priority of the backup relays device.
  3. 3. method according to claim 1 or 2, it is characterised in that the Internet of Things that will be connected with first repeater Network termination is divided into first terminal set and second terminal set, including:
    The data type for the internet-of-things terminal being connected described in obtaining with first repeater;
    The internet-of-things terminal for determining to include in the first terminal set and the second terminal set according to the data type.
  4. 4. according to the method for claim 3, it is characterised in that the internet-of-things terminal by the first terminal set Second repeater is switched to, the internet-of-things terminal in the second terminal set is switched into the 3rd repeater, is wrapped Include:
    Open the radio-frequency enabled of second repeater and the 3rd repeater;
    The device identification for the internet-of-things terminal being connected described in obtaining with first repeater;
    Device authentication coding is generated according to the device identification;
    The device authentication coding that internet-of-things terminal in the first terminal set is generated is sent to second repeater, will The device authentication coding of internet-of-things terminal generation in the second terminal set is sent to the 3rd repeater;
    Second repeater and the 3rd repeater are when receiving the connection request of the internet-of-things terminal, described in judgement Initiate connection request internet-of-things terminal device identification whether with the device authentication codes match;
    If the match is successful, it is attached with the internet-of-things terminal.
  5. 5. according to the method for claim 4, it is characterised in that described that the first terminal is determined according to the data type The internet-of-things terminal included in set and the second terminal set, including:
    It is Internet of Things corresponding to upstream data and downlink data by the data type of the internet-of-things terminal of first repeater connection Network termination is distributed to the first terminal set, is that Internet of Things is whole corresponding to upstream data or downlink data by the data type End is distributed to the second terminal set;
    After the data cached transmission by second repeater to the 3rd repeater, methods described also includes:
    According to the device authentication of internet-of-things terminal coding and data type generation data report.
  6. 6. a kind of system of Internet of Things repeater split-type backup, it is characterised in that the system is based on repeater subsystem, institute State repeater subsystem and comprise at least the first repeater, the second repeater and the 3rd repeater, the backup of first repeater Repeater, which comprises at least second repeater and the 3rd repeater, the system, to be included:
    First backup module, for obtaining the backup relays device of the first repeater, by the data cached standby of first repeater Part to the backup relays device;
    Priority acquisition module, for when detecting first repeaters fail, according to the backup relays device Performance parameter obtains the priority of the backup relays device;
    Repeater setup module, for being ranked up to the priority of the backup relays device, in the excellent of the 3rd repeater When first level is less than the priority of second repeater, the backup relays using the 3rd repeater as second repeater Device;
    Terminal division module, for the internet-of-things terminal being connected with first repeater to be divided into first terminal set and second Terminal set;
    Terminal handover module, will for the internet-of-things terminal in the first terminal set to be switched into second repeater Internet-of-things terminal in the second terminal set switches to the 3rd repeater;
    Second backup module, for by the data cached transmission of second repeater to the 3rd repeater.
  7. 7. system according to claim 6, it is characterised in that the system also includes:
    Priority acquisition module, when reaching preset capacity threshold value for the data cached amount of capacity when first repeater Or the time of timer record is reached when presetting backup interval time, according to the performance of the backup relays device of first repeater Parameter calculates the priority of the backup relays device;
    Caching of first backup module specifically for the priority according to the backup relays device to first repeater Data are backed up.
  8. 8. the system according to claim 6 or 7, it is characterised in that the system also includes:
    First acquisition module, for obtaining the data type of the internet-of-things terminal being connected with first repeater;
    The terminal division module is specifically used for determining the first terminal set and described second eventually according to the data type The internet-of-things terminal included in the set of end.
  9. 9. system according to claim 8, it is characterised in that the system also includes:
    Radio-frequency module, for opening the radio-frequency enabled of second repeater and the 3rd repeater;
    Second acquisition module, for obtaining the device identification of the internet-of-things terminal being connected with first repeater;
    Generation module, for generating device authentication coding according to the device identification;
    Sending module, the device authentication coding for the internet-of-things terminal in the first terminal set to be generated are sent to described Second repeater, the device authentication coding that the internet-of-things terminal in the second terminal set is generated are sent into the described 3rd After device;
    Judge module, please in the connection for receiving the internet-of-things terminal for second repeater and the 3rd repeater When asking, judge it is described initiation connection request internet-of-things terminal device identification whether with the device authentication codes match;
    If the terminal handover module is specifically used for the judge module when the match is successful, it is attached with the internet-of-things terminal.
  10. 10. system according to claim 9, it is characterised in that the terminal division module is specifically used for described first The data type of the internet-of-things terminal of repeater connection is distributed to institute for internet-of-things terminal corresponding to upstream data and downlink data State first terminal set, by the data type be upstream data or downlink data corresponding to internet-of-things terminal distribute to described the Two terminal set;
    The system also includes:
    Data report generation module, for generating number according to the device authentication of internet-of-things terminal coding and the data type It was reported that.
CN201710578815.1A 2017-07-14 2017-07-14 Method and system for split backup of Internet of things repeater Active CN107483228B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201710578815.1A CN107483228B (en) 2017-07-14 2017-07-14 Method and system for split backup of Internet of things repeater
PCT/CN2017/100564 WO2019010784A1 (en) 2017-07-14 2017-09-05 Method and system for split backup of internet of things repeater

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710578815.1A CN107483228B (en) 2017-07-14 2017-07-14 Method and system for split backup of Internet of things repeater

Publications (2)

Publication Number Publication Date
CN107483228A true CN107483228A (en) 2017-12-15
CN107483228B CN107483228B (en) 2020-02-18

Family

ID=60596763

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710578815.1A Active CN107483228B (en) 2017-07-14 2017-07-14 Method and system for split backup of Internet of things repeater

Country Status (2)

Country Link
CN (1) CN107483228B (en)
WO (1) WO2019010784A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109756380A (en) * 2019-01-14 2019-05-14 山东建筑大学 A kind of internet of things equipment adaptive access and shared method and system
CN112543452A (en) * 2020-11-23 2021-03-23 广州技象科技有限公司 Data skip transmission selection method and device based on signal transmission safety management

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101107874A (en) * 2005-01-21 2008-01-16 松下电器产业株式会社 Backup system, relay device, information terminal, and backup device
CN101656624A (en) * 2008-08-18 2010-02-24 中兴通讯股份有限公司 Multi-node application-level disaster recovery system and multi-node application-level disaster recovery method
CN105046925A (en) * 2015-08-26 2015-11-11 安徽农业大学 Agricultural environment information collection system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101107874A (en) * 2005-01-21 2008-01-16 松下电器产业株式会社 Backup system, relay device, information terminal, and backup device
CN101656624A (en) * 2008-08-18 2010-02-24 中兴通讯股份有限公司 Multi-node application-level disaster recovery system and multi-node application-level disaster recovery method
CN105046925A (en) * 2015-08-26 2015-11-11 安徽农业大学 Agricultural environment information collection system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109756380A (en) * 2019-01-14 2019-05-14 山东建筑大学 A kind of internet of things equipment adaptive access and shared method and system
CN112543452A (en) * 2020-11-23 2021-03-23 广州技象科技有限公司 Data skip transmission selection method and device based on signal transmission safety management
CN112543452B (en) * 2020-11-23 2023-06-27 广州技象科技有限公司 Data skip selection method and device based on signal transmission safety management

Also Published As

Publication number Publication date
CN107483228B (en) 2020-02-18
WO2019010784A1 (en) 2019-01-17

Similar Documents

Publication Publication Date Title
CN107465537A (en) The backup method and system of Internet of Things repeater
CN103458305B (en) Video broadcasting method, device, terminal unit server
CN107426806A (en) Internet-of-things terminal transmits the method and device of data
CN105024984B (en) Authority setting method, apparatus and system
CN110099421A (en) A kind of signal processing method, device and terminal device
CN103475914B (en) Video playing method, video playing device, terminal equipment and server
CN110198545A (en) A kind of secondary cell group adding method, terminal device and host node
CN107885458A (en) A kind of method for sorting of disk fragmentses, terminal and computer-readable recording medium
CN104780401B (en) The sending method and device of video data
CN103763112B (en) A kind of user identity protection method and apparatus
CN104301504A (en) Message viewing method and device and mobile terminal
CN106658623A (en) Hotspot network switching method and terminal equipment
CN107395469A (en) The location information acquisition method and device of intelligent home device
CN107800791A (en) A kind of method and apparatus debugged
CN107835452A (en) Data processing method and related product
CN104423822A (en) Automated test script recording method and device
CN105246075B (en) access point connection method and device
CN107682825A (en) Scan frequency control method and Related product
CN106713522A (en) Wireless fidelity (Wi-Fi) connection method and mobile terminal
CN108541002A (en) A kind of monitor method of paging message, mobile terminal and server
CN104852802A (en) Identity verification method, equipment, and system
CN107483228A (en) The method and system of Internet of Things repeater split-type backup
CN106454975A (en) Hotspot network switching method and terminal equipment
CN107466015A (en) Access control method and Related product
CN107247617A (en) The concocting method of resources of virtual machine, platform on probation and readable storage medium storing program for executing

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