Data reporting method and system
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a data reporting method and system.
Background
At present, in the field of power detection, various sensors are used for data detection and data reporting independently, and since the sensors are dispersed in a system background, data of some sensors are normal, but data are reported continuously, so that a large amount of invalid data (namely non-fault data) is reported, great pressure is brought to a server, and the fault processing efficiency of the server is reduced.
Disclosure of Invention
The invention aims to provide a data reporting method and a data reporting system so as to improve the fault processing efficiency of a server.
In order to achieve the above object, the present invention provides a data reporting method, including:
step S1: judging whether the temperature of the line to be detected is abnormal or not; if the temperature of the line to be detected is abnormal, executing step S2; if the temperature of the line to be detected is normal, returning to the step S1; the temperature of the line to be detected is detected by using a temperature sensor;
step S2: judging whether the current of the line to be detected is abnormal; if the current of the line to be detected is abnormal, determining that the line to be detected has a fault, and executing step S3; if the current of the line to be detected is normal, returning to the step S2; the current of the line to be detected is detected by a current sensor;
step S3: and reporting the identification number of the temperature sensor and the identification number of the current sensor, and determining the fault position of the line to be detected according to the identification numbers of the temperature sensor and the current sensor.
Optionally, the method further comprises:
step S4: when the current of the line to be detected is normal, judging whether the voltage of the line to be detected is abnormal; if the voltage of the line to be detected is abnormal, determining that the line to be detected has a fault, and executing step S5; if the voltage of the line to be detected is normal, returning to the step S4; the voltage of the line to be detected is detected by a voltage sensor;
step S5: and reporting the identification number of the voltage sensor, and determining the fault position of the line to be detected according to the identification number of the temperature sensor and the identification number of the voltage sensor.
Optionally, the method further comprises:
step S6: when the current of the line to be detected is normal, judging whether the line to be detected is iced; if the line to be detected is iced, determining the fault of the line to be detected, and executing step S7; if the line to be detected is not coated with ice, returning to the step S6; whether the line to be detected is iced or not is detected by an icing monitoring sensor;
step S7: and reporting the identification number of the icing monitoring sensor, and determining the fault position of the line to be detected according to the identification number of the temperature sensor and the identification number of the icing monitoring sensor.
The invention also provides a data reporting method, which comprises the following steps:
step S1: judging whether the temperature of the line to be detected is abnormal or not; if the temperature of the line to be detected is abnormal, executing step S2; if the temperature of the line to be detected is normal, returning to the step S1; the temperature of the line to be detected is detected by using a temperature sensor;
step S2: judging whether the voltage of the line to be detected is abnormal; if the voltage of the line to be detected is abnormal, determining that the line to be detected has a fault, and executing step S3; if the voltage of the line to be detected is normal, returning to the step S2; the voltage of the line to be detected is detected by a voltage sensor;
step S3: and reporting the identification number of the temperature sensor and the identification number of the voltage sensor, and determining the fault position of the line to be detected according to the identification numbers of the temperature sensor and the voltage sensor.
Optionally, the method further comprises:
step S4: when the current of the line to be detected is normal, judging whether the current of the line to be detected is abnormal; if the current of the line to be detected is abnormal, determining that the line to be detected has a fault, and executing step S5; if the current of the line to be detected is normal, returning to the step S4; the current of the line to be detected is detected by a current sensor;
step S5: and reporting the identification number of the current sensor, and determining the fault position of the line to be detected according to the identification number of the temperature sensor and the identification number of the current sensor.
Optionally, the method further comprises:
step S6: when the current of the line to be detected is normal, judging whether the line to be detected is iced; if the line to be detected is iced, determining the fault of the line to be detected, and executing step S7; if the line to be detected is not coated with ice, returning to the step S6; whether the line to be detected is iced or not is detected by an icing monitoring sensor;
step S7: and reporting the identification number of the icing monitoring sensor, and determining the fault position of the line to be detected according to the identification number of the temperature sensor and the identification number of the icing monitoring sensor.
The invention also provides a data reporting system, which comprises:
the temperature sensor is used for detecting the temperature of the line to be detected;
the current sensor is used for detecting the current of the line to be detected;
and the server is respectively connected with the temperature sensor and the current sensor and is used for determining the fault position of the line to be detected by adopting the method.
Optionally, the system further comprises:
and the icing monitoring sensor is connected with the server and used for detecting whether the line to be detected is iced or not and sending the iced line to the server so that the server can determine the fault position of the line to be detected by adopting the method.
The invention also provides a data reporting system, which comprises:
the temperature sensor is used for detecting the temperature of the line to be detected;
the voltage sensor is used for detecting the voltage of the line to be detected;
and the server is respectively connected with the temperature sensor and the voltage sensor and is used for determining the fault position of the line to be detected by adopting the method.
Optionally, the system further comprises:
and the icing monitoring sensor is connected with the server and used for detecting whether the line to be detected is iced or not and sending the iced line to the server so that the server can determine the fault position of the line to be detected by adopting the method.
According to the specific embodiment provided by the invention, the invention discloses the following technical effects:
according to the method, the identification numbers corresponding to the sensors are reported according to the faults of any two sensors, so that the server determines the fault position according to the identification numbers corresponding to the sensors, and therefore, the method is convenient for personnel to maintain the line and check the faults; and invalid data uploading can be greatly reduced, the pressure of a server is reduced, when the data volume is reduced, the fault processing efficiency of the system is improved, faults can be detected more timely, and the effect of good operation of whole line monitoring is facilitated.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings without inventive exercise.
FIG. 1 is a flow chart of a data reporting method of the present invention;
fig. 2 is a flow chart of a data reporting method of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The invention aims to provide a data reporting method and a data reporting system so as to improve the fault processing efficiency of a server.
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
Example 1
As shown in fig. 1, the present invention discloses a data reporting method, which includes:
step S1: judging whether the temperature of the line to be detected is abnormal or not; if the temperature of the line to be detected is abnormal, executing step S2; if the temperature of the line to be detected is normal, returning to the step S1; the temperature of the line to be detected is detected by a temperature sensor.
Step S2: judging whether the current of the line to be detected is abnormal; if the current of the line to be detected is abnormal, determining that the line to be detected has a fault, and executing step S3; if the current of the line to be detected is normal, returning to the step S2; the current of the line to be detected is detected by a current sensor.
Step S3: and reporting the identification number of the temperature sensor and the identification number of the current sensor, and determining the fault position of the line to be detected according to the identification numbers of the temperature sensor and the current sensor.
Further, the method of the invention also comprises the following steps:
step S4: when the current of the line to be detected is normal, judging whether the voltage of the line to be detected is abnormal; if the voltage of the line to be detected is abnormal, determining that the line to be detected has a fault, and executing step S5; if the voltage of the line to be detected is normal, returning to the step S4; the voltage of the line to be detected is detected by a voltage sensor.
Step S5: and reporting the identification number of the voltage sensor, and determining the fault position of the line to be detected according to the identification number of the temperature sensor and the identification number of the voltage sensor.
Further, the method of the invention also comprises the following steps:
step S6: when the current of the line to be detected is normal, judging whether the line to be detected is iced; if the line to be detected is iced, determining the fault of the line to be detected, and executing step S7; if the line to be detected is not coated with ice, returning to the step S6; whether the line to be detected is iced or not is detected by using an icing monitoring sensor.
Step S7: and reporting the identification number of the icing monitoring sensor, and determining the fault position of the line to be detected according to the identification number of the temperature sensor and the identification number of the icing monitoring sensor.
Example 2
As shown in fig. 2, the present invention further provides a data reporting method, where the method includes:
step S1: judging whether the temperature of the line to be detected is abnormal or not; if the temperature of the line to be detected is abnormal, executing step S2; if the temperature of the line to be detected is normal, returning to the step S1; the temperature of the line to be detected is detected by a temperature sensor.
Step S2: judging whether the voltage of the line to be detected is abnormal; if the voltage of the line to be detected is abnormal, determining that the line to be detected has a fault, and executing step S3; if the voltage of the line to be detected is normal, returning to the step S2; the voltage of the line to be detected is detected by a voltage sensor.
Step S3: and reporting the identification number of the temperature sensor and the identification number of the voltage sensor, and determining the fault position of the line to be detected according to the identification numbers of the temperature sensor and the voltage sensor.
Further, the method of the invention also comprises the following steps:
step S4: when the voltage of the line to be detected is normal, judging whether the current of the line to be detected is abnormal; if the current of the line to be detected is abnormal, determining that the line to be detected has a fault, and executing step S5; if the current of the line to be detected is normal, returning to the step S4; the current of the line to be detected is detected by a current sensor.
Step S5: and reporting the identification number of the current sensor, and determining the fault position of the line to be detected according to the identification number of the temperature sensor and the identification number of the current sensor.
Further, the method of the invention also comprises the following steps:
step S6: when the voltage of the line to be detected is normal, judging whether the line to be detected is iced; if the line to be detected is iced, determining the fault of the line to be detected, and executing step S7; if the line to be detected is not coated with ice, returning to the step S6; whether the line to be detected is iced or not is detected by using an icing monitoring sensor.
Step S7: and reporting the identification number of the icing monitoring sensor, and determining the fault position of the line to be detected according to the identification number of the temperature sensor and the identification number of the icing monitoring sensor.
Example 3
The invention also provides a data reporting system, which comprises:
and the temperature sensor is used for detecting the temperature of the line to be detected.
And the current sensor is used for detecting the current of the line to be detected.
And the server is respectively connected with the temperature sensor and the current sensor and is used for determining the fault position of the line to be detected by adopting the method.
Further, the system of the present invention further comprises:
and the icing monitoring sensor is connected with the server and used for detecting whether the line to be detected is iced or not and sending the iced line to the server so that the server can determine the fault position of the line to be detected by adopting the method.
Example 4
The invention also provides a data reporting system, which comprises:
and the temperature sensor is used for detecting the temperature of the line to be detected.
And the voltage sensor is used for detecting the voltage of the line to be detected.
And the server is respectively connected with the temperature sensor and the voltage sensor and is used for determining the fault position of the line to be detected by adopting the method.
Further, the system of the present invention further comprises:
and the icing monitoring sensor is connected with the server and used for detecting whether the line to be detected is iced or not and sending the iced line to the server so that the server can determine the fault position of the line to be detected by adopting the method.
The invention stores the corresponding relation between the identification number and the position of each sensor in the server, and is convenient for personnel to maintain the line and investigate the fault by reporting the fault position.
The technical scheme of the invention can reduce a large amount of invalid data, reduce the pressure of the server and greatly reduce the data volume received by the server, and can improve the fault processing efficiency of the system when the data volume is reduced, thereby being capable of detecting the fault more timely and being beneficial to the effect of good operation of the whole line monitoring.
When two sensors detect data abnormality, the invention judges that the line has a fault, and reports the data of the two sensors at the moment. The particular type of sensor may be specifically configured by those skilled in the art as desired.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. For the system disclosed by the embodiment, the description is relatively simple because the system corresponds to the method disclosed by the embodiment, and the relevant points can be referred to the method part for description.
The principles and embodiments of the present invention have been described herein using specific examples, which are provided only to help understand the method and the core concept of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, the specific embodiments and the application range may be changed. In view of the above, the present disclosure should not be construed as limiting the invention.