CN109739861A - A kind of instrumented data processing method and processing device - Google Patents
A kind of instrumented data processing method and processing device Download PDFInfo
- Publication number
- CN109739861A CN109739861A CN201811646461.0A CN201811646461A CN109739861A CN 109739861 A CN109739861 A CN 109739861A CN 201811646461 A CN201811646461 A CN 201811646461A CN 109739861 A CN109739861 A CN 109739861A
- Authority
- CN
- China
- Prior art keywords
- data
- data processing
- arrangement
- storing
- processing module
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Landscapes
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
- Arrangements For Transmission Of Measured Signals (AREA)
Abstract
The embodiment of the present invention proposes a kind of instrumented data processing method and processing device, is related to data analysis field.This method comprises: obtaining user input data, wherein input data includes the characteristic information of instrument, the corresponding read path of characteristic information is obtained according to characteristic information and preset reading template, wherein read the corresponding relationship that template record has characteristic information and read path, the storing data in the storage chip of instrument is read according to read path, data analysis is carried out to storing data, to determine whether storing data is correct data, which can realize the above method.When the damage of the data meter of consumer, since the storing data of different storage chips can be read immediately at the scene, and determine whether storing data is correct data, therefore efficiently solve poor in timeliness, the problems such as data are opaque, and avoid the possibility for causing Settlement Dispute.
Description
Technical field
The present invention relates to data analysis fields, in particular to a kind of instrumented data processing method and processing device.
Background technique
Data meter will appear some abnormal situations, such as display failure, communication failure, burning table in the process of running
Deng when this takes place, then faulty meter need to being torn open back to the data meter that consumer more renews, and read in time
It is related to the critical data of consumer's clearing in analysis faulty meter.
Currently, being usually to return faulty meter to each data meter manufacturing enterprise, its key to faulty meter is entrusted
Data are analyzed, then the data that analysis obtains are fed back to consumer by operator.This mode have poor in timeliness,
The problems such as data are opaque, and when the faulty meter returned is more, since data chip is easy to obscure, exists and give electric power public affairs
Disbursement and sattlement causes the possibility of dispute between department and consumer.
Summary of the invention
The embodiment of the present invention is designed to provide a kind of instrumented data processing method and processing device, due to that can be at the scene
When read the storing datas of different storage chips, and determine whether storing data is correct data, therefore efficiently solve timeliness
Difference, the problems such as data are opaque, and avoid the possibility for causing Settlement Dispute.
To achieve the goals above, technical solution used in the embodiment of the present invention is as follows:
In a first aspect, the embodiment of the present invention proposes a kind of instrumented data processing method, this method comprises: obtaining user's input
Data, wherein input data includes the characteristic information of instrument, obtains characteristic information according to characteristic information and preset reading template
Corresponding read path is read wherein reading the corresponding relationship that template record has characteristic information and read path according to read path
The storing data in the storage chip of instrument is taken, data analysis is carried out to storing data, to determine whether storing data is correct
Data.
Second aspect, the embodiment of the present invention also propose a kind of instrumented data processing unit, including data processing module and number
According to read module, data processing module is electrically connected with data read module.The data processing module inputs number for obtaining user
According to wherein input data includes the characteristic information of instrument, and data processing module is also used to according to characteristic information and preset reading
Template obtains the corresponding read path of characteristic information, has characteristic information is corresponding with read path to close wherein reading template record
System, data processing module are also used to control the storage number in the storage chip of data read module reading instrument according to read path
According to data processing module is also used to carry out data analysis to storing data, to determine whether storing data is correct data.
Instrumented data processing method and processing device provided by the embodiment of the present invention, this method comprises: obtaining user inputs number
According to wherein input data includes the characteristic information of instrument, obtains characteristic information pair according to characteristic information and preset reading template
The read path answered is read wherein reading the corresponding relationship that template record has characteristic information and read path according to read path
Storing data in the storage chip of instrument carries out data analysis to storing data, to determine whether storing data is positive exact figures
According to the device can realize the above method.When the damage of the data meter of consumer, deposited since difference can be read immediately at the scene
The storing data of chip is stored up, and determines whether storing data is correct data, therefore it is opaque to efficiently solve poor in timeliness, data
The problems such as, and avoid the possibility for causing Settlement Dispute.
Other features and advantages of the present invention will be illustrated in subsequent specification, also, partly be become from specification
It is clear that by implementing understanding of the embodiment of the present invention.The objectives and other advantages of the invention can be by written theory
Specifically noted structure is achieved and obtained in bright book, claims and attached drawing.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be to needed in the embodiment attached
Figure is briefly described, it should be understood that the following drawings illustrates only certain embodiments of the present invention, therefore is not construed as pair
The restriction of range for those of ordinary skill in the art without creative efforts, can also be according to this
A little attached drawings obtain other relevant attached drawings.
Fig. 1 shows the application environment schematic diagram of instrumented data processing unit provided by the embodiment of the present invention.
Fig. 2 shows the structural block diagrams of data processing module provided by the embodiment of the present invention.
Fig. 3 shows the structural schematic diagram of instrumented data processing unit provided by the embodiment of the present invention.
Fig. 4 shows the schematic diagram of power instrument data processing equipment provided by the embodiment of the present invention.
Fig. 5 shows the line chart of electricity trend provided by the embodiment of the present invention.
Fig. 6 shows a kind of flow diagram of instrumented data processing method provided by the embodiment of the present invention.
Fig. 7 shows the flow diagram of another kind instrumented data processing method provided by the embodiment of the present invention.
Fig. 8 shows the flow diagram of another instrumented data processing method provided by the embodiment of the present invention.
Icon: 100- instrumented data processing unit;110- data processing module;111- memory;112- processor;113-
Communication interface;120- data read module;121-MCU;122- chip interface;123-EEPROM pedestal;124-FLASH pedestal;
125-ESAM pedestal;126-RS485 interface;130- storage chip;200- server;300- power instrument data processing equipment.
Specific embodiment
Below in conjunction with attached drawing in the embodiment of the present invention, technical solution in the embodiment of the present invention carries out clear, complete
Ground description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.Usually exist
The component of the embodiment of the present invention described and illustrated in attached drawing can be arranged and be designed with a variety of different configurations herein.Cause
This, is not intended to limit claimed invention to the detailed description of the embodiment of the present invention provided in the accompanying drawings below
Range, but it is merely representative of selected embodiment of the invention.Based on the embodiment of the present invention, those skilled in the art are not doing
Every other embodiment obtained under the premise of creative work out, shall fall within the protection scope of the present invention.
It should also be noted that similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi
It is defined in a attached drawing, does not then need that it is further defined and explained in subsequent attached drawing.
Fig. 1 is please referred to, is the application environment schematic diagram of instrumented data processing unit 100 provided by the embodiment of the present invention.
The instrumented data processing unit 100 include data processing module 110 and data read module 120, data read module 120 with
The storage chip 130 of instrument to be read connects, and the server 200 of data processing module 110 and operator communicates to connect.
Data processing module 110 can be, but not limited to be portable computer, embedded device etc., for obtaining the defeated of user
Enter data and obtains historical data to be compared from server 200;Data read module 120 can be, but not limited to be single-chip microcontroller,
Embedded device etc., for reading the storing data in storage chip 130 according to read path.
It referring to figure 2., is the structural block diagram of data processing module 110 provided by the embodiment of the present invention.Data processing mould
Block 110 may include memory 111, processor 112 and communication interface 113, the memory 111, processor 112 and communication interface
113, each element is directly or indirectly electrically connected between each other, to realize the transmission or interaction of data.For example, these element phases
It can be realized and be electrically connected by one or more communication bus or signal wire between mutually.Memory 111 can be used for storing software journey
Sequence and module, the corresponding program instruction/module of message processing method and device as provided by the embodiment of the present invention, and store
The Backup Data of the storing data of preset reading template and reading can also be stored in device 111 simultaneously.Processor 112 passes through
The software program and module being stored in memory 111 are executed, thereby executing various function application and data processing.The communication
Interface 113 can be used for carrying out the communication of signaling or data with other node devices, such as: with data read module shown in FIG. 1
120 electrical connections are communicated to connect with the server 200 of operator, for sending read path, control to data read module 120
System order receives the storing data that data read module 120 returns, and for sending number to the server 200 of operator
According to request, the historical comparison data that server 200 returns are received.
Wherein, memory 111 can be but not limited to, random access memory (Random Access Memory,
RAM), read-only memory (Read Only Memory, ROM), programmable read only memory (Programmable Read-Only
Memory, PROM), erasable read-only memory (Erasable Programmable Read-Only Memory, EPROM),
Electricallyerasable ROM (EEROM) (Electric Erasable Programmable Read-Only Memory, EEPROM) etc..
Processor 112 may be a kind of IC chip, have signal handling capacity.The processor 120 can be logical
With processor, including central processing unit (Central Processing Unit, CPU), network processing unit (Network
Processor, NP) etc.;Can also be digital signal processor (DSP)), specific integrated circuit (ASIC), ready-made programmable gate
Array (FPGA) either other programmable logic device, discrete gate or transistor logic, discrete hardware components.
It is appreciated that structure shown in Fig. 2 is only to illustrate, data processing module 110 may also include more than shown in Fig. 2
Perhaps less component or with the configuration different from shown in Fig. 2.Each component shown in Fig. 2 can use hardware, software
Or combinations thereof realize.
It referring to figure 3., is the structural schematic diagram of instrumented data processing unit provided by the embodiment of the present invention.The instrument number
It include data processing module 110 and data read module 120 according to processing unit 100, data read module 120 may include
MCU121 (Microcontroller Unit, micro-control unit) and multiple chip interfaces 122, MCU121 connect with multiple chips
Mouth 122 is electrically connected, and MCU121 is also electrically connected with data processing module 110, and multiple chip interfaces 122 can be with inhomogeneity
The storage chip of type connects, for reading the storing data of different types of storage chip.
When using the device read instrument storage chip 130 in storing data, and determine the storing data whether be
When correct data, specifically include:
Data processing module 110 may include man-machine interaction unit, such as touch input module etc., data processing module
110 obtain the input data of user for controlling man-machine interaction unit, and wherein input data includes the characteristic information of instrument;
Data processing module 110 is also used to obtain the corresponding reading of characteristic information according to characteristic information and preset reading template
Path is taken, wherein reading the corresponding relationship that template record has characteristic information and read path;
Data processing module 110 is also used to control MCU121 according to read path and read in the storage chip 130 of instrument
Storing data, wherein MCU121 can read depositing in different types of storage chip 130 by different chip interfaces 122
Store up data;
Data processing module 110 is also used to carry out data analysis to storing data, to determine whether storing data is correct
Data.Wherein, the server 200 of data processing module 110 and operator communicates to connect, and can be used for from server 200
Historical data to be compared is obtained, and data analysis is carried out to storing data according to historical data to be compared, to determine storing data
It whether is correct data.
Since the storing data of different types of storage chip can be read by multiple chip interfaces, to reach existing
Field reads the storing datas of different storage chips immediately, and determine storing data whether be correct data purpose.
It is appreciated that instrumented data processing unit provided by the embodiment of the present invention can be applied to read can be by data
The data of instrument record, for example, water data, with destiny evidence, electricity consumption data etc..Furthermore, it is desirable to explanation, the present invention is implemented
Instrumented data processing unit provided by example is carried out particularly suitable for the storing data in read failure instrument, and to storing data
Data analysis, to determine whether the storing data is correct data.
For example, when the instrumented data processing unit is used to read the electricity consumption data of power instrument, referring to figure 4., the electricity
Measuring instrumented data processing unit 300 may include data processing module 110 and data read module 120, data read module
120 may include that (Electric Erasable Programmable Read-Only Memory, electricity can by MCU121, EEPROM
Erasable read only memory) pedestal 123, FLASH (Flash Memory, flash memory) pedestal 124, ESAM (Embedded Secure
Access Module, embedded safe control module) pedestal 125 and RS485 interface 126.MCU121 respectively with the bottom EEPROM
Seat 123, FLASH pedestal 124, ESAM pedestal 125 and RS485 interface 126 are electrically connected, and MCU121 also with data processing
Module 110 is electrically connected.
Data processing module 110 is used to obtain the input data of user, and wherein input data includes the feature of power instrument
Information;Then the corresponding read path of characteristic information is obtained according to characteristic information and preset reading template, wherein read template
Record has the corresponding relationship of characteristic information and read path;After getting read path, data processing module 110 is also used to root
The storing data in the storage chip of power instrument is read according to read path control MCU121.
The storing data for how obtaining storage chip to above-mentioned data processing module 110 below is described in detail.
Data processing module 110 may include man-machine interaction unit, such as touch input unit, user can by with touching
Input unit interaction is touched, to 110 input data of data processing module, data processing module 110 can pass through the touch input list
Member obtains the input data of user, and wherein input data includes the characteristic information of power instrument, for example, this feature information can be with
It is: the information such as manufacturing factory, production batch and model that power instrument carries.
The maintenance of data processing module 110 has multiple reading templates, and each reading template record has characteristic information and reads road
The corresponding relationship of diameter, it is assumed that the first reading template record has " A " producer " 08 " batch " 10 " model (characteristic information) and reads road
The corresponding relationship of diameter " a ", when the characteristic information for including in user input data is " A " producer " 08 " batch " 10 " model, then
It obtains read path " a ".Wherein, when data processing module 110 obtains the failure of preset reading template, i.e. data processing module
110 when not being previously stored with reading template corresponding with characteristic information, and generation lacks Template Information, to prompt user's production pair
Answer the reading template of power instrument.
Data processing module 110 sends the read path and reading order when getting read path, to MCU121,
Since EEPROM pedestal 123 supports IIC, SPI communications protocol, FLASH pedestal 124 supports SPI communications protocol, ESAM pedestal 125
Support U7816, SPI communications protocol, therefore MCU121 can read different types of deposit according to reading order and read path
The storing data in chip is stored up, there are many types for the storage chip in power instrument at present, comprising: EEPROM, FLASH, ESAM
It can be connected with EEPROM pedestal 123 Deng, it will be understood that the storage chip of EEPROM type, the storage chip of FLASH type
Can be connected with FLASH pedestal 124, the storage chip of ESAM type can be connected with ESAM pedestal 125, for example, when should
When storage chip is EEPROM type, MCU121 can read the storing data in the storage chip by EEPROM pedestal 123,
And for how to read the storing data in storage chip.Since DL/T645-2007 communication protocol provides, in storage chip
Storing data have a corresponding timestamp, the mode that data processing module 110 reads storing data includes: mode one, data
Processing module 110 obtains storing data after getting the chip data in all storage chips, according to template is read, then passes through
Regular expression searches the corresponding timestamp of storing data, to carry out the arrangement of data;Mode two, data processing module 110
The read path for saving the data block of storing data is obtained, then controls data read module 120 and number is searched by regular expression
According to the storing data and the corresponding timestamp of storing data in block.
Wherein, the embodiment of the present invention also provides RS485 interface 126 and connect with MCU121, realizes that power instrument directly passes through
RS485 interface 126 is connect with data read module 120, to make power instrument data processing equipment 300 that branch can be read directly
The storing data in the power instrument of RS485 communications protocol is held, avoids dismantling the process that power instrument takes out storage chip, increase
The practicability of the device.
Further, MCU121 read according to read path and reading order the storing data in storage chip it
Before, it is also used to judge whether the storage chip of connection correctly connects.When storage storage chip correctly connects, MCU121 is used for root
The storing data of storage chip is read according to read path, and is sent to the backup of data processing module 110;When storage chip is not correct
When connection, MCU121 is used to send incorrect link information to data processing module 110, so that data processing module 110 generates mistake
Misconnection information, to prompt user to reconnect storage chip.
Further, the storing data of storage chip includes the first table number data, and the input data of user includes the second table
Number.Data processing module 110 is also used to judge the first table number data and the before carrying out data analysis to storing data
Whether two table number data are consistent.When the first table number data are consistent with the second table number data, data processing module 110 just for pair
Storing data carries out data analysis, to determine whether storing data is correct data;When the first table number data and the second table number number
According to it is inconsistent when, data processing module 110 is for generating table number error message, to prompt the table number mistake of user's storage chip,
For example, the error message can be " storage chip table number mistake or storage chip and user input table number and mismatch ".
Data processing module 110 is also used to carry out data analysis to storing data, to determine whether storing data is correct
Data specifically include:
Data processing module 110 is for arranging storing data according to the sequencing of the corresponding timestamp of storing data
Column, to generate arrangement data;Generate arrange data after, data processing module 110 be also used to according to preset time sequencing with
And the corresponding timestamp judgement arrangement data of arrangement data are with the presence or absence of missing;When arrangement data do not lack, data processing
Module 110 is also used to obtain the variable quantity in arrangement data between adjacent two data, and obtains the mean change amount of variable quantity;
Data processing module 110 is also used to judge whether the difference of any one variable quantity and mean change amount is more than preset threshold, i.e.,
Judge to arrange data whether illogicality (arrangement data in decreasing sequence of numbers occur) and the case where arrangement data mutation;Any
When the difference of a variable quantity and mean change amount is less than preset threshold, data processing module 110 is also used to according to the number of permutations
The historical data to be compared of power instrument is obtained according to corresponding timestamp;It is getting after comparing historical data, data processing
Module 110 is also used to judge whether historical data to be compared is consistent wait compare arrangement data in arrangement data, wherein to right
Timestamp more corresponding than historical data timestamp corresponding with wait compare arrangement data is consistent.
How whether storing data is correctly described in detail is analyzed to above-mentioned data processing module 110 below.
Data read module 120 is when reading storing data, for reading timestamp corresponding with storing data, and according to
The sequencing of the corresponding timestamp of storing data arranges storing data, to generate arrangement data.Assuming that reads deposits
Storing up data includes: D1, D2, D3, D4, D5, and corresponding timestamp is as follows: on July 5th, 18, on July 6th, 18, on July 2nd, 18,
On July 3rd, 18, on July 4th, 18, the then new arrangement data generated are as follows: D3, D4, D5, D1, D2.
After generating arrangement data, data read module 120 is corresponding according to preset time sequencing and arrangement data
Timestamp judgement arrangement data are with the presence or absence of missing.Assuming that preset time sequencing is day sequence, i.e., it is suitable by the day in the date
Sequence, when arrangement data are as follows: when d1 (July 1), d2 (July 3), d3 (July 4), d4 (July 5), then judge to arrange data
There are missing, data processing module 110 generates shortage of data information for determining that storing data is not correct data, to mention
Show that user checks.When arrangement data are as follows: when d1 (July 1), d2 (July 2), d3 (July 3), d4 (July 4), then judge
Arrangement data do not lack, and data processing module 110 is for continuing to analyze storing data.It is appreciated that such as Fig. 5 institute
Show, the acceptable foundation number of permutations of data processing module 110 is accordingly and corresponding timestamp generates tendency chart, so that user checks number
According to when it is faster.
When arrangement data do not lack, data processing module 110 is also used to obtain adjacent two data in arrangement data
Between variable quantity, and obtain the mean change amount of variable quantity, referring again to Fig. 5, in the arrangement data, adjacent two data it
Between variable quantity include: D1 to D2 be 111-102=9, D2 to D3 be 113-111=2, D3 to D4 be 118-113=5, D4 is extremely
D5 is 120-118=2, then the mean change amount of variable quantity is (9+2+5+2) ÷ 4=4.5.
After getting variable quantity and mean change amount, data processing module 110 is also used to judge any one variable quantity
Whether the difference with mean change amount is more than preset threshold.In other words, preset threshold, which is defined with mean change amount, is
One constant interval of point judges that storing data is correct when variable quantity is without departing from constant interval, when variable quantity exceeds variation zone
Between when, judge storing data mistake.Referring again to Fig. 5, it is assumed that preset threshold 10 is then sentenced due to 9 < 10,2 < 10 and 5 < 10
The difference for any one variable quantity and the mean change amount of breaking is less than preset threshold, and data processing module 110 continues to storage number
According to being analyzed.Assuming that preset threshold is 7, due to 9>7,2<7 and 5<7, then judge that there are a variable quantity and mean changes
The difference of amount is more than preset threshold, and data processing module 110 determines that storing data is not correct data and generates error in data letter
Breath, to prompt user to check.
When the difference of any one variable quantity and mean change amount is less than preset threshold, data processing module 110
The historical data to be compared of power instrument is obtained according to the corresponding timestamp of arrangement data.Wherein, data processing module 110 and electric power
The server communication of company connects, and can be used for from server obtaining historical data to be compared, due to the service of Utilities Electric Co.
Device is synchronize synchronized by some cycles with the data of power instrument, so that the historical data in server may not completely include electricity
The data in instrument are measured, so needing to obtain the historical data to be compared of power instrument according to the corresponding timestamp of arrangement data
When, for example, it is assumed that the arrangement data in power instrument include the electricity data from June 1 to July 5, include in server
Historical data is the electricity data in January 1 to July 1, and data processing module 110 obtains history number to be compared from server
According to the electricity data including June 1 to July 1.
It is getting after comparing historical data, data processing module 110 is for judging historical data to be compared and arrangement
It is whether consistent wait compare arrangement data in data, wherein the corresponding timestamp of historical data to be compared and arrangement data to be compared
Corresponding timestamp is consistent.
Data processing module 110 is used to judge historical data to be compared and arranges in data whether arrange data wait compare
Unanimously specifically include: data processing module 110 be used for it is each wait compare arrangement data and corresponding historical data to be compared into
Row difference calculates, to obtain multiple differences;Data processing module 110 is also used to judge to be greater than in multiple differences the difference of preset value
Number whether be more than predetermined number.
Below to above-mentioned data processing module 110 how to judge historical data to be compared and arrange data in wait the row of comparison
Whether column data is unanimously described in detail.
Data processing module 110 carries out difference meter with corresponding historical data to be compared wait compare arrangement data to each
It calculates, to obtain multiple differences, shown in table 1 specific as follows.It should be noted that the embodiment of the present invention is to each number of permutations to be compared
Difference calculating is carried out according to corresponding historical data to be compared, obtains multiple differences, and take absolute value to difference, the present invention is implemented
Example is not limited to take absolute value to difference, can also can calculate using other wait compare arrangement data and history to be compared
The calculation of gap data between data.
Table 1
After obtaining multiple differences, data processing module 110 judges in multiple differences greater than the difference of preset value
Whether number is more than predetermined number.Assuming that predetermined number is 3, preset value 4, then referring to Table X, due to being greater than preset value in difference
The number of difference be 1,1 < 3, then judge that the number of difference in multiple differences greater than preset value is less than predetermined number, number
Determine that historical data to be compared is consistent wait compare arrangement data in arrangement data according to processing module 110, so that it is determined that storage
Data are correct data, and generate data and correctly prompt.Assuming that predetermined number is 3, and preset value 1, then referring to Table X, due to
In difference greater than preset value difference number be 5,5 > 3, then judge in multiple differences greater than preset value difference number
More than predetermined number, data processing module 110, which determines in historical data to be compared and arrangement data, arranges data not wait compare
Unanimously, so that it is determined that storing data is not correct data, and the inconsistent prompt of data is generated, to prompt user to check.
Further, data processing module 110 is also connect with a printing equipment, and data processing module 110 is determining storage
It after data are correct data, is also used to print storing data, it is preferred that the print time stabs the storage number near current time
According to.
Fig. 6 is please referred to, is the flow diagram of instrumented data processing method provided by the embodiment of the present invention.It needs to illustrate
, instrumented data processing method provided by the present embodiment, the technical effect and aforementioned instrument number of basic principle and generation
It is identical according to processing device embodiment, to briefly describe, part is not referred in the present embodiment, can refer in aforementioned device embodiment
Corresponding contents.The instrumented data processing method can be applied to above-mentioned instrumented data processing unit, below will be to tool shown in fig. 6
Body process is described in detail.
Step S100 obtains user input data, and wherein input data includes the characteristic information of instrument.
Step S101 obtains the corresponding read path of characteristic information according to characteristic information and preset reading template, wherein
Read the corresponding relationship that template record has characteristic information and read path.
Step S102 reads the storing data in the storage chip of instrument according to read path.
Step S103 judges whether the first table number data and the second table number data are consistent.
Specifically, step S105 is executed when the first table number data are consistent with the second table number data, to continue to storage number
According to progress data analysis;When the first table number data and the second table number data are inconsistent, step S104 is executed, generates table number mistake
Information, to prompt the table number mistake of user's storage chip.
Step S104 generates table number error message, to prompt the table number mistake of user's storage chip.
Step S105 carries out data analysis to storing data, to determine whether storing data is correct data.
Wherein, Fig. 7 is please referred to, the possible concrete methods of realizing of step S105 includes:
Step S200 arranges storing data according to the sequencing of the corresponding timestamp of storing data, to generate
Arrange data.
Step S201 judges to arrange whether data deposit according to preset time sequencing and the corresponding timestamp of arrangement data
It is lacking.
Specifically, execute step S202 when arranging data in the presence of missing, determine that storing data is not correct data, and
Shortage of data information is generated, to prompt user to check;When arranging data there is no when missing, step S203 is executed, to continue pair
Storing data is analyzed.
Step S202 determines that storing data is not correct data when arranging data in the presence of missing.
Step S203 obtains the variable quantity in arrangement data between adjacent two data, and obtains the average change of variable quantity
Change amount.
Step S204 judges whether the difference of any one variable quantity and mean change amount is more than preset threshold.
Specifically, step S205 is executed when the difference of any one variable quantity and mean change amount is more than preset threshold,
To determine that storing data is not correct data, and error in data information is generated, to prompt user to check;When any one variable quantity with
When the difference of mean change amount is less than preset threshold, step S206 is executed, to continue to analyze storing data.
Step S205, when being more than preset threshold there are the difference of at least one variable quantity and mean change amount, determination is deposited
Storing up data is not correct data.
Step S206 obtains the historical data to be compared of faulty meter according to the corresponding timestamp of arrangement data.
Step S207 judges whether historical data to be compared is consistent wait compare arrangement data in arrangement data, wherein
The corresponding timestamp of historical data to be compared timestamp corresponding with wait compare arrangement data is consistent.
Specifically, when wait compare historical data with arrange data in wait compare arrangement data it is consistent when, execute step
S209, to determine that storing data is correct data;When historical data to be compared arranges data not wait compare with arrangement data
When consistent, step S208 is executed, with to determine storing data not be correct data and generates the inconsistent prompt of data, to prompt user
It checks.
Wherein, Fig. 8 is please referred to, the possible concrete methods of realizing of step S207 includes:
Step S300 carries out difference calculating with corresponding historical data to be compared wait compare arrangement data to each, with
To multiple differences.
Step S301 judges whether the number of the difference in multiple differences greater than preset value is more than predetermined number.
Specifically, step S302 is executed when being greater than the number of difference of preset value in multiple differences more than predetermined number,
To determine historical data to be compared and to arrange data inconsistent wait compare;When the number for the difference for being greater than preset value in multiple differences
When being less than predetermined number, step S303 is executed, to determine that historical data to be compared is consistent with wait compare arrangement data.
Step S302 determines historical data to be compared and to arrange data inconsistent wait compare.
Step S303 determines that historical data to be compared is consistent with wait compare arrangement data.
It referring again to Fig. 6, step S208, determines that storing data is not correct data, and generates the inconsistent prompt of data, with
User is prompted to check.
Step S209 determines that storing data is correct data.
It is understood that the specific embodiment of above instrumented data processing method can refer to institute of the embodiment of the present invention
The instrumented data processing unit of offer.It should be noted that instrumented data processing method described in the embodiment of the present invention not with
Fig. 6 and specific order as described below are limitation, it should be understood that in other embodiments, instrument described in the embodiment of the present invention
The sequence of table data processing method part step can be exchanged with each other according to actual needs or part steps therein
It can be omitted or delete.
In conclusion instrumented data processing method and processing device provided by the embodiment of the present invention, is used this method comprises: obtaining
Family input data, wherein input data includes the characteristic information of instrument, is obtained according to characteristic information and preset reading template special
Reference ceases corresponding read path, wherein the corresponding relationship that template record has characteristic information and read path is read, according to reading
The storing data in the storage chip of instrument is read in path, data analysis is carried out to storing data, whether to determine storing data
For correct data, which can realize the above method.When the damage of the data meter of consumer, due to that can read immediately at the scene
The storing data of different storage chips out, and determine whether storing data is correct data, therefore efficiently solve poor in timeliness, number
According to it is opaque the problems such as, and avoid the possibility for causing Settlement Dispute.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, apparatus, equipment or computer journey
Sequence product.Therefore, the embodiment of the present invention can be used complete hardware embodiment, complete software embodiment or combine software and hardware side
The form of the embodiment in face.Moreover, it wherein includes computer available programs that the embodiment of the present invention, which can be used in one or more,
Implement in the computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) of code
The form of computer program product.
The embodiment of the present invention referring to according to the method for the embodiment of the present invention, device, equipment and computer program product
Flowchart and/or the block diagram describes.It should be understood that can be realized by computer program instructions every in flowchart and/or the block diagram
The combination of process and/or box in one process and/or box and flowchart and/or the block diagram.It can provide these computers
Processor of the program instruction to general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices
To generate a machine, so that generating use by the instruction that computer or the processor of other programmable data processing devices execute
In the dress for realizing the function of specifying in one or more flows of the flowchart and/or one or more blocks of the block diagram
It sets.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates,
Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or
The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one
The step of function of being specified in a box or multiple boxes.
In several embodiments provided by the embodiment of the present invention, it should be understood that disclosed device and method, it can also
To realize by another way.Device and method embodiment described above is only schematical, for example, in attached drawing
Flow chart and block diagram show that the devices of multiple embodiments according to the present invention, method and computer program product are able to achieve
Architecture, function and operation.In this regard, each box in flowchart or block diagram can represent module, a program
A part of section or code, a part of the module, section or code include that one or more is patrolled for realizing defined
Collect the executable instruction of function.It should also be noted that in some implementations as replacement, function marked in the box
It can occur in a different order than that indicated in the drawings.For example, two continuous boxes can actually be held substantially in parallel
Row, they can also be executed in the opposite order sometimes, and this depends on the function involved.It is also noted that block diagram and/or
The combination of each box in flow chart and the box in block diagram and or flow chart, can the function as defined in executing or dynamic
The dedicated hardware based system made is realized, or can be realized using a combination of dedicated hardware and computer instructions.
In addition, each functional module in each embodiment of the present invention can integrate one independent portion of formation together
Point, it is also possible to modules individualism, an independent part can also be integrated to form with two or more modules.
It, can be with if the function is realized and when sold or used as an independent product in the form of software function module
It is stored in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially in other words
The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter
Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a
People's computer, server or network equipment etc.) it performs all or part of the steps of the method described in the various embodiments of the present invention.
And storage medium above-mentioned includes: that USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited
The various media that can store program code such as reservoir (RAM, Random Access Memory), magnetic or disk.It needs
Illustrate, herein, the terms "include", "comprise" or any other variant thereof is intended to cover non-exclusive inclusion,
So that the process, method, article or equipment for including a series of elements not only includes those elements, but also including not having
The other element being expressly recited, or further include for elements inherent to such a process, method, article, or device.Do not having
There is the element limited in the case where more limiting by sentence "including a ...", it is not excluded that in the mistake including the element
There is also other identical elements in journey, method, article or equipment.
The foregoing is merely alternative embodiments of the invention, are not intended to restrict the invention, for the skill of this field
For art personnel, the invention may be variously modified and varied.All within the spirits and principles of the present invention, made any to repair
Change, equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.It should also be noted that similar label and letter exist
Similar terms are indicated in following attached drawing, therefore, once being defined in a certain Xiang Yi attached drawing, are then not required in subsequent attached drawing
It is further defined and explained.
Claims (10)
1. a kind of instrumented data processing method, which is characterized in that the described method includes:
User input data is obtained, wherein the input data includes the characteristic information of instrument;
The corresponding read path of the characteristic information is obtained according to the characteristic information and preset reading template, wherein the reading
Template record is taken to have the corresponding relationship of characteristic information and read path;
The storing data in the storage chip of the instrument is read according to the read path;
Data analysis is carried out to the storing data, whether is correct data with the determination storing data.
2. instrumented data processing method as described in claim 1, which is characterized in that described to carry out data to the storing data
The step of whether analysis with the determination storing data is correct data include:
The storing data is arranged according to the sequencing of the corresponding timestamp of the storing data, to generate the number of permutations
According to;
According to the number of permutations it is judged that whether the storing data is correct data.
3. instrumented data processing method as claimed in claim 2, which is characterized in that it is described according to the number of permutations it is judged that institute
State that the step of whether storing data is correct data includes:
Judge the arrangement data with the presence or absence of scarce according to preset time sequencing and the corresponding timestamp of the arrangement data
It loses;
When the arrangement data are there is no lacking, the variable quantity in the arrangement data between adjacent two data is obtained, and
Obtain the mean change amount of the variable quantity;
Exist when there are the differences of at least one variable quantity and the mean change amount more than preset threshold or the arrangement data
When missing, determine that the storing data is not correct data.
4. instrumented data processing method as claimed in claim 3, which is characterized in that described when there is no lack for the arrangement data
When mistake, the variable quantity in the arrangement data between adjacent two data is obtained, and obtain the mean change amount of the variable quantity
The step of after, the method also includes:
When the difference of any one variable quantity and the mean change amount is less than the preset threshold, according to the number of permutations
The historical data to be compared of the instrument is obtained according to corresponding timestamp;
Judge it is whether consistent wait compare arrangement data in the historical data to be compared and the arrangement data, wherein described in
The corresponding timestamp of comparison historical data with described wait compare, to arrange the corresponding timestamp of data consistent;
When it is described wait compare historical data with it is described arrangement data in wait compare arrangement data it is consistent when, determine the storage number
According to being correct data.
5. instrumented data processing method as claimed in claim 4, which is characterized in that historical data to be compared described in the judgement
Include: wait compare the whether consistent step of arrangement data with the arrangement data
Difference calculating is carried out with corresponding historical data to be compared wait compare arrangement data to each, to obtain multiple differences;
When the number in the multiple difference greater than the difference of preset value is less than predetermined number, the history to be compared is determined
Data with it is described wait compare arrangement data it is consistent.
6. instrumented data processing method as described in claim 1, which is characterized in that the storing data includes the first table number number
According to, the input data includes the second table number data, and it is described that data analysis is carried out to the storing data, with the determination storage
Before the step of whether data are correct data, the method also includes:
Judge whether the first table number data and the second table number data are consistent;
It is described that data analysis is carried out to the storing data, the step of with the determination storing data whether being correct data packet
It includes:
When the first table number data are consistent with the second table number data, data analysis is carried out to the storing data, with
Determine whether the storing data is correct data.
7. a kind of instrumented data processing unit, which is characterized in that including data processing module and data read module, the data
Processing module is electrically connected with the data read module;
The data processing module is for obtaining user input data, wherein the input data includes the characteristic information of instrument;
The data processing module is also used to obtain the characteristic information pair according to the characteristic information and preset reading template
The read path answered, wherein the corresponding relationship for reading template record and having characteristic information and read path;
The data processing module, which is also used to control the data read module according to the read path, reads the instrument
Storing data in storage chip;
The data processing module be also used to the storing data carry out data analysis, with the determination storing data whether be
Correct data.
8. instrumented data processing unit as claimed in claim 7, which is characterized in that the data processing module is used for according to institute
The sequencing for stating the corresponding timestamp of storing data arranges the storing data, to generate arrangement data;
The data processing module is also used to according to the number of permutations it is judged that whether the storing data is correct data.
9. instrumented data processing unit as claimed in claim 8, which is characterized in that the data processing module is used for according to pre-
If time sequencing and the corresponding timestamp of the arrangement data judge the arrangement data with the presence or absence of missing;
The data processing module is also used to obtain adjacent two in the arrangement data when the arrangement data are there is no lacking
Variable quantity between a data, and obtain the mean change amount of the variable quantity;
The data processing module is also used to when there are the differences of at least one variable quantity and the mean change amount more than default
When threshold value or the arrangement data have missing, determine that the storing data is not correct data.
10. instrumented data processing unit as claimed in claim 9, which is characterized in that the data processing module is also used to work as
It is corresponding according to the arrangement data when difference of any one variable quantity and the mean change amount is less than the preset threshold
Timestamp obtain the historical data to be compared of the instrument;
The data processing module is also used to judge arranging in the historical data to be compared and the arrangement data wait compare
Whether data are consistent, wherein the corresponding timestamp of the historical data to be compared arranges data corresponding time wait compare with described
Stamp is consistent;
The data processing module is also used to when the number of permutations to be compared in the historical data to be compared and the arrangement data
According to it is consistent when, determine that the storing data is correct data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811646461.0A CN109739861B (en) | 2018-12-30 | 2018-12-30 | Instrument data processing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811646461.0A CN109739861B (en) | 2018-12-30 | 2018-12-30 | Instrument data processing method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109739861A true CN109739861A (en) | 2019-05-10 |
CN109739861B CN109739861B (en) | 2022-02-15 |
Family
ID=66362819
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811646461.0A Active CN109739861B (en) | 2018-12-30 | 2018-12-30 | Instrument data processing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109739861B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110555073A (en) * | 2019-09-10 | 2019-12-10 | 政采云有限公司 | data processing method and device, electronic equipment and storage medium |
CN114325083A (en) * | 2021-12-29 | 2022-04-12 | 杭州海兴电力科技股份有限公司 | Electric quantity synchronization method, management device and electric quantity meter |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106952464A (en) * | 2017-01-19 | 2017-07-14 | 武汉企鹅能源数据有限公司 | Intelligent data acqusition system and acquisition method |
CN206906814U (en) * | 2016-10-09 | 2018-01-19 | 北华大学 | Network intelligence measure and control instrument |
CN107909796A (en) * | 2017-10-11 | 2018-04-13 | 国网浙江省电力公司湖州供电公司 | A kind of compound acquisition system of dual input multilist and method |
WO2018070592A1 (en) * | 2016-10-11 | 2018-04-19 | 한국전력공사 | Data concentration unit, power meter, and method for operating same |
-
2018
- 2018-12-30 CN CN201811646461.0A patent/CN109739861B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN206906814U (en) * | 2016-10-09 | 2018-01-19 | 北华大学 | Network intelligence measure and control instrument |
WO2018070592A1 (en) * | 2016-10-11 | 2018-04-19 | 한국전력공사 | Data concentration unit, power meter, and method for operating same |
CN106952464A (en) * | 2017-01-19 | 2017-07-14 | 武汉企鹅能源数据有限公司 | Intelligent data acqusition system and acquisition method |
CN107909796A (en) * | 2017-10-11 | 2018-04-13 | 国网浙江省电力公司湖州供电公司 | A kind of compound acquisition system of dual input multilist and method |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110555073A (en) * | 2019-09-10 | 2019-12-10 | 政采云有限公司 | data processing method and device, electronic equipment and storage medium |
CN114325083A (en) * | 2021-12-29 | 2022-04-12 | 杭州海兴电力科技股份有限公司 | Electric quantity synchronization method, management device and electric quantity meter |
Also Published As
Publication number | Publication date |
---|---|
CN109739861B (en) | 2022-02-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108847994A (en) | Alarm localization method, device, equipment and storage medium based on data analysis | |
Zhuang et al. | Resilience/availability analysis of municipal water distribution system incorporating adaptive pump operation | |
US20140039702A1 (en) | Contingency Screening in Multi-Control Area Electrical Power Systems Using Coordinated DC Power Flow | |
CN103869801A (en) | Test method of nuclear power plant instrumentation control logic function block and system | |
CN103729746A (en) | Line loss abnormity positioning method and system | |
CN202522866U (en) | Real-time simulation test platform for power grid stability control test research and development | |
CN109739861A (en) | A kind of instrumented data processing method and processing device | |
Durango-Cohen et al. | Capturing interdependencies and heterogeneity in the management of multifacility transportation infrastructure systems | |
CN103795786A (en) | Embedded concentrator system with web service function | |
US20140006398A1 (en) | System and Method for Energy Management Information System Reliability Assurance | |
CN105574769A (en) | Method and apparatus for establishing social network dynamic relation graph | |
CN109815712A (en) | User right management-control method, device, computer installation and readable storage medium storing program for executing | |
Zhang et al. | Controlling path and controlling segment analysis in repetitive scheduling method | |
CN102542122B (en) | Rendering method and device for power failure area | |
CN205691664U (en) | Electric energy metering system | |
CN108072858A (en) | Electric energy meter method for quality control, system and terminal device | |
Li et al. | Interdependent effects of critical infrastructure systems under different types of disruptions | |
CN108038127A (en) | A kind of method, apparatus, terminal device and the storage medium of data synchronization | |
CN112382006A (en) | Electricity price adjusting method, device and equipment | |
CN104714205B (en) | Electricity meter misplacement detection system and method thereof | |
CN102708035A (en) | Cluster system monitoring system based on pattern matching | |
CN104484753A (en) | Server asset information tracing method | |
CN103064883A (en) | Method for generating data automatically for railway signal maintaining system | |
CN102622698A (en) | Electricity market analyzing and predicting system and analyzing and predicting method thereof | |
CN104915523A (en) | All-service unification modeling method based on time series |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |