A kind of power information acquisition terminal software Determination device and method
Technical field
The invention belongs to the technical field of power information acquisition system, more particularly to a kind of power information acquisition terminal software
Determination device and method.
Background technology
With all standing of power information acquisition terminal, the constantly improve of power information acquisition system, power information collection
The software management of terminal also occurs in that following problem:
One is that function is continuously increased equipment in the process of running, causes early stage supply of material product constantly to be upgraded, field apparatus
Program version is various;
Two be the equipment manufacturer that has in order to reflect the high-quality of its equipment acquisition index, there is the software for changing equipment privately
The problem of program so that True Data can not be reported;
Three be occur Lead Time sample and sample after arrival program version it is inconsistent, cause partial function to lack.
In summary, it is various, true for how to solve power information acquisition terminal device program version in the prior art
The problem of data can not be reported and partial function is lacked, still lacks effective solution.In the urgent need to a power information
Acquisition terminal software comparison device carries out the management and control of program version, to improve the reliability and stably of power information acquisition terminal
Property.
The content of the invention
The present invention overcomes the version of power information acquisition terminal device program present in prior art to solve the above problems
There is provided a kind of power information acquisition terminal software ratio for the problem of this various, True Data can not be reported and partial function is lacked
To detection means and method.
To achieve these goals, the present invention is adopted the following technical scheme that:
A kind of power information acquisition terminal software Determination device, the device includes:
Host computer, detection stage body, local Determination device and long-range contrasting detection device, the host computer passes through described
Local Determination device is connected with the tested power information acquisition terminal being installed on the detection stage body;Or the host computer
It is connected or straight with the tested power information acquisition terminal being installed on the detection stage body by the long-range contrasting detection device
Connect and be connected with tested power information acquisition terminal;
The local Determination device includes three phase power source and router;The three phase power source and monitor station body phase
Connection, size and the adjustable operating voltage of working method are provided for tested acquisition terminal;
The long-range contrasting detection device includes communication front end processor.
Further, the host computer includes database module and detection module;
The database module includes put on record software library module and tested power information acquisition terminal information data library module;
The software library module of putting on record is configured as storing the corresponding software program of putting on record of tested power information acquisition terminal;It is described tested
The tested power information acquisition terminal information of power information acquisition terminal information data library module storage;
The detection module is configured as selecting its corresponding software program of putting on record according to tested power information acquisition terminal,
And MD5 values are locally generated, detection instruction is sent to tested power information acquisition terminal, and the tested power information of reception is gathered
The MD5 values that terminal generation MD5 values are from a locally generated are compared, and complete power information acquisition terminal software Determination.
Further, the detection stage body includes several II type concentrator epitopes, and several I types concentrators or III
The special transformer terminals epitope of type;Tested II type concentrators are installed, the I types concentrator or type III are special in the II types concentrator epitope
Tested I types concentrator or tested type III special transformer terminals are installed in transformer terminals epitope;
The tested II types concentrator, tested I types concentrator or the special transformer terminals of tested type III are the tested power information
Acquisition terminal.
Further, the II types concentrator epitope is configured with RS485 communication ports and ethernet communication mouthful, the II types collection
The RS485 communication ports or ethernet communication of middle device epitope mouthful using RS485 channels or EtherChannel by the router with
Host computer communication, the RS485 communication ports and RS485 turn the connection of Ethernet serial converter, by the RS485 turn with
Too net serial converter and netting twine is connected with the router.
Further, the I types concentrator or the special transformer terminals epitope of type III are configured with RS232 communication ports and ether Netcom
The RS232 communication ports or ethernet communication mouthful of news mouth, the I types concentrator or the special transformer terminals epitope of type III use RS232 channels
Or EtherChannel is communicated by the router with the host computer, the RS232 communication ports and RS232 turn Ethernet serial ports
Converter is connected, and is turned Ethernet serial converter and netting twine by the RS232 and is connected with the router.
Further, the communication front end processor is described tested by what is installed on GPRS wireless networks and the detection stage body
Power information acquisition terminal is communicated, and the instruction of detection module described in the host computer is sent to the tested power information and adopted
Collect terminal, before the tested power information acquisition terminal is communicated according to the MD5 values of instruction generation pass through GPRS radio channels
The machine of putting returns to host computer.
Further, the RS485 turns Ethernet serial converter with 8 road RS485 interfaces, 1 road Ethernet interface, and
Embedded 15KV surge protections.
The RS485 turns Ethernet serial converter and effectively meets several II type concentrator epitopes of detection stage body
Need.
Further, the RS232 turns Ethernet serial converter with 8 road RS232 interfaces, 1 road Ethernet interface, and
Embedded 15KV surge protections.
The RS232 turns Ethernet serial converter and effectively meets described detection several I types concentrators of stage body or type III
The need for special transformer terminals epitope.
Further, the router has 16 ethernet lans mouthful and 1 WAN mouthfuls of Ethernet.
The present invention overcomes the version of power information acquisition terminal device program present in prior art to solve the above problems
There is provided a kind of power information acquisition terminal software ratio for the problem of this various, True Data can not be reported and partial function is lacked
To detection means and method.
To achieve these goals, the present invention is adopted the following technical scheme that:
A kind of power information acquisition terminal software Determination method, this method is gathered based on a kind of above-mentioned power information
Terminal software Determination device, this method step is as follows:
(1) according to tested power information acquisition terminal, the communication party of the tested power information acquisition terminal of selection and host computer
Formula, it is ensured that tested power information acquisition terminal can be normally connected with host computer;
(2) host computer sets up corresponding relation and communication channel to tested power information acquisition terminal;Utilize upper computer detection
The whether normal on-line operation of tested power information acquisition terminal, and carry out real-time communication with tested power information acquisition terminal;On
Detection module in the machine of position sets I initial value as 0;
(3) detection module in host computer selects the corresponding producer of tested power information acquisition terminal in database module
And software of putting on record;Its corresponding software locally one MD5 value of generation, and producing of putting on record is selected according to tested power information acquisition terminal
Raw N number of random interval value is sent to tested power information acquisition terminal;
(4) it is tested power information acquisition terminal and returns to a MD5 data value, detection module is by the MD5 values of return and locally
The MD5 values of generation are compared, and judge whether MD5 data values are consistent, if unanimously, test passes export test report, complete ratio
It is right;Otherwise, into step (5);
(5) I adds 1, judges whether I is less than 3, if I<3, return to step (3) re-starts comparison, otherwise, by three ratios
It is judged as unqualified, export test report to still underproof tested power information acquisition terminal, completes to compare.
Further, in the step (1), the communication mode of the tested power information acquisition terminal of selection and host computer includes
RS485 communication modes, the communication modes of RS 232, ethernet communication mode or GPRS communication modes.
Beneficial effects of the present invention:
(1) the invention provides a kind of power information acquisition terminal software comparison device and method, detection stage body is multilist
Position mixed mode, while possessing multiple II types concentrator epitopes, I types concentrator or the special transformer terminals epitope of type III, is provided simultaneously
RS232, RS485, ethernet channel connection host computer and tested power information acquisition terminal, can pass through different communication sides
Formula, to different producers, different products (I types concentrator, II types concentrator, the special transformer terminals of type III), realizes the source journey of software
Sequence is compared, it is ensured that program correctness and uniqueness.
(2) the invention provides a kind of power information acquisition terminal software comparison device and method, detection stage body is furnished with
RS232 turns Ethernet serial converter, RS485 and turns Ethernet serial converter and multiport router, can be same to multiple epitopes
When control, while realize communication.
(3) the invention provides a kind of power information acquisition terminal software comparison device and method, equipped with communication front end processor,
GPRS telecommunication can be achieved, carries out long-range power information acquisition terminal program software and compares, realizes to scene operation electricity consumption
The software supervision of information acquisition terminal.
(4) the invention provides a kind of power information acquisition terminal software comparison device and method, the power in the world of use
The general software cryptography algorithm MD5 values of prestige, belong to the application first in electric power acquisition industry;Software compares copy reading instruction and belonged to
Power information gathers the explosion command of stipulations, is compared by software peculiar.
Brief description of the drawings
The Figure of description for constituting the part of the application is used for providing further understanding of the present application, and the application's shows
Meaning property embodiment and its illustrate be used for explain the application, do not constitute the improper restriction to the application.
Fig. 1 is power information acquisition terminal software Determination method flow diagram of the invention;
Fig. 2 is the local software Determination operation principle knot of the power information acquisition terminal software comparison device of the present invention
Composition;
Fig. 3 is the remote software Determination operation principle knot of the power information acquisition terminal software comparison device of the present invention
Composition;
Wherein, 1. three phase power source, 2. detection stage bodies, 3.RS485 turns Ethernet serial converter, and 4.RS232 turns ether
Net serial converter, 5. routers, 6. host computers, 7.II type concentrators, 8.I types concentrator or the special transformer terminals of type III, 9. are tested
Power information acquisition terminal, 10. communication front end processors.
Embodiment:
It is noted that described further below is all exemplary, it is intended to provide further instruction to the application.Unless another
Indicate, all technologies used herein and scientific terminology are with usual with the application person of an ordinary skill in the technical field
The identical meanings of understanding.
It should be noted that term used herein above is merely to describe embodiment, and be not intended to restricted root
According to the illustrative embodiments of the application.As used herein, unless the context clearly indicates otherwise, otherwise singulative
It is also intended to include plural form, additionally, it should be understood that, when in this manual using term "comprising" and/or " bag
Include " when, it indicates existing characteristics, step, operation, device, component and/or combinations thereof.
The invention will be further described with embodiment below in conjunction with the accompanying drawings.
Embodiment 1:
As background technology is introduced, power information acquisition terminal device program version present in prior art is numerous
The problem of many, True Data can not be reported and partial function is lacked compares there is provided a kind of power information acquisition terminal software and examined
Survey device and method.
To achieve these goals, the present invention is adopted the following technical scheme that:
In a kind of typical embodiment of the application, as shown in figure 1,
There is provided a kind of power information acquisition terminal software Determination method, this method comprises the following steps:
Step one:Tested power information acquisition terminal 9 is installed on detection stage body 2, the tested power information collection of selection
Terminal 9 and the communication mode of host computer 6:RS485,232, Ethernet or GPRS;
Step 2:Open three phase power source 1 to power for detection stage body 2, open host computer 6 and inspection software;
Step 3:The tested power information acquisition terminal 9 that 6 pairs of host computer has been connected sets up corresponding relation and communication is believed
Road;
Step 4:Using host computer 6, the whether normal on-line operation of terminal can be detected by comparing software, and be carried out in fact with terminal
When communicate;
Step 5:The corresponding producer of tested power information acquisition terminal 9 is selected using the inspection software of host computer 6 and puts soft on record
Part (A programs);
Step 6:Inspection software in host computer 6 produces N number of random interval value and is sent to tested power information acquisition terminal
9 (B programs);
Step 7:Tested power information acquisition terminal 9 returns to a MD5 data value, inspection software by the MD5 values of return and
The MD5 data values for A programs of putting on record are compared, if A programs are consistent with the MD5 data values of B programs, test passes, export test
Report;If the MD5 data values of A programs and B programs are inconsistent, return to step five re-starts comparison;
Step 8:Still underproof tested power information acquisition terminal 9, which is compared, by three times is judged as unqualified, export survey
Examination report.
In step one, the communication mode of the tested power information acquisition terminal 9 of selection and host computer 6:RS485、RS
232nd, Ethernet or GPRS.Local communication mode can be used with host computer 6 by referring to tested power information acquisition terminal 9:RS485 is tieed up
Retaining communication, the serial communications of RS 232, Ethernet, it would however also be possible to employ telecommunication mode:GPRS communicates.
In step 2, three phase power source 1 provides operating voltage for tested acquisition terminal, can provide single-phase voltage, three-phase
Four lines, three-phase three-phase operating voltage, the size and working method of voltage are adjustable.
In step 5, software of putting on record (A programs) is to lead to tested power information acquisition terminal 9 with the terminal early stage of a model
Cross existing in the software library of putting on record in the terminal software put on record during test, host computer 6.
In step 7, it is tested power information acquisition terminal 9 and returns to a MD5 data value, inspection software is by the MD5 values of return
It is compared with the MD5 data values for A programs of putting on record, if A programs are consistent with the MD5 data values of B programs, test passes, export is surveyed
Examination report.The MD5 data values for A programs of putting on record are that inspection software can generate a MD5 according to program of putting on record by MD5 algorithms in itself
Value, belongs to local generation.Inspection software will realize that software compares this function, it is necessary to extend one certainly after increase md5 algorithms
Defined parameters F251:Terminal program code characteristic value, for reading MD5 values.
Wherein query argument (AFN=0AH), query argument order downlink message form is shown in Table 1,
F251:Terminal program code characteristic Value Data cell format is shown in Table 2,
Up (response) message format of query argument order is shown in Table 3,
F251:Terminal program code characteristic value reply data cell format is shown in Table 4.
The query argument order downlink message form of table 1
Table 2 inquires about terminal program code characteristic Value Data cell format
Data content |
Data format |
Byte number |
This inquiry filename length |
BIN |
1 |
This inquiry filename |
ASCII |
32 |
This inquiry quantity n |
BIN |
1 |
The 1st of this inquiry is interval to start sequence number |
BIN |
4 |
The 1st of this inquiry is interval to terminate sequence number |
BIN |
|
…… |
…… |
…… |
N-th of this inquiry is interval to start sequence number |
BIN |
4 |
N-th of this inquiry is interval to terminate sequence number |
BIN |
4 |
Wherein, interval beginning sequence number and end sequence number are not " physical address ", refer to offset.
The query argument command response message format of table 3
The terminal program code characteristic value reply data cell format of table 4
Data content |
Data format |
Byte number |
The filename length of this inquiry |
BIN |
1 |
The filename of this inquiry |
ACSII |
32 |
This inquiry quantity n |
BIN |
1 |
1st interval characteristic value of this inquiry |
BIN |
16 |
…… |
…… |
…… |
The interval characteristic value of n-th of this inquiry |
BIN |
16 |
Embodiment 2:
As background technology is introduced, power information acquisition terminal device program version present in prior art is numerous
The problem of many, True Data can not be reported and partial function is lacked compares there is provided a kind of power information acquisition terminal software and examined
Survey device and method.
To achieve these goals, the present invention is adopted the following technical scheme that:
In a kind of typical embodiment of the application, as shown in Figure 2 and Figure 3,
There is provided a kind of power information acquisition terminal software Determination device, the device includes:
Host computer 6, detection stage body 2, local Determination device and long-range contrasting detection device, the host computer 6 pass through
The local Determination device is connected with the tested power information acquisition terminal 9 being installed on the detection stage body 2;Or it is described
Host computer 6 passes through the long-range contrasting detection device and the tested power information acquisition terminal 9 being installed on the detection stage body 2
Connection is directly connected with tested power information acquisition terminal 9;
The local Determination device includes three phase power source 1 and router 5;The three phase power source 1 and monitor station
Body 2 is connected, and size and the adjustable operating voltage of working method are provided for tested acquisition terminal;
The long-range contrasting detection device includes communication front end processor 10.
In the present embodiment, the host computer 6 includes database module and detection module;
The database module includes put on record software library module and the information database mould of tested power information acquisition terminal 9
Block;The software library module of putting on record is configured as storing the corresponding software program of putting on record of tested power information acquisition terminal 9;It is described
The tested tested information of power information acquisition terminal 9 of information data library module storage of power information acquisition terminal 9;
The detection module is configured as selecting its corresponding software journey of putting on record according to tested power information acquisition terminal 9
Sequence, and MD5 values are locally generated, sending detection to tested power information acquisition terminal 9 instructs, and by the tested power information of reception
The MD5 values that the generation of acquisition terminal 9 MD5 values are from a locally generated are compared, and complete power information acquisition terminal software Determination.
In the present embodiment, the detection stage body 2 includes 4 II type concentrator epitopes, and 4 I types concentrators or type III
Special transformer terminals epitope;Tested II types concentrator 7 is installed, the I types concentrator or type III specially become in the II types concentrator epitope
Tested I types concentrator or type III special transformer terminals 8 are installed in terminal epitope;
The tested II types concentrator 7, tested I types concentrator or the special transformer terminals of tested type III are the tested telecommunications
Cease acquisition terminal 9.
In the present embodiment, the II types concentrator epitope is configured with RS485 communication ports and ethernet communication mouthful, the II
The RS485 communication ports or ethernet communication mouthful of type concentrator epitope pass through the route using RS485 channels or EtherChannel
Device 5 communicates with the host computer 6, and the RS485 communication ports and RS485 turn Ethernet serial converter 3 and connected, by described
RS485 turns Ethernet serial converter 3 and netting twine and is connected with the router 5.
In the present embodiment, the I types concentrator or the special transformer terminals epitope of type III are configured with RS232 communication ports and ether
The RS232 communication ports or ethernet communication mouthful of net communication port, the I types concentrator or the special transformer terminals epitope of type III use RS232
Channel or EtherChannel are communicated by the router 5 with the host computer 6, and the RS232 communication ports and RS232 turn ether
Net serial converter 4 is connected, and turn Ethernet serial converter 4 and netting twine by the RS232 is connected with the router 5.
In the present embodiment, the communication front end processor 10 detects what is installed on stage body 2 by GPRS wireless networks with described
The tested power information acquisition terminal 9 is communicated, and the instruction of detection module described in the host computer 6 is sent to described tested
Power information acquisition terminal 9, the tested power information acquisition terminal 9 passes through GPRS channel radios according to the MD5 values of instruction generation
Front end processor 10 is communicated described in road and returns to host computer 6.
In the present embodiment, the RS485 turns Ethernet serial converter 3, and there are 8 road RS485 interfaces, 1 road Ethernet to connect
Mouthful, and embedded 15KV surge protections.
The RS485 turns Ethernet serial converter 3 and effectively meets 4 II type concentrator epitopes on the detection stage body 2
The need for.
In the present embodiment, the RS232 turns Ethernet serial converter 4, and there are 8 road RS232 interfaces, 1 road Ethernet to connect
Mouthful, and embedded 15KV surge protections.
The RS232 turns Ethernet serial converter 4 and effectively meets 4 I types concentrators or III on the detection stage body 2
The need for the special transformer terminals epitope of type.
In the present embodiment, the router 5 has 16 ethernet lans mouthful and 1 WAN mouthfuls of Ethernet.
Embodiment 3:
As background technology is introduced, power information acquisition terminal device program version present in prior art is numerous
The problem of many, True Data can not be reported and partial function is lacked compares there is provided a kind of power information acquisition terminal software and examined
Survey device and method.
To achieve these goals, the present invention is adopted the following technical scheme that:
In a kind of typical embodiment of the application, based on above-described embodiment 2, local Determination as shown in Figure 2
Structure chart,
Including host computer 6, three phase power source 1, detection stage body 2, RS485 turn Ethernet serial converter 3, RS232 turn with
Too net serial converter 4, router 5.Described detection stage body 8 has 4 II type concentrators epitopes, 4 I types concentrators or III
The special transformer terminals epitope of type, wherein II types concentrator epitope can be led to using RS485 channels or EtherChannel with host computer 6
Letter;I types concentrator or the special transformer terminals epitope of type III can be led to using RS232 channels or EtherChannel with host computer 6
Letter;Tested the I types concentrator of II types concentrator 7 or tested or the special transformer terminals 8 of type III are arranged in the corresponding epitope of detection stage body;
The three phase power source 1 is connected with detection stage body 2, and operating voltage, same voltage are provided for tested power information acquisition terminal 9
Grade can be tested simultaneously;The software contrastive test system in host computer 6 is opened, and tested power information is gathered eventually
The program of putting on record (A programs) at end 9 is recalled from host computer 6, generation copy reading instruction, according to ethernet communication, by netting twine by
Router 5 is transmitted directly to tested power information acquisition terminal 9, according to RS485 communication modes, then by router 5 by
RS485 turns Ethernet serial converter 3 and sends instruction to tested II types concentrator, according to RS232 communication modes, then passes through road
Turn Ethernet serial converter 4 by RS232 by device 5 to send and instruct to tested I types concentrator or the special transformer terminals of type III, be tested and use
Power information acquisition terminal 9 returns to the software contrastive test system in host computer 6 according to instruction one MD5 value of generation according to original route
System, compares the MD5 values that software generates program of putting on record self by MD5 algorithms, is then compared with return value two, to judge test knot
Really, and test report is exported.
Embodiment 4:
As background technology is introduced, power information acquisition terminal device program version present in prior art is numerous
The problem of many, True Data can not be reported and partial function is lacked compares there is provided a kind of power information acquisition terminal software and examined
Survey device and method.
To achieve these goals, the present invention is adopted the following technical scheme that:
In a kind of typical embodiment of the application, based on above-described embodiment 2, long-range comparing detection as shown in Figure 3
Structure chart,
Including host computer 6, front end processor 10 is communicated.Using the software contrastive test system in host computer 6, by tested telecommunications
The program of putting on record of breath acquisition terminal 9 is instructed from host computer 6 using the generation copy reading of comparison software 2 installed in computer, by logical
News front end processor 6 in recall, generation copy reading instruction, by communication front end processor 10 by the communication mode of GPRS wireless public networks be sent to by
Power information acquisition terminal 9 is surveyed, power information acquisition terminal 9 is tested wirelessly public by GPRS according to instruction one MD5 value of generation
Net returns to the software contrastive test system in host computer 6, and software contrastive test system generates program of putting on record by MD5 algorithms
MD5 values, then compare with return value two, to judge test result, and export test report.
Described tested power information acquisition terminal 9 may be mounted on detection stage body 2, or scene is in operation
II type concentrators, I types concentrator or the special transformer terminals of type III, are not limited using long-range comparing by distance and environment, it is only necessary to tested
The working power of power information acquisition terminal 9 is normal.
Beneficial effects of the present invention:
(1) the invention provides a kind of power information acquisition terminal software comparison device and method, detection stage body is multilist
Position mixed mode, while possessing multiple II types concentrator epitopes, I types concentrator or the special transformer terminals epitope of type III, is provided simultaneously
RS232, RS485, ethernet channel connection host computer and tested power information acquisition terminal, can pass through different communication sides
Formula, to different producers, different products (I types concentrator, II types concentrator, the special transformer terminals of type III), realizes the source journey of software
Sequence is compared, it is ensured that program correctness and uniqueness.
(2) the invention provides a kind of power information acquisition terminal software comparison device and method, detection stage body is furnished with
RS232 turns Ethernet serial converter, RS485 and turns Ethernet serial converter and multiport router, can be same to multiple epitopes
When control, while realize communication.
(3) the invention provides a kind of power information acquisition terminal software comparison device and method, equipped with communication front end processor,
GPRS telecommunication can be achieved, carries out long-range power information acquisition terminal program software and compares, realizes to scene operation electricity consumption
The software supervision of information acquisition terminal.
(4) the invention provides a kind of power information acquisition terminal software comparison device and method, the power in the world of use
The general software cryptography algorithm MD5 values of prestige, belong to the application first in electric power acquisition industry;Software compares copy reading instruction and belonged to
Power information gathers the explosion command of stipulations, is compared by software peculiar.
Although above-mentioned the embodiment of the present invention is described with reference to accompanying drawing, not to present invention protection model
The limitation enclosed, the art personnel should be understood that on the basis of technical scheme those skilled in the art are not
Need to pay various modifications or deform still within protection scope of the present invention that creative work can make.