CN107070589A - A kind of electric energy meter adaptive approach, device and electric energy meter based on object-oriented agreement and legacy protocol - Google Patents

A kind of electric energy meter adaptive approach, device and electric energy meter based on object-oriented agreement and legacy protocol Download PDF

Info

Publication number
CN107070589A
CN107070589A CN201611264807.1A CN201611264807A CN107070589A CN 107070589 A CN107070589 A CN 107070589A CN 201611264807 A CN201611264807 A CN 201611264807A CN 107070589 A CN107070589 A CN 107070589A
Authority
CN
China
Prior art keywords
command signal
electric energy
energy meter
agreements
communication protocol
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.)
Pending
Application number
CN201611264807.1A
Other languages
Chinese (zh)
Inventor
吴剑芳
邹成伍
李亦龙
黄恒孜
柳圆成
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
State Grid Corp of China SGCC
State Grid Zhejiang Electric Power Co Ltd
Electric Power Research Institute of State Grid Zhejiang Electric Power Co Ltd
Original Assignee
State Grid Corp of China SGCC
State Grid Zhejiang Electric Power Co Ltd
Electric Power Research Institute of State Grid Zhejiang Electric Power Co Ltd
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 State Grid Corp of China SGCC, State Grid Zhejiang Electric Power Co Ltd, Electric Power Research Institute of State Grid Zhejiang Electric Power Co Ltd filed Critical State Grid Corp of China SGCC
Priority to CN201611264807.1A priority Critical patent/CN107070589A/en
Publication of CN107070589A publication Critical patent/CN107070589A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/004Arrangements for detecting or preventing errors in the information received by using forward error control
    • H04L1/0056Systems characterized by the type of code used
    • H04L1/0061Error detection codes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/0078Avoidance of errors by organising the transmitted data in a format specifically designed to deal with errors, e.g. location
    • H04L1/0083Formatting with frames or packets; Protocol or part of protocol for error control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/32Flow control; Congestion control by discarding or delaying data units, e.g. packets or frames
    • H04L47/323Discarding or blocking control packets, e.g. ACK packets
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/08Protocols for interworking; Protocol conversion

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Communication Control (AREA)

Abstract

The invention discloses a kind of electric energy meter adaptive approach, device and electric energy meter based on object-oriented agreement and legacy protocol.Communications protocol between each level of current acquisition system is not yet unified, same system using two kinds of different communications protocol, can there are problems that data trace to the source,.The electric energy meter adaptive approach of the present invention includes:The electric energy meter receives the command signal that main website or acquisition terminal are sent;The electric energy meter recognizes the corresponding communication protocol of the command signal, and the communication protocol includes being based on object-oriented agreement and legacy protocol;The command signal is parsed according to the communication protocol, and corresponding operation is performed according to analysis result.The present invention enables electric energy meter compatibility DL/T 645 and 698 two kinds of agreements of DL/T, realizes the self-adapting estimation of both agreements, improves the interactive efficiency communicated between system.

Description

