A backup method and system for Internet of Things repeater
By setting up a running backup repeater for the IoT repeater and monitoring the signal strength in real time, the problem of difficulty in achieving accurate fault judgment and rapid response in the prior art is solved, and the continuity of data transmission and the stability and reliability of the IoT network are achieved.
Patent Information
- Application Number
- CN202510010590.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-03
- Publication Date
- 2025-04-01
- Estimated Expiration
- 2045-01-03
AI Technical Summary
In the prior art, the backup method of IoT repeaters is complex, making it difficult to accurately judge the failure of the main repeater, resulting in data loss and network interruption, and it is impossible to ensure the continuity of data transmission and the stability and reliability of the IoT network.
By setting up several running backup repeaters for the main repeater, the signal strength value of the main repeater is monitored in real time, and whether data backup needs to be started, and the received data is marked as timing backup blocks according to the timing, and allocated to different running backup repeaters for backup storage. When a main repeater failure is detected, the priority is evaluated based on the performance data of the running backup repeater, and switch to the highest priority run backup repeater to continue data transmission.
It realizes accurate judgment and rapid response to the failure of the main repeater, ensures the continuity and stability of data transmission, and improves the reliability of the Internet of Things network.
Smart Images

Figure CN119420635B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of Internet of Things, and in particular to a backup method and system for an Internet of Things repeater. Background Art
[0002] The Internet of Things (IoT) technology has developed rapidly in recent years. It connects various smart devices through the network to achieve information exchange and collaborative work between devices. As an indispensable part of the IoT, the role of the repeater is to extend the network transmission distance and ensure that the signal can be transmitted without distortion during long distances. However, due to the complexity of the network environment and the working characteristics of the repeater itself, the repeater may fail, resulting in data loss or network interruption. Therefore, studying the backup method of the IoT repeater is of great significance to improving the stability and reliability of the network.
[0003] In the prior art, the backup method of the IoT repeater is often designed to be relatively complex. Some methods require the switching priority to be sorted according to the performance parameters of the backup repeater when the main repeater fails. The implementation of this method requires not only a high level of technology, but also a lot of time and resource investment. Moreover, in the prior art, it is impossible to accurately judge the failure of the main repeater, and it is difficult to solve the data loss when the main repeater fails. Since it takes a certain amount of time to confirm the failure of the main repeater, it is difficult for the prior art to perform distributed storage and complete backup of the data received during the main repeater failure period before the failure is confirmed, and resend the backup data after the failure is confirmed and switched to the backup repeater. Therefore, it is easy to cause network interruption and data loss, and it is impossible to guarantee the continuity of data transmission, and the stability and reliability of the IoT network.
[0004] To this end, the present invention provides a backup method and system for an Internet of Things repeater. Summary of the invention
[0005] In order to make up for the deficiencies of the prior art, at least one technical problem raised in the background technology is solved.
[0006] The technical solution adopted by the present invention to solve the technical problem is: a backup method for an Internet of Things repeater, comprising:
[0007] Set up several running backup repeaters for the main repeater;
[0008] Real-time monitoring and analysis of the signal strength value of the signal sent by the main repeater during the working period to determine whether data backup needs to be started. If necessary, a backup start signal is generated;
[0009] Based on the generated backup start signal, the data received by the main repeater is marked into a number of sequential backup blocks according to the time sequence, and the sequential backup blocks are allocated to different running backup repeaters for backup storage, and capacity data is obtained, wherein the capacity data includes the required capacity of the sequential backup blocks and the remaining capacity of the running backup repeaters, and the sequential backup blocks are fully backed up and stored based on the capacity data;
[0010] During the monitoring period, the signal strength value of the signal sent by the main repeater is analyzed for damage duration and damage degree, and the device fault value of the main repeater is obtained. Based on the device fault value, it is determined whether the main repeater is faulty. If it is faulty, a fault switching signal is generated;
[0011] Based on the generated fault switching signal, the performance data of all running backup repeaters are obtained, the performance data including the network delay of the running backup repeater, the maximum transmission rate supported by the running backup repeater and the maximum transmission distance supported by the running backup repeater. The performance data is processed to obtain a priority evaluation value, the priority of the running backup repeater is evaluated according to the priority evaluation value, and the running backup repeater with the highest priority replaces the faulty main repeater to become the new main repeater.
[0012] As a further solution of the present invention: the specific method of obtaining the time series backup blocks is:
[0013] Based on the generated backup start signal, in the backup time segment, the backup time segment is a time period for backup storage, and the data received by the main repeater is marked as a number of sequential backup blocks according to the time sequence. The data contained in the sequential backup block is the data received by the main repeater in a backup time segment, and the backup time segment is a time period for backup storage.
[0014] As a further solution of the present invention: the specific method of obtaining the backup startup signal is:
[0015] Real-time monitoring is used to obtain the signal strength value of the signal sent by the main repeater during the working period, and it is compared with the signal strength threshold, and a Flag value is obtained and its initial value is set to 0;
[0016] If the signal strength value is less than the signal strength threshold and the Flag value is 0, a backup start signal is generated and the Flag value is changed to 1.
[0017] As a further solution of the present invention: the specific method of implementing the complete backup storage of the time-series backup blocks is:
[0018] Allocate the time series backup blocks to different running backup repeaters for backup storage, obtain the required capacity of the time series backup block based on any time series backup block, and compare the required capacity with the remaining capacity in the allocated running backup repeater;
[0019] If the required capacity is greater than the remaining capacity of the allocated running backup repeater, it is determined that the running backup repeater cannot satisfy the backup storage of the sequential backup block, and an adjustment signal is generated;
[0020] If the required capacity is less than or equal to the remaining capacity of the allocated running backup repeater, it is determined that the running backup repeater can meet the backup storage of the time series backup blocks, and the time series backup blocks are stored in the running backup repeater;
[0021] Based on the generated adjustment signal, the operating backup repeater with the largest remaining capacity is obtained and compared with the required capacity of the unstored timing data;
[0022] If the required capacity is greater than the remaining capacity of the running backup repeater, it is determined that there is no running backup repeater that meets the required capacity of the sequential backup block, and a capacity shortage signal is generated;
[0023] If the required capacity is less than or equal to the remaining capacity of the running backup repeater, the time series backup blocks are stored in the running backup repeater;
[0024] Based on the generated capacity shortage signal, staff are arranged to manually store the time-series backup blocks.
[0025] As a further solution of the present invention: the specific method of generating the fault switching signal is:
[0026] Compare the obtained device fault value with the fault threshold, and determine whether to trigger the switching mechanism of the backup repeater according to the comparison result;
[0027] If the device fault value is greater than the fault threshold, it is determined that the main repeater has a fault and a fault switching signal is generated.
[0028] As a further solution of the present invention: the specific method of obtaining the device fault value is:
[0029] The obtained damage duration ratio KT and damage degree ratio KZ are processed and the equipment failure value TZ is obtained through the formula.
[0030] As a further solution of the present invention: the specific method of obtaining the damage duration ratio KT and the damage degree ratio KZ is:
[0031] Analyze the fault of the main repeater within the monitoring period. The monitoring period represents a time period for monitoring and judging whether the main repeater is faulty. The starting point of the monitoring period is the time node when the backup start signal is generated. The Flag value is set to 0 at the end of the monitoring period.
[0032] Obtain the signal strength value of the signal sent by the main repeater during the monitoring period, and compare it with the signal strength threshold;
[0033] If the signal strength value is less than the signal strength threshold, a transmission impairment signal is generated;
[0034] If the signal strength value is greater than or equal to the signal strength threshold, no processing is performed;
[0035] Based on the generated transmission impairment signal, the time period in which the transmission impairment signal is generated within the monitoring period is obtained, marked as the impairment period, the total duration of the impairment period is obtained, and the ratio is processed between the total duration of the monitoring period and the impairment duration ratio is obtained, marked as KT;
[0036] Obtain the signal strength value obtained at each time node that generates and sends a damage signal during the damage period, perform subtraction processing on it and the signal strength threshold and take the absolute value to obtain the absolute difference of damage, sum and average all the absolute differences of damage in the damage period to obtain the absolute mean of damage, and perform ratio processing on it and the signal strength threshold to obtain the damage degree ratio, which is marked as KZ.
[0037] As a further solution of the present invention: the specific method of making the running backup repeater with the highest priority replace the failed main repeater to become the new main repeater is:
[0038] Obtain the priority evaluation values of all running backup repeaters and compare them, select the running backup repeater with the highest priority evaluation value, switch the data transmission task from the main repeater to the running backup repeater with the highest priority evaluation value, stop data backup at this time, mark the main repeater as a faulty repeater, and make the running backup repeater with the highest priority evaluation value that starts running replace the faulty repeater as the new main repeater, and the new main repeater reads the time sequence backup blocks stored in the running backup repeater according to the time sequence and resends the backup data. After the resending is completed, the new main repeater continues the data transmission task and continues to monitor the main repeater in real time.
[0039] As a further solution of the present invention: the specific method of obtaining the priority evaluation value is:
[0040] Obtain the network delay of all running backup repeaters, where the repeater network delay refers to the transmission delay generated when the data signal passes through the repeater during network communication. Sum the network delays of all running backup repeaters to obtain the system network delay sum. Based on any running backup repeater, obtain its network delay and compare it with the system network delay sum to obtain the network delay ratio, which is marked as PA.
[0041] Similarly, the maximum transmission rates supported by all running backup repeaters are obtained, and the sum is processed to obtain the system transmission rate sum. Based on any running backup repeater, its maximum transmission rate is obtained and the ratio is processed with the system transmission rate sum to obtain the transmission rate ratio, which is marked as PB.
[0042] Get the maximum transmission distances supported by all running backup repeaters, sum them up to get the system transmission distance sum, and based on any running backup repeater, get its maximum transmission distance and compare it with the system transmission distance sum to get the transmission distance ratio, marked as PC;
[0043] Based on any running backup repeater, the obtained network delay ratio PA, transmission rate ratio PB and transmission distance ratio PC are processed, and the priority evaluation value KP is obtained through the formula.
[0044] A backup system for an Internet of Things repeater, comprising:
[0045] Device configuration module: mark the working repeater in IoT communication as the main repeater, and set several running backup repeaters for the main repeater;
[0046] Backup judgment module: real-time monitoring and analysis of the signal strength value of the signal sent by the main repeater during the working period to determine whether data backup needs to be started. If necessary, a backup start signal is generated;
[0047] Backup storage module: based on the generated backup start signal, the data received by the main repeater is marked into a number of sequential backup blocks according to the time sequence, the sequential backup blocks are allocated to different running backup repeaters for backup storage, and capacity data is obtained, wherein the capacity data includes the required capacity of the sequential backup blocks and the remaining capacity of the running backup repeaters, and the sequential backup blocks are completely backed up and stored based on the capacity data;
[0048] Fault judgment module: obtains fault monitoring data of the main repeater, wherein the fault monitoring data includes the signal strength value of the signal sent by the main repeater, analyzes the fault monitoring data, obtains the device fault value of the main repeater, judges whether the main repeater has a fault based on the device fault value, and generates a fault switching signal if the main repeater has a fault;
[0049] Failure switching module: Based on the generated fault switching signal, the performance data of all running backup repeaters are obtained, the performance data including the network delay of the running backup repeater, the maximum transmission rate supported by the running backup repeater and the maximum transmission distance supported by the running backup repeater are processed to obtain a priority evaluation value, the priority of the running backup repeater is evaluated according to the priority evaluation value, and the running backup repeater with the highest priority replaces the faulty main repeater to become the new main repeater.
[0050] The beneficial effects of the present invention are as follows:
[0051] 1. Mark the working repeater in the IoT communication as the main repeater, and set several running backup repeaters for the main repeater; conduct real-time monitoring and analysis on the signal strength value of the signal sent by the main repeater during the working period to determine whether it is necessary to start data backup. If necessary, generate a backup start signal and mark the data received by the main repeater into several time-series backup blocks according to the time sequence; distribute the time-series backup blocks to different running backup repeaters for backup storage, and obtain capacity data, wherein the capacity data includes the required capacity of the time-series backup blocks and the remaining capacity of the running backup repeaters, analyze the capacity data, realize the complete backup storage of the time-series backup blocks, and then realize the complete storage of the backup data;
[0052] 2. Obtain the fault monitoring data of the main repeater, wherein the fault monitoring data includes the signal strength value of the signal sent by the main repeater, analyze the fault monitoring data to obtain the equipment fault value of the main repeater, determine whether the main repeater has a fault based on the equipment fault value, and if so, generate a fault switching signal and trigger the switching mechanism of the backup repeater, obtain the performance data of all running backup repeaters, process the performance data to obtain a priority evaluation value, evaluate the priority of the running backup repeater according to the priority evaluation value, and switch the data transmission task from the main repeater to the running backup repeater with the highest priority; ensure that it can switch to the running backup repeater in time when a fault occurs, to ensure the continuity and stability of data transmission. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] The present invention will be further described below in conjunction with the accompanying drawings.
[0054] Figure 1 It is a flowchart of the steps of a backup method of an Internet of Things repeater according to an embodiment of the present invention;
[0055] Figure 2 It is a flowchart of a backup system of an Internet of Things repeater described in Example 3 of the present invention. DETAILED DESCRIPTION
[0056] In order to make the technical means, creative features, objectives and effects achieved by the present invention easy to understand, the present invention is further explained below in conjunction with specific implementation methods.
[0057] Example 1
[0058] like Figure 1 As shown, a backup method for an Internet of Things repeater according to an embodiment of the present invention includes:
[0059] Step 1: Mark the working repeater in IoT communication as the main repeater, and set several running backup repeaters for the main repeater;
[0060] Step 2: Real-time monitoring and analysis of the signal strength value of the signal sent by the main repeater during the working period to determine whether data backup needs to be started. If necessary, a backup start signal is generated and the data received by the main repeater is marked as a number of time-series backup blocks according to the time sequence;
[0061] It should be noted that the reason for selecting the signal strength value of the main repeater's transmitted signal is that the transmitted signal has been amplified and regenerated by the repeater's received signal, which can better reflect the operation of the main repeater;
[0062] Specifically, the signal strength value of the signal sent by the main repeater during the working period is monitored in real time, and compared with the signal strength threshold, a Flag value is obtained and its initial value is set to 0;
[0063] If the signal strength value is less than the signal strength threshold and the Flag value is 0, a backup start signal is generated and the Flag value is changed to 1;
[0064] It should be noted that the purpose of setting the Flag value is to mark the starting point of the backup.
[0065] Based on the generated backup start signal, in the backup time segment, the data received by the main repeater is marked into a number of time-series backup blocks according to the time sequence, and the data contained in the time-series backup blocks are the data received by the main repeater in a backup time segment, and the backup time segment is a time period for backup storage;
[0066] Step 3: Allocate the time series backup blocks to different running backup repeaters for backup storage, obtain capacity data, where the capacity data includes the required capacity of the time series backup blocks and the remaining capacity of the running backup repeaters, and perform complete backup storage of the time series backup blocks based on the analysis of the capacity data;
[0067] Specifically, the time series backup blocks are allocated to different running backup repeaters for backup storage, based on any time series backup block, the required capacity of the time series backup block is obtained, and the required capacity is compared with the remaining capacity in the allocated running backup repeater;
[0068] If the required capacity is greater than the remaining capacity of the allocated running backup repeater, it is determined that the running backup repeater cannot satisfy the backup storage of the sequential backup block, and an adjustment signal is generated;
[0069] If the required capacity is less than or equal to the remaining capacity of the allocated running backup repeater, it is determined that the running backup repeater can meet the backup storage of the time series backup blocks, and the time series backup blocks are stored in the running backup repeater;
[0070] Based on the generated adjustment signal, the operating backup repeater with the largest remaining capacity is obtained and compared with the required capacity of the unstored timing data;
[0071] If the required capacity is greater than the remaining capacity of the running backup repeater, it is determined that there is no running backup repeater that meets the required capacity of the sequential backup block, and a capacity shortage signal is generated;
[0072] If the required capacity is less than or equal to the remaining capacity of the running backup repeater, the time series backup blocks are stored in the running backup repeater;
[0073] Based on the generated capacity shortage signal, arrange staff to manually store the time-series backup blocks to prevent data loss and achieve complete storage of backup data;
[0074] The technical solution of the embodiment of the present invention is: marking the working repeater in the Internet of Things communication as the main repeater, and setting a number of running backup repeaters for the main repeater; real-time monitoring and analysis of the signal strength value of the signal sent by the main repeater during the working period, to determine whether it is necessary to start data backup, if necessary, generate a backup start signal and mark the data received by the main repeater into a number of timing backup blocks according to the timing; distribute the timing backup blocks to different running backup repeaters for backup storage, and obtain capacity data, wherein the capacity data includes the required capacity of the timing backup blocks and the remaining capacity of the running backup repeaters, analyze the capacity data, realize the complete backup storage of the timing backup blocks, and thus ensure the complete storage of the backup data.
[0075] Example 2
[0076] like Figure 1 As shown, based on Example 1, a backup method for an Internet of Things repeater according to an embodiment of the present invention includes:
[0077] Step 4: Obtaining fault monitoring data of the main repeater, wherein the fault monitoring data includes the signal strength value of the signal sent by the main repeater, analyzing the fault monitoring data to obtain the device fault value of the main repeater, and judging whether the main repeater is faulty based on the device fault value, and if so, generating a fault switching signal;
[0078] Specifically, the fault condition of the main repeater is analyzed within the monitoring period, wherein the monitoring period represents a time period for monitoring and judging whether the main repeater is faulty, the starting point of the monitoring period is the time node when the backup start signal is generated, and the Flag value is set to 0 at the end of the monitoring period;
[0079] Obtain the signal strength value of the signal sent by the main repeater during the monitoring period, and compare it with the signal strength threshold;
[0080] If the signal strength value is less than the signal strength threshold, a transmission impairment signal is generated;
[0081] If the signal strength value is greater than or equal to the signal strength threshold, no processing is performed;
[0082] Based on the generated transmission impairment signal, the time period in which the transmission impairment signal is generated within the monitoring period is obtained, marked as the impairment period, the total duration of the impairment period is obtained, and the ratio is processed between the total duration of the monitoring period and the impairment duration ratio is obtained, marked as KT;
[0083] Obtain the signal strength value obtained at each time node where the damage signal is generated and sent during the damage period, perform subtraction processing on it and the signal strength threshold and take the absolute value to obtain the absolute damage difference, sum and average all the absolute damage differences in the damage period to obtain the absolute damage mean, and perform ratio processing on it and the signal strength threshold to obtain the damage degree ratio, which is marked as KZ;
[0084] The obtained damage duration ratio KT and damage degree ratio KZ are processed and the formula is used The equipment fault value TZ is obtained, where s1 and s2 are both preset proportional coefficients, s1=2.137, s2=1.769;
[0085] It should be noted that the meaning of the equipment fault value TZ is to judge the fault condition of the main repeater by jointly analyzing the damage duration and damage degree of the signal sent by the main repeater;
[0086] Compare the obtained device fault value with the fault threshold, and determine whether to trigger the switching mechanism of the backup repeater according to the comparison result;
[0087] If the device fault value is greater than the fault threshold, the main repeater is judged to be faulty and a fault switching signal is generated;
[0088] If the device fault value is less than or equal to the fault threshold, the main repeater is judged to be operating normally and a normal signal is generated;
[0089] Based on the generated normal signal, stop data backup and clear all sequential backup blocks in the running backup repeater, while maintaining real-time monitoring of the main repeater;
[0090] Step 5: Based on the generated fault switching signal, the performance data of all running backup repeaters are obtained, the performance data including the network delay of the running backup repeater, the maximum transmission rate supported by the running backup repeater, and the maximum transmission distance supported by the running backup repeater are obtained, the performance data is processed to obtain a priority evaluation value, the priority of the running backup repeater is evaluated according to the priority evaluation value, and the data transmission task is switched from the main repeater to the running backup repeater with the highest priority, so that it replaces the failed main repeater and becomes the new main repeater;
[0091] Specifically, based on the generated fault switching signal, a switching mechanism of the backup repeater is triggered;
[0092] Obtain the network delay of all running backup repeaters, where the repeater network delay refers to the transmission delay generated when the data signal passes through the repeater during network communication. Sum the network delays of all running backup repeaters to obtain the system network delay sum. Based on any running backup repeater, obtain its network delay and compare it with the system network delay sum to obtain the network delay ratio, which is marked as PA.
[0093] Similarly, the maximum transmission rates supported by all running backup repeaters are obtained, and the sum is processed to obtain the system transmission rate sum. Based on any running backup repeater, its maximum transmission rate is obtained and the ratio is processed with the system transmission rate sum to obtain the transmission rate ratio, which is marked as PB.
[0094] Get the maximum transmission distances supported by all running backup repeaters, sum them up to get the system transmission distance sum, and based on any running backup repeater, get its maximum transmission distance and compare it with the system transmission distance sum to get the transmission distance ratio, marked as PC;
[0095] Based on any running backup repeater, the obtained network delay ratio PA, transmission rate ratio PB and transmission distance ratio PC are processed and the formula is used. The priority evaluation value KP is obtained, wherein a1, a2 and a3 are all preset proportional coefficients, a1=3.123, a2=4.012, a3=1.791;
[0096] It should be noted that the purpose of the priority evaluation value KP is to evaluate the performance of the running backup repeater and determine the switching priority of the running backup repeater based on the performance by jointly analyzing the network delay, maximum transmission rate and maximum transmission distance of the running backup repeater;
[0097] It should be noted that the network delay of the running backup repeater can measure the real-time performance of data transmission, the maximum transmission rate supported by the running backup repeater can indicate the upper limit of the repeater's ability to process data, and the maximum transmission distance supported by the running backup repeater determines the network range that the repeater can cover. Therefore, the performance of the running backup repeater can be evaluated by analyzing the three.
[0098] Obtain the priority evaluation values of all running backup repeaters and compare them, select the running backup repeater with the highest priority evaluation value, switch the data transmission task from the main repeater to the running backup repeater with the highest priority evaluation value, stop data backup at this time, mark the main repeater as a faulty repeater, and make the running backup repeater with the highest priority evaluation value that starts running replace the faulty repeater as the new main repeater, and the new main repeater reads the timing backup blocks stored in the running backup repeater according to the timing and resends the backup data. After the resending is completed, the new main repeater continues the data transmission task and continues to monitor the main repeater in real time according to the above steps, and at the same time, troubleshoots and repairs the faulty repeater;
[0099] It should be noted that the purpose of the above steps is to ensure that when a fault occurs, the optimal backup repeater can be switched to continue data transmission in a timely manner to ensure the continuity and stability of data transmission. In addition, the process of troubleshooting and repairing can be flexibly handled according to actual conditions, including but not limited to hardware replacement, software upgrade and other measures;
[0100] The technical solution of the embodiment of the present invention is: obtaining fault monitoring data of the main repeater, wherein the fault monitoring data includes the signal strength value of the signal sent by the main repeater, analyzing the fault monitoring data to obtain the equipment fault value of the main repeater, judging whether the main repeater has a fault based on the equipment fault value, and if so, generating a fault switching signal and triggering the switching mechanism of the backup repeater, obtaining the performance data of all running backup repeaters, processing the performance data to obtain a priority evaluation value, evaluating the priority of the running backup repeater according to the priority evaluation value, and switching the data transmission task from the main repeater to the running backup repeater with the highest priority; ensuring that it can switch to the running backup repeater in time when a fault occurs, to ensure the continuity and stability of data transmission.
[0101] Example 3
[0102] like Figure 2 As shown, a backup system for an Internet of Things repeater according to an embodiment of the present invention includes:
[0103] Device configuration module: mark the working repeater in IoT communication as the main repeater, and set several running backup repeaters for the main repeater;
[0104] Backup judgment module: real-time monitoring and analysis of the signal strength value of the signal sent by the main repeater during the working period to determine whether data backup needs to be started. If necessary, a backup start signal is generated;
[0105] Backup storage module: based on the generated backup start signal, the data received by the main repeater is marked into a number of sequential backup blocks according to the time sequence, the sequential backup blocks are allocated to different running backup repeaters for backup storage, and capacity data is obtained, wherein the capacity data includes the required capacity of the sequential backup blocks and the remaining capacity of the running backup repeaters, and the sequential backup blocks are completely backed up and stored based on the capacity data;
[0106] Fault judgment module: obtains fault monitoring data of the main repeater, wherein the fault monitoring data includes the signal strength value of the signal sent by the main repeater, analyzes the fault monitoring data, obtains the device fault value of the main repeater, judges whether the main repeater has a fault based on the device fault value, and generates a fault switching signal if the main repeater has a fault;
[0107] Failure switching module: Based on the generated fault switching signal, the performance data of all running backup repeaters are obtained, the performance data including the network delay of the running backup repeater, the maximum transmission rate supported by the running backup repeater and the maximum transmission distance supported by the running backup repeater are processed to obtain a priority evaluation value, the priority of the running backup repeater is evaluated according to the priority evaluation value, and the running backup repeater with the highest priority replaces the faulty main repeater to become the new main repeater.
[0108] The above shows and describes the basic principles, main features and advantages of the present invention. It should be understood by those skilled in the art that the present invention is not limited to the above embodiments. The above embodiments and descriptions are only for explaining the principles of the present invention. Without departing from the spirit and scope of the present invention, the present invention may have various changes and improvements, which fall within the scope of the present invention. The scope of protection of the present invention is defined by the attached claims and their equivalents.
Claims
1. A backup method for an Internet of Things repeater, characterized in that: include: Set up several running backup repeaters for the main repeater; Real-time monitoring and analysis of the signal strength value of the signal sent by the main repeater during the working period to determine whether data backup needs to be started. If necessary, a backup start signal is generated; Based on the generated backup start signal, the data received by the main repeater is marked into a number of sequential backup blocks according to the time sequence, and the sequential backup blocks are allocated to different running backup repeaters for backup storage, and capacity data is obtained, wherein the capacity data includes the required capacity of the sequential backup blocks and the remaining capacity of the running backup repeaters, and the sequential backup blocks are fully backed up and stored based on the capacity data; During the monitoring period, the signal strength value of the signal sent by the main repeater is analyzed for damage duration and damage degree, and the device fault value of the main repeater is obtained. Based on the device fault value, it is determined whether the main repeater is faulty. If it is faulty, a fault switching signal is generated; Based on the generated fault switching signal, the performance data of all running backup repeaters are obtained, the performance data including the network delay of the running backup repeater, the maximum transmission rate supported by the running backup repeater and the maximum transmission distance supported by the running backup repeater. The performance data is processed to obtain a priority evaluation value, the priority of the running backup repeater is evaluated according to the priority evaluation value, and the running backup repeater with the highest priority replaces the faulty main repeater to become the new main repeater.
2. The backup method of an Internet of Things repeater according to claim 1, characterized in that: The specific method of obtaining the time series backup blocks is as follows: Based on the generated backup start signal, in the backup time segment, the data received by the main repeater is marked as several sequential backup blocks according to the time sequence. The data contained in the sequential backup block is the data received by the main repeater in a backup time segment. The backup time segment is a time period for backup storage.
3. The backup method of an Internet of Things repeater according to claim 2, characterized in that: The specific method of obtaining the backup startup signal is: Real-time monitoring is used to obtain the signal strength value of the signal sent by the main repeater during the working period, and it is compared with the signal strength threshold, and a Flag value is obtained and its initial value is set to 0; If the signal strength value is less than the signal strength threshold and the Flag value is 0, a backup start signal is generated and the Flag value is changed to 1.
4. The backup method of an Internet of Things repeater according to claim 1, characterized in that: The specific method of performing complete backup storage on the time series backup blocks is: Allocate the time series backup blocks to different running backup repeaters for backup storage, obtain the required capacity of the time series backup block based on any time series backup block, and compare the required capacity with the remaining capacity in the allocated running backup repeater; If the required capacity is greater than the remaining capacity of the allocated running backup repeater, it is determined that the running backup repeater cannot satisfy the backup storage of the sequential backup block, and an adjustment signal is generated; If the required capacity is less than or equal to the remaining capacity of the allocated running backup repeater, it is determined that the running backup repeater can meet the backup storage of the time series backup blocks, and the time series backup blocks are stored in the running backup repeater; Based on the generated adjustment signal, the operating backup repeater with the largest remaining capacity is obtained and compared with the required capacity of the unstored timing data; If the required capacity is greater than the remaining capacity of the running backup repeater, it is determined that there is no running backup repeater that meets the required capacity of the sequential backup block, and a capacity shortage signal is generated; If the required capacity is less than or equal to the remaining capacity of the running backup repeater, the time series backup blocks are stored in the running backup repeater; Based on the generated capacity shortage signal, staff are arranged to manually store the time-series backup blocks.
5. The backup method of an Internet of Things repeater according to claim 1, characterized in that: The specific method of generating the fault switching signal is: Compare the obtained device fault value with the fault threshold, and determine whether to trigger the switching mechanism of the backup repeater according to the comparison result; If the device fault value is greater than the fault threshold, it is determined that the main repeater has a fault and a fault switching signal is generated.
6. The backup method of an Internet of Things repeater according to claim 5, characterized in that: The specific method for obtaining the device fault value is as follows: The obtained damage duration ratio KT and damage degree ratio KZ are processed and the equipment failure value TZ is obtained through the formula.
7. The backup method of an Internet of Things repeater according to claim 6, characterized in that: The specific method of obtaining the damage duration ratio KT and the damage degree ratio KZ is as follows: Analyze the fault of the main repeater within the monitoring period. The monitoring period represents a time period for monitoring and judging whether the main repeater is faulty. The starting point of the monitoring period is the time node when the backup start signal is generated. The Flag value is set to 0 at the end of the monitoring period. Obtain the signal strength value of the signal sent by the main repeater during the monitoring period, and compare it with the signal strength threshold; If the signal strength value is less than the signal strength threshold, a transmission impairment signal is generated; If the signal strength value is greater than or equal to the signal strength threshold, no processing is performed; Based on the generated transmission impairment signal, the time period in which the transmission impairment signal is generated within the monitoring period is obtained, marked as the impairment period, the total duration of the impairment period is obtained, and the ratio is processed between the total duration of the monitoring period and the impairment duration ratio is obtained, marked as KT; Obtain the signal strength value obtained at each time node that generates and sends a damage signal during the damage period, perform subtraction processing on it and the signal strength threshold and take the absolute value to obtain the absolute difference of damage, sum and average all the absolute differences of damage in the damage period to obtain the absolute mean of damage, and perform ratio processing on it and the signal strength threshold to obtain the damage degree ratio, which is marked as KZ.
8. The backup method of an Internet of Things repeater according to claim 1, characterized in that: The specific method of making the running backup repeater with the highest priority replace the failed main repeater to become the new main repeater is: Obtain the priority evaluation values of all running backup repeaters and compare them, select the running backup repeater with the highest priority evaluation value, switch the data transmission task from the main repeater to the running backup repeater with the highest priority evaluation value, stop data backup at this time, mark the main repeater as a faulty repeater, and make the running backup repeater with the highest priority evaluation value that starts running replace the faulty repeater as the new main repeater, and the new main repeater reads the time sequence backup blocks stored in the running backup repeater according to the time sequence and resends the backup data. After the resending is completed, the new main repeater continues the data transmission task and continues to monitor the main repeater in real time.
9. The backup method of an Internet of Things repeater according to claim 8, characterized in that: The specific method of obtaining the priority evaluation value is: Obtain the network delay of all running backup repeaters, where the repeater network delay refers to the transmission delay generated when the data signal passes through the repeater during network communication. Sum the network delays of all running backup repeaters to obtain the system network delay sum. Based on any running backup repeater, obtain its network delay and compare it with the system network delay sum to obtain the network delay ratio, which is marked as PA. Similarly, the maximum transmission rates supported by all running backup repeaters are obtained, and the sum is processed to obtain the system transmission rate sum. Based on any running backup repeater, its maximum transmission rate is obtained and the ratio is processed with the system transmission rate sum to obtain the transmission rate ratio, which is marked as PB. Get the maximum transmission distances supported by all running backup repeaters, sum them up to get the system transmission distance sum, and based on any running backup repeater, get its maximum transmission distance and compare it with the system transmission distance sum to get the transmission distance ratio, marked as PC; Based on any running backup repeater, the obtained network delay ratio PA, transmission rate ratio PB and transmission distance ratio PC are processed, and the priority evaluation value KP is obtained through the formula.
10. A backup system for an Internet of Things repeater, the system being used to implement the backup method according to any one of claims 1 to 9, characterized in that: include: Device configuration module: mark the working repeater in IoT communication as the main repeater, and set several running backup repeaters for the main repeater; Backup judgment module: real-time monitoring and analysis of the signal strength value of the signal sent by the main repeater during the working period to determine whether data backup needs to be started. If necessary, a backup start signal is generated; Backup storage module: based on the generated backup start signal, the data received by the main repeater is marked into a number of sequential backup blocks according to the time sequence, the sequential backup blocks are allocated to different running backup repeaters for backup storage, and capacity data is obtained, wherein the capacity data includes the required capacity of the sequential backup blocks and the remaining capacity of the running backup repeaters, and the sequential backup blocks are completely backed up and stored based on the capacity data; Fault judgment module: obtains fault monitoring data of the main repeater, wherein the fault monitoring data includes the signal strength value of the signal sent by the main repeater, analyzes the fault monitoring data, obtains the device fault value of the main repeater, judges whether the main repeater has a fault based on the device fault value, and generates a fault switching signal if the main repeater has a fault; Failure switching module: Based on the generated fault switching signal, the performance data of all running backup repeaters are obtained, the performance data including the network delay of the running backup repeater, the maximum transmission rate supported by the running backup repeater and the maximum transmission distance supported by the running backup repeater are processed to obtain a priority evaluation value, the priority of the running backup repeater is evaluated according to the priority evaluation value, and the running backup repeater with the highest priority replaces the faulty main repeater to become the new main repeater.
Citation Information
Patent Citations
Backup method and system for Internet of Things (IoT) repeater
CN107465537A
Dynamic data backup method and system
CN117076205A