CN104182507A - PQDIF (power quality data interchange format) communication uniformity detection method - Google Patents

PQDIF (power quality data interchange format) communication uniformity detection method Download PDF

Info

Publication number
CN104182507A
CN104182507A CN201410409946.3A CN201410409946A CN104182507A CN 104182507 A CN104182507 A CN 104182507A CN 201410409946 A CN201410409946 A CN 201410409946A CN 104182507 A CN104182507 A CN 104182507A
Authority
CN
China
Prior art keywords
pqdif
file
detection
communication
combination
Prior art date
Application number
CN201410409946.3A
Other languages
Chinese (zh)
Inventor
黄学良
周磊
曲小慧
李群
袁晓冬
陈兵
Original Assignee
国家电网公司
江苏省电力公司
江苏省电力公司电力科学研究院
东南大学
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by 国家电网公司, 江苏省电力公司, 江苏省电力公司电力科学研究院, 东南大学 filed Critical 国家电网公司
Priority to CN201410409946.3A priority Critical patent/CN104182507A/en
Publication of CN104182507A publication Critical patent/CN104182507A/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/11File system administration, e.g. details of archiving or snapshots
    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/14Details of searching files based on file metadata
    • G06F16/148File search processing
    • G06F16/152File search processing using file content signatures, e.g. hash values
    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/1734Details of monitoring file system events, e.g. by the use of hooks, filter drivers, logs
    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • G06F16/2358Change logging, detection, and notification

Abstract

The invention discloses a PQDIF (power quality data interchange format) communication uniformity detection method. The method includes the following steps: 1), setting a detection target of a PQDIF file, wherein the detection target is composed of different label items; 2), reading in the PQDIF file to be detected, and reading target label items and corresponding label values thereof of all channel records in a data source record of the to-be-detected file; 3), comparing whether a label value combination of the to-be-detected file and a standard label value combination meet communication format requirements or not. By the PQDIF communication uniformity detection method, PQDIF communication uniformity detection can be realized quickly and effectively, and intelligent recognition capability of a program is improved.

Description

A kind of quality of power supply PQDIF communication consistency detecting method

Technical field

The present invention relates to a kind of quality of power supply PQDIF communication consistency detecting method of electric power system.

Background technology

PQDIF is the file record format specification of the electric energy quality monitoring terminal of IEEE formulation, is widely used in the data transmission exchange of electric energy quality monitoring system.Along with the popularization of standard, PQDIF standard has become the important means of quality of power supply information standardization.The electric energy quality monitoring net system of a lot of Utilities Electric Co.s all adopts PQDIF as the data layout of standard in the world.At home, PQDIF is generally accepted in the industry, as the master data record form of power quality monitoring device and the basic format requirement of electric energy quality monitoring system data transmission.

At present, each provincial electric power company has all realized the support function of PQDIF file transfer in electric energy quality monitoring system separately, and formulated corresponding PQDIF filespec, but, because PQDIF file has self-defined property, content confused, the value that tag entry in file may occur differs and the problem such as content disappearance, this PQDIF file that directly causes part producer automatically to generate can not be read program and correctly resolve, essential data are record not, or the power quality data of record does not conform to code requirement.The problems such as these problems can cause that the inefficacy of PQDIF file, power quality data difficult management and database are made mistakes, affect the normal operation of monitoring system.

Summary of the invention

Technical matters to be solved by this invention is to provide a kind of inconsistent phenomenon for current quality of power supply PQDIF communication file, the detection method of PQDIF file consistence is proposed, according to the format character of norm-setting, realize that quality of power supply PQDIF file is general, recognition detection fast.

For solving the problems of the technologies described above, the present invention is achieved through the following technical solutions:

A kind of quality of power supply PQDIF communication of the present invention consistency detecting method, comprises the following steps:

1) set the detection target of PQDIF communication file;

The need tags detected item of detection target of the present invention in file data source record forms, essential tag entry comprises: tagQuantityMeasuredID, tagQuantityTypeID, tagPhaseID, tagQuantityCharacteristicID, optional tag entry comprises: tagValueTypeID, tagChannelName, tagQuantityUnitsID.

2) read in PQDIF file to be checked, read the target labels item of all passage records in file data source record to be checked and corresponding label value, according to passage group, combine storage respectively.

3) combination of the label value of file more to be checked is combined with the label value of standard, detects this document and whether reaches communication format requirement.

The present invention choose can identify channel data in power quality data storehouse minimum label item number order as detecting target, channel definition in file data source is detected to analysiss, the inconsistent problem of data layout during solution PQDIF communicates by letter; Described detection target can, according to actual code requirement, be carried out the increase of Detection of content or delete; In the optional tag entry of listing, can optionally one or more detect as a supplement target, to improve the consistance of PQDIF communication.