A kind of electric energy meter adaptive approach based on object-oriented agreement and legacy protocol, dress Put and electric energy meter
Technical field
The present invention relates to electric energy meter field, especially a kind of electric energy meter based on object-oriented agreement and legacy protocol is adaptive Induction method, device and electric energy meter.
Background technology
At present, main website uses the communications protocol of Q/GDW 376.1 with acquisition terminal, and between acquisition terminal and measuring terminal What is used is then the communications protocol of DL/T 645, and because the communications protocol between each level of acquisition system is not yet unified, same system is adopted With two kinds of different communications protocol, can there are problems that data trace to the source,.Meanwhile, industry constituent parts are carrying out unification The communication standard of acquiring electric energy information system《The interoperability data exchange of acquiring electric energy information and management system-object-oriented Agreement》(communications protocol of DL/T 698), but in the old and new's Protocol interim stage, due to new legacy system and is deposited, therefore provides a kind of Can the backward compatible old communications protocol of DL/T 645 can meet the electric energy meter of the newest communications protocol of DL/T 698 again, as mesh Preceding urgent problem to be solved.
The content of the invention
For above-mentioned problems of the prior art, the present invention is intended to provide a kind of based on object-oriented agreement and tradition Electric energy meter adaptive approach, device and the electric energy meter of agreement, are possible to the protocol type for the data that automatic identification is received, to carry The compatibility of high electric energy meter, reduces the replacement cost of electric energy meter.
Therefore, the technical solution adopted by the present invention is:A kind of electric energy meter based on object-oriented agreement and legacy protocol is certainly Adaptive method, methods described includes:
The electric energy meter receives the command signal that main website or acquisition terminal are sent;
The electric energy meter recognizes the corresponding communication protocol of the command signal, and the communication protocol includes being based on object-oriented Agreement or legacy protocol;
The command signal is parsed according to the communication protocol, and corresponding operation is performed according to analysis result.
Further, before electric energy meter recognizes the corresponding communication protocol of the command signal, also opened for the command signal A data buffer zone is warded off, the command signal is stored in the data buffer zone.
Further, the command signal is parsed according to the communication protocol, including:Determining the command signal pair The communication protocol answered is described when being based on object-oriented agreement or legacy protocol, parses the command signal;Or
Determining that the corresponding communication protocol of the command signal is not based on object-oriented agreement, nor described During legacy protocol, judge the command signal mistake and abandon the command signal.
Further, the legacy protocol is DL/T645 agreements, and described is DL/T698 agreements based on object-oriented agreement.
Further, it is determined that electric energy meter recognizes the corresponding communication protocol of the command signal, including:
Whether judge the data length in the data buffer zone is 0;
If judged result recognizes pointer to be no there is provided one first head, first head identification pointer is positioned over institute State at the head of the queue of data buffer zone;
Whether the bebinning character for judging data is 68H;If the determination result is YES, the length byte of data is obtained, judgement is It is no to meet DL/T698 agreements;
If the determination result is YES, judge whether address field meets DL/T698 agreements;
If the determination result is YES, judge whether frame head check character meets DL/T698 agreements;
If the determination result is YES, whether judgment frame check character meets DL/T698 agreements;
If the determination result is YES, perform step and judge whether the termination character of data is 16H;
If the determination result is YES, judge that the command signal meets DL/T698 agreements, institute is parsed according to the communication protocol Command signal is stated, and corresponding operation is performed according to analysis result;
If above-mentioned judged result is no, it is both needed to recognize on first head address increase by 1 of pointer, abandons described first The byte of address before head identification pointer, whether the bebinning character for rejudging data in data buffer zone is 68H.
Further, when first head identification pointer is moved at the tail pointer of the data buffer zone, Judge the corresponding communication protocol of the command signal be not it is described be based on object-oriented agreement.
Further, it is determined that whether the corresponding communication protocol of the command signal is the legacy protocol, including:
Whether judge the data length in the data buffer zone is 0;
If judged result recognizes pointer to be no there is provided one second head, second head identification pointer is positioned over institute State at the head of the queue of data buffer zone;
Whether first bebinning character for judging data is 68H;
If the determination result is YES, whether second bebinning character for judging data is 68H;
If the determination result is YES, the length byte of data is obtained, judges whether to meet DL/T645 agreements;
If the determination result is YES, judge whether the check code of data meets DL/T645 agreements;
If the determination result is YES, whether the termination character for judging data is 16H;
If the determination result is YES, judge that the command signal meets DL/T645 agreements, according to communication protocol parsing Command signal, and corresponding operation is performed according to analysis result;
If above-mentioned judged result is no, it is both needed to recognize on second head address increase by 1 of pointer, abandons described second The byte of address before head identification pointer, whether first bebinning character for rejudging data is 68H.
Further, when second head identification pointer is moved at the tail pointer of the data buffer zone, It is not the legacy protocol to judge the corresponding communication protocol of the command signal.
Another technical scheme that the present invention is used for:A kind of electric energy meter based on object-oriented agreement and legacy protocol is certainly Adaptive device, comprising:
Receiving module, for receiving the command signal that main website or acquisition terminal are sent;
Identification module, for recognizing the corresponding communication protocol of the command signal, the communication protocol include being based on towards Object Protocol or legacy protocol;
Parsing and performing module, parse the command signal, and perform phase according to analysis result according to the communication protocol The operation answered.
Further, in addition to a data buffering module, the corresponding communication of the command signal is recognized in electric energy meter Before agreement, the command signal is stored in the data buffering module.
Further, described parsing and performing module, for parsing the command signal, bag according to the communication protocol Include:Determine the corresponding communication protocol of the command signal be it is described be based on object-oriented agreement or legacy protocol when, Parse the command signal;Or
Determining that the corresponding communication protocol of the command signal is not based on object-oriented agreement, nor described During legacy protocol, judge the command signal mistake and abandon the command signal.
Further, whether the identification module, it is the base to determine the corresponding communication protocol of the command signal In object-oriented agreement, including:
Whether judge the data length in the data buffer zone is 0;
If judged result recognizes pointer to be no there is provided one first head, first head identification pointer is positioned over institute State at the head of the queue of data buffer zone;
Whether the bebinning character for judging data is 68H;If the determination result is YES, the length byte of data is obtained, judgement is It is no to meet DL/T698 agreements;
If the determination result is YES, judge whether address field meets DL/T698 agreements;
If the determination result is YES, judge whether frame head check character meets DL/T698 agreements;
If the determination result is YES, whether judgment frame check character meets DL/T698 agreements;
If the determination result is YES, perform step and judge whether the termination character of data is 16H;
If the determination result is YES, judge that the command signal meets DL/T698 agreements, institute is parsed according to the communication protocol Command signal is stated, and corresponding operation is performed according to analysis result;
If above-mentioned judged result is no, it is both needed to recognize on first head address increase by 1 of pointer, abandons described first The byte of address before head identification pointer, whether the bebinning character for rejudging data in data buffer zone is 68H.
Further, the identification module, when first head, identification pointer is moved to the data buffer zone When at tail pointer, the communication protocol for judging the command signal is not described based on object-oriented agreement.
Further, whether the identification module, it is the biography to determine the corresponding communication protocol of the command signal System agreement, including:
Whether judge the data length in the data buffer zone is 0;
If judged result recognizes pointer to be no there is provided one second head, second head identification pointer is positioned over institute State at the head of the queue of data buffer zone;
Whether first bebinning character for judging data is 68H;
If the determination result is YES, whether second bebinning character for judging data is 68H;
If the determination result is YES, the length byte of data is obtained, judges whether to meet DL/T645 agreements;
If the determination result is YES, judge whether the check code of data meets DL/T645 agreements;
If the determination result is YES, whether the termination character for judging data is 16H;
If the determination result is YES, judge that the command signal meets DL/T645 agreements, according to communication protocol parsing Command signal, and corresponding operation is performed according to analysis result;
If above-mentioned judged result is no, it is both needed to recognize on second head address increase by 1 of pointer, abandons described second The byte of address before head identification pointer, whether first bebinning character for rejudging data is 68H.
Further, the identification module, when second head, identification pointer is moved to the data buffer zone When at tail pointer, the communication protocol for judging the command signal is not the legacy protocol.
The another technical scheme that the present invention is used for:A kind of electric energy meter, comprising above-mentioned based on object-oriented agreement and tradition The electric energy meter self-reacting device of agreement.
The invention has the advantages that or beneficial effect:The present invention enables electric energy meter compatibility DL/T 645 and DL/T 698 Two kinds of agreements, realize the self-adapting estimation of both agreements, improve the interactive efficiency communicated between acquisition system.In addition, this Invention improves meter compatibility, reduces the replacement cost of electric energy meter.
Brief description of the drawings
With reference to appended accompanying drawing, more fully to describe embodiments of the invention.However, appended accompanying drawing be merely to illustrate and Illustrate, and be not meant to limit the scope of the invention.
Fig. 1 is the schematic flow sheet one of the embodiment of the present invention one;
Fig. 2 is the schematic flow sheet two of the embodiment of the present invention one;
Fig. 3 is that the embodiment of the present invention one judges whether command signal meets the schematic flow sheet of DL/T698 agreements;
Fig. 4 is that the embodiment of the present invention one judges whether command signal meets the schematic flow sheet of DL/T654 agreements;
Fig. 5 is the structural representation of the electric energy meter self-reacting device of the embodiment of the present invention two.
Embodiment
With reference to specification drawings and specific embodiments, the present invention is described in detail.
Embodiment one
The present embodiment is a kind of electric energy meter adaptive approach based on object-oriented agreement and legacy protocol, and idiographic flow is such as Shown in Fig. 1.
Electric energy meter adaptive approach based on object-oriented agreement and legacy protocol as shown in Figure 1, its step is as follows:
S1, electric energy meter receive the command signal that main website or acquisition terminal are sent;
S2, electric energy meter recognize the corresponding communication protocol of the command signal;
S3, according to the communication protocol command signal is parsed, and corresponding operation is performed according to analysis result.
Specifically, in the self-adaptive identification method of the electric energy meter, electric energy meter receives main website or acquisition terminal is sent After the command signal come, the command signal is identified, the corresponding communication protocol of the command signal, and the root after judgement is judged Command signal is parsed according to the communication protocol, then electric energy meter performs corresponding operation according to analysis result.
Wherein, the command signal that main website or acquisition terminal are sent is by legacy protocol and based on being based on face towards corresponding To Object Protocol, wherein legacy protocol is the agreements of DL/T 645 (legacy protocol used before electric energy meter), based on towards right As agreement is the agreements of DL/T 698 (the new agreement i.e. based on object-oriented).Accordingly, electric energy meter is received after command signal, is sentenced The command signal of breaking meets DL/T645 agreements or DL/T698 agreements.
For further, before the corresponding communication protocol of electric energy meter recognition command signal, one is opened up for the command signal Data buffer zone, and the command signal is stored in the data buffer zone, form a circular queue structure.Carrying out communication protocols During view identification, whether meet link-layer frame form by the data from head pointer to tail pointer recognized in buffering area, if Do not meet, then head pointer one byte (the corresponding byte of head pointer before discarding) of forward movement be identified again, Until occurring meeting a complete frame data.If when head pointer does not all occur meeting communication protocol corresponding to tail pointer During one frame data of link-layer frame form, illustrate the command signal and do not meet the communication protocol, then need whether to belong to it Other communication protocols are judged or directly abandoned.
Specifically, it is the data buffer zone that each communication channel is opened up after electric energy meter receives command signal, is ring Shape queue structure, wherein:PTail is circle queue tail pointer, often receives a data and adds, and points to next data and deposits The position of storage;PHead_645 recognizes pointer for the second head of the agreement of circle queue 645;PHead_698 is circle queue 698 The first head identification pointer of agreement.When being identified, agreement possesses each independent head pointer pHead, tail pointer PTail is then offset by physical receipt layer control;In respective identification process by recognize pHead to pTail data whether Meet link-layer frame form, pHead plus 1 if not meeting, abandon a byte, identification, until pHead is equal to pTail;If symbol The pHead that then fixes is closed, continues to recognize other frame format conditions, until meeting a complete frame.
For further, as shown in Fig. 2 in step s 2, electric energy meter judges the corresponding communication protocol process of command signal Including step:
S21, judge whether the corresponding communication protocol of the command signal is DL/T698 agreements, if so, performing step S3;It is no Then, step S22 is performed;
S22, judge whether the corresponding communication protocol of the command signal is DL/T645 agreements, if so, performing step S3;It is no Then, step S23 is performed;
S23, judge the command signal mistake and abandon the command signal.
Specifically, during electric energy meter judges the corresponding communication protocol of command signal, it is first determined whether meeting DL/T698 agreements, if not judging whether to meet DL/T645 agreements again.If the communication protocol of the command signal is not meet DL/ T698 does not meet DL/T645 yet, then it is wrong to illustrate the command signal, and the signal can not be identified for electric energy meter, institute To abandon the signal.
As shown in table 1, its be DL/T698 communication protocols frame format:
The frame format of table 1DL/T698 communication protocols
So, as shown in figure 3, judge the command signal whether meet DL/T698 agreements process include step:
Whether S211, the data length judged in data buffer zone are 0, if it is not, performing step S212;Otherwise, exit Identification process;
S212, by the first head identification pointer be positioned at the head of the queue of data buffer zone;
S213, judge whether bebinning character is 68H, if so, performing step S214;Otherwise, step S2110 is performed;
S214, acquisition length byte, judge whether to meet DL/T698 agreements, if so, performing step S215;Otherwise, perform Step S2110;
S215, judge whether address field meets DL/T698 agreements, if so, performing step S216;Otherwise, step is performed S2110;
S216, judge whether frame head check character meets DL/T698 agreements, if so, performing step S217;Otherwise, step is performed Rapid S2110;
Whether S217, judgment frame check character meet DL/T698 agreements, if so, performing step S218;Otherwise, step is performed S2110;
S218, judge whether termination character is 16H, if so, performing step S219;Otherwise, step S2110 is performed;
S219, judge that the command signal meets DL/T698 agreements, perform step S3;
S2110, the address increase by 1 by the first head identification pointer, abandon address before the first head identification pointer Byte, return to step S213.
Wherein, it is worthy of note that, when the first head identification pointer be moved at the tail pointer of data buffer zone when, sentence The communication protocol for determining command signal is not described based on object-oriented agreement.
As shown in table 2, its be DL/T645 communication protocols frame format:
The frame format of table 2DL/T645 communication protocols
Explanation Code
Start-of-frame 68H
Address field A0~A5
Start-of-frame 68H
Control code C
Data field length L
Data field DATA
Check code CS
End mark 16H
So, as shown in figure 4, judge the command signal whether meet DL/T645 agreements process include step:
Whether S221, the data length judged in data buffer zone are 0, if it is not, performing step S222;Otherwise, exit Identification process;
S222, by the second head identification pointer be positioned at the head of the queue of data buffer zone;
S223, judge whether first bebinning character is 68H, if so, performing step S224;Otherwise, step S229 is performed;
S224, judge whether second bebinning character is 68H, if so, performing step S225;Otherwise, step S229 is performed;
S225, acquisition data field length byte, judge whether to meet DL/T645 agreements, if so, performing step S226;It is no Then, step S229 is performed;
S226, judge whether check code meets DL/T645, if so, performing step S227;Otherwise, step S229 is performed;
S227, judge whether termination character is 16H, if so, performing step S228;Otherwise, step S229 is performed;
S228, judge that the command signal meets DL/T645 agreements, perform step S3;
Address before S229, the address increase by 1 by the second head identification pointer, the second head of discarding identification pointer Byte, return to step S223.
Wherein, it is worthy of note that, when the second head identification pointer be moved at the tail pointer of data buffer zone when, sentence The communication protocol for determining command signal is not the legacy protocol.
In the electric energy meter adaptive approach set forth above based on object-oriented agreement and legacy protocol, electric energy meter can Compatible DL/T 645 and 698 two kinds of agreements of DL/T, realize the self-adapting estimation of both agreements, improve between acquisition system The interactive efficiency of communication.In addition, the present invention improves meter compatibility, the replacement cost of electric energy meter is reduced.
Embodiment two
The present embodiment is related to a kind of electric energy meter self-reacting device based on object-oriented agreement and legacy protocol, such as Fig. 5 institutes Show, the device is included:
Receiving module, for receiving the command signal that main website or acquisition terminal are sent;
Identification module, for recognizing the corresponding communication protocol of the command signal, the communication protocol include being based on towards Object Protocol or legacy protocol;
Parsing and performing module, parse the command signal, and perform phase according to analysis result according to the communication protocol The operation answered;
Data buffering module, before electric energy meter recognizes the corresponding communication protocol of the command signal, by the life Signal is made to be stored in the data buffering module.
Described parsing and performing module, for parsing the command signal according to the communication protocol, including:It is determined that It is described when being based on object-oriented agreement or legacy protocol to go out the corresponding communication protocol of the command signal, parses the life Make signal;Or
Determining that the corresponding communication protocol of the command signal is not based on object-oriented agreement, nor described During legacy protocol, judge the command signal mistake and abandon the command signal.
Specifically, whether the identification module, it is the base to determine the corresponding communication protocol of the command signal In object-oriented agreement, including:
Whether judge the data length in the data buffer zone is 0;
If judged result recognizes pointer to be no there is provided one first head, first head identification pointer is positioned over institute State at the head of the queue of data buffer zone;
Whether the bebinning character for judging data is 68H;If the determination result is YES, the length byte of data is obtained, judgement is It is no to meet DL/T698 agreements;
If the determination result is YES, judge whether address field meets DL/T698 agreements;
If the determination result is YES, judge whether frame head check character meets DL/T698 agreements;
If the determination result is YES, whether judgment frame check character meets DL/T698 agreements;
If the determination result is YES, perform step and judge whether the termination character of data is 16H;
If the determination result is YES, judge that the command signal meets DL/T698 agreements, institute is parsed according to the communication protocol Command signal is stated, and corresponding operation is performed according to analysis result;
If above-mentioned judged result is no, it is both needed to recognize on first head address increase by 1 of pointer, abandons described first The byte of address before head identification pointer, whether the bebinning character for rejudging data in data buffer zone is 68H.
When first head identification pointer is moved at the tail pointer of the data buffer zone, the order is judged The communication protocol of signal is not described based on object-oriented agreement.
Specifically, whether the identification module, it is the biography to determine the corresponding communication protocol of the command signal System agreement, including:
Whether judge the data length in the data buffer zone is 0;
If the determination result is YES pointer is recognized there is provided one second head, second head identification pointer is positioned over institute State at the head of the queue of data buffer zone;
Whether first bebinning character for judging data is 68H;
If the determination result is YES, whether second bebinning character for judging data is 68H;
If the determination result is YES, the length byte of data is obtained, judges whether to meet DL/T645 agreements;
If the determination result is YES, judge whether the check code of data meets DL/T645 agreements;
If the determination result is YES, whether the termination character for judging data is 16H;
If the determination result is YES, judge that the command signal meets DL/T645 agreements, according to communication protocol parsing Command signal, and corresponding operation is performed according to analysis result;
If above-mentioned judged result is no, it is both needed to recognize on second head address increase by 1 of pointer, abandons described second The byte of address before head identification pointer, whether first bebinning character for rejudging data is 68H.
When second head identification pointer is moved at the tail pointer of the data buffer zone, the order is judged The communication protocol of signal is not the legacy protocol.
Embodiment three
The present embodiment be related to the electric energy meter in a kind of electric energy meter, the present embodiment comprising in above-described embodiment two based on towards The electric energy meter self-reacting device of Object Protocol and legacy protocol.
It should be understood by those skilled in the art that, embodiments herein can be provided as method, system or computer program Product.Therefore, the application can be using the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware Apply the form of example.Moreover, the application can be used in one or more computers for wherein including computer usable program code The computer program production that usable storage medium is implemented on (including but is not limited to magnetic disk storage, CD-ROM, optical memory etc.) The form of product.
The application is the flow with reference to method, equipment (system) and computer program product according to the embodiment of the present application Figure and/or block diagram are described.It should be understood that can be by every first-class in computer program instructions implementation process figure and/or block diagram Journey and/or the flow in square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided The processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce A raw machine so that produced by the instruction of computer or the computing device of other programmable data processing devices for real The device for the function of being specified in present one flow of flow chart or one square frame of multiple flows and/or block diagram or multiple square frames.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory, which is produced, to be included referring to Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one square frame of block diagram or The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that in meter Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, thus in computer or The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in individual square frame or multiple square frames.For a person skilled in the art, read after described above, respectively Variations and modifications are planted undoubtedly to will be evident.Therefore, appended claims should regard the true intention for covering the present invention as With whole variations and modifications of scope.Any and all scope and content of equal value, are all considered as in Claims scope Still belong to the intent and scope of the invention.

