Summary of the invention
In view of this, the invention provides a kind of data processing method and device, in timely discovery primary channel, transmit the abnormal of data to reach, and then improve the reliability of transmitting data in power scheduling process, further improve the object of communication system of power grids quality.
For solving the problems of the technologies described above, the invention provides a kind of data processing method, comprising:
Determine that this enters the time point of the new data of the comparison queue of comparison passage, and the time point entering using described new data is as the start time point of time window;
Wherein, described comparison passage be main channel or any one for passage, described time window is the Preset Time section before described start time point;
Check the state of the total data in the described comparison passage of corresponding described time window and the comparison queue of remaining participation comparison passage;
If all normal, described new data is carried out to marking operation.
Preferably, described in check that the described comparison passage of corresponding described time window and remaining participate in the state of the total data in the comparison queue of comparison passage after, also comprise:
If examine data, described in mark, examine data are abnormal data;
Delete the legacy data in the comparison queue of described comparison passage;
Judge in described comparison passage whether have new data, if having, carry out described new data is carried out to this step of marking operation; If nothing, enters data processing next time;
Wherein, described legacy data comprises: front time of once carrying out marking operation institute's mark normal data and abnormal data.
Preferably, described new data is carried out to marking operation, comprising:
Optional one default judging area, judgement is preset described participation corresponding to judging area and is compared in passage, whether there are data with selected; Wherein, described default judging area comprises: taking described start time point as benchmark evening a time window time zone, the time zone of a time window early taking described time window as benchmark, and described morning a time window previous time location;
When having data in described participation comparison passage corresponding to described selected default judging area, and when the described participation that described new data is corresponding with described default judging area is compared data in passage and is mated in default error number range, described in mark, new data is normal data, and enters data processing next time; Otherwise optional one default judging area in remaining default judging area, returns and carries out judgement and preset described participation corresponding to judging area and compare whether there are data in passage with selected;
When having data in described participation comparison passage corresponding to described selected default judging area, and when described selected default judging area is last default judging area, whether the data that the described participation that more described new data is corresponding with described default judging area is compared in passage mate in default error number range, if, described in mark, new data is normal data, and enters data processing next time; If not, described in mark, new data is abnormal data, and enters data processing next time;
When all there is no data in described participation comparison passage corresponding to described default judging area, described in mark, new data is examine data, and enters data processing next time.
Preferably, the scope of described Preset Time section is 30s~80s.
Preferably, after new data is abnormal data described in mark, also comprise:
The note abnormalities warning message of data of generation.
Preferably, also comprise:
The comparison queue of comparing in passage described in exceed a described time window does not enter new data, is abnormal data by all data markers in the comparison queue of this passage of comparison corresponding described time window.
A kind of data processing equipment, comprising:
Determining unit, for determining that this enters the time point of the new data of the comparison queue of comparison passage;
Check unit, for checking the described comparison passage of corresponding described time window and the state of the total data of the comparison queue of remaining participation comparison passage;
Indexing unit, for carrying out marking operation to described new data.
Preferably, described indexing unit comprises:
The first judge module, for optional one default judging area, judgement is preset described participation corresponding to judging area and is compared in passage, whether there are data with selected; Wherein, described default judging area comprises: taking described time window as benchmark evening a time window time zone, the time zone of a time window early taking described time window as benchmark, and described morning a time window previous time location;
The first mark module, for comparing in passage and have data when described participation corresponding to described selected default judging area, and when the described participation that described new data is corresponding with described default judging area is compared data in passage and is mated in default error number range, described in mark, new data is normal data, and enters data processing next time; Otherwise return and carry out described the first judge module based on remaining default judging area;
The second mark module, for comparing in passage and have data when described participation corresponding to described selected default judging area, and when described selected default judging area is last default judging area, whether the data that the described participation that more described new data is corresponding with described default judging area is compared in passage mate in default error number range, if, described in mark, new data is normal data, and enters data processing next time; If not, described in mark, new data is abnormal data, and enters data processing next time;
The 3rd mark module, for comparing in passage and all there is no data when described participation corresponding to described default judging area, described in mark, new data is examine data, and enters data processing next time.
Preferably, this device also comprises:
Alarm unit, for when sending warning after described indexing unit mark abnormal data.
Preferably, described alarm unit is buzzer and/or light-emitting diode.
Compare prior art, the present invention has following beneficial effect:
A kind of data processing method provided by the present invention and device, the method enters the time point of the new data of the comparison queue of comparison passage by determining this, and start time point using this time point as time window, wherein, described comparison passage be main channel or any one for passage, described time window is the Preset Time section before described start time point; Then, check the state of the total data in the described comparison passage of corresponding described time window and the comparison queue of remaining participation comparison passage, if this total data is normal data, described new data is carried out to marking operation.Thereby the present invention carries out marking operation by said method to described new data has realized to distinguish the state of the data in passage the abnormal reliability of transmitting data in power scheduling process that improves of transmitting data in timely discovery primary channel, and further improves the object of the method for communication system of power grids quality.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiment.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
Core of the present invention is to provide a kind of data processing method and device, carry out marking operation by the data in passage, in timely discovery primary channel, transmit the abnormal of data to reach, and then improve the reliability of transmitting data in power scheduling process, further improve the object of communication system of power grids quality.
In order to make those skilled in the art person understand better the present invention program, below in conjunction with the drawings and specific embodiments, the present invention is described in further detail.
Embodiment mono-
Please refer to Fig. 1, the flow chart of the data processing method that Fig. 1 provides for the embodiment of the present invention one, the method comprises the following steps:
Step 100, determine that this enters the time point of new data of the comparison queue of comparison passage, and the time point entering using described new data is as the start time point of time window;
Wherein, described comparison passage refer to current have new data to enter or passage in the vicissitudinous passage of data, this passage does not limit, and may be both main channel, also may be any one for passage, described time window is the Preset Time section before described start time point;
It should be noted that, the data processing method that the present embodiment provides is mainly processed telemetry intelligence (TELINT) data herein, and this explanation is applicable to other embodiment of the present invention.
In actual channel transmission data process, interchannel transfer of data can not be accomplished synchronous completely, the present invention is by arranging this time window, it is the maximum time deviation that data allow when asynchronous, avoid having influence on due to propagation delay time the accuracy of data processed result in the time that the interchannel ruuning situation of comparing is slightly different, has ensured the dependable with function of the result of the method.Certainly, in order to ensure order and the reliability of interchannel transfer of data, said propagation delay time must be within the specific limits herein, this scope is described Preset Time section, the practical scope of this Preset Time section is 30s~80s, preferably, the embodiment of the present invention adopts 60s as this Preset Time section, and other embodiment of the present invention is also like this.
Step 101, check that the described comparison passage of corresponding described time window and remaining participate in the state of the total data in the comparison queue of comparison passage;
Wherein, described data comprise: normal data, abnormal data or examine data, in the time that these data are normal data, its state is normal, and in the time that these data are abnormal data, its state is abnormal, in the time that these data are examine data, its state is indefinite, may be for may be also normally abnormal.
If step 102 is all normal, described new data is carried out to marking operation.
In step 102, within the scope of described time window, if the total data in the comparison queue of described comparison passage and the comparison of participation in fact passage is normal condition, based on this, new data is carried out to marking operation, the concrete implementation of this marking operation is comparison, by new data and the data that participate in comparing in passage are compared, thereby confirm the state of new data and carry out corresponding mark, whether exist extremely by transmitting data in the known current comparison passage of this mark, that is to say, when whether prepass meets the condition of switching with other passages.
A kind of data processing method that the above embodiment of the present invention one provides, realize and in timely discovery primary channel, transmitted the abnormal of data to distinguish the state of data by described new data being carried out to marking operation, thereby improve the reliability of transmitting data in power scheduling process, further improve the object of the method for communication system of power grids quality.
Embodiment bis-
Based on the disclosed method of above-described embodiment one, its execution step 101, after checking the state of the total data in the described comparison passage of corresponding described time window and the comparison queue of remaining participation comparison passage, also comprises following steps as shown in Figure 2:
If step 200 examine data, described in mark, examine data are abnormal data;
Step 201, delete the legacy data in the comparison queue of described comparison passage;
In step 201, why to delete the legacy data in the comparison queue of described comparison passage, empty queue before before carrying out new round comparing, be in order not affect new round comparison effect.
Step 202, judge in described comparison passage whether have new data, if having, carry out described new data is carried out to this step of marking operation; If nothing, enters data processing next time;
Here it should be noted that, herein " if without " refer to situation about remaining unchanged for a long period of time when telemetry in passage, although this is a kind of situation of rareness, for the preciseness of ensuring method is also included interior.
Wherein, described legacy data comprises: front time of once carrying out marking operation institute's mark normal data and abnormal data.
The present embodiment two is on the basis of embodiment mono-disclosed data processing method, add the treatment step in the time that the state of the total data in the described comparison passage of corresponding described time window and the comparison queue of remaining participation comparison passage is examine state, and occur that the data of examine state are possible in practical application comparison labeling process, the data processing method being provided with this present embodiment two is compared embodiment mono-can tackle the more data cases of processing, also has more practicality.
Embodiment tri-
Based on above-described embodiment one and the disclosed method of embodiment bis-, in its execution step 102, the detailed process that described new data is carried out to marking operation as shown in Figure 3, specifically comprises the steps:
Step 300, optional one default judging area, judgement is preset described participation corresponding to judging area and is compared in passage, whether there are data with selected;
Wherein, described default judging area comprises: taking described start time point as benchmark evening a time window time zone, the time zone of a time window early taking described time window as benchmark, and described morning a time window previous time location;
Step 301, when having data in described participation comparison passage corresponding to described selected default judging area, and when the described participation that described new data is corresponding with described default judging area is compared data in passage and is mated in default error number range, described in mark, new data is normal data, and enters data processing next time; Otherwise optional one default judging area in remaining default judging area, returns and carries out judgement and preset described participation corresponding to judging area and compare whether there are data in passage with selected;
Wherein, described default error numerical value can be set according to the actual requirements voluntarily by those skilled in the art, such as the described error numerical value of definition is 0.1%, represent that two values all judge that in 0.1% error range two values match, certainly, this only just gives an example, and just, as above-mentioned said can setting voluntarily according to the actual requirements by those skilled in the art, this does not affect realization of the present invention;
Here it should be noted that, in step 301, when the described participation that described new data is corresponding with described default judging area is compared data in passage and is mated in default error number range, wherein, data in described participation comparison passage refer to all data in this participation comparison passage, when the i.e. described participation corresponding with described default judging area when described new data compared all data in passage and mated in default error number range, just described in mark, new data is normal data, and enter data processing next time, equally, what in other embodiment of the present invention, judge whether with new data that the participation of mating compares that data in passage refer to is also that all data in passage are compared in this participation.
Step 302, when having data in described participation comparison passage corresponding to described selected default judging area, and when described selected default judging area is last default judging area, whether the data that the described participation that more described new data is corresponding with described default judging area is compared in passage mate in default error number range, if, described in mark, new data is normal data, and enters data processing next time; If not, described in mark, new data is abnormal data, and enters data processing next time;
Wherein, in the time that described selected default judging area be last default judging area, except when the data of all default judging area in addition, front default judging area all participated in judging whether the execution step of mating with new data.
Step 303, when all there is no data in described participation comparison passage corresponding to described default judging area, described in mark, new data is examine data, and enters data processing next time.
Below why will have new data described in mark is the step of examine data, to consider in actual applications, there is the situation that all there is no data in described participation comparison passage corresponding to described default judging area, so that can have the processing method of answering in contrast in the time running into this situation, obviously, the embodiment of the present invention three has significant preciseness.
The present embodiment three provides execution step 102, described new data is carried out to the detailed process of marking operation, obtain type by the mark that described new data is carried out to normal data, abnormal data or examine data to distinguish data in queue, to find in time the abnormal of transmission data, the transmission data of mentioning here extremely to refer to the described new data of thinking in the time that new data described in mark is abnormal data in transmitting procedure abnormal; Transmit data in passage and whether have abnormal in the situation that understanding, the present invention has significantly improved the availability of channel data, make the hot stand-by duty of alternate channel really in ready-to-use state, thereby improve the reliability of transmitting data in power scheduling process, further improve the object of the method for communication system of power grids quality.
Embodiment tetra-
Based on the particularly disclosed method of embodiment tri-of the various embodiments described above, in its execution step 102, described new data is carried out to marking operation detailed process as shown in Figure 4, specifically comprise the steps:
Step 400, judgement are compared described participation corresponding to a late time window and are compared in passage whether have data with described time window, if had, enter step 401, if do not had, enter step 402;
Step 401, relatively enter all data that described new data in the comparison queue of described comparison passage and described participation corresponding to time window in evening compare in passage and whether mate in default error number range, if coupling, described in mark, new data is normal data, and enter data processing next time, if do not mate, enter step 402;
Step 402, judgement are compared an early described participation corresponding to time window and are compared in passage whether have data with described time window, if had, enter step 403, if do not had, enter step 404;
Step 403, relatively enter all data that described new data in the comparison queue of described comparison passage and described participation that early time window is corresponding compare in passage and whether mate in default error number range, if coupling, described in mark, new data is normal data, and enter data processing next time, if do not mate, enter step 404;
Step 404, judgement are compared an early described participation corresponding to time window and are compared passage and whether have data outward with described time window, if had, enter step 405, if do not had, described in mark, new data is examine status data, and enters data processing next time;
Step 405, relatively enter first data that described new data in the comparison queue of described comparison passage and described participation that early time window is corresponding compare outside passage and whether mate in default error number range;
If coupling, described in mark, new data is normal data, and enters data processing next time;
If do not mate, described in mark, new data is abnormal data, and enters data processing next time.
For above embodiment tetra-and other embodiment, described new data is carried out the detailed process of marking operation, here provide an example in conjunction with Fig. 5, wherein, the concrete meaning of Fig. 5 is: data and curves below represents that new data X is in described comparison passage A, data and curves below represents any one the participation comparison channel B in described participation comparison passage, and exist the time point of comparison queue tail of the queue that enters described comparison passage using described new data X as the time window of start time point definition, wherein the time zone of a late time window taking described start time point as benchmark is defined as to very first time window 51, by taking described start time point as benchmark early the time zone of a time window be defined as the second time window 52, and, in participation comparison channel B corresponding to the second time window 52, there is data Y and data Z and all mate with data X, the participation that all the other time windows are corresponding is compared in channel B does not have data,
In conjunction with Fig. 4 and Fig. 5, the detailed process of new data X being carried out to marking operation comprises:
Judge that the described participation corresponding with very first time window 51 compare and in channel B, there is no data;
The judgement described participation corresponding with the second time window 52 compared data, i.e. data Y and data Z in channel B;
Relatively data Y and the data Z in passage compared in the new data X described participation corresponding with the second time window 52 respectively, in default error number range, whether mate, result is all to mate, and described in mark, new data is normal data, and enters data processing next time.
Certainly, be only sub for example herein, in order to facilitate those skilled in the art to understand technical scheme of the present invention, be not limited to the content in above-mentioned example.
The embodiment of the present invention four is open to performing step 102 at embodiment tri-, described new data is carried out on the basis of detailed process of marking operation, method as foregoing is further disclosed, here it should be noted that, in the present embodiment related execution step order only just for those skilled in the art more clearly understand technical scheme provided by the present invention for example, in fact there is not obvious sequencing, as long as it is all desirable can realizing the order of the essentiality content in above-mentioned execution step, do not affect the realization of technical solution of the present invention, this is also that embodiment tri-disclosed methods embody and require, the effect that the present embodiment three plays in data processing method provided by the invention, as embodiment tri-, repeats no more here.
Here it should be noted that, in the various embodiments described above, its execution step, after new data is abnormal data described in mark, also comprises:
The note abnormalities warning message of data of generation.
Wherein, warning message at least comprises: the residing transmission channel of this abnormal data.
The angle of the object that will realize from the present invention (thereby realizes the abnormal reliability of transmitting data in power scheduling process that improves of finding in time to transmit primary channel data, further improve communication system of power grids quality), after new data described in mark is abnormal data, also comprise the warning message that generates the data that note abnormalities, occur abnormal to transmit data in this reminding technology personnel channel, then processed accordingly by technical staff, obviously, this is more conducive to realize object of the present invention.
Also it should be noted that, in the various embodiments described above, before determining the time point of new data of this comparison queue that enters comparison passage, or carrying out in the process of data processing, further comprising the steps of:
The comparison queue of comparing in passage described in exceed a described time window does not enter new data, is abnormal data by all data markers in the comparison queue of this passage of comparison corresponding described time window.
Because exist many ambiguity situations in actual data transmission procedure, just described above exceeding described in a described time window compare the situation that the comparison queue in passage does not enter new data, in data processing method of the present invention, there is the reply step for above-mentioned situation, make the present invention have more practicality.
Embodiment five
Based on the disclosed data processing method of the various embodiments described above of the present invention, the embodiment of the present invention five also corresponding said method provides a kind of data processing equipment, comprising:
Determining unit, for determining that this enters the time point of the new data of the comparison queue of comparison passage;
Check unit, for checking the described comparison passage of corresponding described time window and the state of the total data of the comparison queue of remaining participation comparison passage;
Indexing unit, for carrying out marking operation to described new data.
Wherein, described indexing unit specifically comprises:
The first judge module, for optional one default judging area, judgement is preset described participation corresponding to judging area and is compared in passage, whether there are data with selected; Wherein, described default judging area comprises: taking described time window as benchmark evening a time window time zone, the time zone of a time window early taking described time window as benchmark, and described morning a time window previous time location;
The first mark module, for comparing in passage and have data when described participation corresponding to described selected default judging area, and when the described participation that described new data is corresponding with described default judging area is compared data in passage and is mated in default error number range, described in mark, new data is normal data, and enters data processing next time; Otherwise return and carry out described the first judge module based on remaining default judging area;
The second mark module, for comparing in passage and have data when described participation corresponding to described selected default judging area, and when described selected default judging area is last default judging area, whether the data that the described participation that more described new data is corresponding with described default judging area is compared in passage mate in default error number range, if, described in mark, new data is normal data, and enters data processing next time; If not, described in mark, new data is abnormal data, and enters data processing next time;
The 3rd mark module, for comparing in passage and all there is no data when described participation corresponding to described default judging area, described in mark, new data is examine data, and enters data processing next time.
Data processing method embodiment before the data processing equipment that the present embodiment provides corresponds to, this data processing equipment has been realized and in timely discovery primary channel, has been transmitted the abnormal of data to distinguish the state of data by described new data being carried out to marking operation, thereby improve the reliability of transmitting data in power scheduling process, further improve the object of the method for communication system of power grids quality.
Embodiment six
Based on above-described embodiment five and the disclosed data processing equipment of embodiment six, this device also comprises:
Alarm unit, for when sending warning after described indexing unit mark abnormal data;
Wherein, described alarm unit is buzzer and/or light-emitting diode.
In the embodiment of the present invention six, alarm unit adopts buzzer and/or light-emitting diode only just for example, as long as can realize, transmission data is occurred to sending warning when abnormal can adopt, and does not affect realization of the present invention.
Here it should be noted that, embodiment mono-to five disclosed data processing method is applicable to embodiment five to six disclosed data processing equipments.
Above data processing method provided by the present invention and device are described in detail.Applied specific case herein principle of the present invention and execution mode are set forth, the explanation of above embodiment is just for helping to understand method of the present invention and core concept thereof.It should be pointed out that for those skilled in the art, under the premise without departing from the principles of the invention, can also carry out some improvement and modification to the present invention, these improvement and modification also fall in the protection range of the claims in the present invention.