A kind of method for parameter configuration for distribution automation terminal deviceTechnical field
The present invention relates to distribution automation terminal device technique field, is a kind of method for parameter configuration for distribution automation terminal device specifically.
Background technology
Distribution network automatedly be widely used, can obtain in time relevant information and data in power distribution network by distribution automation terminal device, its result of use depends on practicality, the reliability of distribution terminal product, the convenient degree of maintenance. The feature of power distribution network self has determined that distribution network terminal has to distribute and the feature such as has disperseed, many, the poor working environment of node, functional requirement are various, for example: by remote-measuring equipment collection transmission data, by remote signalling equipment collection transmission data, infrared collecting, remote control output etc., therefore the distribution of distribution automation terminal device disperses, producer's model is various, function upgrading is frequent. And no matter be any distribution network terminal, all needing to carry out in use the process of parameter configuration or maintenance, current method for parameter configuration subject matter is that versatility is poor, shows the following aspects:
1. different manufacturers terminal parameter maintaining method difference
Main station system is generally that stipulations are checked by first and each producer, by stipulations, terminal is carried out to information gathering and control, and the maintenance work of terminal parameter is because each producer realizes parameter maintenance function by self-defined mode, need each the supporting release maintenance method of product to carry out parameter maintenance operation. Configure after terminal parameter, main website could normally monitor. Different manufacturers terminal is faced with again different parameter maintaining methods, need to check parameter time, need to find the maintaining method of the corresponding version of terminal just can operate when going wrong, very inconvenient.
2. same producer terminal models difference, its maintaining method and parameter are not identical yet
There is difference in the terminal of producer's different model, be embodied in the parameter difference of use in function. Add or when modify feature, need to increase or adjust Parameter File quantity and argument structure when terminal, maintaining method needs corresponding adjustment and amendment, causes that maintaining method version is many, the R&D cycle is long, efficiency is low.
How to develop a kind of method for parameter configuration that can meet different terminals, different model and become the technical problem of being badly in need of solution.
Summary of the invention
The object of the invention is the poor defect of method for parameter configuration versatility in order to solve distribution automation terminal device in prior art, provide a kind of method for parameter configuration for distribution automation terminal device to solve the problems referred to above.
To achieve these goals, technical scheme of the present invention is as follows:
A kind of method for parameter configuration for distribution automation terminal device, distribution automation terminal device comprises master microprocessor, telemetry subsystem and remote signalling subsystem, described telemetry subsystem comprises remote-measuring equipment, remote-measuring equipment is connected with AD conversion chip by analog switch, and AD conversion chip is connected with master microprocessor by dsp chip; Described remote signalling subsystem comprises remote signalling equipment, and remote signalling equipment is isolated with control chip and is connected by photoelectricity, and control chip is connected with master microprocessor; Ethernet communication module is connected with master microprocessor respectively with shared drive, and ethernet communication module is connected with host computer, and method for parameter configuration comprises the following steps:
Reading of terminal configuration parameter, host computer passes through ethernet communication module from master microprocessor reading terminals configuration parameter;
The download of terminal configuration parameter, host computer is handed down to distribution automation terminal device by ethernet communication module by terminal configuration parameter.
Described reading of terminal configuration parameter comprises the following steps:
Host computer is carried out to ftp server configuration, and host computer obtains the ftp server path corresponding to ftp server IP, user name, password and Parameter File of the master microprocessor self having configured, and is connected to the ftp server in master microprocessor;
Host computer judge in local device project file folder, whether exist Parameter File corresponding read tab file, if do not exist automatic establishment to read tab file; Host computer sends and read tab file to the ftp server in master microprocessor including Parameter File name;
Master microprocessor determines that according to reading tab file current operation is read operation, judges that according to the Parameter File name reading in tab file it is the operation parameter of master microprocessor, telemetry subsystem or remote signalling subsystem that host computer reads, and deletes and reads tab file;
If what read is the process operation parameter in master microprocessor, master microprocessor reads the relevant parameter using in current process, under the original route of ftp server, creates XML formatted file with raw parameter filename;
If what read is the operation parameter of telemetry subsystem or remote signalling subsystem, master microprocessor sends a notification message to dsp chip or control chip, and dsp chip or control chip are sent to parameter in shared drive, send more new information to master microprocessor;
Master microprocessor is received more after new information, reads parameter from shared drive, and creates XML formatted file with raw parameter filename under the original route of ftp server;
In system time cycle T, host computer carries out read operation to master microprocessor, if the XML formatted file of master microprocessor is ready to, host computer successfully reads XML formatted file, the success of prompting read operation; If exceed system time cycle T, maintenance software prompting read operation is overtime.
The download of described terminal configuration parameter comprises the following steps:
Host computer is carried out to ftp server configuration, and host computer obtains the ftp server path corresponding to ftp server IP, user name, password and Parameter File of the master microprocessor self having configured, and is connected to the ftp server in master microprocessor;
After host computer is modified to XML file content as required, host computer sends XML file to the ftp server in master microprocessor, host computer judges in local device project file folder whether have the download tab file that this XML file is corresponding, if do not exist automatic establishment to download tab file, and this download tab file is sent to the ftp server in master microprocessor; All send successfully the success of host computer prompting down operation when sending tab file and XML file;
Master microprocessor detects to be downloaded after tab file, determine that current operation is down operation, what judge host computer download according to the Parameter File name in download tab file is the operation parameter of master microprocessor, telemetry subsystem or remote signalling subsystem, then delete and download tab file, open XML file and resolve;
According to the XML file attribute scope that gets parms, get parms according to XML file section point value, require off-limits parameter to carry out conservation treatment according to parameter area;
Treat the success of XML document analysis, master microprocessor is sent to analytic value in shared drive;
If what download is process operation parameter in master microprocessor, according to parameter in shared drive, the terminal parameter of master microprocessor is upgraded;
If what download is the operation parameter of telemetry subsystem or remote signalling subsystem, master microprocessor sends relevant parameter and notification message in shared drive to dsp chip or control chip;
After the notified message of dsp chip or control chip, use the parameter receiving to upgrade the parameter of corresponding terminal device.
Described establishment XML formatted file comprises the following steps:
Create XML node, parameter value establishment nodal value according to the parameter name of parameter in shared drive;
Create attribute according to parameter area; Create property value according to parameter name, remark information in backup file.
Beneficial effect
Method for parameter configuration for distribution automation terminal device of the present invention, compared with prior art go for multiple distribution automation terminal device, parameter maintenance is convenient reliable, has improved the versatility of maintaining method, avoid the research and development that repeat of terminal parameter configuring method, improved efficiency. Both each producer can meet terminal custom parameter title, argument structure, parameter order, Parameter File name so that, according to own Demand Design operation parameter, can be used again unified parameter maintaining method to safeguard different manufacturers, different model terminal simultaneously.
Brief description of the drawings
Fig. 1 is the hardware configuration connection layout of distribution automation terminal device
Fig. 2 is method flow diagram of the present invention
Fig. 3 is the flow chart that in the present invention, terminal configuration parameter reads
Fig. 4 is the flow chart of terminal configuration parameter downloads in the present invention
Wherein, 1-telemetry subsystem, 2-remote signalling subsystem, 3-master microprocessor, 4-ethernet communication module, 5-host computer, 6-shared drive, 11-remote-measuring equipment, 12-analog switch, 13-AD conversion chip, 14-DSP chip, 21-remote signalling equipment, the isolation of 22-photoelectricity, 23-control chip.
Detailed description of the invention
For making that architectural feature of the present invention and effect of reaching are had a better understanding and awareness, coordinate detailed explanation in order to preferred embodiment and accompanying drawing, be described as follows:
As shown in Figure 1, a kind of method for parameter configuration for distribution automation terminal device, distribution automation terminal device comprises master microprocessor 3, telemetry subsystem 1 and remote signalling subsystem 2, certainly can also comprise infrared transmission conventional in prior art, remoting subsystem, reactive-load compensation input and output etc. Telemetry subsystem 1 comprises remote-measuring equipment 11, remote-measuring equipment 11 is connected with AD conversion chip 13 by analog switch 12, AD conversion chip 13 is connected with master microprocessor 3 by dsp chip 14, the electric power data that remote-measuring equipment 11 collects is undertaken by analog switch 12, after the digital-to-analogue conversion of AD conversion chip 13, passing to dsp chip 14 and processing. Remote signalling subsystem 2 comprises remote signalling equipment 21, and remote signalling equipment 21 is isolated 22 by photoelectricity and is connected with control chip 23, and control chip 23 is connected with master microprocessor 3, and the electric power data that remote signalling equipment 21 collects sends control chip 23 to. Ethernet communication module 4 is connected with master microprocessor 3 respectively with shared drive 6, and ethernet communication module 4 is connected with host computer 5, and corresponding data is sent to host computer 5.
Dsp chip 14 and control chip 23 are controls class chip, realizes terminal function, as communication, stipulations parsing, function management, terminal calibration, three distant functional configuration etc. The normal use of these functions is that the normal operation of equipment all needs function relevant parameter correctly to configure, but its inner parameter is all not identical, needs to carry out separate configuration by its corresponding method for parameter configuration respectively. Although distribution automation terminal device can put together different collecting devices on hardware configuration, but still need to carry out respectively different parameter configuration and adopt different collocation methods. As shown in Figure 2, method for parameter configuration of the present invention comprises the following steps:
The first step, the reading of terminal configuration parameter, host computer 5 by ethernet communication module 4 from master microprocessor 3 reading terminals configuration parameters. As shown in Figure 3, its concrete steps are as follows:
(1) host computer 5 is carried out to ftp server configuration, by the ftp server of installing in master microprocessor 3, carrying out contacting in host computer 5 and master microprocessor 3, is to adopt File Transfer Protocol to carry out file transfer by ftp server mode, generally all supports File Transfer Protocol based on optical-fibre communications or bluetooth. In host computer 5, comprise the address of ftp server, host computer 5 obtains the ftp server path corresponding to ftp server IP, user name, password and Parameter File of the master microprocessor 3 self having configured, and is connected to the ftp server in master microprocessor 3 by File Transfer Protocol.
(2) host computer 5 judge in local device project file folder, whether exist Parameter File corresponding read tab file, read tab file if there is not automatic establishment, reading tab file is to add and read suffix name at the rear of Parameter File name, reads or down operation for master microprocessor judgement. Host computer 5 sends and read tab file to the ftp server in master microprocessor 3 including Parameter File name.
(3) master microprocessor 3 determines that according to reading tab file current operation is read operation. Judge that according to the Parameter File name reading in tab file it is the operation parameter of master microprocessor 3, telemetry subsystem 1 or remote signalling subsystem 2 that host computer 5 reads, its determination methods can adopt determination methods conventional in prior art to carry out. After judgement finishes, delete and read tab file.
(4) if what read is the process operation parameter in master microprocessor 3, master microprocessor 3 reads the relevant parameter using in its inner current process, under the original route of ftp server, creates XML formatted file with raw parameter filename.
(5) if what read is the operation parameter of telemetry subsystem 1 or remote signalling subsystem 2, microprocessor 3 sends a notification message to dsp chip 14 or control chip 23, dsp chip 14 or control chip 23 are sent to parameter in shared drive 6, send more new information to master microprocessor 3, the needed parameter of notice master microprocessor 3 host computer 5 has been put to shared drive 6. Master microprocessor 3 is received more after new information, from shared drive 6, reads parameter, and creates XML formatted file with raw parameter filename under the original route of ftp server.
Create the content that XML formatted file can use prior art, also can use following steps: first, create XML node, parameter value establishment nodal value according to the parameter name of parameter in shared drive 6. Secondly, create attribute according to parameter area. Create property value according to parameter name, remark information in backup file. So far, no matter host computer 1 is the parameter in master microprocessor 3, telemetry subsystem 1 or the remote signalling subsystem 2 reading, and all under the original route of the ftp server of master microprocessor 3, has created XML formatted file, to treat that host computer 5 reads.
(6), in system time cycle T, system time cycle T is artificially set as required. Host computer 5 carries out read operation to master microprocessor 3, reads the XML formatted file under the original route of ftp server. If the XML formatted file of master microprocessor 3 is ready to, host computer 5 successfully reads XML formatted file, the success of prompting read operation. If the XML formatted file of master microprocessor 3 is not accurately got well or other abnormal problems, exceed system time cycle T, maintenance software prompting read operation is overtime, reads failure.
In actual use, when host computer 5 runs into a strange equipment, while communication connection for the first time, need to first carry out read operation. Current parameter in first fetch equipment, then host computer 5 is revised some values as required, then carries out down operation. In order to judge the whether consistent of currency and download, do not avoid downloading the protected situation of meeting is occurred, after down operation, can also carry out again one time read operation as required, judge the whether consistent of currency and download.
Second step, the download of terminal configuration parameter, host computer 5 is handed down to distribution automation terminal device by ethernet communication module 4 by terminal configuration parameter. As shown in Figure 4, its concrete steps are as follows:
(1) host computer 5 is carried out to ftp server configuration, host computer 5 obtains the ftp server path corresponding to ftp server IP, user name, password and Parameter File of the master microprocessor 3 self having configured, and is connected to the ftp server in master microprocessor 3. The same with reading of terminal configuration parameter, host computer 5 obtains by File Transfer Protocol and is connected to the ftp server in master microprocessor 3.
(2) through after the reading of terminal configuration parameter, comprised and read the XML file coming in host computer 5, after host computer 5 is modified to XML file content according to user's request, XML file is sent to the ftp server in master microprocessor 3 by host computer 5. Wherein, the amendment of XML file is carried out according to user's request, host computer routinely and the communication of terminal amendment collocation method. Send and download tab file for master microprocessor 3, to determine that current operation is as down operation. Host computer 5 judges in local device project file folder whether have the download tab file that this XML file is corresponding, download tab file if there is not automatic establishment, the creation method of downloading tab file is identical with the creation method that reads tab file, adds download suffix name at the rear of Parameter File name. This is downloaded to tab file and send to the ftp server in master microprocessor 3, all send successfully when sending tab file and XML file, host computer 5 is pointed out down operation success.
(3) master microprocessor 3 detects and downloads after tab file, determines that current operation is down operation, determines after down operation, deletes and downloads tab file. The operation parameter of master microprocessor 3, telemetry subsystem 1 or remote signalling subsystem 2 according to what download that Parameter File name in tab file judges that host computer 5 downloads. Open XML file and resolve, according to the XML file attribute scope that gets parms, get parms according to XML file section point value. Parameter area scope refers to span, and the value scope for example having is 1-100, some value scopes be P Q, some scopes are 0.1.2, according to parameter area require off-limits parameter is carried out to conventional conservation treatment.
(4) treat the success of XML document analysis, master microprocessor 3 is sent to analytic value in shared drive 6.
(5) according to the Parameter File name judgement of downloading in tab file, if download is process operation parameter in master microprocessor 3, directly the terminal parameter of master microprocessor 3 is upgraded according to parameter in shared drive 6.
According to the Parameter File name judgement of downloading in tab file, if download is the operation parameter of telemetry subsystem 1 or remote signalling subsystem 2, master microprocessor 3 sends relevant parameter and notification message in shared drive 6 to dsp chip 14 or control chip 23. After dsp chip 14 or the notified message of control chip 23, use the parameter receiving to upgrade the parameter of corresponding terminal device (dsp chip or control chip). Carry out, after the read operation and down operation of terminal configuration parameter, having completed the parameter configuration between terminal installation and host computer, for communication connection etc. lays the first stone.
More than show and described general principle of the present invention, principal character and advantage of the present invention. The technical staff of the industry should understand; the present invention is not restricted to the described embodiments; what in above-described embodiment and description, describe is principle of the present invention; the present invention also has various changes and modifications without departing from the spirit and scope of the present invention, and these changes and improvements all fall in claimed scope of the present invention. The protection domain that the present invention requires is defined by appending claims and equivalent thereof.