Claims (10)

1. a kind of electric energy meter adaptive approach based on object-oriented agreement and legacy protocol, it is characterised in that methods described bag Include:
The electric energy meter receives the command signal that main website or acquisition terminal are sent;
The electric energy meter recognizes the corresponding communication protocol of the command signal, and the communication protocol includes being based on object-oriented agreement Or legacy protocol;
The command signal is parsed according to the communication protocol, and corresponding operation is performed according to analysis result.
2. the electric energy meter adaptive approach according to claim 1 based on the double agreements of object-oriented and tradition, its feature exists In the electric energy meter is recognized before the corresponding communication protocol of the command signal, also opens up a number for the command signal According to buffering area, the command signal is stored in the data buffer zone.
3. the electric energy meter adaptive approach according to claim 2 based on the double agreements of object-oriented and tradition, its feature exists In, the command signal is parsed according to the communication protocol, including:
Determine the corresponding communication protocol of the command signal be it is described be based on object-oriented agreement or legacy protocol when, Parse the command signal;Or
Determining that the corresponding communication protocol of the command signal is not based on object-oriented agreement, nor the tradition During agreement, judge the command signal mistake and abandon the command signal.
4. the electric energy meter adaptive approach based on the double agreements of object-oriented and tradition according to Claims 2 or 3, its feature It is, the legacy protocol is DL/T645 agreements, described is DL/T698 agreements based on object-oriented agreement.
5. the electric energy meter adaptive approach according to claim 4 based on the double agreements of object-oriented and tradition, its feature exists In, whether determine the corresponding communication protocol of the command signal is described based on object-oriented agreement, including:
Whether judge the data length in the data buffer zone is 0;
If judged result recognizes pointer to be no there is provided one first head, first head identification pointer is positioned over the number At buffering area head of the queue;
Whether the bebinning character for judging data is 68H;If the determination result is YES, the length byte of data is obtained, judges whether symbol Close DL/T698 agreements;
If the determination result is YES, judge whether address field meets DL/T698 agreements;
If the determination result is YES, judge whether frame head check character meets DL/T698 agreements;
If the determination result is YES, whether judgment frame check character meets DL/T698 agreements;
If the determination result is YES, perform step and judge whether the termination character of data is 16H;
If the determination result is YES, judge that the command signal meets DL/T698 agreements, the life is parsed according to the communication protocol Signal is made, and corresponding operation is performed according to analysis result;
If above-mentioned judged result is no, it is both needed to recognize on first head address increase by 1 of pointer, abandons first head The byte of address before identification pointer, whether the bebinning character for rejudging data in data buffer zone is 68H.
6. the electric energy meter adaptive approach according to claim 5 based on the double agreements of object-oriented and tradition, its feature exists In, when first head identification pointer is moved at the tail pointer of the data buffer zone, the judgement command signal Communication protocol be not it is described be based on object-oriented agreement.
7. the electric energy meter adaptive approach according to claim 4 based on towards the double agreements of correspondence and tradition, its feature exists In, whether determine the corresponding communication protocol of the command signal is the legacy protocol, including:
Whether judge the data length in the data buffer zone is 0;
If judged result recognizes pointer to be no there is provided one second head, second head identification pointer is positioned over the number At buffering area head of the queue;
Whether first bebinning character for judging data is 68H;
If the determination result is YES, whether second bebinning character for judging data is 68H;
If the determination result is YES, the length byte of data is obtained, judges whether to meet DL/T645 agreements;
If the determination result is YES, judge whether the check code of data meets DL/T645 agreements;
If the determination result is YES, whether the termination character for judging data is 16H;
If the determination result is YES, judge that the command signal meets DL/T645 agreements, the order is parsed according to the communication protocol Signal, and corresponding operation is performed according to analysis result;
If above-mentioned judged result is no, it is both needed to recognize on second head address increase by 1 of pointer, abandons second head The byte of address before identification pointer, whether first bebinning character for rejudging data is 68H.
8. the electric energy meter adaptive approach according to claim 7 based on the double agreements of object-oriented and tradition, its feature exists In, when second head identification pointer is moved at the tail pointer of the data buffer zone, the judgement command signal Communication protocol be not the legacy protocol.
9. a kind of electric energy meter self-reacting device based on object-oriented agreement and legacy protocol, it is characterised in that include:
Receiving module, for receiving the command signal that main website or acquisition terminal are sent;
Identification module, for recognizing the corresponding communication protocol of the command signal, the communication protocol includes being based on object-oriented Agreement or legacy protocol;
Parsing and performing module, parse the command signal, and perform accordingly according to analysis result according to the communication protocol Operation.
10. a kind of electric energy meter, it is characterised in that described electric energy meter comprising described in claim 9 based on object-oriented agreement With the electric energy meter self-reacting device of legacy protocol.
CN201611264807.1A 2016-12-30 2016-12-30 A kind of electric energy meter adaptive approach, device and electric energy meter based on object-oriented agreement and legacy protocol Pending CN107070589A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611264807.1A CN107070589A (en) 2016-12-30 2016-12-30 A kind of electric energy meter adaptive approach, device and electric energy meter based on object-oriented agreement and legacy protocol

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611264807.1A CN107070589A (en) 2016-12-30 2016-12-30 A kind of electric energy meter adaptive approach, device and electric energy meter based on object-oriented agreement and legacy protocol

