Remote wireless debugging method and system based on relay server
The method dynamically adjusts relay server connection modes and troubleshooting intensity based on terminal device states, addressing inefficiencies in existing systems by optimizing resource allocation and shortening fault resolution times.
Patent Information
- Application Number
- CN202510729022.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-03
- Publication Date
- 2025-07-15
AI Technical Summary
The existing remote wireless debugging solution cannot adjust the debugging strategy in time when facing complex abnormal situations, resulting in an extended troubleshooting time and affecting production efficiency.
By collecting the operating parameters of the terminal device in real time, distinguishing the device status as abnormal, to be optimized and normal, dynamically configure the connection mode and debugging strength of the relay server, using transmission obstruction factors and relay debugging decision factors to calculate the debugging strategy, dynamically adjust the debugging stay interval and port switching, and generate a remote wireless debugging feature set.
Reduces resource waste, shortens troubleshooting time, improves the stability and efficiency of equipment operation, adapts to different network environments and terminal equipment, and saves hardware investment and network bandwidth costs.
Smart Images

Figure CN120321685A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of wireless debugging, and more specifically, it relates to a remote wireless debugging method and system based on a relay server. Background Art
[0002] In today's digital and intelligent era, the number of terminal devices has exploded, covering many fields such as industrial control, smart home, and intelligent transportation. During operation, these terminal devices may encounter various operation problems due to multiple factors such as hardware aging, software vulnerabilities, and environmental changes, and need to be debugged to ensure their normal and stable operation.
[0003] As a key component for realizing remote wireless debugging, the relay server has been applied to a certain extent in the prior art. It mainly undertakes the functions of data forwarding and communication relay, and can establish a connection between the terminal device and the debugging end to break through network limitations and realize cross-regional debugging operations.
[0004] Some remote wireless debugging solutions use relay servers to achieve remote monitoring and simple debugging of on-site devices. However, these solutions often focus on the connectivity of the devices and lack in-depth research and effective measures on how to dynamically optimize the connection mode and debugging parameters of the relay server according to the specific operating status of the devices. For example, in some industrial automation production lines, although the relay server can achieve remote connection to the devices, it is unable to adjust the debugging strategy in a timely manner when the devices encounter complex abnormal situations, resulting in an extended troubleshooting time and thus affecting production efficiency. Summary of the Invention
[0005] Aiming at the deficiencies of the prior art, the purpose of the present invention is to provide a remote wireless debugging method and system based on a relay server.
[0006] To achieve the above purpose, the present invention provides the following technical solutions:
[0007] A remote wireless debugging method based on a relay server, comprising the following steps:
[0008] Collect the operation parameters of each terminal device in real time, and obtain the operation status set of the terminal device after judging the status of the terminal device according to the operation parameters; wherein, the operation status set includes abnormal status, to-be-optimized status, and normal status;
[0009] Set the connection mode of the relay server according to the operation status set of the terminal device;
[0010] Process and analyze the data status between the terminal device with abnormal operation conditions and the relay server in the set connection mode, and then set the debugging intensity of the relay server;
[0011] Collect the data coverage width in the direction of the relay server for the abnormal status and the parameter change trend of the terminal device. Set the debugging pause interval period for the relay server to debug the terminal device in the abnormal status according to the data coverage width and the parameter change trend, and collect the corresponding relay debugging intensity change information set during the debugging pause interval period for the abnormal status in real time; wherein, the relay server debugging intensity and the relay debugging intensity change information set are combined into a first relay debugging feature set;
[0012] Process and analyze the data status between the terminal device in the state to be optimized and the relay server in the set connection mode to obtain a second relay debugging feature set; wherein, the first relay debugging feature set and the second relay debugging feature set are combined to form the remote wireless debugging result.
[0013] Preferably, after processing and analyzing the data status between the terminal device in the abnormal operating condition and the relay server in the set connection mode, set the relay server debugging intensity, which specifically includes the following steps:
[0014] Process the data transmission rate and the transmission angle formed between the data transmission direction of the terminal device in the abnormal operating condition and the connection port of the relay server in the set connection mode to obtain a transmission obstacle factor;
[0015] Statistically obtain a relay debugging decision factor for the data space capacity, abnormal parameters of the terminal device in the abnormal status, and the signal transmission distance between the relay servers in the set connection mode;
[0016] Set the relay server debugging intensity according to the relay debugging decision factor and the transmission obstacle factor.
[0017] Preferably, collect the operating parameters of each terminal device in real time, and obtain the operating state set of the terminal device after judging the state of the terminal device according to the operating parameters; wherein, the operating state set includes the abnormal state, the state to be optimized, and the normal state, which specifically includes the following steps:
[0018] Collect the operating parameters of each terminal device in real time, and extract the abnormal parameters and normal parameters from the operating parameters;
[0019] Extract the normal state in which the terminal device operates normally according to the normal parameters;
[0020] Compare the abnormal parameters with the preset abnormal threshold; mark the operating state of the terminal device corresponding to the abnormal parameters being greater than or equal to the preset abnormal threshold as the abnormal state, and mark the operating state of the terminal device corresponding to the abnormal parameters being less than the preset abnormal threshold as the state to be optimized.
[0021] Preferably, a transmission obstacle factor is obtained by processing the data transmission rate and the transmission angle formed between the data transmission direction of the abnormal operation condition terminal device and the connection port of the relay server in the set connection mode, and the specific steps are as follows:
[0022] Extract the data flow information of the corresponding relay server according to the abnormal operation condition terminal device;
[0023] Connect the data flow information with the relay server through the transmission path to obtain the data transmission information; wherein, the data transmission information includes the data transmission rate and the data transmission direction;
[0024] Set the connection port of the relay server according to the connection mode between the abnormal state terminal device and the relay server;
[0025] Calculate the transmission angle formed between the connection port of the relay server and the data transmission direction to obtain the transmission angle value;
[0026] Wherein, the data transmission rate and the transmission angle value are combined into a transmission obstacle factor.
[0027] Preferably, a relay debugging decision factor is obtained by statistically analyzing the data space capacity occupied by the abnormal state terminal device, the abnormal parameters, and the signal transmission distance between the relay servers in the set connection mode, and the specific steps are as follows:
[0028] Detect the signal transmission distance between the relay server and the abnormal state terminal device under the condition of the relay server connection port; collect the data space capacity of the abnormal state terminal device;
[0029] Combine the abnormal parameters, the data space capacity, and the signal transmission distance into a relay debugging decision factor.
[0030] Preferably, collect the data coverage width in the direction of the abnormal state towards the relay server and the parameter change trend of the terminal device, set the debugging stay interval period of the relay server for debugging the abnormal state terminal device according to the data coverage width and the parameter change trend, and collect the corresponding relay debugging intensity change information set of the abnormal state during the debugging stay interval period in real time; wherein, the relay server debugging intensity and the relay debugging intensity change information set are combined into a first relay debugging feature set, and the specific steps are as follows:
[0031] Collect the data coverage width in the direction of the abnormal state towards the relay server and the parameter change trend of the terminal device;
[0032] Set the stay period of the relay server for debugging in the abnormal state in real time according to the parameter change trend and the data coverage width, and divide the stay period into multiple equal time intervals to obtain the debugging stay interval period;
[0033] Set the connection port switching value of the relay server for each interval period in the debugging pause interval period in real time according to the debugging pause interval period, and obtain a port switching set;
[0034] Calculate the switching rate between every two adjacent connection ports in the port switching set to obtain a first relay port switching rate data set;
[0035] Perform processing and analysis on the relay server and the abnormal state terminal device according to the first relay port switching rate data set to obtain a variable relay debugging decision factor;
[0036] Set the variable debugging intensity of the relay server under the condition of the first relay port switching rate data set of the relay server according to the variable relay debugging decision factor set and the variable transmission obstacle factor set, and obtain a relay debugging intensity variable information set;
[0037] Among them, combine the relay server debugging intensity and the relay debugging intensity variable information set into a first relay debugging feature set.
[0038] Preferably, perform processing and analysis on the relay server and the abnormal state terminal device according to the first relay port switching rate data set to obtain a variable relay debugging decision factor, which specifically includes the following steps:
[0039] Calculate the signal transmission distance between the relay server and the abnormal state terminal device under the condition of each connection port in the port switching set according to the first relay port switching rate data set to obtain a first signal distance variable data set;
[0040] Extract the changed abnormal parameters from the parameter change trend in real time according to the debugging pause interval period to obtain a parameter change data set;
[0041] Count the transmission obstacle factors corresponding to each pause interval period in the debugging pause interval period according to the transmission obstacle factors to obtain a variable transmission obstacle factor set;
[0042] Among them, combine the data space capacity, the first signal distance variable data set and the parameter change data set into a variable relay debugging decision factor.
[0043] Preferably, perform processing and analysis on the data status between the terminal device in the state to be optimized and the relay server in the set connection mode to obtain a second relay debugging feature set; among them, the first relay debugging feature set and the second relay debugging feature set are combined to form a remote wireless debugging result, which specifically includes the following steps:
[0044] Extract the critical data link of the terminal device in the state to be optimized and mark it as the first critical connection port;
[0045] Collect the corresponding first critical relay debugging intensity according to the first critical connection port;
[0046] Statistically analyze the second relay port switching rate dataset and the second relay debugging feature set corresponding to the terminal device in the to-be-optimized state according to the first critical connection port and the first critical relay debugging intensity;
[0047] Combine the first relay debugging feature set and the second relay debugging feature set into a remote wireless debugging result; wherein, the remote wireless debugging result refers to the control processing of the relay server for the remote wireless debugging mode of terminal devices in different states.
[0048] A remote wireless debugging system based on a relay server, comprising:
[0049] An acquisition and judgment module: Real-time acquire the operation parameters of each terminal device, and obtain the operation state set of the terminal device after judging the state of the terminal device according to the operation parameters; wherein, the operation state set includes an abnormal state, a to-be-optimized state, and a normal state;
[0050] A setting module: Set the connection mode of the relay server according to the operation state set of the terminal device;
[0051] A processing and analysis module: Process and analyze the data condition between the terminal device with abnormal operation conditions and the relay server in the set connection mode, and then set the relay server debugging intensity;
[0052] A processing and setting module: Acquire the data coverage width in the direction of the relay server for the abnormal state and the parameter change trend of the terminal device, set the debugging stay interval period of the relay server for debugging the terminal device in the abnormal state according to the data coverage width and the parameter change trend, and real-time acquire the corresponding relay debugging intensity change information set during the debugging stay interval period for the abnormal state; wherein, the relay server debugging intensity and the relay debugging intensity change information set are combined into a first relay debugging feature set;
[0053] A debugging module: Process and analyze the data condition between the terminal device in the to-be-optimized state and the relay server in the set connection mode to obtain a second relay debugging feature set; wherein, the first relay debugging feature set and the second relay debugging feature set are combined to form a remote wireless debugging result.
[0054] Compared with the prior art, the present invention has the following beneficial effects:
[0055] The present invention classifies the states of terminal devices into abnormal, to-be-optimized, and normal. By collecting operation parameters in real time to judge the device state, it avoids wasting resources on normal devices and shortens the troubleshooting time. For devices in the abnormal state, the debugging intensity is determined based on the transmission obstruction factor (comprehensive transmission rate and transmission angle) and the relay debugging decision factor (considering data space capacity, abnormal parameters, signal transmission distance), and the connection mode of the relay server is configured according to the device state. Devices in the abnormal state adopt a high-speed connection mode to ensure data transmission, and devices in the to-be-optimized state use a relatively low-power consumption mode. In this way, over-allocation of resources can be avoided, the resource occupancy of the relay server can be reduced, and the hardware investment and network bandwidth costs can be saved. The data coverage width and parameter change trend of devices in the abnormal state are collected to dynamically adjust the debugging stay interval period, port switching, etc. By dynamically adjusting, the resource investment can be timely adjusted when the device state changes, avoiding resource waste caused by continuous high-intensity debugging. The architecture based on the relay server can adapt to different network environments and various types of terminal devices. This technical solution can be integrated with existing systems and technologies and is convenient for expansion. The first relay debugging feature set (for terminal devices in the abnormal state) and the second relay debugging feature set (for terminal devices in the to-be-optimized state) are combined into a remote wireless debugging result. The relay server performs corresponding control processing of the remote wireless debugging mode for terminal devices in different states according to this comprehensive result, realizing effective debugging and management of the entire terminal device group and ensuring the stable and efficient operation of the devices. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] Figure 1 FIG. is a schematic diagram of the steps of a remote wireless debugging method based on a relay server proposed by the present invention;
[0057] Figure 2 FIG. is a schematic diagram of the modules of a remote wireless debugging system based on a relay server proposed by the present invention;
[0058] Figure 3 FIG. is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention;
[0059] Figure 4 FIG. is a schematic diagram of the data transmission direction and the connection ports of the relay server in a remote wireless debugging system based on a relay server proposed by the present invention.
[0060] 610. Processor; 620. Communication interface; 630. Memory; 640. Communication bus. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0061] Refer to Figures 1 to 4 .
[0062] Embodiment 1 further describes a remote wireless debugging method based on a relay server proposed by the present invention.
[0063] A remote wireless debugging method based on a relay server, the method comprising the following steps:
[0064] Collect the operation parameters of each terminal device in real time, and obtain the operation state set of the terminal device after judging the state of the terminal device according to the operation parameters; wherein, the operation state set includes an abnormal state, an optimization-needed state, and a normal state;
[0065] Set the connection mode of the relay server according to the operation state set of the terminal device;
[0066] Process and analyze the data status between the terminal device with abnormal operation conditions and the relay server in the set connection mode, and then set the debugging intensity of the relay server;
[0067] Collect the data coverage width in the direction of the relay server for the abnormal state and the parameter change trend of the terminal device, set the debugging stay interval period of the relay server for debugging the terminal device in the abnormal state according to the data coverage width and the parameter change trend, and collect the corresponding relay debugging intensity change information set in real time during the debugging stay interval period; wherein, the relay server debugging intensity and the relay debugging intensity change information set are combined into a first relay debugging feature set;
[0068] Process and analyze the data status between the terminal device in the optimization-needed state and the relay server in the set connection mode to obtain a second relay debugging feature set; wherein, the first relay debugging feature set and the second relay debugging feature set are combined to form the remote wireless debugging result.
[0069] In this application, a cross-network connection between the terminal device and the debugging end is established through the relay server as a data transfer hub, realizing real-time monitoring of the operation state of the terminal device, dynamic generation of debugging strategies, and execution of remote debugging instructions. Collect the operation parameters of the terminal device in real time, distinguish the device state (abnormal / optimization-needed / normal), dynamically configure the connection mode and debugging intensity of the relay server according to the device state, calculate the debugging parameters through transmission characteristics (such as rate, angle, signal distance), and generate a feature set to drive the relay server to execute targeted debugging strategies.
[0070] By collecting the operation parameters of the terminal device in real time (such as voltage, temperature, data transmission rate, error log, etc.), extracting the abnormal parameters (indicators deviating from the normal threshold) and normal parameters therein, and classifying the state based on a preset threshold into an abnormal state and an optimization-needed state.
[0071] The comparison between the abnormal parameter and the preset threshold adopts a threshold discrimination method. For example: if the CPU utilization rate of the device > 85% (preset threshold), it is marked as an abnormal state; if it is between 70% - 85%, it is marked as an optimization-needed state.
[0072] The relay server serves as a communication bridge between the development device and the target device. Its connection mode (such as transmission protocol, bandwidth allocation, port configuration) needs to be dynamically adjusted according to the status of the terminal device:
[0073] Configure a full-duplex real-time connection mode (such as TCP long connection) to ensure two-way high-speed transmission of debugging instructions and real-time data. Prioritize the allocation of high-bandwidth channels to reduce transmission latency (such as dedicated IP port mapping).
[0074] Adopt a half-duplex or polling connection mode (such as HTTP short connection) to reduce the resource occupancy of the relay server.
[0075] Through multi-dimensional data calculation, the relay server determines the debugging intensity for abnormal devices to ensure the precise allocation of debugging resources: Transmission obstruction factor = data transmission rate × transmission angle value. The transmission angle refers to the physical / logical angle (0° - 180°) between the data transmission direction and the connection port of the relay server. The larger the angle, the greater the signal reflection or diffraction loss, and the higher the obstruction factor. For example, when the angle is 90°, the obstruction factor is 1 times the transmission rate, and when the angle is 180°, it is 2 times. Relay debugging decision factor = abnormal parameter value × data space capacity × signal transmission distance,
[0076] The product of the abnormal parameter value (such as CPU utilization percentage), data space capacity (the cache size occupied by the device on the relay server), and signal transmission distance (physical distance or network hops) reflects the urgency and resource requirements of device debugging. Debugging intensity = α × transmission obstruction factor + β × relay debugging decision factor (α and β are weight coefficients, α > β, emphasizing the priority of real-time transmission obstruction).
[0077] According to the parameter change trend (such as whether the abnormal parameter continues to deteriorate) and data coverage width (the range where the device signal spreads to the relay server), divide the debugging time into multiple intervals (such as every 10 minutes as an interval). Dynamically switch the connection port of the relay server within each interval and adjust the debugging intensity (such as the faster the port switching rate, the higher the debugging intensity).
[0078] The first relay debugging feature set (for abnormal devices) includes the debugging intensity and intensity change information set. The intensity change information set records the port switching rate, signal distance change, parameter change trend, etc. within each debugging stay interval, which is used to optimize the debugging strategy in real time (such as automatically increasing the intensity when the parameters deteriorate).
[0079] The second relay debugging feature set (for devices to be optimized) sets a low-intensity debugging strategy based on the critical data link (such as the bandwidth bottleneck port), and realizes lightweight resource optimization by slowly switching ports (such as switching once every 30 minutes).
[0080] The relay server generates a global control strategy based on two types of feature sets. For example, for abnormal devices, it executes "high-frequency port switching + high-intensity instruction injection", and for devices to be optimized, it executes "low-frequency port scanning + configuration parameter fine-tuning".
[0081] After processing and analyzing the data status between the terminal device with abnormal operating conditions and the relay server in the set connection mode, set the debugging intensity of the relay server. The specific steps are as follows:
[0082] Process the transmission angle formed between the data transmission rate and the data transmission direction of the terminal device with abnormal operating conditions and the connection port of the relay server in the set connection mode to obtain a transmission obstacle factor;
[0083] Statistically obtain the relay debugging decision factor for the data space capacity, abnormal parameters of the terminal device in the abnormal state, and the signal transmission distance between the relay servers in the set connection mode;
[0084] Set the debugging intensity of the relay server according to the relay debugging decision factor and the transmission obstacle factor.
[0085] There is a relationship between the data transmission rate and the data transmission direction of the terminal device with abnormal operating conditions and the connection port of the relay server. The data transmission rate reflects the speed of data transmission, and the transmission angle reflects the degree of fit between the transmission direction and the port. By comprehensively processing the two, a transmission obstacle factor is obtained. The larger the angle and the more unfavorable the rate-related situation for transmission, the larger the obstacle factor, which means the greater the obstacle to data transmission during the transmission process.
[0086] Statistically obtain the data space capacity, abnormal parameters of the terminal device in the abnormal state, and the signal transmission distance between it and the relay server. The data space capacity represents how much relay resources the device occupies; the abnormal parameters reflect the degree of device abnormality; the signal transmission distance affects the quality and delay of signal transmission. The three are combined into a relay debugging decision factor, which comprehensively reflects the degree of demand for debugging of the abnormal device and related influencing factors.
[0087] Based on the obtained transmission obstacle factor and relay debugging decision factor, such as through weighted calculation and other methods, the weight can be specifically determined according to the actual situation to set the debugging intensity of the relay server. By comprehensively considering the transmission obstacle and the device debugging requirements, the debugging intensity can be reasonably matched with the actual situation of the abnormal device.
[0088] Suppose there are multiple sensor terminal devices communicating with the control center through a relay server. Among them, sensor A has abnormal operating conditions.
[0089] The data transmission rate of Sensor A was originally stable at 10 Mbps. However, due to reasons such as position changes, the transmission angle between the data transmission direction and the connection port of the relay server formed a 60° transmission angle. According to the relevant calculation rules (assuming the transmission obstruction factor = data transmission rate × the coefficient corresponding to the transmission angle, and the coefficient corresponding to a 60° angle is 1.5), then the transmission obstruction factor = 10 × 1.5 = 15. Here, the transmission angle is relatively large, resulting in a relatively high transmission obstruction factor, indicating that the data transmission is subject to certain obstructions.
[0090] The data space capacity occupied by Sensor A is 50 MB, and the signal transmission distance between the abnormal parameter (such as the temperature exceeding the normal range by 20°C) and the relay server is 30 meters. According to the rule (assuming the relay debugging decision factor = abnormal parameter × data space capacity × signal transmission distance), the relay debugging decision factor = 20 × 50 × 30 = 30000. This result shows that due to factors such as abnormal parameters, occupied space, and transmission distance, this sensor has a relatively high demand for debugging.
[0091] Assume that the weight of the transmission obstruction factor is 0.4 and the weight of the relay debugging decision factor is 0.6. Through calculation (debugging intensity = transmission obstruction factor × 0.4 + relay debugging decision factor × 0.6), that is, the debugging intensity = 15 × 0.4 + 30000 × 0.6 = 18006. Based on this debugging intensity, the relay server will adopt corresponding debugging measures, such as sending detection instructions more frequently, adjusting data transmission strategies, etc., to debug and repair Sensor A.
[0092] Collect the operation parameters of each terminal device in real time, and judge the state of the terminal device based on the operation parameters to obtain the operation state set of the terminal device; among them, the operation state set includes abnormal state, state to be optimized, and normal state, and specifically includes the following steps:
[0093] Collect the operation parameters of each terminal device in real time, and extract abnormal parameters and normal parameters from the operation parameters;
[0094] Extract the normal state in which the terminal device operates normally based on the normal parameters;
[0095] Compare the abnormal parameters with the preset abnormal threshold; mark the operation state of the terminal device corresponding to the abnormal parameter being greater than or equal to the preset abnormal threshold as the abnormal state, and mark the operation state of the terminal device corresponding to the abnormal parameter being less than the preset abnormal threshold as the state to be optimized.
[0096] This application obtains various parameters of each terminal device during operation in real time. These parameters cover all aspects of device operation, such as temperature, voltage, data transmission rate, CPU usage, etc. Then, abnormal parameters (parameters deviating from the normal range) and normal parameters (parameters within the normal range) are distinguished from the collected operation parameters.
[0097] Define the normal state of the device operation through normal parameters. When all parameters of the device are within the normal parameter range, it is determined that the device is in the normal operation state, that is, the normal state.
[0098] Compare the extracted abnormal parameters with the preset abnormal thresholds. If the abnormal parameter is greater than or equal to the preset abnormal threshold, it indicates that the device has a relatively serious problem. At this time, mark the device operation state as the abnormal state; if the abnormal parameter is less than the preset abnormal threshold, it means that although there are some minor problems with the device, it has not reached a serious level, and mark its operation state as the to-be-optimized state.
[0099] Collect the parameters of the terminal device during operation in real time, such as CPU usage rate, battery temperature, network download speed, etc. Assume that under normal circumstances, the CPU usage rate of the terminal device is between 0 - 60%, the battery temperature is between 20 - 40°C, and the network download speed is between 1 - 10 Mbps. In a certain collection, the CPU usage rate is 70%, the battery temperature is 42°C, and the network download speed is 8 Mbps. It is determined that the CPU usage rate and the battery temperature are abnormal parameters, and the network download speed is a normal parameter.
[0100] If the CPU usage rate of the terminal device remains between 0 - 60%, the battery temperature is between 20 - 40°C, the network download speed is between 1 - 10 Mbps, and other parameters are all within the normal range for a period of time, then this terminal device is in the normal state.
[0101] Assume that the preset abnormal threshold for CPU usage rate is 65%, and the abnormal threshold for battery temperature is 40°C. Since the CPU usage rate of this terminal device, 70%, is greater than 65%, and the battery temperature, 42°C, is greater than 40°C, the operation state of this terminal device can be marked as the abnormal state. If the CPU usage rate is 62%, less than 65%, but the battery temperature, 42°C, is greater than 40°C, at this time the abnormal parameter (battery temperature) is less than the preset abnormal threshold (CPU usage rate threshold), then the operation state of this terminal device is marked as the to-be-optimized state.
[0102] Process the transmission obstruction factor formed by the data transmission rate and the transmission angle between the data transmission direction of the terminal device with abnormal operation conditions and the connection port of the relay server in the set connection mode, specifically including the following steps:
[0103] Extract the data stream information of the corresponding relay server according to the terminal device with abnormal operation conditions;
[0104] Connect the data stream information with the relay server to obtain the data transmission information; among them, the data transmission information includes the data transmission rate and the data transmission direction;
[0105] Set the connection port of the relay server according to the connection mode between the abnormal status terminal device and the relay server;
[0106] After calculating the transmission angle formed between the connection port of the relay server and the data transmission direction, obtain the transmission angle value;
[0107] Among them, the data transmission rate and the transmission angle value are combined into a transmission obstacle factor.
[0108] This application starts from the terminal device in an abnormal operating condition to obtain information related to the data stream generated during its interaction with the relay server. These information include various characteristics of the data flowing between the device and the relay server.
[0109] Associate the extracted data stream information with the relay server to determine the specific path of data transmission between the two, so as to obtain data transmission information. The key is to clarify the data transmission rate (reflecting the speed of data transmission) and the data transmission direction (the direction of data flow).
[0110] Determine the connection port of the relay server used to communicate with the terminal device according to the established connection mode between the abnormal status terminal device and the relay server. Different connection modes may correspond to different port settings.
[0111] After determining the connection port of the relay server and the data transmission direction, calculate the angle formed between the two to obtain the transmission angle value. This angle reflects the degree of fit between the data transmission direction and the port.
[0112] Combine the data transmission rate and the transmission angle value, and comprehensively consider the relationship between the transmission speed and direction and the port to obtain the transmission obstacle factor, which is used to measure the obstacle situation of data during transmission.
[0113] Suppose there is an intelligent camera (abnormal operating condition terminal device) in the terminal device system for data transmission with the relay server. When the intelligent camera has an abnormality (such as a frozen picture), the system extracts data stream information from the interaction between the camera and the relay server, including relevant characteristics such as the type of data transmitted (such as video stream, control instruction stream), and the size of the data volume. Associate this data stream information with the relay server to determine the data transmission path. After analysis, it is known that the current data transmission rate is 5 Mbps, and the data is transmitted from the camera to a specific direction of the relay server. Since the intelligent camera and the relay server use the TCP connection mode, according to the rules of this connection mode, set the connection port of the relay server for receiving camera data as port 8080.
[0114] By using relevant technical means (such as based on the network topology structure and device location information), it is calculated that the included angle formed between the 8080 port of the relay server and the data transmission direction is 45°, that is, the obtained transmission included angle value is 45°.
[0115] The data transmission rate of 5 Mbps and the transmission included angle value of 45° are combined and calculated according to a certain rule (assuming the rule is transmission obstacle factor = data transmission rate × coefficient corresponding to the transmission included angle value, and the coefficient corresponding to 45° is 1.2), and the obtained transmission obstacle factor = 5 × 1.2 = 6. This transmission obstacle factor indicates the degree of obstacle suffered during the current data transmission of the intelligent camera and can be used for subsequent adjustment of the debugging strategy by the relay server.
[0116] Statistics are made on the data space capacity occupied by the abnormal state terminal device, the abnormal parameters, and the signal transmission distance between the relay servers in the set connection mode to obtain the relay debugging decision factor, which specifically includes the following steps:
[0117] Detect the signal transmission distance between the relay server and the abnormal state terminal device under the condition of the relay server connection port; collect the data space capacity of the abnormal state terminal device;
[0118] Combine the abnormal parameters, data space capacity, and signal transmission distance into the relay debugging decision factor.
[0119] Under the working condition of a specific connection port of the relay server, use relevant technical means (such as based on the network signal strength attenuation model, GPS positioning combined with network topology, etc.) to measure the signal transmission distance between the relay server and the abnormal state terminal device. This distance reflects the spatial length that the signal needs to cross during transmission. The farther the distance, the greater the possible influence of signal attenuation, interference, etc.
[0120] Obtain the size of the data space capacity currently occupied by the abnormal state terminal device. This parameter reflects the amount of resources required for the device to store and process data. The larger the data space capacity, the greater the demand or pressure of the device in data processing. Determine the specific numerical values of the abnormal parameters exhibited by the abnormal state terminal device. These abnormal parameters reflect the specific characteristics and degrees of the device running abnormally.
[0121] The three elements of abnormal parameters, data space capacity, and signal transmission distance are combined according to a method (such as multiplication, weighted summation, etc., specifically determined according to the actual algorithm) to obtain the relay debugging decision factor. This factor comprehensively reflects the urgency of the abnormal state terminal device for debugging and the required resources, etc., and provides an important basis for formulating the debugging strategy for the relay server.
[0122] When the relay server works on a specific connection port (such as port 5000), it uses network signal strength monitoring and known device physical location information to detect that the signal transmission distance between the relay server and the terminal device is 80 meters. After system query, the data space capacity occupied by the current storage of processing instructions, operation logs and other data of the terminal device is 200MB.
[0123] According to a pre-set algorithm (assuming that the relay debugging decision factor = abnormal parameter × data space capacity × signal transmission distance), calculate the abnormal parameter of 0.5mm, the data space capacity of 200MB, and the signal transmission distance of 80 meters, and get the relay debugging decision factor = 0.5 × 200 × 80 = 8000. This relay debugging decision factor reflects the comprehensive degree of the abnormal situation of the terminal device. The relay server can determine the debugging strategy for the terminal device based on this factor, such as increasing the debugging frequency, enhancing the debugging intensity, etc.
[0124] Collect the data coverage width in the direction of the relay server for the abnormal state and the parameter change trend of the terminal device. Set the debugging stay interval period of the relay server for debugging the abnormal state terminal device according to the data coverage width and parameter change trend, and collect the corresponding relay debugging intensity change information set in real time during the debugging stay interval period; among them, the relay server debugging intensity and the relay debugging intensity change information set are combined into the first relay debugging feature set, which specifically includes the following steps:
[0125] Collect the data coverage width in the direction of the relay server for the abnormal state and the parameter change trend of the terminal device;
[0126] Set the stay period of the relay server for debugging in the abnormal state in real time according to the parameter change trend and data coverage width, and divide the stay period into multiple equal sub-periods to obtain the debugging stay interval period;
[0127] Set the connection port switching value for each interval period in the debugging stay interval period of the relay server in real time to obtain the port switching set;
[0128] Calculate the switching rate between every two adjacent connection ports in the port switching set to obtain the first relay port switching rate data set;
[0129] Process and analyze the relay server and the abnormal state terminal device according to the first relay port switching rate data set to obtain the variable relay debugging decision factor;
[0130] Set the change of the debugging intensity of the relay server under the condition of the first relay port switching rate data set of the relay server according to the variable relay debugging decision factor set and the variable transmission obstacle factor set to obtain the relay debugging intensity change information set;
[0131] Among them, the relay server debugging intensity and the relay debugging intensity change information set are combined into the first relay debugging feature set.
[0132] Obtain the data coverage width of the abnormal status terminal device facing the relay server direction, which reflects the spatial distribution range of the device signal; at the same time, monitor the parameter change trend of the terminal device to understand the change of abnormal parameters over time, such as rising, falling or fluctuating, etc.
[0133] Determine the residence time of the relay server for debugging the abnormal status device based on the collected parameter change trend and data coverage width. Then divide this residence period into multiple equal small time periods, that is, debugging residence interval periods, in order to more finely control the debugging rhythm.
[0134] Set the switching values of the relay server connection ports for each debugging residence interval period. These switching values form a port switching set, which clarifies the switching arrangement of the relay server connection ports in different interval periods.
[0135] Calculate the switching speed between two adjacent connection ports in the port switching set to obtain the first relay port switching rate data set, which reflects the speed of port switching.
[0136] Analyze and process the relay server and the abnormal status terminal device based on the first relay port switching rate data set, and comprehensively consider relevant factors to obtain the variable relay debugging decision factor, which is used to measure the relevant decision elements of device debugging under the influence of port switching rate.
[0137] Combine the variable relay debugging decision factor set and the variable transmission obstacle factor set, and dynamically adjust the debugging intensity of the relay server according to the current port switching rate situation to generate the relay debugging intensity change information set, which reflects the change of debugging intensity over time.
[0138] Combine the originally set debugging intensity of the relay server with the obtained relay debugging intensity change information set to form the first relay debugging feature set, which comprehensively reflects the debugging characteristics of the abnormal status terminal device.
[0139] Suppose the data coverage width of the terminal device detected by the sensor facing the relay server direction is 50 meters, which means the signal propagates within this range; at the same time, it is found that the signal strength parameter of the sensor shows a gradually decreasing trend.
[0140] Determine that the debugging residence period of the relay server for these sensors is 30 minutes according to the signal strength decreasing trend and the 50-meter data coverage width. Then divide these 30 minutes into 6 5-minute debugging residence interval periods.
[0141] For each 5 - minute debugging pause interval, set the switching arrangement of the relay server connection port. For example, switch from port A to port B in the first 5 minutes, and from port B to port C in the second 5 minutes, etc., to form a port switching set.
[0142] Calculate the time interval between adjacent port switches to obtain the port switching rate. For example, it takes 1 minute from port A to port B to form the first relay port switching rate data set.
[0143] Based on the first relay port switching rate data set, combined with factors such as the abnormal situation of the sensor and the connection status with the relay server, obtain the variable relay debugging decision factor, which is used to judge how to adjust the debugging strategy according to the port switching rate.
[0144] Adjust the debugging intensity of the relay server according to the variable relay debugging decision factor set and the variable transmission obstacle factor set formed by considering factors such as signal propagation. If it is found that the port switching rate is fast and the signal transmission obstacle increases, appropriately increase the debugging intensity to obtain the relay debugging intensity change information set.
[0145] Combine the initially set debugging intensity of the relay server for these sensors with the obtained relay debugging intensity change information set to form the first relay debugging feature set, providing a comprehensive basis for subsequent continuous debugging.
[0146] According to the first relay port switching rate data set, process and analyze the relay server and the abnormal - state terminal device to obtain the variable relay debugging decision factor. The specific steps are as follows:
[0147] Calculate the signal transmission distance between the relay server and the abnormal - state terminal device under each connection port condition in the port switching set according to the first relay port switching rate data set to obtain the first signal distance change data set;
[0148] Extract the changed abnormal parameters from the parameter change trend in real - time according to the debugging pause interval to obtain the parameter change data set;
[0149] Statistically analyze the transmission obstacle factors corresponding to each pause interval in the debugging pause interval according to the transmission obstacle factor to obtain the variable transmission obstacle factor set;
[0150] Among them, combine the data space capacity, the first signal distance change data set, and the parameter change data set to form the variable relay debugging decision factor.
[0151] Based on the first relay port switching rate dataset, determine the signal transmission distance between the relay server and the abnormal state terminal device under each connection port state in the port switching set. Since factors such as the signal transmission path may change during port switching, the signal transmission distance under different ports will be different. Organize these distance data to form the first signal distance change dataset, which reflects the change of the signal transmission distance during port switching.
[0152] During the debugging pause interval, based on the previously collected trend of terminal device parameter changes, extract the changed abnormal parameter values at the end of each interval in real time. Combine the abnormal parameter values of these different time periods to obtain the parameter change dataset, which is used to reflect the dynamic changes of the abnormal parameters during the debugging process.
[0153] Refer to the previously calculated transmission obstruction factor and count the corresponding transmission obstruction factor for each debugging pause interval. Because factors such as data transmission rate and transmission angle may change in different time periods, resulting in changes in the transmission obstruction factor, organize these changed transmission obstruction factors into a variable transmission obstruction factor set to show the change of the transmission obstruction situation over time.
[0154] Combine the data space capacity (reflecting the device's data storage and processing requirements), the first signal distance change dataset (reflecting the impact of port switching on the signal transmission distance), and the parameter change dataset (showing the change of abnormal parameters) to form a variable relay debugging decision factor. This factor combines multi-faceted information and provides a key basis for the relay server to further adjust the debugging strategy.
[0155] Taking a wireless sensor network of a terminal device as an example, some monitoring sensors (abnormal state terminal devices) have data anomalies. It is known that the first relay port switching rate dataset shows that port switching is relatively frequent. During the port switching process, when at port A, the signal transmission distance between the relay server and these sensors is measured to be 30 meters through technical means such as signal strength detection; after switching to port B, the distance becomes 35 meters. Record the signal transmission distance under each connected port in sequence to obtain the first signal distance change dataset, such as {30 meters (port A), 35 meters (port B), 32 meters (port C)...}.
[0156] Based on the previous method of calculating the transmission obstruction factor and combining the changes in actual situations such as data transmission rate and transmission angle during each debugging pause interval. For example, in the first time period, the data transmission rate slows down and the transmission angle becomes larger, and the calculated transmission obstruction factor for this time period is 8; in the second time period, the transmission rate increases somewhat but the angle is still relatively large, and the transmission obstruction factor is 7. Organize the transmission obstruction factors of each time period into a variable transmission obstruction factor set, such as {8, 7, 6...}.
[0157] Given that the data space capacity of these sensors is 100MB, combined with the first signal distance change dataset and the parameter change dataset obtained previously, a change relay debugging decision factor is obtained by combining them according to certain rules (such as weighted summation, etc.). For example, according to the weight allocation, the weight of the data space capacity is 0.3, the weight of the first signal distance change dataset is 0.3, and the weight of the parameter change dataset is 0.4. After calculation, the value of the change relay debugging decision factor is obtained, which provides an important reference for the relay server to adjust the debugging strategy for these sensors subsequently, such as whether to increase the debugging intensity, change the debugging method, etc.
[0158] Process and analyze the data status between the terminal device to be optimized and the relay server in the set connection mode to obtain the second relay debugging feature set; among them, the first relay debugging feature set and the second relay debugging feature set are combined to form the remote wireless debugging result, which specifically includes the following steps:
[0159] Extract the critical data link of the terminal device to be optimized and mark it as the first critical connection port;
[0160] Collect the corresponding first critical relay debugging intensity according to the first critical connection port;
[0161] According to the first critical connection port and the first critical relay debugging intensity, count the corresponding second relay port switching rate dataset and the second relay debugging feature set of the terminal device to be optimized;
[0162] Combine the first relay debugging feature set and the second relay debugging feature set into the remote wireless debugging result; among them, the remote wireless debugging result refers to the control and processing of the relay server for the remote wireless debugging mode of terminal devices in different states.
[0163] Judge the terminal device to be optimized to find the relatively weak or critical link in its data transmission process, that is, the critical data link, and mark the corresponding relay server connection port as the first critical connection port. This is because there may be data transmission bottlenecks, poor stability, etc. on this link, and focusing on it helps with accurate debugging.
[0164] Obtain the corresponding first critical relay debugging intensity for the marked first critical connection port. This intensity represents the magnitude of the force used by the relay server to debug the device on this key connection port, and it reflects the basic degree of the current debugging of the device.
[0165] Statistically analyze the second relay port switching rate dataset of the terminal device to be optimized based on the first critical connection port and the first critical relay debugging intensity, that is, judge the switching speed of the connection port during the device debugging process. At the same time, obtain the second relay debugging feature set by integrating various aspects of information. This feature set covers various elements related to the device debugging, such as port switching and debugging intensity changes.
[0166] Integrate the first relay debugging feature set obtained for the abnormal state terminal device and the second relay debugging feature set obtained for the terminal device to be optimized. In this way, the relay server can comprehensively consider the situations of devices in different states to form a complete remote wireless debugging mode control and processing solution, realizing effective debugging management of all terminal devices.
[0167] After analyzing the data transmission link of the terminal device controller, it is found that there is a certain delay and occasional data packet loss when data is transmitted through a specific relay server connection port (such as port 9001). This link is determined as the critical data link, and port 9001 is marked as the first critical connection port.
[0168] For port 9001, the current debugging intensity of the relay server for the terminal device controller is relatively low. For example, only some simple parameter optimization instructions are sent occasionally. Mark this debugging intensity as the first critical relay debugging intensity.
[0169] Further observation shows that the connection port does not switch frequently during the debugging process of the terminal device controller, with an average of 1 switch per hour, forming the second relay port switching rate dataset. By integrating the port switching situation, debugging intensity, and other relevant data (such as changes in energy consumption parameters), the second relay debugging feature set is obtained, which comprehensively reflects the debugging-related information of these street lamp controllers in the to-be-optimized state.
[0170] Assume that this terminal device controller is in an abnormal state, and the first relay debugging feature set for the abnormal state device has been obtained. Now integrate the first relay debugging feature set and the second relay debugging feature set for these terminal devices to be optimized. The relay server takes high-intensity and high-frequency debugging measures for the street lamp controllers in the abnormal state according to the integrated results, such as frequently sending fault diagnosis instructions and repair programs; for the street lamp controllers in the to-be-optimized state, a relatively mild and low-frequency debugging strategy is adopted, such as sending an energy consumption optimization parameter adjustment instruction once a day at a fixed time, so as to realize effective remote wireless debugging management of terminal devices in different states in the entire terminal device system.
[0171] Embodiment 2 further illustrates a remote wireless debugging method based on a relay server proposed by the present invention.
[0172] A remote wireless debugging system based on a relay server, comprising:
[0173] An acquisition and judgment module: Real-time acquisition of the operating parameters of each terminal device, and obtaining an operating status set of the terminal device after judging the status of the terminal device according to the operating parameters; wherein, the operating status set includes an abnormal status, a to-be-optimized status, and a normal status;
[0174] A setting module: Setting the connection mode of the relay server according to the operating status set of the terminal device;
[0175] A processing and analysis module: Processing and analyzing the data status between the terminal device with abnormal operating conditions and the relay server in the set connection mode, and then setting the debugging intensity of the relay server;
[0176] A processing and setting module: Collecting the data coverage width in the direction of the relay server for the abnormal status and the parameter change trend of the terminal device, setting the debugging stay interval period of the relay server for debugging the terminal device in the abnormal status according to the data coverage width and the parameter change trend, and real-time collecting the corresponding relay debugging intensity change information set during the debugging stay interval period; wherein, the relay server debugging intensity and the relay debugging intensity change information set are combined into a first relay debugging feature set;
[0177] A debugging module: Processing and analyzing the data status between the terminal device to be optimized and the relay server in the set connection mode to obtain a second relay debugging feature set; wherein, the first relay debugging feature set and the second relay debugging feature set are combined to form the remote wireless debugging result.
[0178] An electronic device, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, and when the processor executes the program, a remote wireless debugging method based on a relay server is implemented.
[0179] As Figure 3 shown, the electronic device may include: a processor 610, a communication interface 620, a memory 630, and a communication bus 640, wherein the processor 610, the communication interface 620, and the memory 630 complete mutual communication through the communication bus 640. The processor 610 can call the logical instructions in the memory 630 to execute a remote wireless debugging method based on a relay server.
[0180] In addition, when the logical instructions in the above-mentioned memory 630 can be implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes: various media such as USB flash drives, mobile hard disks, read-only memories (ROMs), random access memories (RAMs), magnetic disks, or optical discs that can store program codes.
[0181] On the other hand, the present invention also provides a computer program product. The computer program product includes a computer program that can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute a remote wireless debugging method based on a relay server.
[0182] On yet another hand, the present invention also provides a non-transitory computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, it is implemented to execute a remote wireless debugging method based on a relay server.
[0183] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. A person of ordinary skill in the art can understand and implement it without creative labor.
[0184] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on such an understanding, the technical solution, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disks, optical discs, etc., and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in various embodiments or some parts of the embodiments.
[0185] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements for some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A remote wireless debugging method based on a relay server, characterized in that, It includes the following steps: Collect the operation parameters of each terminal device in real time, and obtain the operation status set of the terminal device after judging the status of the terminal device according to the operation parameters; wherein, the operation status set includes an abnormal status, an optimization-needed status, and a normal status; Set the connection mode of the relay server according to the operation status set of the terminal device; Process and analyze the data status between the terminal device with abnormal operation conditions and the relay server in the set connection mode, and then set the debugging intensity of the relay server; Collect the data coverage width in the direction of the relay server for the abnormal status and the parameter change trend of the terminal device, set the debugging stay interval period of the relay server when debugging the terminal device in the abnormal status according to the data coverage width and the parameter change trend, and collect the corresponding relay debugging intensity change information set during the debugging stay interval period of the abnormal status in real time; wherein, the relay server debugging intensity and the relay debugging intensity change information set are combined into the first relay debugging feature set; Process and analyze the data status between the terminal device in the optimization-needed status and the relay server in the set connection mode to obtain the second relay debugging feature set; wherein, the first relay debugging feature set and the second relay debugging feature set are combined to form the remote wireless debugging result.
2. The remote wireless debugging method based on a relay server according to claim 1, wherein Process and analyze the data status between the terminal device with abnormal operation conditions and the relay server in the set connection mode, and then set the debugging intensity of the relay server, which specifically includes the following steps: Process the data transmission rate and the transmission angle formed between the data transmission direction of the terminal device with abnormal operation conditions and the connection port of the relay server in the set connection mode to obtain the transmission obstacle factor; Statistically obtain the relay debugging decision factor based on the data space capacity occupied by the terminal device in the abnormal status, the abnormal parameters, and the signal transmission distance between the relay servers in the set connection mode; Set the debugging intensity of the relay server according to the relay debugging decision factor and the transmission obstacle factor.
3. The remote wireless debugging method based on a relay server according to claim 2, wherein Collect the operation parameters of each terminal device in real time, and obtain the operation status set of the terminal device after judging the status of the terminal device according to the operation parameters; wherein, the operation status set includes an abnormal status, an optimization-needed status, and a normal status, which specifically includes the following steps: Collect the operation parameters of each terminal device in real time, and extract the abnormal parameters and normal parameters from the operation parameters; Extract the normal status with normal operation in the terminal device according to the normal parameters; Compare the abnormal parameters with the preset abnormal threshold; mark the operation status of the terminal device corresponding to the abnormal parameters greater than or equal to the preset abnormal threshold as the abnormal status, and mark the operation status of the terminal device corresponding to the abnormal parameters less than the preset abnormal threshold as the optimization-needed status.
4. The remote wireless debugging method based on a relay server according to claim 3, wherein Process the data transmission rate and the transmission angle formed between the data transmission direction of the terminal device with abnormal operation conditions and the connection port of the relay server in the set connection mode to obtain the transmission obstacle factor, which specifically includes the following steps: Extract the data flow information of the corresponding relay server according to the terminal device with abnormal operation conditions; Connect the data stream information to the relay server for the transmission path to obtain data transmission information; wherein, the data transmission information includes the data transmission rate and the data transmission direction; Set the relay server connection port according to the connection mode between the abnormal state terminal device and the relay server; Obtain the transmission angle value after calculating the transmission angle formed between the relay server connection port and the data transmission direction; Wherein, the data transmission rate and the transmission angle value are combined into a transmission obstacle factor.
5. A remote wireless debugging method based on a relay server according to claim 4, characterized in that Statistically obtain the relay debugging decision factor for the data space capacity, abnormal parameters, and signal transmission distance between the abnormal state terminal device and the relay server in the set connection mode, specifically including the following steps: Detect the signal transmission distance between the relay server and the abnormal state terminal device under the condition of the relay server connection port; collect the data space capacity of the abnormal state terminal device; Combine the abnormal parameters, data space capacity, and signal transmission distance into a relay debugging decision factor.
6. A remote wireless debugging method based on a relay server according to claim 5, characterized in that, Collect the data coverage width in the direction of the abnormal state towards the relay server and the parameter change trend of the terminal device, set the debugging stay interval period of the relay server for debugging the abnormal state terminal device according to the data coverage width and the parameter change trend, and collect the corresponding relay debugging intensity change information set of the abnormal state during the debugging stay interval period in real time; wherein, the relay server debugging intensity and the relay debugging intensity change information set are combined into a first relay debugging feature set, specifically including the following steps: Collect the data coverage width in the direction of the abnormal state towards the relay server and the parameter change trend of the terminal device; Set the stay period of the relay server for debugging in the abnormal state in real time according to the parameter change trend and the data coverage width, and divide the stay period into multiple equal sub-periods to obtain the debugging stay interval period; Set the connection port switching value of the relay server for each interval period in the debugging stay interval period in real time to obtain the port switching set; Calculate the switching rate between every two adjacent connection ports in the port switching set to obtain the first relay port switching rate data set; Perform processing and analysis on the relay server and the abnormal state terminal device according to the first relay port switching rate data set to obtain the variable relay debugging decision factor; Set the change of the debugging intensity of the relay server under the condition of the first relay port switching rate data set of the relay server according to the variable relay debugging decision factor set and the variable transmission obstacle factor set to obtain the relay debugging intensity change information set; Wherein, the relay server debugging intensity and the relay debugging intensity change information set are combined into a first relay debugging feature set.
7. A remote wireless debugging method based on a relay server according to claim 6, characterized in that Perform processing and analysis on the relay server and the abnormal state terminal device according to the first relay port switching rate data set to obtain the variable relay debugging decision factor, specifically including the following steps: Calculate the signal transmission distance between the relay server and the abnormal state terminal device under the condition of each connection port in the port switching set according to the first relay port switching rate data set to obtain the first signal distance change data set; Extract the abnormal parameters after change from the parameter change trend in real time according to the debugging stay interval period to obtain a parameter change data set; According to the transmission obstruction factor, count the transmission obstruction factor corresponding to each stay interval period in the debugging stay interval period to obtain a variable transmission obstruction factor set; Among them, combine the data space capacity, the first signal distance change data set and the parameter change data set into a variable relay debugging decision factor.
8. A remote wireless debugging method based on a relay server according to claim 7, characterized in that Process and analyze the data status between the terminal device to be optimized and the relay server in the set connection mode to obtain a second relay debugging feature set; among them, the first relay debugging feature set and the second relay debugging feature set are combined to form a remote wireless debugging result, which specifically includes the following steps: Extract the critical data link of the terminal device to be optimized and mark it as the first critical connection port; Collect the corresponding first critical relay debugging intensity according to the first critical connection port; According to the first critical connection port and the first critical relay debugging intensity, count the corresponding second relay port switching rate data set and the second relay debugging feature set of the terminal device to be optimized; Combine the first relay debugging feature set and the second relay debugging feature set into a remote wireless debugging result; among them, the remote wireless debugging result refers to the control and processing of the remote wireless debugging mode by the relay server for terminal devices in different states.
9. A remote wireless debugging system based on a relay server, which is applied to a remote wireless debugging method based on a relay server according to any one of claims 1-8, characterized in that, Include: Acquisition and judgment module: Real-time collect the operation parameters of each terminal device, and judge the state of the terminal device according to the operation parameters to obtain the operation state set of the terminal device; among them, the operation state set includes abnormal state, state to be optimized and normal state; Setting module: Set the connection mode of the relay server according to the operation state set of the terminal device; Processing and analysis module: Process and analyze the data status between the terminal device with abnormal operation conditions and the relay server in the set connection mode, and then set the debugging intensity of the relay server; Processing and setting module: Collect the data coverage width in the direction of the relay server from the abnormal state and the parameter change trend of the terminal device, set the debugging stay interval period of the relay server for debugging the terminal device in the abnormal state according to the data coverage width and the parameter change trend, and collect in real time the corresponding relay debugging intensity change information set during the debugging stay interval period of the abnormal state; among them, the relay server debugging intensity and the relay debugging intensity change information set are combined into a first relay debugging feature set; Debugging module: Process and analyze the data status between the terminal device to be optimized and the relay server in the set connection mode to obtain a second relay debugging feature set; among them, the first relay debugging feature set and the second relay debugging feature set are combined to form a remote wireless debugging result.