Disclosure of Invention
In view of the above, it is necessary to provide a meter reading system data validity analysis method and device capable of automatically detecting abnormality of collected data of an electrical measuring instrument.
A meter reading system data effectiveness analysis method comprises the following steps:
acquiring meter reading system data, wherein the meter reading system data comprises a meter type, an identification code and meter code data;
according to the meter type, calculating the maximum increment value of the electric measuring instrument corresponding to the identification code in a preset time period; the preset time period is the time interval between the current time and the last time of acquiring the data of the meter reading system;
judging whether the difference value between the meter reading system data acquired at the current time and the meter reading system data acquired last time is larger than the increment value or not;
and if the difference value is larger than the increment value, sending first early warning information.
In one embodiment, after acquiring meter reading system data including a meter type, an identification code and meter code data, the method includes: inquiring the last acquired meter reading system data according to the identification code; judging whether the meter reading system data at the current time is smaller than the last acquired meter reading system data or not; and if the meter reading system data at the current time is smaller than the last acquired meter reading system data, sending first early warning information.
In one embodiment, after acquiring meter reading system data including a meter type, an identification code and meter code data, the method includes: judging whether the table code data is empty or not; and if the data of the table code is empty, sending first early warning information.
In one embodiment, after determining whether a difference between the meter reading system data obtained at the current time and the meter reading system data obtained at the last time is greater than the increment value, the method includes: if the difference value is smaller than or equal to the increment value, judging whether meter reading system data in a preset period of the current time is more than preset data compared with meter reading system data in a preset period of the previous period; and if the meter reading system data in the preset period of the current time is more than the preset data than the meter reading system data in the preset period of the previous period, sending out second early warning information.
In one embodiment, the predetermined period is one hour; judging whether the meter reading system data in the preset period of the current time is compared with the meter reading system data in the preset period of the previous period and exceeds the preset data comprises the following steps: judging whether meter reading system data within one hour of the current time is compared with meter reading system data within one hour of the previous period to exceed preset data or not; alternatively, the predetermined period is one day; judging whether the meter reading system data in the preset period of the current time is compared with the meter reading system data in the preset period of the previous period and exceeds the preset data comprises the following steps: and judging whether the meter reading system data in one day of the current time is more than the preset data compared with the meter reading system data in one day of the previous period.
In one embodiment, the calculating, according to the meter type, a maximum increment value of the electrical measuring instrument corresponding to the identification code within a preset time period includes: and when the meter type is a direct current meter, calculating a maximum incremental value according to the rated voltage, the rated current, the maximum actual power ratio and the duration of a preset time period of the electrical measuring instrument corresponding to the identification code.
In one embodiment, the calculating, according to the meter type, a maximum increment value of the electrical measuring instrument corresponding to the identification code within a preset time period includes: and when the meter type is a mutual inductance meter, calculating a maximum incremental value according to the rated voltage, the rated current, the maximum actual power ratio, the meter multiplying power ratio and the duration of a preset time period of the electric measuring instrument corresponding to the identification code.
A data validity sub-device for a meter reading system, the device comprising:
the meter reading system data acquisition module is used for acquiring meter reading system data, and the meter reading system data comprises a meter type, an identification code and meter code data;
the incremental value calculating module is used for calculating the maximum incremental value of the electric measuring instrument corresponding to the identification code in a preset time period according to the meter type; the preset time period is the time interval between the current time and the last time of acquiring the data of the meter reading system;
the first judgment module is used for judging whether the difference value between the meter reading system data acquired at the current time and the meter reading system data acquired at the last time is larger than the increment value or not;
and the early warning module is used for sending out first early warning information if the difference value is larger than the increment value.
A computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:
acquiring meter reading system data, wherein the meter reading system data comprises a meter type, an identification code and meter code data;
according to the meter type, calculating the maximum increment value of the electric measuring instrument corresponding to the identification code in a preset time period; the preset time period is the time interval between the current time and the last time of acquiring the data of the meter reading system;
judging whether the difference value between the meter reading system data acquired at the current time and the meter reading system data acquired last time is larger than the increment value or not;
and if the difference value is larger than the increment value, sending first early warning information.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
acquiring meter reading system data, wherein the meter reading system data comprises a meter type, an identification code and meter code data;
according to the meter type, calculating the maximum increment value of the electric measuring instrument corresponding to the identification code in a preset time period; the preset time period is the time interval between the current time and the last time of acquiring the data of the meter reading system;
judging whether the difference value between the meter reading system data acquired at the current time and the meter reading system data acquired last time is larger than the increment value or not;
and if the difference value is larger than the increment value, sending first early warning information.
According to the meter reading system data effectiveness analysis method and device, the computer equipment and the storage medium, the meter reading system data is obtained regularly, the maximum incremental value in the preset time period is calculated according to the type of the meter, whether the reading of the electric measuring instrument exceeds the normal range is judged according to the incremental value, early warning is carried out when the reading exceeds the normal range, abnormal data can be checked according to different types of meters, and the abnormal data analysis efficiency of the meter reading system can be improved by calculating once every fixed period.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The meter reading system data effectiveness analysis method provided by the application can be applied to the application environment shown in fig. 1. Theelectric measuring instrument 106 is communicated with theacquisition terminal 102 through an RS485 bus, and theacquisition terminal 102 is communicated with themeter reading system 104 through a network. Themeter reading system 104 acquires meter reading system data, wherein the meter reading system data comprises a meter type, an identification code and meter code data; according to the meter type, calculating the maximum increment value of theelectric measuring meter 106 corresponding to the identification code in a preset time period; the preset time period is the time interval between the current time and the last time of acquiring the data of the meter reading system; judging whether the difference value between the meter reading system data acquired at the current time and the meter reading system data acquired last time is larger than the increment value or not; and if the difference value is larger than the increment value, sending first early warning information. Themeter reading system 104 may be implemented by an independent server or a server cluster composed of a plurality of servers.
In an embodiment, as shown in fig. 2, a meter reading system data validity analysis method is provided, which is described by taking the example that the method is applied to themeter reading system 104 in fig. 1, and includes the following steps:
s110, meter reading system data is obtained, wherein the meter reading system data comprises meter type, identification codes and meter code data.
Wherein, the data of the meter reading system can be acquired from the acquisition terminal by the meter reading system; the main functions of the acquisition terminal are to acquire power consumption data of a user and execute various operation commands issued by the master station, and the acquisition terminal is a multifunctional terminal integrating functions of remote monitoring, remote automatic meter reading, electricity stealing prevention, electric energy metering checking and the like. The meter type is a direct current meter or a mutual inductance meter, the identification code is the unique identification code of the electric measuring meter, and the meter data can be the reading of a water meter, the reading of an electric meter or the reading of a gas meter.
S120, calculating the maximum increment value of the electric measuring instrument corresponding to the identification code in a preset time period according to the meter type; the preset time period is the time interval between the current time and the last time of acquiring the meter reading system data.
The maximum increment value is the maximum reading increment which can be measured by the electric measuring instrument in a preset time period, for example, if the reading of the electric energy meter before 1 hour is 10 degrees, the maximum reading which can be reached by the electric energy meter at the current time is 45610 degrees, and the maximum increment value of the electric energy meter in 1 hour is 45600 degrees. The preset time period may be set as needed, for example, the preset time period is 1 hour. Of course, different meter types, have different maximum delta values.
And S130, judging whether the difference value between the meter reading system data acquired at the current time and the meter reading system data acquired at the last time is larger than the increment value.
The difference value between the meter reading system data acquired at the current time and the meter reading system data acquired last time is equal to the difference value between the meter reading system data acquired at the current time and the meter reading system data acquired last time; for example, if the meter reading system data obtained at the current time is 100, and the meter reading system data obtained last time is 50, the difference between the meter reading system data obtained at the current time and the meter reading system data obtained last time is: and if the meter reading system data is obtained once every hour, the last time of obtaining the meter reading system data is one hour ago.
And S140, if the difference value is larger than the increment value, sending first early warning information.
The first early warning information can indicate an early warning level, for example, the first early warning information indicates a serious condition, prevents calculation of the electric quantity and the electric charge of the electric energy meter, and sends an alarm event. The first early warning information can be output in a text mode or displayed in a red light flashing mode. According to the first early warning information, the type and the identification code of the meter are included, and a user can search the corresponding electric measuring instrument for maintenance according to the first early warning information.
According to the meter reading system data effectiveness analysis method, meter reading system data is obtained regularly, the maximum increment value in a preset time period is calculated according to the type of the meter, whether the reading of the electric measuring instrument exceeds a normal range is judged according to the increment value, early warning is carried out when the reading exceeds the normal range, abnormal data can be checked according to different types of meters, and the abnormal data analysis efficiency of the meter reading system can be improved by calculating once every fixed period.
In one embodiment, after acquiring meter reading system data including a meter type, an identification code and meter code data, the method includes: inquiring the last acquired meter reading system data according to the identification code; judging whether the meter reading system data at the current time is smaller than the last acquired meter reading system data or not; and if the meter reading system data at the current time is smaller than the last acquired meter reading system data, sending first early warning information. In this embodiment, the problem of backward movement of the meter code can be found by comparing the meter reading system data at the current time with the meter reading system data at the last time.
In one embodiment, after acquiring meter reading system data including a meter type, an identification code and meter code data, the method includes: judging whether the table code data is empty or not; and if the data of the table code is empty, sending first early warning information. Whether the table code data are empty or not is judged, whether the table code data are all 'EE' can be judged, whether the table code data are all '00' can be judged according to different formats of the table code data frames, and a specific judgment mode can be set according to the specific format of the table code data frames. In this embodiment, the data acquisition abnormality can be found by judging whether the meter reading data is empty or not, which indicates that the meter reading system does not acquire the meter reading data.
In one embodiment, after determining whether a difference between the meter reading system data obtained at the current time and the meter reading system data obtained at the last time is greater than the increment value, the method includes: if the difference value is smaller than or equal to the increment value, judging whether meter reading system data in a preset period of the current time is more than preset data compared with meter reading system data in a preset period of the previous period; and if the meter reading system data in the preset period of the current time is more than the preset data than the meter reading system data in the preset period of the previous period, sending out second early warning information.
The predetermined period may be set as needed, for example, the predetermined period may be set to 1 hour or 1 day, for example, the predetermined period is 1 hour, the predetermined period of the current time is within 1 hour of the current time, and the predetermined period of the previous period is within 1 hour of the previous period. The previous period may be before a predetermined period, before a day, before a week or before a month, although the previous period may be selected as required, or the previous period may be a combination of several time points, for example, the previous period includes before a predetermined period, before a day and before a week. The preset data may be set to 2 times, but may be set to other times as needed.
For example, the preset period is 1 hour, the previous period includes that before one preset period, before one day and before one week, the preset data is 2 times, the meter reading system data in 1 hour of the current time is A, the meter reading system data in 1 hour before one preset period is B, the meter reading system data in 1 hour before one day is C, the meter reading system data in 1 hour before one week is D, whether B, C, D is 2 times of A or not is judged, and second early warning information is sent.
The second early warning information can represent early warning levels, for example, the second early warning information represents warning, the electric quantity and the electric charge of the electric energy meter can be calculated, but an alarm event can be sent out, and a user can check the alarm event. The second early warning information can be output in a text mode or displayed in a yellow flashing mode. And according to the second early warning information, the type and the identification code of the meter are included, and the user can search the corresponding electric measuring instrument for maintenance according to the second early warning information.
In one embodiment, the predetermined period is one hour; judging whether the meter reading system data in the preset period of the current time is compared with the meter reading system data in the preset period of the previous period and exceeds the preset data comprises the following steps: judging whether meter reading system data within one hour of the current time is compared with meter reading system data within one hour of the previous period to exceed preset data or not; alternatively, the predetermined period is one day; judging whether the meter reading system data in the preset period of the current time is compared with the meter reading system data in the preset period of the previous period and exceeds the preset data comprises the following steps: and judging whether the meter reading system data in one day of the current time is more than the preset data compared with the meter reading system data in one day of the previous period.
In one embodiment, the calculating, according to the meter type, a maximum increment value of the electrical measuring instrument corresponding to the identification code within a preset time period includes: and when the meter type is a direct current meter, calculating a maximum incremental value according to the rated voltage, the rated current, the maximum actual power ratio and the duration of a preset time period of the electrical measuring instrument corresponding to the identification code.
Specifically, the meter type is a dc meter, and the maximum incremental value is calculated according to the following formula: w ═ U ═ I ═ β ═ T; wherein, W is the maximum increment value, U is the rated voltage, I is the rated current, beta is the maximum actual power ratio, and T is the duration of the preset time period.
For example, the meter type is a direct current meter, the rated voltage is 380V, the rated current of the direct current meter is 100A, the maximum actual power ratio is 120%, the time duration t1-t2 (unit: hour) of the preset time period, the meter reading system data unit kWh, and the maximum increment value is as follows: W380V 100A 120% (t1-t 2)/1000. The unit of the maximum increment value is consistent with the data unit of the meter reading system.
In one embodiment, the calculating, according to the meter type, a maximum increment value of the electrical measuring instrument corresponding to the identification code within a preset time period includes: and when the meter type is a mutual inductance meter, calculating a maximum incremental value according to the rated voltage, the rated current, the maximum actual power ratio, the meter multiplying power ratio and the duration of a preset time period of the electric measuring instrument corresponding to the identification code.
Specifically, the meter type is a mutual inductance meter, and the maximum increment value calculation formula is as follows: w ═ U ═ β ═ r ═ T; wherein W is the maximum increment value, U is the rated voltage, I is the rated current, beta is the maximum actual power ratio, r is the meter multiplying power, and T is the duration of the preset time period.
For example, the meter type is a mutual inductance meter, the rated voltage is 380V, the rated current is 6A, the maximum actual power ratio is 120%, the meter multiplying power rate, the duration of the preset time period t1-t2 (unit: hour), the meter reading system data unit kWh, and the maximum incremental value is as follows: W380V 6A 120% rate (t1-t 2)/1000. The unit of the maximum increment value is consistent with the data unit of the meter reading system.
It should be understood that, although the steps in the flowchart of fig. 2 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a portion of the steps in fig. 2 may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed in turn or alternately with other steps or at least a portion of the other steps or stages.
In one embodiment, as shown in fig. 3, there is provided a meter reading system data validity analysis apparatus, including: a meter reading system data acquisition module 210, an incrementalvalue calculation module 220, afirst judgment module 230 and anearly warning module 240, wherein:
the meter reading system data obtaining module 210 is configured to obtain meter reading system data, where the meter reading system data includes a meter type, an identification code, and meter code data.
The incrementalvalue calculating module 220 is used for calculating the maximum incremental value of the electric measuring instrument corresponding to the identification code in a preset time period according to the meter type; the preset time period is the time interval between the current time and the last time of acquiring the meter reading system data.
The first determiningmodule 230 is configured to determine whether a difference between the meter reading system data obtained at the current time and the meter reading system data obtained last time is greater than the incremental value.
And theearly warning module 240 is configured to send out first early warning information if the difference is greater than the incremental value.
In one embodiment, the data validity analysis device for a meter reading system further includes: the query module is used for querying the meter reading system data obtained last time according to the identification code; the second judgment module is used for judging whether the meter reading system data at the current time is smaller than the meter reading system data acquired last time; theearly warning module 240 is further configured to send out first early warning information if the meter reading system data at the current time is smaller than the meter reading system data obtained last time.
In one embodiment, the data validity analysis device for a meter reading system further includes: the third judging module is used for judging whether the table code data are empty or not; theearly warning module 240 is further configured to send out first early warning information if the table data is empty.
In one embodiment, the data validity analysis device for a meter reading system further includes: the fourth judging module is used for judging whether the meter reading system data in the preset period of the current time and the meter reading system data in the preset period of the previous period exceed preset data or not if the difference is smaller than or equal to the increment value; theearly warning module 240 is further configured to send out second early warning information if the meter reading system data in the preset period of the current time is more than the preset data than the meter reading system data in the preset period of the previous period.
In one embodiment, the predetermined period is one hour; the fourth judging module is also used for judging whether the meter reading system data in one hour of the current time is more than the preset data compared with the meter reading system data in one hour of the previous period; alternatively, the predetermined period is one day; the fourth judging module is further configured to judge whether the data of the meter reading system in one day of the current time is more than the preset data compared with the data of the meter reading system in one day of the previous period.
In one embodiment, the incrementalvalue calculating module 220 is further configured to calculate a maximum incremental value according to a rated voltage, a rated current, a maximum actual power ratio of the electrical measuring instrument corresponding to the identification code, and a duration of a preset time period when the meter type is a dc meter.
In one embodiment, the incrementalvalue calculating module 220 is further configured to calculate a maximum incremental value according to a rated voltage, a rated current, a maximum actual power ratio, a meter multiplying factor ratio and a duration of a preset time period of the electrical measuring instrument corresponding to the identification code when the meter type is a mutual inductance meter.
For specific limitations of the meter reading system data validity analysis device, reference may be made to the above limitations on the meter reading system data validity analysis method, which is not described herein again. All or part of each module in the meter reading system data effectiveness analysis device can be realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a server, the internal structure of which may be as shown in fig. 4. The computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing meter reading system data. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a meter reading system data validity analysis method.
Those skilled in the art will appreciate that the architecture shown in fig. 4 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program:
acquiring meter reading system data, wherein the meter reading system data comprises a meter type, an identification code and meter code data;
according to the meter type, calculating the maximum increment value of the electric measuring instrument corresponding to the identification code in a preset time period; the preset time period is the time interval between the current time and the last time of acquiring the data of the meter reading system;
judging whether the difference value between the meter reading system data acquired at the current time and the meter reading system data acquired last time is larger than the increment value or not;
and if the difference value is larger than the increment value, sending first early warning information.
In one embodiment, the processor, when executing the computer program, further performs the steps of: inquiring the last acquired meter reading system data according to the identification code; judging whether the meter reading system data at the current time is smaller than the last acquired meter reading system data or not; and if the meter reading system data at the current time is smaller than the last acquired meter reading system data, sending first early warning information.
In one embodiment, the processor, when executing the computer program, further performs the steps of: judging whether the table code data is empty or not; and if the data of the table code is empty, sending first early warning information.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
acquiring meter reading system data, wherein the meter reading system data comprises a meter type, an identification code and meter code data;
according to the meter type, calculating the maximum increment value of the electric measuring instrument corresponding to the identification code in a preset time period; the preset time period is the time interval between the current time and the last time of acquiring the data of the meter reading system;
judging whether the difference value between the meter reading system data acquired at the current time and the meter reading system data acquired last time is larger than the increment value or not;
and if the difference value is larger than the increment value, sending first early warning information.
In one embodiment, the computer program when executed by the processor further performs the steps of: inquiring the last acquired meter reading system data according to the identification code; judging whether the meter reading system data at the current time is smaller than the last acquired meter reading system data or not; and if the meter reading system data at the current time is smaller than the last acquired meter reading system data, sending first early warning information.
In one embodiment, the computer program when executed by the processor further performs the steps of: judging whether the table code data is empty or not; and if the data of the table code is empty, sending first early warning information.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.