Publications (1)

Publication Number Publication Date
CN107070589A true CN107070589A (en) 2017-08-18

Family

ID=59624390

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611264807.1A Pending CN107070589A (en) 2016-12-30 2016-12-30 A kind of electric energy meter adaptive approach, device and electric energy meter based on object-oriented agreement and legacy protocol

Country Status (1)

Country Link
CN (1) CN107070589A (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108449398A (en) * 2018-03-06 2018-08-24 江阴长仪集团有限公司 A kind of implementation method and electric energy meter of object-oriented data exchange agreement
CN108877178A (en) * 2018-07-05 2018-11-23 成都希格玛光电科技有限公司 A kind of industry spot remote data acquisition method and acquisition system
CN109379367A (en) * 2018-07-27 2019-02-22 宁波三星智能电气有限公司 A kind of means of communication of electric energy meter and communication module
CN109768958A (en) * 2018-12-05 2019-05-17 国家电网有限公司 A kind of collecting method and system acquiring O&M simulation training system and emulate between cabinet
CN110147341A (en) * 2019-05-16 2019-08-20 国网重庆市电力公司电力科学研究院 A kind of electric energy meter and communication means of the communication protocol of compatibility 645 and 698
CN110958436A (en) * 2019-12-18 2020-04-03 山东智电未来科技有限公司 Method for realizing real-time image transmission by object-oriented data exchange protocol DLT698.45
CN111427397A (en) * 2020-04-21 2020-07-17 西安和其光电科技股份有限公司 Temperature control system and temperature control method based on ARM
CN111866021A (en) * 2020-07-31 2020-10-30 武汉阿迪克电子股份有限公司 Multi-protocol management method for intelligent electric meter
CN112289017A (en) * 2020-10-28 2021-01-29 国网安徽省电力有限公司合肥供电公司 Remote meter reading method and system for intelligent electric energy meter
CN112419698A (en) * 2020-10-26 2021-02-26 浙江正泰仪器仪表有限责任公司 Electric energy meter data transmission method, system and device based on distribution line message specification
CN112468368A (en) * 2020-11-27 2021-03-09 国网湖南省电力有限公司 Method, device and system for automatically identifying communication protocol of electric meter and readable storage medium
CN113079066A (en) * 2021-03-30 2021-07-06 江苏方天电力技术有限公司 Communication test system and test method for comprehensive protection measurement and control device
CN114520837A (en) * 2021-12-27 2022-05-20 苏州绿科智能机器人研究院有限公司 Method for analyzing message data sent upwards based on object-oriented technology

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101277299A (en) * 2008-05-13 2008-10-01 珠海中慧微电子有限公司 Protocol conversion system and protocol conversion process
CN102468983A (en) * 2010-10-29 2012-05-23 北京市电力公司 Method, device and system for testing electricity consumption information acquisition system
CN102610085A (en) * 2012-03-27 2012-07-25 安徽南瑞继远软件有限公司 Infrared meter reading method compatible with multi protocols
EP2589187A1 (en) * 2010-07-01 2013-05-08 Endress+Hauser Flowtec AG Automated adaptation to different industrial ethernet protocols
CN103107914A (en) * 2011-11-14 2013-05-15 华北电力科学研究院有限责任公司 Detection method and detection system for remote power acquisition terminal
CN103825870A (en) * 2012-11-19 2014-05-28 苏州工业园区新宏博通讯科技有限公司 Communication method of universal communication protocol generator
CN104052758A (en) * 2014-07-14 2014-09-17 威胜集团有限公司 Self-adaptive method of multiple communication protocols of electric energy meter

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101277299A (en) * 2008-05-13 2008-10-01 珠海中慧微电子有限公司 Protocol conversion system and protocol conversion process
EP2589187A1 (en) * 2010-07-01 2013-05-08 Endress+Hauser Flowtec AG Automated adaptation to different industrial ethernet protocols
CN102468983A (en) * 2010-10-29 2012-05-23 北京市电力公司 Method, device and system for testing electricity consumption information acquisition system
CN103107914A (en) * 2011-11-14 2013-05-15 华北电力科学研究院有限责任公司 Detection method and detection system for remote power acquisition terminal
CN102610085A (en) * 2012-03-27 2012-07-25 安徽南瑞继远软件有限公司 Infrared meter reading method compatible with multi protocols
CN103825870A (en) * 2012-11-19 2014-05-28 苏州工业园区新宏博通讯科技有限公司 Communication method of universal communication protocol generator
CN104052758A (en) * 2014-07-14 2014-09-17 威胜集团有限公司 Self-adaptive method of multiple communication protocols of electric energy meter

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108449398B (en) * 2018-03-06 2021-09-10 江阴长仪集团有限公司 Object-oriented data exchange protocol implementation method and electric energy meter
CN108449398A (en) * 2018-03-06 2018-08-24 江阴长仪集团有限公司 A kind of implementation method and electric energy meter of object-oriented data exchange agreement
CN108877178A (en) * 2018-07-05 2018-11-23 成都希格玛光电科技有限公司 A kind of industry spot remote data acquisition method and acquisition system
CN109379367A (en) * 2018-07-27 2019-02-22 宁波三星智能电气有限公司 A kind of means of communication of electric energy meter and communication module
CN109768958A (en) * 2018-12-05 2019-05-17 国家电网有限公司 A kind of collecting method and system acquiring O&M simulation training system and emulate between cabinet
CN110147341A (en) * 2019-05-16 2019-08-20 国网重庆市电力公司电力科学研究院 A kind of electric energy meter and communication means of the communication protocol of compatibility 645 and 698
CN110958436A (en) * 2019-12-18 2020-04-03 山东智电未来科技有限公司 Method for realizing real-time image transmission by object-oriented data exchange protocol DLT698.45
CN111427397A (en) * 2020-04-21 2020-07-17 西安和其光电科技股份有限公司 Temperature control system and temperature control method based on ARM
CN111866021A (en) * 2020-07-31 2020-10-30 武汉阿迪克电子股份有限公司 Multi-protocol management method for intelligent electric meter
CN112419698A (en) * 2020-10-26 2021-02-26 浙江正泰仪器仪表有限责任公司 Electric energy meter data transmission method, system and device based on distribution line message specification
CN112419698B (en) * 2020-10-26 2022-05-17 浙江正泰仪器仪表有限责任公司 Electric energy meter data transmission method, system and device based on distribution line message specification
CN112289017A (en) * 2020-10-28 2021-01-29 国网安徽省电力有限公司合肥供电公司 Remote meter reading method and system for intelligent electric energy meter
CN112468368A (en) * 2020-11-27 2021-03-09 国网湖南省电力有限公司 Method, device and system for automatically identifying communication protocol of electric meter and readable storage medium
CN112468368B (en) * 2020-11-27 2022-10-11 国网湖南省电力有限公司 Method, device and system for automatically identifying communication protocol of electric meter and readable storage medium
CN113079066A (en) * 2021-03-30 2021-07-06 江苏方天电力技术有限公司 Communication test system and test method for comprehensive protection measurement and control device
CN114520837A (en) * 2021-12-27 2022-05-20 苏州绿科智能机器人研究院有限公司 Method for analyzing message data sent upwards based on object-oriented technology

Similar Documents

Publication Publication Date Title
CN107070589A (en) A kind of electric energy meter adaptive approach, device and electric energy meter based on object-oriented agreement and legacy protocol
CN103123618B (en) Text similarity acquisition methods and device
CN108491373A (en) A kind of entity recognition method and system
CN108717406A (en) Text mood analysis method, device and storage medium
CN109190110A (en) A kind of training method of Named Entity Extraction Model, system and electronic equipment
CN108090043B (en) Error correction report processing method and device based on artificial intelligence and readable medium
CN109543200A (en) A kind of text interpretation method and device
CN111970353A (en) Data processing method and device for heterogeneous equipment in Internet of things of cloud computing platform
CN104615730B (en) A kind of multi-tag sorting technique and device
CN108491866A (en) Porny identification method, electronic device and readable storage medium storing program for executing
WO2014117553A1 (en) Method and system of adding punctuation and establishing language model
CN111160003B (en) Sentence breaking method and sentence breaking device
WO2021139316A1 (en) Method and apparatus for establishing expression recognition model, and computer device and storage medium
CN107861954A (en) Information output method and device based on artificial intelligence
WO2021104444A1 (en) Data flow classification method, apparatus and system
CN113436611B (en) Test method and device for vehicle-mounted voice equipment, electronic equipment and storage medium
WO2020253506A1 (en) Contract content extraction method and apparatus, and computer device and storage medium
CN109446300A (en) A kind of corpus preprocess method, the pre- mask method of corpus and electronic equipment
CN107911227A (en) A kind of breakpoint data follow-up method, electronic device and computer-readable recording medium
CN113111162A (en) Department recommendation method and device, electronic equipment and storage medium
CN106843808B (en) A kind of instruction analytic method of compatible different-format type
TWI752486B (en) Training method, feature extraction method, device and electronic device
CN106941501A (en) A kind of data communications method and device
CN109753976B (en) Corpus labeling device and method
CN111354354B (en) Training method, training device and terminal equipment based on semantic recognition

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170818