CN104735172A - Protocol conversion method of intelligent electricity using information collecting terminal - Google Patents
Protocol conversion method of intelligent electricity using information collecting terminal Download PDFInfo
- Publication number
- CN104735172A CN104735172A CN201310703717.8A CN201310703717A CN104735172A CN 104735172 A CN104735172 A CN 104735172A CN 201310703717 A CN201310703717 A CN 201310703717A CN 104735172 A CN104735172 A CN 104735172A
- Authority
- CN
- China
- Prior art keywords
- hdlc
- obis
- read
- mapping table
- ammeter
- 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
- Arrangements For Transmission Of Measured Signals (AREA)
Abstract
The invention relates to a protocol conversion method of an intelligent electricity using information collecting terminal. An electricity meter address is read from an electricity meter information database. If a mapping table which accords with OBIS-HDLC of the read electricity meter address exists, the mapping table of OBIS-HDLC is called in. According to the mapping relation in the mapping table of OBIS-HDLC, an HDLC base address corresponding to an OBIS is found. According to the found HDLC base address, expectation information is read and stored. The unique identification code of all data of measuring equipment is provided, a measuring value is included, an abstract value and other feather information equipped on the measuring equipment are included, then all data items subjected to manual or automatic collecting through local or remote data exchanging are subjected to unique identification through a method unrelated to a manufacturer, and the interoperability of the equipment of the manufacturer and a system is achieved.
Description
Technical field
The present invention relates to field of electric power automation, specifically a kind of protocol transform method of intelligent electricity consumption information acquisition terminal.
Background technology
Intelligent power technology covers many-sided technology such as high speed real time communication, intelligent electric meter, intelligent acquisition, two-way interactive and demanding party's response, is the technological cluster of the subject crossing such as Computer Applied Technology, modern communication technology, senior measurement technology, control theory and graph visualization.Intelligent electricity consumption information acquisition terminal gathers each information gathering point power information, thus realize data management, data double-way transmission and forward or perform the equipment of control command, is called for short acquisition terminal.Intelligent electricity consumption information acquisition terminal mainly gathers the information data in ammeter, when but the DLMS stipulations of some manufacturer's ammeter domestic are by short name register read ammeter information at present, model because of ammeter is different and cause register position different, and the information of expectation cannot be read, this patent mainly solves the problem of protocol transform, so that information reads.
1) Tao Peng. Zhang Yingqi. Niu Chunxia; The research and apply [J] of intelligent electric energy meter and intelligent terminal communication protocol test platform; Hebei power technology; The S1 phase in 2009;
2) Han Yong. Gao Huisheng. Liu Liu. Gu Bo; Power information acquisition system master station software design [journal article]; Computer and modernization 2012 (8);
3) Su Li; Towards the information-based conceptual design [journal article] of intelligent power; Modern computer the second half of the month version 2011 (20);
4) open. Huang Xin. Bing Zhipeng. Li Qiuling. Li Chenlong; Power information acquisition system [journal article] in intelligent grid construction; Information communication 2012 (1);
Summary of the invention
For the deficiencies in the prior art, the invention provides the method for the protocol transform of a kind of intelligent electricity consumption information acquisition terminal in image data process and between different vendor.
The technical scheme that the present invention is adopted for achieving the above object is:
A protocol transform method for intelligent electricity consumption information acquisition terminal, reads electric meter address from ammeter information database;
If the mapping table meeting the OBIS-HDLC of read electric meter address exists, then call in the mapping table of OBIS-HDLC;
According to the mapping relations in the mapping table of OBIS-HDLC, find out the HDLC plot corresponding to OBIS;
Read according to the HDLC plot found out and preserve expectation information.
If the mapping table meeting the OBIS-HDLC of read electric meter address does not exist, then read the OBIS-HDLC mapping configuration structure of whole ammeter according to the special command mark in DLMS stipulations;
According to the correspondence mappings table mapping configuration structure generation OBIS-HDLC, and be saved in ammeter information database.
Described special command is that in DLMS stipulations message, function code is the parameter-type byte of FA08.
In the mapping table of described OBIS-HDLC, actual information register address is made up of HDLC plot and offset address 0X08H.
The present invention has following beneficial effect and advantage:
OBIS provides unique identification code of all data of measuring equipment, singly do not include measured value, and include the arbitrary value of measuring equipment configuration and the information of other characteristics, and then take the method irrelevant with manufacturer to carry out unique identification to all data item of being undertaken manually or automatically gathering by local or distant place exchanges data, realize the interoperability between the equipment of manufacturer and system.
Accompanying drawing explanation
Fig. 1 is method flow diagram of the present invention;
Fig. 2 is OBIS structure chart of the present invention;
Fig. 3 is HDLC structure chart of the present invention.
Embodiment
Below in conjunction with drawings and Examples, the present invention is described in further detail.
Be illustrated in figure 1 method flow diagram of the present invention.
1, electric meter address is read
Data acquisition program recalls by ammeter numeric order the parameter that first piece of communication protocol is the ammeter of DLMS from ammeter information database, from wherein recalling table address parameter, and the unique identifier namely communicated with ammeter.
2, judge whether the mapping table of the OBIS-HDLC of this table exists
To check in database whether the famous OBISXXXXXXXX of being called (XXXXXXXX is actual table address, such as OBIS96379158, wherein 96379158 are table address) OBIS-HDLC tables of data, this list structure has two fields, and first character section is HDLC field, and the inside stores the decimal address of HDLC, second field is OBIS field, the inside stores the logical name address of OBIS, first character section and second field one_to_one corresponding, does not repeat.
3, the mapping configuration structure of the OBIS-HDLC of whole ammeter is read out according to the FA08 special command mark in DLMS stipulations.
If when sending to the parameter-type byte (two bytes) in the DLMS stipulations message of ammeter to be " FA08 ", namely ammeter can return the system parameters structural table of whole ammeter, these parameters comprise in this table and include how many parameters, what supplemental characteristic type is, what unit is, what HDLC (short name) is, OBIS(logical name) what is, there is several subparameter, the offset address of subparameter be what etc., the HDLC plot just having us to be concerned about inside these parameters and OBIS address, and be one to one.Program can parse all HDLC plots and OBIS address from message, gives over to for subsequent use.
4, according to the correspondence mappings table mapping configuration structure generation OBIS-HDLC, and be saved in database
Create a name in a database and be called OBISXXXXXXXX tables of data, all HDLC plots of parsing in ammeter returned packet and OBIS address are inserted in tables of data according to man-to-man relation, form a complete corresponding relation tables of data.
Form similar following mapping table
HDLC plot (decimal system) | OBIS identifies |
16 | 0000F00D00FF |
232 | 0000F00000FF |
336 | 0000F00FFFFF |
Table 1
Actual information register address=HDLC plot+0X08H
5, OBIS-HDLC mapping table is called in
Had, the OBISXXXXXXXX tables of data that creates calls in internal memory from database, wait for and looked into use.
6, according to the mapping relations in mapping table, the HDLC address corresponding to OBIS is found out
In the ammeter of DLMS stipulations, each data volume that can read, the such as meritorious total electricity of forward, the total electricity of idle forward, active power, power factor, A phase current, B phase voltage etc., there is a unique OBIS code corresponding thereto, and be constant, I to gain merit the value of total electricity if will read forward, OBIS code is " 1-1:1.8.0 ", hexadecimal representation is " 0101010800FF ", namely program finds " 0101010800FF " in the OBIS field of OBISXXXXXXXX tables of data, then read corresponding with this code value, the value of the HDLC in same record, this value is the HDLC short name base value required for me.
7, according to the HDLC short name address found out, the information expected is read
Program is according to the HDLC short name base value found out, can calculate access data register-bit be set to: HDLC plot+0X08H, value after this being calculated joins in DLMS stipulations issues ammeter in address information byte, and what ammeter returned is exactly that we want, corresponding with OBIS type numerical value.
8, the information read out is preserved
Program is stored in the ammeter table floors tables of data established in advance after being parsed from message according to conversion requirement by the numerical value read out.
9, next block ammeter is switched to
Data acquisition program recalls by ammeter numeric order the parameter that second piece of communication protocol is the ammeter of DLMS from ammeter information database, from wherein recalling table address parameter, and the unique identifier namely communicated with ammeter.
DLMS stipulations are ammeter Object-Oriented Model and unified Data Identification, and ammeter model and data are carried out encapsulation as protocol data unit (pdu) by it, then press word or byte transmission data by communication channel.The standards define two kinds of connecting objects, be respectively " short name " and " logical name " quote (addressing) mode.OBIS recognition system is the basis of COSEM logical name, and in order to distinguish the different example of same interface class, their logical name must be different.OBIS identification code have employed the structure of layering, and the identification marking of total A to F six groups, can identify all data of measuring equipment.
If Fig. 2 is OBIS structure chart of the present invention.
The expression meaning of the value of A group: the energy measured by expression or other media types or abstract data.
B group represents the channel number measured, and has multiple mark (collector) measured when inputting, to distinguish different measurement input sources.The definition of this group is independent of A group.
C group represents the meaning of concrete data or abstract data, as electric current, and voltage, power, temperature.C group is relevant with the value of A group.
D group represents by different specific algorithms, the result of concrete measuring amount or type.Above algorithm can produce electricity and requirement, or other Specific amounts.
E group represents further process and the classification of the amount identified to group D by group A.
F group identifies the data storing defined according to the different charge cycle.F group also can do other class indication.
If Fig. 3 is HDLC structure chart of the present invention.
Order in HDLC is transmitted in a unified format frame by frame.The complete frame of HDLC is made up of attribute field (F), address field (A), control field (C), information field (I), Frame Check Sequence fields (FCS) etc.
Information frame, for transmitting effective information or data, is called for short I frame usually.I frame indicates for " 0 " with control word first.N(S in the control field of information frame) for depositing transmission frame sequence number, to make transmit leg need not wait acknowledge and send multiframe continuously.N(R) for depositing the sequence number of the frame that the expection of recipient's next one will receive, N(R)=5, namely represent that recipient's next frame will receive No. 5 frames, in other words, each frame before No. 5 frames receives.N(S) and N(R) 3 binary codings are, can value 0 ~ 7.
OBIS provides unique identification code of all data of measuring equipment, does not singly include measured value, and includes the arbitrary value of measuring equipment configuration and the information of other characteristics.Its object is to take the method irrelevant with manufacturer to carry out unique identification to all data item of being undertaken manually or automatically gathering by local or distant place exchanges data, realize the interoperability between the equipment of manufacturer and system.
Patent of the present invention is read out by the counter structure of the particular command in ammeter stipulations by OBIS and the HDLC of whole table when first time reads electric energy meter data, form mapping table, then search corresponding HDLC register address according to constant OBIS name, then go to read the corresponding data in ammeter according to this register address.So just can accomplish, whatsoever the ammeter of model can accurately sense data have been come by DLMS.
Embodiment:
A group: in theory 0 to 15; The application of corresponding ammeter, mainly 0 and 1; 0 represents arbitrary value; 1 represents electric energy metrical.
B group: in theory 0 to 255; The application of corresponding Charles Rangel ammeter, mainly 0 and 1,2; 0-represents channel-less differentiation; 1-passage 1 (metering of this table); 2-passage 2 (Puled input metering); 3-passage 3 (Puled input metering).
C group: 0 to 255; Closely related with A group, be arbitrary value when A group is 0.
0 | General value |
1 | Total forward is gained merit |
2 | Total oppositely meritorious |
3 | Total forward is idle |
4 | Total oppositely idle |
5 | One quadrant is idle |
6 | Two quadrant is idle |
7 | Three quadrants are idle |
8 | Four-quadrant is idle |
Table 2
130 | Always idle-I+II+III+IV |
131 | Total idle I+II-III-IC |
132 | Total idle I+IV |
133 | Total idle I+III |
…… |
Table 3
Table 4
Table 5
Utilize F group to represent the number of times of harmonic wave, utilize F group to represent the integration period number of load curve.
Read mapping structure example (selected parts)
Transmission->7EA011032154873BE6E600050102FA08189E7E
Receive <-7EA85B210374BC2CE6E7000C01000182013202041 00010122716110309060000F00D00FF
HDLC plot OBIS indicates
02041000E8122712110709060000F00000FF
0204100150122760110409060000F00FFFFF
02041001B81200031100090601010D0500FF
81327E
Transmission->7EA00703217113C57E
Receive <-7EA85121037600D3
02041002381200031100090601010D0000FF
02041002B81200041100090600007F000000
02041003301200041100090600007F000000
0204100410120003110009060000616100FF
C2EA7E
Form following mapping table
HDLC plot (decimal system) | OBIS identifies |
16 | 0000F00D00FF |
232 | 0000F00000FF |
336 | 0000F00FFFFF |
Table 1
Actual information register address=HDLC plot+0X08H.
Claims (4)
1. a protocol transform method for intelligent electricity consumption information acquisition terminal, is characterized in that:
Electric meter address is read from ammeter information database;
If the mapping table meeting the OBIS-HDLC of read electric meter address exists, then call in the mapping table of OBIS-HDLC;
According to the mapping relations in the mapping table of OBIS-HDLC, find out the HDLC plot corresponding to OBIS;
Read according to the HDLC plot found out and preserve expectation information.
2. the protocol transform method of intelligent electricity consumption information acquisition terminal according to claim 1, is characterized in that:
If the mapping table meeting the OBIS-HDLC of read electric meter address does not exist, then read the OBIS-HDLC mapping configuration structure of whole ammeter according to the special command mark in DLMS stipulations;
According to the correspondence mappings table mapping configuration structure generation OBIS-HDLC, and be saved in ammeter information database.
3. the protocol transform method of intelligent electricity consumption information acquisition terminal according to claim 2, is characterized in that: described special command is that in DLMS stipulations message, function code is the parameter-type byte of FA08.
4. the protocol transform method of intelligent electricity consumption information acquisition terminal according to claim 1 and 2, is characterized in that: in the mapping table of described OBIS-HDLC, actual information register address is made up of HDLC plot and offset address 0X08H.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310703717.8A CN104735172B (en) | 2013-12-18 | 2013-12-18 | A kind of stipulations conversion method of intelligent electricity consumption information acquisition terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310703717.8A CN104735172B (en) | 2013-12-18 | 2013-12-18 | A kind of stipulations conversion method of intelligent electricity consumption information acquisition terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104735172A true CN104735172A (en) | 2015-06-24 |
CN104735172B CN104735172B (en) | 2018-01-16 |
Family
ID=53458598
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310703717.8A Active CN104735172B (en) | 2013-12-18 | 2013-12-18 | A kind of stipulations conversion method of intelligent electricity consumption information acquisition terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104735172B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105653616A (en) * | 2015-12-25 | 2016-06-08 | 长沙威胜信息技术有限公司 | Communication protocol conversion method for master station in power system |
CN105827546A (en) * | 2016-03-14 | 2016-08-03 | 积成电子股份有限公司 | Communication message storage method for electricity information collection system |
CN108647238A (en) * | 2018-03-30 | 2018-10-12 | 宁波三星医疗电气股份有限公司 | A kind of data interactive method |
CN113032373A (en) * | 2021-05-26 | 2021-06-25 | 杭州炬华科技股份有限公司 | Data management method and related device based on load channel dynamic column |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102269779A (en) * | 2011-06-22 | 2011-12-07 | 哈尔滨电工仪表研究所 | Voltage fluctuation recording device based on DLMS (distribution line message specification)/COSEM (companion specification for energy metering) |
CN202133711U (en) * | 2011-06-22 | 2012-02-01 | 哈尔滨电工仪表研究所 | Voltage fluctuation recording apparatus based on DLMS/COSEM |
KR101294319B1 (en) * | 2012-08-16 | 2013-08-08 | 엘에스산전 주식회사 | Remote inspection system and communication method of the same |
-
2013
- 2013-12-18 CN CN201310703717.8A patent/CN104735172B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102269779A (en) * | 2011-06-22 | 2011-12-07 | 哈尔滨电工仪表研究所 | Voltage fluctuation recording device based on DLMS (distribution line message specification)/COSEM (companion specification for energy metering) |
CN202133711U (en) * | 2011-06-22 | 2012-02-01 | 哈尔滨电工仪表研究所 | Voltage fluctuation recording apparatus based on DLMS/COSEM |
KR101294319B1 (en) * | 2012-08-16 | 2013-08-08 | 엘에스산전 주식회사 | Remote inspection system and communication method of the same |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105653616A (en) * | 2015-12-25 | 2016-06-08 | 长沙威胜信息技术有限公司 | Communication protocol conversion method for master station in power system |
CN105653616B (en) * | 2015-12-25 | 2020-06-09 | 长沙威胜信息技术有限公司 | Communication protocol conversion method of power system master station |
CN105827546A (en) * | 2016-03-14 | 2016-08-03 | 积成电子股份有限公司 | Communication message storage method for electricity information collection system |
CN105827546B (en) * | 2016-03-14 | 2019-01-04 | 积成电子股份有限公司 | A kind of method of power information acquisition system communication packet storage |
CN108647238A (en) * | 2018-03-30 | 2018-10-12 | 宁波三星医疗电气股份有限公司 | A kind of data interactive method |
CN108647238B (en) * | 2018-03-30 | 2021-11-30 | 宁波三星医疗电气股份有限公司 | Data interaction method |
CN113032373A (en) * | 2021-05-26 | 2021-06-25 | 杭州炬华科技股份有限公司 | Data management method and related device based on load channel dynamic column |
CN113032373B (en) * | 2021-05-26 | 2021-08-17 | 杭州炬华科技股份有限公司 | Data management method and related device based on load channel dynamic column |
Also Published As
Publication number | Publication date |
---|---|
CN104735172B (en) | 2018-01-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102832703B (en) | Transformer station and scheduling station model fast conversion method based on model conversion machine | |
CN102880792B (en) | A kind of dynamic modelling method of the conventional substation based on IEC standard | |
CN103779962B (en) | Based on 61850 models of intelligent telecontrol communication machine and the conversion method of CIM | |
CN105162252B (en) | The method of plug and play distribution terminal information realization automatic mapping based on CID files | |
CN105515819A (en) | IEC61850-based communication component and application component data interface method | |
CN104156448A (en) | Data exchange model based on IEC 61850 client side/server | |
CN104735172A (en) | Protocol conversion method of intelligent electricity using information collecting terminal | |
CN103746783A (en) | Extended communication method based on Modbus communication protocol | |
CN104217566A (en) | Intelligent meter searching method and system for type II collector | |
CN104134163A (en) | Power distribution network graph and model management system and power distribution network graph and model management method based on CIM/E and CIM/G | |
CN107729939B (en) | CIM (common information model) expansion method and device for newly added power grid resources | |
WO2012055566A2 (en) | Method for short-cyclic data capture for energy monitoring and for system control in the smart metering/smart grid using a piece of distributed, intelligent middleware | |
CN109272248B (en) | Comprehensive energy integration e-CIM model design method based on metadata | |
CN109150854A (en) | Dynamic and configurable communication protocol converting system based on XML file | |
CN104881739B (en) | Data consistency verification method is matched somebody with somebody by a kind of battalion based on IEC61970/61968 CIM standards | |
CN105225164A (en) | Intelligent substation GOOSE virtual secondary circuit graphic method | |
EP2515482A1 (en) | Methods and systems for detecting compatibility issues within an electrical grid control system | |
CN105718656B (en) | A kind of one electrical secondary system information correlation method of intelligent substation | |
Ling et al. | Model Differences between IEC 61970/61968 and IEC 61850 | |
CN103633736B (en) | From the on-line monitoring communication means of power transformation substation to main website | |
CN107194010A (en) | The management information system of power-consuming and its method of a kind of object-oriented | |
CN102664957B (en) | Information integration method of advanced metering infrastructure | |
CN105447264A (en) | Modeling method of information model of intelligent electronic device | |
CN103605759A (en) | Power grid history state data sharing method | |
CN208673081U (en) | A kind of multiple-energy-source informix access gateway |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CB03 | Change of inventor or designer information |
Inventor after: Bai Ruishuang Inventor after: Yao Zhizhen Inventor after: Zhao Jinyang Inventor after: Wang Dajun Inventor after: Song Linhai Inventor before: Wang Dajun Inventor before: Zhao Jinyang Inventor before: Song Linhai Inventor before: Yang Meng |
|
CB03 | Change of inventor or designer information |