Reading in process of PQDIF file of the present invention, first needed the physical arrangement check of record, check the verification of cyclic redundancy check (CRC) code (Cyclical Redundancy Check, CRC) in the record-header of each record and recording body and whether consistent.

This detection method of the present invention only need be read in the passage record in file data source record to be checked, and reading of all the other contents can be skipped, and improves detection efficiency; Read label value combination to be checked according to channel position classification storage, can adopt the form of array or class.

The present invention, in the testing process of standard value combination, only has the combination of coupling completely just can list qualified passage in, and defective passage is listed in the combination of excalation in; As inconsistent in partial content and standard in combination, listed in inconsistent label, can carry out manual detection, the result of passing through can deposit the tag combination database of standard in, realizes intelligent database upgrade.

Adopt after detection method of the present invention, its beneficial effect is:

The present invention is by realizing detection target to the recognition detection of crucial tag entry in PQDIF communication file, the format specification of recommending according to IEEE, the crucial tag entry of setting up tagQuantityMeasuredID (quantity label), tagQuantityTypeID (amount of recording label), tagPhaseID (phase distinguishing label), tagQuantityCharacteristicID (feature tag) detects target.Optional tag entry can improve the degree of consistency of testing result.Read the tag combination of file to be checked, and search is mated in the tag library of standard, realizes conforming fast detecting.Inconsistent tag combination exports artificial cognition to, and acceptable form is deposited in tag combination storehouse, improves the Intelligent Recognition ability of program.

Accompanying drawing explanation

Fig. 1 is the data source structure figure of the PQIDF file of a certain power quality monitoring device generation;

Fig. 2 is the tag entry combination that detects target;

Fig. 3 is the schematic flow sheet of PQDIF communication consistency detecting method;

Fig. 4 is consistency detection presentation of results figure.

Embodiment

Below in conjunction with accompanying drawing, the present invention is further described.

Embodiment 1, and in this example, one group of tags detected item is set as: tagQuantityMeasuredID, tagQuantityTypeID, tagPhaseID, tagQuantityCharacteristicID, tagValueTypeID.Trace routine first read verification in each record-header of PQDIF file and, and calculate corresponding record body verification and, then compare.If verification and identical, this to record physical arrangement complete; Otherwise declare record content is made mistakes, there is disappearance in file, exits trace routine.Only have the physical verification of all records all qualified, file is only complete, can carry out next step detection.Wherein Fig. 1 is the data source structure figure of a certain file to be checked, and Fig. 2 is the tags detected item of choosing.

First test procedure reads in all labels in the source record of PQDIF file data, as runs into the label of None-identified, is listed in Unknown Label, and outputs in test result.Subsequently, whether the necessary label of program search lacks, if label disappearance outputs to the label of disappearance in result; If do not lack the detection that enters next step.

The further reading data source record of test procedure obtains label and the label value combination thereof of all channel definition.The label value combination of standard is searched for to coupling one by one in the tag combination of file to be checked, if it fails to match, enter difference matching, its judgement is identified as to inconsistent label or disappearance label, and enter the coupling of next combination; If the match is successful, directly enter next coupling.When all tag combination, all mated end, program is exported acquired results, if the match is successful, display file test is passed through; If there is unknown or disappearance tag combination, by these array outputs.Wherein Fig. 3 is whole overhaul flow chart, and Fig. 4 is testing result explanation.

Claims (5)

1. a quality of power supply PQDIF communication consistency detecting method, is characterised in that: comprise the following steps:
1) set the detection target of PQDIF communication file;
Detecting the need tags detected item of target in file data source record forms, essential tag entry comprises: tagQuantityMeasuredID, tagQuantityTypeID, tagPhaseID, tagQuantityCharacteristicID, and optional tag entry comprises: tagValueTypeID, tagChannelName, tagQuantityUnitsID;
2) read in PQDIF file to be checked, read the target labels item of all passage records in file data source record to be checked and corresponding label value, according to passage group, combine storage respectively;
3) combination of the label value of file more to be checked is combined with the label value of standard, detects this document and whether reaches communication format requirement.
2. detection method according to claim 1, it is characterized in that: choose can identify channel data in power quality data storehouse minimum label item number order as detecting target, channel definition in file data source is detected to analysis, solve the inconsistent problem of data layout in PQDIF communication.
3. detection method according to claim 1, it is characterized in that: the reading in process of PQDIF file, first need the physical arrangement check of record, checked the verification of cyclic redundancy check (CRC) code in the record-header of each record and recording body and whether consistent.
4. detection method according to claim 1, is characterized in that: this detection method only need be read in the passage record in file data source record to be checked, and reading of all the other contents can be skipped; Read label value combination to be checked according to channel position classification storage, can adopt the form of array or class.
5. detection method according to claim 1, is characterized in that: in the testing process of standard value combination, only have the combination of coupling completely just can list qualified passage in, defective passage is listed in the combination of excalation in; As inconsistent in partial content and standard in combination, listed in inconsistent label, can carry out manual detection, the result of passing through can deposit the tag combination database of standard in, realizes intelligent database upgrade.
CN201410409946.3A 2014-08-19 2014-08-19 PQDIF (power quality data interchange format) communication uniformity detection method CN104182507A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410409946.3A CN104182507A (en) 2014-08-19 2014-08-19 PQDIF (power quality data interchange format) communication uniformity detection method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410409946.3A CN104182507A (en) 2014-08-19 2014-08-19 PQDIF (power quality data interchange format) communication uniformity detection method

