Power information acquisition system and method
Technical field
The present invention relates to a kind of acquisition system, relate in particular to a kind of power information acquisition system; In addition, the invention still further relates to the information collecting method of above-mentioned power information acquisition system.
Background technology
That adopts in present power information acquisition system is based on IEC870 series, in conjunction with the power industry standard and the company standard of China's application, along with the development IEC62056 communication protocol of system begins to be introduced into.
The problem that exists is now:
(1) in each system, can only adopt a kind of communication protocol;
(2) at present system can only be to the compatibility based on a kind of different editions of communication protocol;
(3) when a system need change different communication protocol, must upgrade to the equipment of original system, workload is very big.
Summary of the invention
Technical matters to be solved by this invention is: a kind of power information acquisition system is provided, can uses two kinds of communication protocols simultaneously in the power information acquisition system.
In addition, the present invention also provides the information collecting method of above-mentioned power information acquisition system.
For solving the problems of the technologies described above, the present invention adopts following technical scheme:
A kind of power information acquisition system, this system are in order to the power information of acquisition terminal equipment, and it comprises that information sends subsystem, message pick-up subsystem;
Terminal device sends subsystem by described information the power information of equipment is sent to described message pick-up subsystem;
Described information sends subsystem and comprises IEC870 protocol data sending module, IE62056 protocol data sending module, protocol selection module;
Described protocol selection module is selected one or more in IEC870 protocol data sending module, the IE62056 protocol data sending module in order to the agreement that adopts according to equipment, terminal device according to the time response communication mode, the security control calling hierarchy that require, adopt select communication protocol;
Described IEC870 protocol data sending module comprises coding unit, transmit frame unit; Described coding unit is encoded in order to the power information to equipment, and the information behind the coding is sent to the message pick-up subsystem by described transmit frame unit;
Described IE62056 protocol data sending module comprises application layer packet sending unit, data link layer packet sending unit, the Physical layer packet sending unit that connects successively, respectively in order to send the message of application layer, data link layer, Physical layer;
Described message pick-up subsystem comprises IEC870 protocol data receiver module, IE62056 protocol data receiver module, application layer data applying unit;
Described IEC870 protocol data receiver module receives the coded message that described IEC870 protocol data sending module sends, and by message decoding unit decoding, and the information after the decoding is sent to the application layer data applying unit; The application layer data applying unit obtains the power information of described equipment;
Described IE62056 protocol data receiver module receives the coded message that described IE62056 protocol data sending module sends, it comprises Physical layer message receiving element, data link layer message receiving element, the application layer message receiving element that connects successively, in order to receive the message of Physical layer, data link layer, application layer, described application layer message receiving element is sent to the application layer data applying unit to the message of application layer respectively; The application layer data applying unit obtains the power information of described equipment.
A kind of power information acquisition system, this system are in order to the power information of acquisition terminal equipment, and it comprises that information sends subsystem, message pick-up subsystem;
Terminal device sends subsystem by described information the power information of equipment is sent to described message pick-up subsystem;
Described information sends subsystem and comprises the first protocol data sending module, the second protocol data sending module, protocol selection module;
Described protocol selection module is in order to select one or more in the first protocol data sending module, the second protocol data sending module according to the application need of equipment;
The described first protocol data sending module is encoded according to first agreement in order to the power information to equipment, and the information behind the coding is sent to the message pick-up subsystem;
The described second protocol data sending module is encoded according to second agreement in order to the power information to equipment, and the information behind the coding is sent to the message pick-up subsystem;
Described message pick-up subsystem comprises the first protocol data receiver module, the second protocol data receiver module, application layer data applying unit;
The described first protocol data receiver module receives the coded message that the described first protocol data sending module sends, and by the decoding of one first agreement decoding unit, and the information after the decoding is sent to the application layer data applying unit; The application layer data applying unit obtains the power information of described equipment;
The described second protocol data receiver module receives the coded message that the described second protocol data sending module sends, and by the decoding of one second agreement decoding unit, and the information after the decoding is sent to the application layer data applying unit; The application layer data applying unit obtains the power information of described equipment.
As a preferred embodiment of the present invention, the described first protocol data sending module comprises coding unit, transmit frame unit; Described coding unit is encoded in order to the power information to equipment, and the information behind the coding is sent to the message pick-up subsystem by described transmit frame unit.
As a preferred embodiment of the present invention, the described second protocol data sending module comprises application layer packet sending unit, data link layer packet sending unit, the Physical layer packet sending unit that connects successively, respectively in order to send the message of application layer, data link layer, Physical layer.
As a preferred embodiment of the present invention, the described first protocol data receiver module receives the coded message that the described first protocol data sending module sends, and by message decoding unit decoding, and the information after the decoding is sent to the application layer data applying unit; The application layer data applying unit obtains the power information of described equipment.
As a preferred embodiment of the present invention, the described second protocol data receiver module receives the coded message that the described second protocol data sending module sends, it comprises Physical layer message receiving element, data link layer message receiving element, the application layer message receiving element that connects successively, in order to receive the message of Physical layer, data link layer, application layer, described application layer message receiving element is sent to the application layer data applying unit to the message of application layer respectively; The application layer data applying unit obtains the power information of described equipment.
As a preferred embodiment of the present invention, described message pick-up subsystem also comprises the message receiving element, sends the data that subsystem sends in order to reception information, and data are sent to the first protocol data receiver module, the second protocol data receiver module simultaneously.
A kind of acquisition method of above-mentioned power information acquisition system, this method comprise information forwarding step, message pick-up step;
The information forwarding step comprises:
Described protocol selection module is selected one or more in the first protocol data sending module, the second protocol data sending module according to the application need of equipment;
The described first protocol data sending module is encoded according to first agreement to the power information of equipment, and the information behind the coding is sent to the message pick-up subsystem;
The described second protocol data sending module is encoded according to second agreement to the power information of equipment, and the information behind the coding is sent to the message pick-up subsystem;
The message pick-up step comprises:
The described first protocol data receiver module receives the coded message that the described first protocol data sending module sends, and by the decoding of one first agreement decoding unit, and the information after the decoding is sent to the application layer data applying unit; The application layer data applying unit obtains the power information of described equipment;
The described second protocol data receiver module receives the coded message that the described second protocol data sending module sends, and by the decoding of one second agreement decoding unit, and the information after the decoding is sent to the application layer data applying unit; The application layer data applying unit obtains the power information of described equipment.
As a preferred embodiment of the present invention, the described first protocol data sending module comprises coding unit, transmit frame unit; Described coding unit is encoded in order to the power information to equipment, and the information behind the coding is sent to the message pick-up subsystem by described transmit frame unit; The described second protocol data sending module comprises application layer packet sending unit, data link layer packet sending unit, the Physical layer packet sending unit that connects successively, respectively in order to send the message of application layer, data link layer, Physical layer.
As a preferred embodiment of the present invention, the described first protocol data receiver module receives the coded message that the described first protocol data sending module sends, and by message decoding unit decoding, and the information after the decoding is sent to the application layer data applying unit; The application layer data applying unit obtains the power information of described equipment; The described second protocol data receiver module receives the coded message that the described second protocol data sending module sends, it comprises Physical layer message receiving element, data link layer message receiving element, the application layer message receiving element that connects successively, in order to receive the message of Physical layer, data link layer, application layer, described application layer message receiving element is sent to the application layer data applying unit to the message of application layer respectively; The application layer data applying unit obtains the power information of described equipment.
Beneficial effect of the present invention is: can be implemented in the system by the present invention and can use different communication protocol simultaneously, make full use of the advantage of two kinds of communication protocols, thereby improve the communication performance of system.
Can use two kinds of communication protocols simultaneously in the power information acquisition system; Terminal device can only adopt wherein a kind of communication protocol according to its application demand, also can adopt simultaneously; Make full use of the characteristics to the versatility of different communication medium of real-time characteristics, the IEC62056 agreement of IEC850 agreement.
Description of drawings
Fig. 1 is the process flow diagram of the descending process of power information acquisition system of the present invention.
Fig. 2 is the process flow diagram of the up process of power information acquisition system of the present invention.
Embodiment
Describe the preferred embodiments of the present invention in detail below in conjunction with accompanying drawing.
Embodiment one
Principle of the present invention is: because two agreements are different fully, therefore by two respectively independently module decipher and encode, can guarantee the two kinds of communication protocols of in a channel, communicating by letter simultaneously.
See also Fig. 1, Fig. 2, the present invention has disclosed a kind of power information acquisition system, and this system is in order to the power information of acquisition terminal equipment, and it comprises that information sends subsystem, message pick-up subsystem.
Terminal device sends subsystem by described information the power information of equipment is sent to described message pick-up subsystem;
Described information sends subsystem and comprises IEC870 protocol data sending module, IE62056 protocol data sending module, protocol selection module;
Described protocol selection module is selected one or more in IEC870 protocol data sending module, the IE62056 protocol data sending module in order to the agreement that adopts according to equipment, terminal device according to the time response communication mode, the security control calling hierarchy that require, adopt select communication protocol;
Described IEC870 protocol data sending module comprises coding unit, transmit frame unit; Described coding unit is encoded in order to the power information to equipment, and the information behind the coding is sent to the message pick-up subsystem by described transmit frame unit;
Described IE62056 protocol data sending module comprises application layer packet sending unit, data link layer packet sending unit, the Physical layer packet sending unit that connects successively, respectively in order to send the message of application layer, data link layer, Physical layer;
Described message pick-up subsystem comprises IEC870 protocol data receiver module, IE62056 protocol data receiver module, application layer data applying unit;
Described IEC870 protocol data receiver module receives the coded message that described IEC870 protocol data sending module sends, and by message decoding unit decoding, and the information after the decoding is sent to the application layer data applying unit; The application layer data applying unit obtains the power information of described equipment;
Described IE62056 protocol data receiver module receives the coded message that described IE62056 protocol data sending module sends, it comprises Physical layer message receiving element, data link layer message receiving element, the application layer message receiving element that connects successively, in order to receive the message of Physical layer, data link layer, application layer, described application layer message receiving element is sent to the application layer data applying unit to the message of application layer respectively; The application layer data applying unit obtains the power information of described equipment.
Present embodiment discloses a kind of acquisition method of above-mentioned power information acquisition system simultaneously, and this method comprises descending process (as shown in Figure 1), up process (as shown in Figure 2).
Descending process comprises:
Step 1.1, power information acquisition system issue data/order to terminal device;
Step 1.2, according to the choice of equipment communication port;
Step 1.3, select communication protocol by protocol selection module according to command type;
Step 1.4, the order of needs by IEC870 protocol data sending module sent by IEC870 protocol data sending module, the order of needs by IE62056 protocol data sending module sent by IE62056 protocol data sending module;
Wherein, the process of transmitting of IEC870 protocol data sending module comprises coding step, transmit frame step successively;
The process of transmitting of IE62056 protocol data sending module comprises COSEM application layer message forwarding step, data link layer message forwarding step, Physical layer message forwarding step successively;
Up process comprises:
Step 2.1, when system's send buffer is received data, issue IEC870 protocol data receiver module, IE62056 protocol data receiver module;
The data that step 2.2, described IEC870 protocol data receiver module receiving step 2.1 send, and by message decoding unit decoding, and the information after the decoding is sent to the application layer data applying unit;
Step 2.3, described IE62056 protocol data receiver module comprise Physical layer message receiving element, data link layer message receiving element, the application layer message receiving element that connects successively, in order to receive the message of Physical layer, data link layer, application layer, described application layer message receiving element is sent to the application layer data applying unit to the message of application layer respectively;
Step 2.4, application layer data applying unit obtain the power information of described equipment;
In sum, power information acquisition system and method that the present invention proposes can be implemented in the system and can use different communication protocol simultaneously, make full use of the advantage of two kinds of communication protocols, thereby improve the communication performance of system.
Can use two kinds of communication protocols simultaneously in the power information acquisition system; Terminal device can only adopt wherein a kind of communication protocol according to its application demand, also can adopt simultaneously; Make full use of the characteristics to the versatility of different communication medium of real-time characteristics, the IEC62056 agreement of IEC850 agreement.
Embodiment two
Among the present invention, the kind of described agreement is not defined as IE62056 agreement, IE62056 agreement.Present embodiment discloses a kind of power information acquisition system, and this system is in order to the power information of acquisition terminal equipment, and it comprises that information sends subsystem, message pick-up subsystem; Terminal device sends subsystem by described information the power information of equipment is sent to described message pick-up subsystem.
[information transmission subsystem]
Described information sends subsystem and comprises the first protocol data sending module, the second protocol data sending module, protocol selection module; Described protocol selection module is in order to select one or more in the first protocol data sending module, the second protocol data sending module according to the application need of equipment; The described first protocol data sending module is encoded according to first agreement in order to the power information to equipment, and the information behind the coding is sent to the message pick-up subsystem; The described second protocol data sending module is encoded according to second agreement in order to the power information to equipment, and the information behind the coding is sent to the message pick-up subsystem.
In the present embodiment, the described first protocol data sending module comprises coding unit, transmit frame unit; Described coding unit is encoded in order to the power information to equipment, and the information behind the coding is sent to the message pick-up subsystem by described transmit frame unit.The described second protocol data sending module comprises application layer packet sending unit, data link layer packet sending unit, the Physical layer packet sending unit that connects successively, respectively in order to send the message of application layer, data link layer, Physical layer.
[message pick-up subsystem]
Described message pick-up subsystem comprises the first protocol data receiver module, the second protocol data receiver module, application layer data applying unit.
The described first protocol data receiver module receives the coded message that the described first protocol data sending module sends, and by the decoding of one first agreement decoding unit, and the information after the decoding is sent to the application layer data applying unit; The application layer data applying unit obtains the power information of described equipment.
Particularly, the described first protocol data receiver module receives the coded message that the described first protocol data sending module sends, and by message decoding unit decoding, and the information after the decoding is sent to the application layer data applying unit; The application layer data applying unit obtains the power information of described equipment.
The described second protocol data receiver module receives the coded message that the described second protocol data sending module sends, and by the decoding of one second agreement decoding unit, and the information after the decoding is sent to the application layer data applying unit; The application layer data applying unit obtains the power information of described equipment.
Particularly, the described second protocol data receiver module receives the coded message that the described second protocol data sending module sends, it comprises Physical layer message receiving element, data link layer message receiving element, the application layer message receiving element that connects successively, in order to receive the message of Physical layer, data link layer, application layer, described application layer message receiving element is sent to the application layer data applying unit to the message of application layer respectively; The application layer data applying unit obtains the power information of described equipment.
In addition, described message pick-up subsystem also comprises the message receiving element, sends the data that subsystem sends in order to reception information, and data are sent to the first protocol data receiver module, the second protocol data receiver module simultaneously.
Present embodiment discloses a kind of acquisition method of above-mentioned power information acquisition system simultaneously, and this method comprises information forwarding step, message pick-up step.
The information forwarding step comprises:
Described protocol selection module is selected one or more in the first protocol data sending module, the second protocol data sending module according to the application need of equipment;
The described first protocol data sending module is encoded according to first agreement to the power information of equipment, and the information behind the coding is sent to the message pick-up subsystem;
The described second protocol data sending module is encoded according to second agreement to the power information of equipment, and the information behind the coding is sent to the message pick-up subsystem;
The message pick-up step comprises:
The described first protocol data receiver module receives the coded message that the described first protocol data sending module sends, and by the decoding of one first agreement decoding unit, and the information after the decoding is sent to the application layer data applying unit; The application layer data applying unit obtains the power information of described equipment;
The described second protocol data receiver module receives the coded message that the described second protocol data sending module sends, and by the decoding of one second agreement decoding unit, and the information after the decoding is sent to the application layer data applying unit; The application layer data applying unit obtains the power information of described equipment.
Here description of the invention and application is illustrative, is not to want with scope restriction of the present invention in the above-described embodiments.Here the distortion of disclosed embodiment and change are possible, and the various parts of the replacement of embodiment and equivalence are known for those those of ordinary skill in the art.Those skilled in the art are noted that under the situation that does not break away from spirit of the present invention or essential characteristic, and the present invention can be with other form, structure, layout, ratio, and realize with other assembly, material and parts.Under the situation that does not break away from the scope of the invention and spirit, can carry out other distortion and change here to disclosed embodiment.