Publications (1)

Publication Number Publication Date
CN104182507A true CN104182507A (en) 2014-12-03

Family

ID=51963546

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410409946.3A CN104182507A (en) 2014-08-19 2014-08-19 PQDIF (power quality data interchange format) communication uniformity detection method

Country Status (1)

Country Link
CN (1) CN104182507A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105207836A (en) * 2015-06-19 2015-12-30 广西电网有限责任公司电力科学研究院 Method for quickly testing consistency of PQDIF (Power Quality Data Interchange Format) files

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102654937A (en) * 2012-05-15 2012-09-05 东北电力科学研究院有限公司 IEC61850 detection platform of power quality monitoring terminal and detection method thereof
CN102681975A (en) * 2012-05-10 2012-09-19 江苏省电力公司电力科学研究院 PQDIF (Power Quality Data Interchange Format) file tree structure comparative method based on linked list
CN203608218U (en) * 2013-12-06 2014-05-21 国家电网公司 Communication device of electric energy quality monitoring device IEC61850 consistency detection system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102681975A (en) * 2012-05-10 2012-09-19 江苏省电力公司电力科学研究院 PQDIF (Power Quality Data Interchange Format) file tree structure comparative method based on linked list
CN102654937A (en) * 2012-05-15 2012-09-05 东北电力科学研究院有限公司 IEC61850 detection platform of power quality monitoring terminal and detection method thereof
CN203608218U (en) * 2013-12-06 2014-05-21 国家电网公司 Communication device of electric energy quality monitoring device IEC61850 consistency detection system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
XUELIANG HUANG等: "A Consistency Detection Method of Power Quality Data Interchange Format File", 《APPLIED MECHANICS AND MATERIALS》 *
张逸等: "电能质量数据交换格式文件通用解析方案", 《电力系统自动化》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105207836A (en) * 2015-06-19 2015-12-30 广西电网有限责任公司电力科学研究院 Method for quickly testing consistency of PQDIF (Power Quality Data Interchange Format) files
CN105207836B (en) * 2015-06-19 2018-09-21 广西电网有限责任公司电力科学研究院 A kind of method of quick test PQDIF file consistences

Similar Documents

Publication Publication Date Title
CN203825183U (en) Automatic binding, reading and identification apparatus of electric energy meter information
CN102636704B (en) Testing method, device and system for electronic product
CN102243699B (en) Malicious code detection method and system
US7313514B2 (en) Validating content of localization data files
CN106537332A (en) Systems and methods for software analytics
CN101464905B (en) Web page information extraction system and method
CN102005818B (en) Method for detecting consistency of SCD (System Configuration Document) and IED (Intelligent Electronic Device) model on line
CN102831052B (en) Test exemple automation generating apparatus and method
CN101706816B (en) Method for detecting digitized transformer station model
CN103019937B (en) A kind of human-machine interaction interface traverse test method
US9285242B2 (en) Determining a connectivity model in smart grids
CN104700033B (en) The method and device of viral diagnosis
CN101576956B (en) On-line character detection method based on machine vision and system thereof
CN206373084U (en) Streamline product quality detects sorting system
CN102231852B (en) Method and device for programming serial number of set-top box
CN104778118B (en) The improved method of automatization testing technique
CN102314782A (en) Apparatus of generating teaching contents based on learning effect assessment and storage media
CN102929600B (en) Monitoring system version recognition methods based on ELF
US8904350B2 (en) Maintenance of a subroutine repository for an application under test based on subroutine usage information
CN102043719B (en) Method for testing IEC61850 configuration description file
WO2018188199A1 (en) Method and device for identifying characters of claim settlement bill, server and storage medium
TW200951971A (en) Apparatus and method for memory card testing
CN103020679B (en) A kind of precast concrete member production quality detection system
CN104360922A (en) Method for automatically monitoring BMC working state based on ipmitool
CN105788227A (en) Electricity consumption information acquisition system fault diagnosis equipment

Legal Events

Date Code Title Description
PB01 Publication
C06 Publication
SE01 Entry into force of request for substantive examination
C10 Entry into substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20141203

WD01 Invention patent application deemed withdrawn after publication