CN110532021A - The processing method and processing device of the configuration file of dcs - Google Patents

The processing method and processing device of the configuration file of dcs Download PDF

Info

Publication number
CN110532021A
CN110532021A CN201810516676.4A CN201810516676A CN110532021A CN 110532021 A CN110532021 A CN 110532021A CN 201810516676 A CN201810516676 A CN 201810516676A CN 110532021 A CN110532021 A CN 110532021A
Authority
CN
China
Prior art keywords
configuration file
project
processed
information
upload
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810516676.4A
Other languages
Chinese (zh)
Other versions
CN110532021B (en
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.)
Kyland Technology Co Ltd
Original Assignee
Kyland Technology 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 Kyland Technology Co Ltd filed Critical Kyland Technology Co Ltd
Priority to CN201810516676.4A priority Critical patent/CN110532021B/en
Publication of CN110532021A publication Critical patent/CN110532021A/en
Application granted granted Critical
Publication of CN110532021B publication Critical patent/CN110532021B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Abstract

A kind of processing method and processing device of the configuration file of dcs is disclosed in the embodiment of the present application.The grassroot project including at least one project to be processed of this method acquisition dcs;Based on the project information of any project to be processed, at least one configuration file of each project to be processed is obtained, configuration file includes configuration information needed for executing project to be processed;Rear send at least one configuration file to server;When the version information conflict instruction message for receiving server transmission, then show that at least one configuration file conflicts the configuration file uploaded of project to be processed in instruction message with version information, it is rear send modified at least one configuration file to server, to solve several engineers in the prior art while be programmed using DCS configuration software to the same DCS system and the collision problem of the division of labor and cooperation that when configuration occurs.

Description

The processing method and processing device of the configuration file of dcs
Technical field
This application involves field of computer technology more particularly to a kind of processing sides of the configuration file of dcs Method and device.
Background technique
Configuration software is a kind of human-computer interface control/supervisory control and data acquisition software.The development of configuration software at present Rapidly, it has spread over the enterprise information management system, manage and control integration, remote diagnosis and maintenance, and in internet On a series of Data Integration.
For traditional DCS configuration software, tens active stations are had, up to a hundred (or even thousands of) control stations need portion Administration.The engineer team that can be generally made of several engineers, is completed using DCS system configuration software to institute in DCS system There are active station, control station, the resource distribution of central station and programming configuration, wherein configuration can be understood as " configuring ".Traditional point The programming of cloth control system (DistributedControlSystem, DCS) and configuration work will be led in responsible client Entire grassroot project be divided into multiple pending item modules (usually to above-mentioned each active station, control station, center Station is divided into a module), a pending item module is then responsible for by each engineer, each engineer is waited to complete certainly Oneself pending item module copies respective configuration file on engineer station's server to after obtaining configuration file, it Engineer station's server is compiled complete configuration file set afterwards and lower dress operates, wherein to multiple pending items The processing of module is to be completed by engineer using related software.
However, when several engineers are simultaneously programmed the same DCS system using DCS configuration software and when configuration, The collision problem that will appear the division of labor and cooperation, including different engineers be simultaneously the same active station or the same control station into The configuration that the division of labor conflict occurred when row configuration, such as different engineers respectively obtain the same active station or the same control station File successively copies that the covering of configuration file can occur for engineer station's server and different engineers is respectively has a tune to The cooperation conflict that the program of appearance cannot couple when carrying out configuration with the active station of relationship or control station, it is such as default that there is calling to close Two active stations of system or the configuration file of control station can not achieve mutual calling, and this division of labor and the collision problem to cooperate can be tight Ghost image rings the exploitation of Item version.
Summary of the invention
The embodiment of the present application provides a kind of processing method and processing device of the configuration file of dcs, for solving Several engineers are simultaneously programmed the same DCS system using DCS configuration software in the prior art and when configuration occurs The collision problem of the division of labor and cooperation.
In a first aspect, providing a kind of processing method of the configuration file of dcs, this method may include:
Based on the project information of any project to be processed at least one project to be processed, project to be processed is obtained at least One configuration file, at least one project to be processed are the component part of the grassroot project of dcs, configuration file Including configuration information needed for executing project to be processed;
The first upload request is sent to server, and the first upload request includes the version information of project to be processed and to be processed At least one configuration file of project, version information record the version route diversion information of at least one configuration file;
When the version information conflict instruction message for receiving server transmission, then at least one configuration file and version are shown The configuration file of project to be processed uploaded, the version information conflict refer to that source is different in information collision instruction message There is the phenomenon that overlapping between version route diversion information;
To server send the second upload request, the second upload request include project to be processed version information and modification after At least one configuration file, at least one modified configuration file is according to the configuration file that has uploaded at least one group What state file obtained after modifying.
The program is by detecting that repetition uploads in server side, to solve in the prior art, several engineers are simultaneously The same DCS system is programmed using DCS configuration software and the collision problem of the division of labor and cooperation that when configuration occurs.
In an optional realization, after the grassroot project for obtaining dcs, this method further include:
Grassroot project request is sent to server, includes that the grassroot project identifies in grassroot project request;
Server is received to send after requesting storage resource belonging to distribution grassroot project mark according to the grassroot project Grassroot project response, storage resource is used to store the configuration file of grassroot project, so that several works are detected and stored in server The configuration file that the affiliated client of Cheng Shi is sent.
In an optional realization, this method further include: receive the evaluation that server is sent and indicate information, evaluation indicates Information is used to indicate the review result of the configuration file of upload, and the configuration file of upload includes at least one configuration file or modification At least one configuration file afterwards;
When evaluation instruction information instruction review result is not pass through, modified group of at least one configuration file is obtained State file, or the configuration file that at least one modified configuration file is modified again is obtained, it returns and executes to server transmission The step of second upload request.
Aforesaid way can carry out code review to the configuration file uploaded every time in real time, overcome in the prior art, generation Code evaluation is influenced by engineer's factor and individual subjective factor of the project of participation and is neglected, and can not track the limitation of implementation effect, is accelerated Project schedule and project is improved simultaneously complete quality.
Second aspect provides a kind of processing method of the configuration file of dcs, this method comprises:
Based on the project information of any project to be processed at least one project to be processed, project to be processed is obtained at least One configuration file, at least one project to be processed are the component part of the grassroot project of dcs, configuration file Including configuration information needed for executing project to be processed;
It is sent to server and extracts request, extract request for extracting the configuration file of server storage uploaded;
When the version information of version information and the configuration file uploaded at least one configuration file is not present When version information conflicts, the first upload request is sent to server, the first upload request includes the version information of project to be processed With at least one configuration file described in project to be processed, version information records the versioning information of project to be processed;
When there are version letters with the version information of configuration file that has uploaded for the version information at least one configuration file When breath conflict, the second upload request is sent to server, the second upload request includes version information and the modification of project to be processed At least one configuration file afterwards, at least one modified configuration file are according to the configuration file uploaded at least one What configuration file obtained after modifying, the version information conflict, which refers between the different version route diversion information in source, weight Folded phenomenon.
The program is by detecting that repetition uploads in client-side, to solve in the prior art, several engineers are simultaneously The same DCS system is programmed using DCS configuration software and the collision problem of the division of labor and cooperation that when configuration occurs.
The third aspect provides a kind of processing method of the configuration file of dcs, this method comprises:
Receive client send the first upload request, the first upload request include project to be processed version information and to At least one configuration file of processing item, at least one configuration file are that client is appointed according at least one project to be processed What the project information of one project to be processed obtained, configuration file includes information needed for executing project to be processed, and grassroot project is The grassroot project of dcs, at least one project to be processed are the composition portions of the grassroot project of dcs Point;
When the version information of at least one configuration file of upload and the version information of the configuration file uploaded are not present When version information conflicts, the configuration file of upload is obtained, the configuration file of upload includes at least one configuration file;
When there are versions with the version information of configuration file that has uploaded for the version information of at least one configuration file of upload When this information collision, version information conflict instruction message is sent to client, version information conflict instruction message includes to be processed The configuration file of project uploaded;
Based on the second upload request for receiving client and sending, the configuration file of upload is obtained, the second upload request and upper The configuration file of biography includes at least one modified configuration file and corresponding version information, at least one modified group State file is obtained after being modified according to the configuration file uploaded at least one configuration file.
In an optional realization, before the configuration file for obtaining upload, this method further include:
Output the first instruction information, the first instruction information, which is used to indicate, evaluates the configuration file of upload, upload Configuration file includes at least one configuration file or the modified configuration file;
Second indication information is received, second indication information is used to indicate commenting for each configuration file in the configuration file of upload It concludes fruit;
When the review result of configuration file be by when, obtain the configuration file of upload;
When the review result of configuration file is not pass through, is sent to client and evaluates unsanctioned evaluation instruction information, And it returns to execution and receives the step of client sends the second upload request.
In an optional realization, before receiving the first upload request that client is sent, this method further include:
The grassroot project request that client is sent is received, includes that grassroot project identifies in grassroot project request;
It is requested according to grassroot project, storage resource belonging to distribution grassroot project mark;
Grassroot project response is sent to client, storage resource is used to store the configuration file set of grassroot project.
Fourth aspect provides a kind of client, which may include: acquiring unit, transmission unit, shows list Member.
Wherein, acquiring unit is obtained for the project information based on any project to be processed at least one project to be processed At least one configuration file of project to be processed is taken, at least one project to be processed is the grassroot project of dcs Component part, configuration file include configuration information needed for executing project to be processed;
Transmission unit, for sending the first upload request to server, the first upload request includes the version of project to be processed This information and at least one configuration file, version information record the version route diversion information of at least one configuration file;
Display unit, for when the version information conflict instruction message for receiving server transmission, then showing at least one Configuration file conflicts the configuration file uploaded of project to be processed in instruction message with the version information, version information conflict Refer between the different version route diversion information in source there is the phenomenon that overlapping;
Transmission unit is also used to send the second upload request to server, and the second upload request includes project to be processed Version information and at least one modified configuration file, at least one modified configuration file are according to the configuration uploaded What file obtained after modifying at least one configuration file.
In an optional realization, client further includes the first receiving unit;
Transmission unit is also used to after the grassroot project that acquiring unit obtains dcs, is sent out to server It send grassroot project to request, includes that grassroot project identifies in grassroot project request;
First receiving unit is requesting the storage of distribution grassroot project mark to provide for receiving server according to grassroot project The grassroot project response sent behind source, storage resource are used to store the configuration file set of grassroot project.
In an optional realization, client further includes the second receiving unit;
Second receiving unit, the evaluation for receiving server transmission indicate that information, evaluation instruction information are used to indicate The review result of the configuration file of biography, the configuration file of upload include at least one configuration file or at least one modified group State file;
Acquiring unit is also used to obtain at least one configuration when evaluation instruction information instruction review result is not pass through The modified configuration file of file, or the configuration file that at least one modified configuration file is modified again is obtained, and touch It sends out transmission unit and sends the second upload request to server.
5th aspect, provides another client, which includes: acquiring unit, transmission unit.
Acquiring unit, for the project information based on any project to be processed at least one project to be processed, obtain to At least one configuration file of processing item, at least one project to be processed are the compositions of the grassroot project of dcs Part, configuration file include configuration information needed for executing project to be processed;
Transmission unit extracts request for sending to server, extracts request for having extracted the server storage The configuration file of upload;
When version is not present in the version information of version information and the configuration file uploaded at least one configuration file When information collision, Xiang Suoshu server sends the first upload request, and the first upload request includes the version information of project to be processed With at least one configuration file described in project to be processed, version information records the versioning information of project to be processed;
When there are version letters with the version information of configuration file that has uploaded for the version information at least one configuration file When breath conflict, the second upload request is sent to server, the second upload request includes version information and the modification of project to be processed At least one configuration file afterwards, at least one modified configuration file are according to the configuration file uploaded at least one What configuration file obtained after modifying, version information conflict, which refers between the different version route diversion information in source, overlapping Phenomenon.
6th aspect, provides a kind of service unit, the apparatus may include: receiving unit, sends list at acquiring unit Member.
Receiving unit, for receiving the first upload request of client transmission, the first upload request includes project to be processed Version information and project to be processed at least one configuration file, at least one configuration file be client according at least one The project information of any project to be processed obtains in project to be processed, and configuration file includes letter needed for executing project to be processed Breath, at least one project to be processed is the component part of the grassroot project of dcs, and grassroot project is distributed control The grassroot project of system processed;
Acquiring unit, for the version information and the version of the configuration file uploaded when at least one configuration file uploaded When this information conflicts there is no version information, the configuration file of upload is obtained, the configuration file of upload includes at least one configuration File;
Transmission unit, for the version information and the version of the configuration file uploaded when at least one configuration file uploaded This information sends version information conflict instruction message to client, version information conflict instruction disappears there are when version information conflict Breath includes the configuration file of project to be processed uploaded;
Acquiring unit is also used to obtain the configuration file of upload based on the second upload request for receiving client transmission, the Two upload requests and the configuration file of upload include at least one modified configuration file and corresponding version information, modification At least one configuration file afterwards is obtained after being modified according to the configuration file uploaded at least one configuration file It arrives.
In an optional realization, which can also include output unit;
Output unit, for before acquiring unit obtains the configuration file uploaded, output the first instruction information, first to refer to Show that information is used to indicate to evaluate the configuration file of upload, the configuration file of upload includes at least one configuration file or institute State modified configuration file;
Receiving unit, is also used to receive second indication information, and second indication information is used to indicate in the configuration file of upload The review result of each configuration file;
Acquiring unit, be also used to when the review result of configuration file be by when, obtain the configuration file of upload;
Transmission unit is also used to send evaluation when the review result of configuration file is not pass through to client and do not pass through Evaluation indicate information, and trigger receiving unit receive client send the second upload request.
In an optional realization, which further includes allocation unit;
Receiving unit is also used to receive the newly-built of client transmission before receiving the first upload request that client is sent Item request, grassroot project request in include the grassroot project identify;
Allocation unit, for being requested according to grassroot project, storage resource belonging to distribution grassroot project mark, and to client End sends grassroot project response, and storage resource is used to store the configuration file set of grassroot project.
Transmission unit is also used to send grassroot project response to client.
7th aspect, provides a kind of terminal, which includes processor, communication interface, memory and communication bus, In, processor, communication interface, memory completes mutual communication by communication bus;
Memory, for storing computer program;
Processor when for executing the program stored on memory, being realized in above-mentioned first aspect or second aspect and being appointed Method and step described in one.
Eighth aspect provides a kind of server, which includes that processor, communication interface, memory and communication are total Line, wherein processor, communication interface, memory complete mutual communication by communication bus;
Memory, for storing computer program;
Processor when for executing the program stored on memory, realizes any side in the above-mentioned third aspect Method step.
9th aspect, provides a kind of computer readable storage medium, meter is stored in the computer readable storage medium Calculation machine program, the computer program, which is realized when being executed by processor in above-mentioned first aspect, second aspect or the third aspect, appoints Method and step described in one.
It includes at least one item to be processed that the technical solution of the embodiment of the present invention, which obtains dcs in client, After purpose grassroot project and after at least one configuration file of any project to be processed, configuration file includes that execution is to be processed Configuration information needed for project uploads at least one configuration file of project to be processed to server;Client-side is receiving The version information that server is sent conflict instruction message when, show that at least one configuration file conflicts instruction message with version information In project to be processed the configuration file uploaded, rear send at least one modified configuration file to server;Alternatively, Client-side extracts request by sending to server before upload, obtains the currently stored configuration text uploaded of server Part is uploaded in the configuration file for detecting at least one configuration file and having uploaded there are after identical configuration file to server At least one modified configuration file.Wherein, at least one modified configuration file is according to the configuration file uploaded It is obtained after modifying at least one configuration file, to solve several engineers in the prior art while use DCS The collision problem of configuration software is programmed the same DCS system and when configuration occurs the division of labor and cooperation.
Detailed description of the invention
Fig. 1 is that the processing method application of the configuration file of dcs provided in an embodiment of the present invention a kind of is System configuration diagram;
Fig. 2 is a kind of process signal of configuration file processing method of dcs provided in an embodiment of the present invention Figure;
Fig. 3 is that the process of the configuration file processing method of another dcs provided in an embodiment of the present invention is shown It is intended to;
Fig. 4 is a kind of flow diagram of the configuration file processing method of dcs shown in Fig. 2;
Fig. 5 is a kind of flow diagram of the configuration file processing method of dcs shown in Fig. 3;
Fig. 6 is a kind of structural schematic diagram of client provided in an embodiment of the present invention;
Fig. 7 is the structural schematic diagram of another client provided in an embodiment of the present invention;
Fig. 8 is a kind of structural schematic diagram of service unit provided in an embodiment of the present invention;
Fig. 9 is a kind of structural schematic diagram of terminal provided in an embodiment of the present invention;
Figure 10 is the structural schematic diagram of another server provided in an embodiment of the present invention.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete Site preparation description, it is clear that described embodiment is only some embodiments of the present application, is not whole embodiments.Based on this Apply for embodiment, every other implementation obtained by those of ordinary skill in the art without making creative efforts Example, shall fall in the protection scope of this application.
The processing method of the configuration file of dcs provided in an embodiment of the present invention is using shown in Fig. 1 It unites in framework, which is specially client/server (Client/Server, CS) framework.The system may include more A terminal, such as terminal 1, terminal 2 and terminal 3, each terminal needs to handle a small project to be processed in entire project, the end End includes engineer station's client (hereinafter referred to as " client "), and (following with engineer station's server of client communication Referred to as " server ").
Signified terminal can be described as user equipment (User quipment, UE), mobile station in the embodiment of the present invention (Mobile Station, MS), mobile terminal ((Mobile Terminal) etc..The client can be DCS configuration software visitor Family end has GIT operating function and configuration file information comparing function.
Wherein, GIT operating function supports common GIT operation, such as clones, submits, pushes, pulls, obtains branch and merging Deng operation.Configuration file information comparing function supports the functions such as configuration parameter comparison, picture comparison and algorithm logic comparison.
Optionally, which can also include execution unit, such as DCS simulated running system.Getting entire project Configuration file set after, handled through execution unit, obtain execute file, to control the active station and control station in DCS system It works.
Server can be DCS configuration software server, have GIT operating function corresponding with client, continuous integrating Tool, such as Jenkins, and evaluation tool, such as Gerrit.Wherein, Jenkins is an open source continuous integrating (Continuous Integration) tool, for monitoring persistently duplicate work.Developmental Engineer can integrate each open The project to be processed of engineer is sent out, collects Chengdu every time by the compiling of automation, publication, automatic test is verified, by more The secondary integrated integrated mistake of discovery as soon as possible.Gerrit is a kind of code inspection software of open source code, using web interface, is examined Program code is read, decides whether to submit, retracts or continues to modify.
The processing method of the configuration file of dcs provided in an embodiment of the present invention can be based on Git come complete At, wherein Git is the distributed version control system of an open source, even if a kind of Version Control software of open source code, to Effectively, the processing of high speed is from very little to very big Item version management.
This method obtains the grassroot project of DCS by client, which may include at least one item to be processed Mesh;And the project information based on any project to be processed at least one project to be processed, obtain each project to be processed extremely A few configuration file sends first to server and uploads after configuration file includes information needed for executing the project to be processed Request, the first upload request includes the version information of project to be processed and at least one configuration file of project to be processed, version Information records the version change information of at least one configuration file.
The same DCS system is programmed using DCS configuration software simultaneously and when configuration to solve several engineers The division of labor and the collision problem that cooperates, version information progress version conflict detection of the server to the project to be processed of upload, version This information is used to record the version change information of the project to be processed uploaded.
Specifically: when server detects the version information of the project to be processed, there is no the records of biography in history, i.e., should be to When the version information of processing item does not repeat to upload, at least one configuration file that server treats processing item carries out configuration text The evaluation (such as code review) of part information obtains at least one configuration file of the project to be processed, goes forward side by side if evaluation passes through Row storage.When server detects that the version information of the project to be processed has in history that biography is recorded, i.e. the project to be processed When version information repeats to upload, the version information conflict instruction message sent to client, version information conflicts instruction message can To include the corresponding configuration file uploaded of the project to be processed.Client shows at least one configuration obtained to engineer The configuration file uploaded the configuration uploaded corresponding with project to be processed in version information conflict instruction message is repeated in file File;Later after at least one the modified configuration file for getting engineer's upload, second is sent to server and is uploaded Request, the second upload request includes at least one modified configuration file, at least one modified configuration file is basis What the configuration file uploaded obtained after modifying to the configuration file for repeating to upload.Server treats the modification of processing item Configuration file afterwards carries out the evaluation (such as code review) of configuration file information, if evaluation passes through, obtains the project to be processed At least one modified configuration file, and stored.Corresponding project to be processed is uploaded by multiple client as a result, At least one configuration file makes server obtain the configuration file set of entire grassroot project.
Preferred embodiment of the present application is illustrated below in conjunction with Figure of description, it should be understood that described herein Preferred embodiment only for the purpose of illustrating and explaining the present invention and is not intended to limit the present invention, and in the absence of conflict, this Shen Please in embodiment and embodiment in feature can be combined with each other.
Fig. 2 is a kind of process signal of configuration file processing method of dcs provided in an embodiment of the present invention Figure.As shown in Fig. 2, this method may include:
The project information of step 210, client based on any project to be processed at least one project to be processed, obtain to At least one configuration file of processing item.
Since at least one project to be processed is the component part of the grassroot project of dcs, therefore should executing Before step, client needs to obtain the grassroot project of dcs.
Client can be operated by GIT in clone operations obtain the grassroot project of dcs, this is newly-built Project can be the edition upgrading project to target program.The grassroot project includes each client pair at least one client The project to be processed answered.
Optionally, after executing the step, user end to server sends grassroot project request, wraps in grassroot project request Include grassroot project mark;
Server requests storage resource belonging to distribution grassroot project mark according to grassroot project, such as by executing automatically " git init " operation distribution storage resource, completes the initialization of grassroot project, wherein storage resource is for storing grassroot project Configuration file set so that the configuration file that the affiliated client of several engineers is sent is detected and stored in server.It is backward Client sends grassroot project response.
It should be noted that the client can be preset person in overall's client, the client is newly-built for receiving Project, and grassroot project request is sent to server.
Configuration file includes configuration information needed for executing project to be processed, as control station configuration information, picture match confidence Breath, database configuration information etc..
Project to be processed at least one of entire grassroot project, each client have the project to be processed of oneself, Such as, it can be understood as each client is responsible for handling a project to be processed at least one project to be processed.
Further, after client gets at least one configuration file of project to be processed.
Step 220, user end to server send the first upload request, and the first upload request includes the version of project to be processed This information and at least one configuration file.
Version information is used to record the versioning information of project to be processed, for example, version 0 indicates that project to be processed is not done The configuration file of modification, version 1 indicate the primary configuration file of the modification of project to be processed, and version 2 indicates project to be processed The configuration file of modification twice, and so on.
Client can be operated by the push (Push) that git push is instructed, and send the first upload request to server.
Optionally, the first upload request can also include project label to be processed, to be used for the unique identification item to be processed Mesh.
Step 230 is believed with the version of configuration file uploaded when the version information of at least one configuration file of upload For breath there is no when version information conflict, server obtains the configuration file uploaded.
Version information is used to record the version route diversion information of at least one configuration file of project to be processed, such as configuration File A initial version number is 0, and the version number of configuration file A is 1 after first revision, the configuration text after secondly revising The version number of part A is 2, then the version route diversion information of configuration file A can indicate are as follows: the alternative routing of 0- > 1- > 2.Clothes Whether at least one configuration file that business device detects project to be processed repeats to upload.
In history whether server can be recorded in biography record by detecting the version information of project to be processed, to detect At least one configuration file of project to be processed whether there is version conflict, wherein version conflict can refer to configuration file There is overlapping in version change path, for example, the version information that server end has had project to be processed is the change of 0- > 1- > 2- > 3 Path, and when the version information that client uploads is 2- > 3 or 0- > 1- > 2 or 0- > 1- > 2- > 3 alternative routing, that is, it can be described as There are version conflicts.
When the version information of the project to be processed of upload is not identical as the version information of the project to be processed uploaded, obtain At least one configuration file of project to be processed is taken, and is stored in storage resource belonging to grassroot project mark, i.e., to storage Configuration file in resource is updated.
Step 240, when upload project to be processed version information and the version information phase of the project to be processed uploaded Meanwhile server sends version information conflict instruction message to client.
Version information conflict instruction message includes the corresponding configuration file uploaded of version information of project to be processed.
Step 250, user end to server send the second upload request, and the second upload request includes modified at least one A configuration file and respective version information.
Before executing the step, client shows at least one configuration file according to version information conflict instruction message The configuration file of project to be processed uploaded in the instruction message that conflicts with version information, so that engineer or modifiers are (such as The program write) it modifies at least one configuration file, (Commit) can be submitted into the local library git later.Its In, the modification mode at least one configuration file may include: to the target configuration file at least one configuration file into Row content update adds or deletes target configuration file at least one configuration file, and version conflict will be present The configuration file of upload carries out content at least one configuration file and merges, and the configuration file A such as uploaded is project to be processed Upper partial content, at least one configuration file be the project to be processed lower partial content, by upper partial content and lower part Content merges, or the lower partial content etc. is added on the basis of upper partial content.
User end to server sends the second upload request including modified configuration file, version information note at this time The version change routing information for having recorded at least one configuration file after the modification of the project to be processed returns to step later 230, the configuration file of the upload at this time includes at least one modified configuration file.
Optionally, in order to further increase the accuracy for solving the division of labor and the collision problem to cooperate, the group uploaded is being obtained Before state file, following steps can also be performed:
Server output the first instruction information, the first instruction information, which is used to indicate, evaluates the configuration file of upload, The configuration file of upload includes at least one configuration file or at least one modified configuration file;
Wherein, which can be executed by the engineer for being responsible for evaluation, evaluated and sent second to server after terminating Indicate information.
Server receives second indication information, and second indication information is used to indicate each configuration text in the configuration file of upload The review result of part.
When the review result of the configuration file of upload be by when, obtain the configuration file of upload;
When the review result of the configuration file of upload is not pass through, is sent to client and evaluate unsanctioned evaluation instruction Information.
As it can be seen that the evaluation course can carry out code review to the configuration file uploaded every time in real time by reviewer, gram Having taken code review in the prior art is influenced by engineer's factor and individual subjective factor of the project of participation and is neglected, and can not track execution The limitation of effect accelerates project schedule and while improving project completion quality.
Client is based on evaluating unsanctioned evaluation instruction information, obtains at least one modified configuration file, returns The step of sending the second upload request to server is executed, for example, client can be believed according to unsanctioned evaluation instruction is evaluated It ceases to engineer and sends modification instruction, to obtain at least one modified configuration file.
After obtaining the configuration file uploaded, server carries out more the configuration file of the project to be processed of this in storage resource New operation, updated configuration file are the configuration file carried in first time upload request or second of upload request.
It includes at least one item to be processed that the technical solution of the embodiment of the present invention, which obtains dcs in client, After purpose grassroot project and after at least one configuration file of any project to be processed, configuration file includes that execution is to be processed Configuration information needed for project uploads at least one configuration file of project to be processed to server;Client-side is receiving The version information that server is sent conflict instruction message when, show that at least one configuration file conflicts instruction message with version information In project to be processed the configuration file uploaded, rear send at least one modified configuration file to server, wherein At least one modified configuration file is obtained after being modified according to the configuration file uploaded at least one configuration file It arrives, to solve several engineers in the prior art while be programmed using DCS configuration software to the same DCS system With the collision problem of the division of labor and cooperation that occur when configuration.
It should be noted that the method for the above embodiment of the present invention passes through the offline exploitation of configuration file and code review work Make, it is low and the problem of be unable to synchronous coding to can solve code quality in cross-region synchronous development, can also promote code security Property, for example, server end occur it is abnormal when code being caused to be lost, at this time can be extensive by the code library of each region developer local Multiple server-side code library.
Above-described embodiment is to carry out the detection of configuration file version conflict in server side, solves to divide to further increase The accuracy of work and the collision problem of cooperation, following example can carry out the duplicate detection of configuration file in client-side, such as Shown in Fig. 3, this method may include:
The project information of step 310, client based on any project to be processed at least one project to be processed, obtain to At least one configuration file of processing item.
The specific implementation process of above-mentioned steps 310 and the specific implementation process of step 210 are identical, and the embodiment of the present invention is herein It does not repeat them here.
Step 320, user end to server, which are sent, extracts request.
Request is extracted for extracting the configuration file of server storage uploaded.Client can be by pulling (pull), or acquisition sends to server with the operation for merging (fetch+merge) and extracts request.
Step 330, server send the configuration file uploaded to client.
The configuration file uploaded is the configuration file uploaded belonging to the grassroot project of current server storage.
Optionally, which can be the upload configuration text of the project to be processed of the client process Part is also possible to all configuration files uploaded of the current storage resource storage of server.
Step 340, client detect at least one configuration file version information whether with the version that has uploaded configuration file There are version information conflicts for this information.Step 350, when at least one configuration file version information and the configuration text that has uploaded When the version information of part conflicts there is no version information, the first upload request is sent to server, executes step 370 later.
Step 360 is deposited when the version information of version information and the configuration file uploaded at least one configuration file In version information conflict, the second upload request is sent to server, executes step 370 later.
When the version information and the version information of the configuration file uploaded of the configuration file at least one configuration file There are when version information conflict, client shows the configuration file uploaded of at least one configuration file Yu project to be processed, So that engineer modifies at least one configuration file, at least one modified configuration file is obtained.
It optionally, when the extraction request of client is all having uploaded for the current storage resource storage of server Configuration file when, client can adjust at least one modified configuration file and all configuration files uploaded With test, the accuracy of at least one modified configuration file has been examined.
Step 370, server obtain the configuration file uploaded.
Wherein, the first upload request, the configuration file of the second upload request and upload are uploaded with involved in Fig. 2 first Request, the second upload request are identical with the configuration file of upload, and this will not be repeated here for the embodiment of the present invention.
It includes at least one item to be processed that the technical solution of the embodiment of the present invention, which obtains dcs in client, After purpose grassroot project and after at least one configuration file of any project to be processed, configuration file includes that execution is to be processed Configuration information needed for project, client-side extract request by sending to server before upload, obtain server and currently deposit Storage the configuration file uploaded, detect the version information configuration file at least one configuration file whether with uploaded Configuration file version information there are after version conflict, upload at least one modified configuration file to server.Wherein, At least one modified configuration file is obtained after being modified according to the configuration file uploaded at least one configuration file It arrives, to solve several engineers in the prior art while be programmed using DCS configuration software to the same DCS system With the collision problem of the division of labor and cooperation that occur when configuration.
Further, compared with prior art, client is obtaining dcs in embodiments of the present invention After grassroot project, git branch operational order can be called by menu interface, at least one point is created to grassroot project Branch.Such as in grassroot project when multiple schemes need to verify, each verification process needs to create a branch;Grassroot project needs More phases are divided to realize, each phase, which is realized, requires creation branch.
User end to server sends third upload request later, and third upload request includes the mark of at least one branch The configuration file of knowledge and at least one branch.
Fig. 4 is a kind of flow diagram of the configuration file processing method of dcs shown in Fig. 3.Such as Fig. 4 Shown, this method may include:
Step 401, client obtain the grassroot project of dcs, which includes that at least one waits locating Reason project.
Step 402, user end to server send grassroot project request, include New any target in grassroot project request Know.
Step 403, server are requested according to grassroot project, storage resource belonging to distribution grassroot project mark.
Step 404, server send grassroot project response to client.
The project information of step 405, client based on project to be processed corresponding at least one project to be processed obtains At least one configuration file.
Step 406, user end to server send the first upload request.
Client is instructed to server by git push and sends the first upload request.
First upload request includes the version information of at least one configuration file and at least one configuration of project to be processed File.
Step 407, server detect at least one configuration file of project to be processed version information whether with uploaded The version information of configuration file there are version conflicts;
If so, thening follow the steps 408;
If it is not, thening follow the steps 411.
Step 408, server send version information conflict instruction message to client.
Step 409, client show at least one configuration file and version information according to version information conflict instruction message The configuration file of project to be processed uploaded in the instruction message that conflicts.
Step 410, user end to server send the second upload request.
Second upload request includes at least one modified configuration file and corresponding version information, it is modified at least One configuration file is obtained after being modified according to the configuration file uploaded at least one configuration file.
Step 411, server output the first instruction information, the first instruction information be used to indicate to the configuration file of upload into Row evaluation.
The configuration file of upload includes the modification of at least one configuration file or the project to be processed of the project to be processed At least one configuration file afterwards.
Step 412, server receive second indication information, and second indication information is used to indicate in the configuration file of upload often The review result of a configuration file.
Step 413, when the review result of configuration file be by when, server obtain upload configuration file.
Step 414, when the review result of configuration file be not by when, server to client send evaluation it is unsanctioned Evaluation instruction information.
Step 415, client are based on evaluating unsanctioned evaluation instruction information, obtain at least one modified configuration text Part.
Client is based on evaluating unsanctioned evaluation instruction information, obtains at least one modified configuration file, for example, Client can indicate that information sends modification to engineer and instructs according to unsanctioned evaluation is evaluated, thus obtain it is modified extremely A few configuration file, returns to step 410 later.
It includes at least one item to be processed that the technical solution of the embodiment of the present invention, which obtains dcs in client, After purpose grassroot project and after at least one configuration file of any project to be processed, configuration file includes that execution is to be processed Configuration information needed for project uploads at least one configuration file of project to be processed to server;Client-side is receiving The version information that server is sent conflict instruction message when, show that at least one configuration file conflicts instruction message with version information In project to be processed the configuration file uploaded, it is rear send at least one modified configuration file to server, thus It solves several engineers in the prior art while the same DCS system is programmed using DCS configuration software and when configuration The division of labor of appearance and the collision problem of cooperation.
Fig. 5 is a kind of flow diagram of the configuration file processing method of dcs shown in Fig. 3.Such as Fig. 5 Shown, this method may include:
Step 501, client obtain the grassroot project of dcs, which includes that at least one waits locating Reason project.
Step 502, user end to server send grassroot project request, include New any target in grassroot project request Know.
Step 503, server are requested according to grassroot project, storage resource belonging to distribution grassroot project mark.
Step 504, server send grassroot project response to client.
The project information of step 505, client based on project to be processed corresponding at least one project to be processed obtains At least one configuration file.
Step 506, user end to server, which are sent, extracts request, extracts request for extracting the upload of server storage Configuration file.
Step 507, server send the configuration file uploaded to client.
Step 508, client detect at least one configuration file version information whether with the configuration file that has uploaded There are version conflicts for version information;
If it is not, thening follow the steps 509;
If so, thening follow the steps 510.
Step 509 sends the first upload request to server.
First upload request include at least one configuration file of project to be processed version information and project to be processed At least one configuration file.
The configuration file that step 510, client show at least one configuration file and uploaded.
Step 511, user end to server send the second upload request, execute step 512 later.
Second upload request includes at least one modified configuration file, at least one modified configuration file is root It is obtained after modifying according to the configuration file uploaded at least one configuration file.
Step 512, server output the first instruction information, the first instruction information be used to indicate to the configuration file of upload into Row evaluation.
The configuration file of upload includes the modification of at least one configuration file or the project to be processed of the project to be processed At least one configuration file afterwards.
Step 513, server receive second indication information, and second indication information is used to indicate in the configuration file of upload often The review result of a configuration file.
Step 514, when the review result of configuration file be by when, server obtain upload configuration file.
Step 515, when the review result of configuration file be not by when, server to client send evaluation it is unsanctioned Evaluation instruction information.
Step 516, client are based on evaluating unsanctioned evaluation instruction information, obtain at least one modified configuration text Part.
Client is based on evaluating unsanctioned evaluation instruction information, obtains at least one modified configuration file, for example, Client can indicate that information sends modification to engineer and instructs according to unsanctioned evaluation is evaluated, thus obtain it is modified extremely A few configuration file, returns to step 511 later.
Wherein, step 512- step 516 is not done superfluous herein with step 411- step 415 shown in Fig. 4, the embodiment of the present invention It states.
It includes at least one item to be processed that the technical solution of the embodiment of the present invention, which obtains dcs in client, After purpose grassroot project and after at least one configuration file of any project to be processed, configuration file includes that execution is to be processed Configuration information needed for project, client-side extract request by sending to server before upload, obtain server and currently deposit Storage the configuration file uploaded, detect the version information configuration file at least one configuration file whether with uploaded Configuration file version information there are after version conflict, upload at least one modified configuration file to server.Wherein, At least one modified configuration file is obtained after being modified according to the configuration file uploaded at least one configuration file It arrives, to solve several engineers in the prior art while be programmed using DCS configuration software to the same DCS system With the collision problem of the division of labor and cooperation that occur when configuration.
It should be noted that above-described embodiment is to be carried out in detail with being in communication with each other for client and server to the application Illustrate, but this does not imply that the two must cooperate implementation, in fact, when client-side and server side are performed separately, Superior technique can be obtained when only the two is used in combination in the problems of client-side, server side respectively by solving Effect.
Corresponding with the above method, the embodiment of the present invention also provides a kind of client, as shown in fig. 6, the client includes: Acquiring unit 610, transmission unit 620 and display unit 630.
Wherein, acquiring unit 610, for the project letter based on any project to be processed at least one project to be processed Breath, obtains at least one configuration file of project to be processed, at least one project to be processed is the newly-built of dcs The component part of project, configuration file include configuration information needed for executing project to be processed;
Transmission unit 620, for sending the first upload request to server, the first upload request includes project to be processed Version information and at least one configuration file, version information record the version route diversion information of at least one configuration file;
Display unit 630, for when the version information conflict instruction message for receiving server transmission, then showing at least one A configuration file conflicts the configuration file uploaded of project to be processed in instruction message with the version information, version information punching It is prominent to refer between the different version route diversion information in source there is the phenomenon that overlapping;
Transmission unit 620 is also used to send the second upload request to server, and the second upload request includes project to be processed Version information and at least one modified configuration file, at least one modified configuration file be according to the group that has uploaded What state file obtained after modifying at least one configuration file.
In an optional realization, client further includes the first receiving unit 640;
Transmission unit 620 is also used to after the grassroot project that acquiring unit obtains dcs, to server Grassroot project request is sent, includes that grassroot project identifies in grassroot project request;
First receiving unit 640 is requesting depositing for distribution grassroot project mark according to grassroot project for receiving server The grassroot project response sent after storage resource, storage resource are used to store the configuration file set of grassroot project.
In an optional realization, client further includes the second receiving unit 650;
Second receiving unit 650, the evaluation for receiving server transmission indicate that information, evaluation instruction information are used to indicate The review result of the configuration file of upload, the configuration file of upload include at least one configuration file or it is modified at least one Configuration file;
Acquiring unit 610 is also used to obtain at least one group when evaluation instruction information instruction review result is not pass through The modified configuration file of state file, or the configuration file that at least one modified configuration file is modified again is obtained, and It triggers transmission unit and sends the second upload request to server.
The client of the embodiment of the present invention obtains the New any that dcs includes at least one project to be processed After mesh and after at least one configuration file of any project to be processed, configuration file includes needed for executing project to be processed Configuration information uploads at least one configuration file of project to be processed to server;Client-side is receiving server transmission Version information conflict instruction message when, show that at least one configuration file conflicts item to be processed in instruction message with version information The configuration file that purpose has uploaded, it is rear send modified at least one configuration file to server after.Wherein, modified At least one configuration file be obtained after being modified according to the configuration file that has uploaded at least one configuration file, thus It solves several engineers in the prior art while the same DCS system is programmed using DCS configuration software and when configuration The division of labor of appearance and the collision problem of cooperation.
Corresponding with the above method, the embodiment of the present invention also provides another client, as shown in fig. 7, the client packet It includes: acquiring unit 710, transmission unit 720.
Acquiring unit 710 is obtained for the project information based on any project to be processed at least one project to be processed At least one configuration file of project to be processed, at least one project to be processed are the groups of the grassroot project of dcs At part, configuration file includes configuration information needed for executing project to be processed;
Transmission unit 720 extracts request for sending to server, extracts request for extracting the server storage The configuration file uploaded;
When version is not present in the version information of version information and the configuration file uploaded at least one configuration file When information collision, Xiang Suoshu server sends the first upload request, and the first upload request includes the version information of project to be processed With at least one configuration file described in project to be processed, version information records the versioning information of project to be processed;
When the version information at least one configuration file conflicts with the version information uploaded there are version information, to Server send the second upload request, the second upload request include project to be processed version information and it is modified at least one Configuration file, at least one modified configuration file are to be carried out according to the configuration file uploaded at least one configuration file It is obtained after modification, version information conflict, which refers between the different version route diversion information in source, the phenomenon that overlapping.
The client of the embodiment of the present invention obtains the New any that dcs includes at least one project to be processed After mesh and after at least one configuration file of any project to be processed, configuration file includes needed for executing project to be processed Configuration information, client-side extract request by sending to server before upload, obtain the currently stored upload of server Configuration file, detect the version information configuration file at least one configuration file whether with the configuration file that has uploaded Version information there are after version conflict, upload at least one modified configuration file to server.Wherein, it is modified extremely A few configuration file is obtained after being modified according to the configuration file uploaded at least one configuration file, to solve It has determined and several engineers in the prior art while the same DCS system has been programmed using DCS configuration software and when configuration goes out The collision problem of the existing division of labor and cooperation.
Corresponding with the above method, the embodiment of the present invention also provides a kind of service unit, as shown in figure 8, the service unit It include: receiving unit 810, acquiring unit 820, transmission unit 830.
Receiving unit 810, for receiving the first upload request of client transmission, the first upload request includes item to be processed At least one configuration file of purpose version information and project to be processed, at least one configuration file are client according at least one What the project information of any project to be processed of a project to be processed obtained, configuration file includes needed for executing project to be processed Information, grassroot project are the grassroot projects of dcs, at least one project to be processed is dcs The component part of grassroot project;
Acquiring unit 820, for working as the version information of at least one configuration file uploaded and the configuration file uploaded Version information there is no version information conflict when, obtain the configuration file of upload, the configuration file of upload includes at least one Configuration file;
Transmission unit 830, for working as the version information of at least one configuration file uploaded and the configuration file uploaded Version information there are when version information conflict, send version information to client and conflict instruction message, version information conflict refers to Show that message includes the configuration file that project target to be processed has uploaded;
Acquiring unit 820 is also used to obtain the configuration text of upload based on the second upload request for receiving client transmission The configuration file of part, the second upload request and upload includes at least one modified configuration file and corresponding version letter Breath, at least one modified configuration file are to be repaired according to the configuration file uploaded at least one configuration file It is obtained after changing.
In an optional realization, which can also include output unit 840;
Output unit 840, for before acquiring unit obtains the configuration file uploaded, exporting the first instruction information, the One instruction information, which is used to indicate, evaluates the configuration file of upload, and the configuration file of upload includes at least one configuration file Or the modified configuration file;
Receiving unit 810, is also used to receive second indication information, and second indication information is used to indicate the configuration file of upload In each configuration file review result;
Acquiring unit 820, be also used to when the review result of configuration file be by when, obtain the configuration file of upload;
Transmission unit 830 is also used to send evaluation when the review result of configuration file is not pass through to client and do not lead to The evaluation instruction information crossed, and trigger receiving unit 810 and receive the second upload request that client is sent.
In an optional realization, which further includes allocation unit 850;
Receiving unit 810 is also used to receive client transmission before receiving the first upload request that client is sent Grassroot project is requested, and includes that the grassroot project identifies in grassroot project request;
Allocation unit 850, for being requested according to grassroot project, storage resource belonging to distribution grassroot project mark, and to Client sends grassroot project response, and storage resource is used to store the configuration file set of grassroot project.
Transmission unit 830 is also used to send grassroot project response to client.
It includes at least one item to be processed that the technical solution of the embodiment of the present invention, which obtains dcs in client, After purpose grassroot project and after at least one configuration file of any project to be processed, configuration file includes that execution is to be processed Configuration information needed for project uploads at least one configuration file of project to be processed to service unit;Client-side is receiving The version information sent to service unit conflict instruction message when, show that at least one configuration file conflicts instruction with version information The configuration file of project to be processed uploaded in message, rear send at least one modified configuration file to server; Alternatively, client-side extracts request by sending to service unit before upload, the currently stored upload of service unit is obtained Configuration file, detect the version information configuration file at least one configuration file whether with the configuration file that has uploaded Version information there are after version conflict, upload at least one modified configuration file to service unit.Wherein, modified At least one configuration file be obtained after being modified according to the configuration file that has uploaded at least one configuration file, thus It solves several engineers in the prior art while the same DCS system is programmed using DCS configuration software and when configuration The division of labor of appearance and the collision problem of cooperation.
The embodiment of the invention also provides a kind of terminals, as shown in figure 9, including processor 910, communication chip 920, storage Device 930, communication bus 940 and display 950, wherein processor 910, communication interface 920, memory 930 pass through communication bus 940 complete mutual communication.
Memory 930, for storing computer program;
Processor 910 when for executing the program stored on memory 930, realizes following steps:
Based on the project information of any project to be processed at least one project to be processed, project to be processed is obtained at least One configuration file, at least one project to be processed are the component part of the grassroot project of dcs, configuration file Including configuration information needed for executing project to be processed;
The first upload request is sent to server, and the first upload request includes the version information of project to be processed and to be processed At least one configuration file of project, version information record the version route diversion information of at least one configuration file;
When the version information conflict instruction message for receiving server transmission, then pass through at least one configuration of display exhibits File conflicts the configuration file uploaded of project to be processed in instruction message with version information, and version information conflict refers to source There is the phenomenon that overlapping between different version route diversion information;
To server send the second upload request, the second upload request include project to be processed version information and modification after At least one configuration file, at least one modified configuration file is according to the configuration file that has uploaded at least one group What state file obtained after modifying.
In an optional realization, after the grassroot project for obtaining dcs, this method further include:
Grassroot project request is sent to server, includes that the grassroot project identifies in grassroot project request;
Server is received to send after requesting storage resource belonging to distribution grassroot project mark according to the grassroot project Grassroot project response, storage resource is used to store the configuration file set of grassroot project.
In an optional realization, this method further include: receive the evaluation that server is sent and indicate information, evaluation indicates Information is used to indicate the review result of the configuration file of upload, and the configuration file of upload includes at least one configuration file or modification At least one configuration file afterwards;
When evaluation instruction information instruction review result is not pass through, modified group of at least one configuration file is obtained State file, or the configuration file that at least one modified configuration file is modified again is obtained, it returns and executes to server transmission The step of second upload request.
Alternatively, the processor 910 in terminal provided in an embodiment of the present invention, is also used to execute and be stored on memory 930 Program when, realize following steps:
Based on the project information of any project to be processed at least one project to be processed, project to be processed is obtained at least One configuration file, at least one project to be processed are the component part of the grassroot project of dcs, configuration file Including configuration information needed for executing project to be processed;
It is sent to server and extracts request, extract request for extracting the configuration file of server storage uploaded;
When the version information of version information and the configuration file uploaded at least one configuration file is not present When version information conflicts, the first upload request is sent to server, the first upload request includes the version information of project to be processed With at least one configuration file described in project to be processed, version information records the versioning information of project to be processed;
When there are version letters with the version information of configuration file that has uploaded for the version information at least one configuration file When breath conflict, the second upload request is sent to server, the second upload request includes version information and the modification of project to be processed At least one configuration file afterwards, at least one modified configuration file are according to the configuration file uploaded at least one What configuration file obtained after modifying, version information conflict, which refers between the different version route diversion information in source, overlapping Phenomenon.
The embodiment and beneficial effect solved the problems, such as due to each device of terminal in above-described embodiment may refer to Fig. 2 Shown in embodiment each step of client realize, therefore, the specific work process of terminal provided in an embodiment of the present invention And beneficial effect, it does not repeat again herein.
The embodiment of the invention also provides a kind of servers, as shown in Figure 10, including processor 1010, communication chip 1020, memory 1030, communication bus 1040 and display 1050, wherein processor 1010, communication interface 1020, memory 1030 complete mutual communication by communication bus 1040.
Memory 1030, for storing computer program;
Processor 1010 when for executing the program stored on memory 1030, realizes following steps:
Receive client send the first upload request, the first upload request include project to be processed version information and to At least one configuration file of processing item, at least one configuration file are that client waits locating according at least one in grassroot project What the project information of any project to be processed of reason project obtained, configuration file includes information needed for executing project to be processed, At least one project to be processed is the component part of the grassroot project of dcs, and version information records project to be processed Versioning information;
When the version information of at least one configuration file of upload and the version information of the configuration file uploaded are not present When version information conflicts, the configuration file of upload is obtained, the configuration file of upload includes at least one configuration file;
When there are versions with the version information of configuration file that has uploaded for the version information of at least one configuration file of upload When this information collision, version information conflict instruction message is sent to client, version information conflict instruction message includes to be processed The configuration file of project uploaded;
Based on the second upload request for receiving client and sending, the configuration file of upload is obtained, the second upload request and upper The configuration file of biography includes at least one modified configuration file and corresponding version information, at least one modified group State file is obtained after being modified according to the configuration file uploaded at least one configuration file.
The embodiment and beneficial effect solved the problems, such as due to each device of server in above-described embodiment may refer to Each step of server is realized in embodiment shown in Fig. 2, therefore, the specific works of server provided in an embodiment of the present invention Process and beneficial effect, do not repeat again herein.
Communication bus mentioned above can be Peripheral Component Interconnect standard (Peripheral Component Interconnect, PCI) bus or expanding the industrial standard structure (Extended Industry Standard Architecture, EISA) bus etc..The communication bus can be divided into address bus, data/address bus, control bus etc..For just It is only indicated with a thick line in expression, figure, it is not intended that an only bus or a type of bus.
Communication interface is for the communication between above-mentioned electronic equipment and other equipment.
Memory may include random access memory (Random Access Memory, RAM), also may include non-easy The property lost memory (Non-Volatile Memory, NVM), for example, at least a magnetic disk storage.Optionally, memory may be used also To be storage device that at least one is located remotely from aforementioned processor.
Above-mentioned processor can be general processor, including central processing unit (Central Processing Unit, CPU), network processing unit (Network Processor, NP) etc.;It can also be digital signal processor (Digital Signal Processing, DSP), it is specific integrated circuit (Application Specific Integrated Circuit, ASIC), existing It is field programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic device, discrete Door or transistor logic, discrete hardware components.
In another embodiment provided by the invention, a kind of computer readable storage medium is additionally provided, which can It reads to be stored with instruction in storage medium, when run on a computer, so that computer executes any institute in above-described embodiment The processing method stated.
In another embodiment provided by the invention, a kind of computer program product comprising instruction is additionally provided, when it When running on computers, so that computer executes any processing method in above-described embodiment.
It should be understood by those skilled in the art that, the embodiment in the embodiment of the present application can provide as method, system or meter Calculation machine program product.Therefore, complete hardware embodiment, complete software embodiment can be used in the embodiment of the present application or combine soft The form of the embodiment of part and hardware aspect.Moreover, being can be used in the embodiment of the present application in one or more wherein includes meter Computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM, the optical memory of calculation machine usable program code Deng) on the form of computer program product implemented.
It is referring to according to the method for embodiment, equipment (system) and calculating in the embodiment of the present application in the embodiment of the present application The flowchart and/or the block diagram of machine program product describes.It should be understood that can be realized by computer program instructions flow chart and/or The combination of the process and/or box in each flow and/or block and flowchart and/or the block diagram in block diagram.It can mention For the processing of these computer program instructions to general purpose computer, special purpose computer, Embedded Processor or other programmable datas The processor of equipment is to generate a machine, so that being executed by computer or the processor of other programmable data processing devices Instruction generation refer to for realizing in one or more flows of the flowchart and/or one or more blocks of the block diagram The device of fixed function.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
Although the preferred embodiment in the embodiment of the present application has been described, once a person skilled in the art knows Basic creative concept, then additional changes and modifications may be made to these embodiments.So appended claims are intended to explain Being includes preferred embodiment and all change and modification for falling into range in the embodiment of the present application.
Obviously, those skilled in the art embodiment in the embodiment of the present application can be carried out various modification and variations without It is detached from the spirit and scope of embodiment in the embodiment of the present application.If in this way, in the embodiment of the present application embodiment these modification Within the scope of belonging in the embodiment of the present application claim and its equivalent technologies with modification, then also it is intended in the embodiment of the present application It includes these modifications and variations.

Claims (17)

1. a kind of processing method of the configuration file of dcs, which is characterized in that the described method includes:
Based on the project information of any project to be processed at least one described project to be processed, the project to be processed is obtained At least one configuration file, at least one described project to be processed are the component parts of the grassroot project of dcs, The configuration file includes configuration information needed for executing the project to be processed;
The first upload request is sent to the server, first upload request includes the version information of the project to be processed With at least one described configuration file, the version information records the version route diversion letter of at least one configuration file Breath;
When the version conflict instruction message for receiving server transmission, then at least one described configuration file and the version are shown The configuration file of project to be processed described in the instruction message that conflicts uploaded, the version information conflict refer to that source is different There is the phenomenon that overlapping between version route diversion information;
The second upload request is sent to the server, second upload request includes the version information of the project to be processed With at least one modified configuration file, at least one described modified configuration file is according to the configuration uploaded What file obtained after modifying at least one described configuration file.
2. the method as described in claim 1, which is characterized in that described after the grassroot project for obtaining dcs Method further include:
Grassroot project request is sent to server, includes that the grassroot project identifies in the grassroot project request;
The server is received after distributing storage resource belonging to the grassroot project mark according to grassroot project request The grassroot project of transmission responds, and the storage resource is used to store the configuration file set of the grassroot project.
3. the method as described in claim 1, which is characterized in that the method also includes:
It receives the evaluation that server is sent and indicates that information, the evaluation instruction information are used to indicate the evaluation of the configuration file of upload As a result, the configuration file of the upload includes at least one described configuration file or at least one described modified configuration text Part;
When evaluation instruction information instruction review result is not pass through, modified group of at least one configuration file is obtained State file, or the configuration file that at least one described modified configuration file is modified again is obtained, it returns and executes to the clothes The step of device the second upload request of transmission of being engaged in.
4. a kind of processing method of the configuration file of dcs, which is characterized in that the described method includes:
Based on the project information of any project to be processed at least one described project to be processed, the project to be processed is obtained At least one configuration file, at least one described project to be processed are the component parts of the grassroot project of dcs, The configuration file includes configuration information needed for executing the project to be processed;
It is sent to the server and extracts request, it is described to extract request for extracting the configuration of the server storage uploaded File;
When the version information of version information and the configuration file uploaded at least one described configuration file is not present When version information conflicts, Xiang Suoshu server sends the first upload request, and first upload request includes the item to be processed At least one described configuration file of purpose version information and the project to be processed, the version information records described to be processed The versioning information of project;
When at least one described configuration file version information and the version information of the configuration file uploaded there are versions When this information collision, Xiang Suoshu server sends the second upload request, and second upload request includes the project to be processed Version information and at least one modified configuration file, at least one described modified configuration file be according to it is described What the configuration file of upload obtained after modifying at least one described configuration file, the version information conflict refers to source There is the phenomenon that overlapping between different version route diversion information.
5. a kind of processing method of the configuration file of dcs, which is characterized in that the described method includes:
The first upload request that client is sent is received, first upload request includes version information and the institute of project to be processed At least one configuration file of project to be processed is stated, at least one described configuration file is that the client is waited for according at least one The project information of any project to be processed obtains in processing item, and the configuration file includes executing the project institute to be processed The information needed, at least one described project to be processed is the component part of the grassroot project of dcs, the version Information records the versioning information of the project to be processed;
The version information of at least one configuration file and the version information of the configuration file uploaded described in the upload are not present When version information conflicts, the configuration file of upload is obtained, the configuration file of the upload includes at least one described configuration file;
There are versions for the version information of the version information of at least one configuration file described in the upload and the configuration file uploaded When this information collision, Xiang Suoshu client sends version information conflict instruction message, the version information conflict instruction message packet Include the configuration file of the project to be processed uploaded;
Based on the second upload request for receiving client transmission, the configuration file of upload, second upload request and institute are obtained The configuration file for stating upload includes at least one modified configuration file and corresponding version information, it is described it is modified extremely A few configuration file is obtained after being modified according to the configuration file uploaded at least one described configuration file 's.
6. method as claimed in claim 5, which is characterized in that before the configuration file for obtaining upload, the method also includes:
Output the first instruction information, the first instruction information, which is used to indicate, evaluates the configuration file of the upload, institute The configuration file for stating upload includes at least one described configuration file or the modified configuration file;
Second indication information is received, the second indication information is used to indicate each configuration file in the configuration file of the upload Review result;
When the review result of the configuration file be by when, obtain the configuration file of the upload;
When the review result of the configuration file is not pass through, is sent to client and evaluates unsanctioned evaluation instruction information, And it returns to execution and receives the step of client sends the second upload request.
7. method as claimed in claim 5, which is characterized in that described before receiving the first upload request that client is sent Method further include:
The grassroot project request that client is sent is received, includes that the grassroot project identifies in the grassroot project request;
It is requested according to the grassroot project, distributes storage resource belonging to the grassroot project mark;
Grassroot project response is sent to the client, the storage resource is used to store the configuration file collection of the grassroot project It closes.
8. a kind of client, which is characterized in that the client includes:
Acquiring unit obtains institute for the project information based on any project to be processed at least one described project to be processed At least one configuration file of project to be processed is stated, at least one described project to be processed is the New any of dcs Purpose component part, the configuration file include configuration information needed for executing the project to be processed;
Transmission unit, for sending the first upload request to the server, first upload request includes described to be processed The version information of project and at least one described configuration file, the version information record the version of at least one configuration file This route diversion information;
Display unit, for conflicting instruction message when the version information for receiving server transmission, then show it is described at least one Configuration file conflicts the configuration file uploaded of project to be processed described in instruction message with the version information, the version Information collision, which refers between the different version route diversion information in source, the phenomenon that overlapping;
The transmission unit, is also used to send the second upload request to the server, and second upload request includes described The version information of project to be processed and at least one modified configuration file, at least one described modified configuration file are It is obtained after being modified according to the configuration file uploaded at least one described configuration file.
9. client as claimed in claim 8, which is characterized in that the client further includes the first receiving unit;
The transmission unit is also used to after the grassroot project that the acquiring unit obtains dcs, to service Device sends grassroot project request, includes that the grassroot project identifies in the grassroot project request;
First receiving unit is distributing the grassroot project according to grassroot project request for receiving the server The grassroot project response sent after storage resource belonging to mark, the storage resource are used to store the configuration of the grassroot project File set.
10. client as claimed in claim 8, which is characterized in that the client further includes the second receiving unit;
Second receiving unit, the evaluation for receiving server transmission indicate information, and the evaluation instruction information is for referring to Show the review result of the configuration file of upload, the configuration file of the upload includes at least one described configuration file or described repairs At least one configuration file after changing;
The acquiring unit, be also used to when evaluation instruction information instruction review result be not by when, obtain it is described at least one The modified configuration file of configuration file, or obtain the configuration text that at least one described modified configuration file is modified again Part, and trigger the transmission unit and send the second upload request to the server.
11. a kind of client, which is characterized in that the client includes:
Acquiring unit obtains institute for the project information based on any project to be processed at least one described project to be processed At least one configuration file of project to be processed is stated, at least one described project to be processed is the New any of dcs Purpose component part, the configuration file include configuration information needed for executing the project to be processed;
Transmission unit extracts request for sending to the server, and the extraction request is for extracting the server storage The configuration file uploaded;
When the version information of version information and the configuration file uploaded at least one described configuration file is not present When version information conflicts, Xiang Suoshu server sends the first upload request, and first upload request includes the item to be processed At least one described configuration file of purpose version information and the project to be processed, the version information records described to be processed The versioning information of project;
When at least one described configuration file version information and the version information of the configuration file uploaded there are versions When this information collision, Xiang Suoshu server sends the second upload request, and second upload request includes the project to be processed Version information and at least one modified configuration file, at least one described modified configuration file be according to it is described What the configuration file of upload obtained after modifying at least one described configuration file, the version information conflict refers to source There is the phenomenon that overlapping between different version route diversion information.
12. a kind of service unit, which is characterized in that described device includes:
Receiving unit, for receiving the first upload request of client transmission, first upload request includes project to be processed Version information and the project to be processed at least one configuration file, at least one described configuration file be the client It is obtained according to the project information of project to be processed any at least one project to be processed, the configuration file includes executing institute Information needed for stating project to be processed, at least one described project to be processed are the compositions of the grassroot project of dcs Part, the version information record the versioning information of the project to be processed;
Acquiring unit, for working as the version information and the version of the configuration file uploaded of at least one configuration file described in upload When this information conflicts there is no version information, the configuration file of upload is obtained, the configuration file of the upload includes at least one Configuration file;
Transmission unit, for working as the version information and the version of the configuration file uploaded of at least one configuration file described in upload For this information there are when version information conflict, Xiang Suoshu client sends version information conflict instruction message, the version information punching Cam follower shows that message includes the configuration file that the project target to be processed has uploaded;
The acquiring unit is also used to obtain the configuration file of upload, institute based on the second upload request for receiving client transmission The configuration file for stating the second upload request and the upload includes at least one modified configuration file and corresponding version Information, at least one described modified configuration file are according to the configuration file uploaded at least one described configuration What file obtained after modifying.
13. device as claimed in claim 12, which is characterized in that described device further includes output unit;
The output unit, for before the acquiring unit obtains the configuration file uploaded, output first to indicate information, institute It states the first instruction information and is used to indicate and the configuration file of the upload is evaluated, the configuration file of the upload includes described At least one configuration file or the modified configuration file;
The receiving unit, is also used to receive second indication information, and the second indication information is used to indicate the group of the upload The review result of each configuration file in state file;
The acquiring unit, be also used to when the review result of the configuration file be by when, obtain the configuration text of the upload Part;
The transmission unit is also used to send evaluation not to client when the review result of the configuration file is not pass through By evaluation indicate information, and trigger the receiving unit and receive the second upload request that the client is sent.
14. device as claimed in claim 12, which is characterized in that described device further includes allocation unit;
The receiving unit is also used to receive the newly-built of client transmission before receiving the first upload request that client is sent Item request includes that the grassroot project identifies in grassroot project request;
The allocation unit, for distributing storage resource belonging to the grassroot project mark according to grassroot project request, The storage resource is used to store the configuration file set of the grassroot project;
The transmission unit is also used to send grassroot project response to the client.
15. a kind of terminal, which is characterized in that the terminal includes processor, communication interface, memory and communication bus, wherein Processor, communication interface, memory complete mutual communication by communication bus;
Memory, for storing computer program;
Processor when for executing the program stored on memory, realizes that claim 1-3 or claim 4 are any described Method and step.
16. a kind of server, which is characterized in that the server includes processor, communication interface, memory and communication bus, Wherein, processor, communication interface, memory complete mutual communication by communication bus;
Memory, for storing computer program;
Processor when for executing the program stored on memory, realizes any method and step of claim 5-7.
17. a kind of computer readable storage medium, which is characterized in that be stored with computer in the computer readable storage medium Program, the computer program realize method and step as claimed in claim 1 to 7 when being executed by processor.
CN201810516676.4A 2018-05-25 2018-05-25 Processing method of configuration file of distributed control system, client and service device Active CN110532021B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810516676.4A CN110532021B (en) 2018-05-25 2018-05-25 Processing method of configuration file of distributed control system, client and service device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810516676.4A CN110532021B (en) 2018-05-25 2018-05-25 Processing method of configuration file of distributed control system, client and service device

Publications (2)

Publication Number Publication Date
CN110532021A true CN110532021A (en) 2019-12-03
CN110532021B CN110532021B (en) 2024-02-13

Family

ID=68656997

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810516676.4A Active CN110532021B (en) 2018-05-25 2018-05-25 Processing method of configuration file of distributed control system, client and service device

Country Status (1)

Country Link
CN (1) CN110532021B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111158690A (en) * 2020-01-02 2020-05-15 北京东土科技股份有限公司 Desktop application framework, construction method, desktop application running method and storage medium
CN113067833A (en) * 2021-03-30 2021-07-02 杭州和利时自动化有限公司 Collaborative configuration service method and related components
CN113110335A (en) * 2021-04-19 2021-07-13 西安热工研究院有限公司 Multi-node picture file synchronization method for DCS (distributed control system)
CN114422533A (en) * 2021-12-29 2022-04-29 成都鲁易科技有限公司 Method and device for processing path conflict in cloud backup and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102299933A (en) * 2010-06-22 2011-12-28 中国国电集团公司 Engineering configuration management method and system for distributed control system (DCS)
CN104134109A (en) * 2014-06-24 2014-11-05 青岛海信网络科技股份有限公司 Engineering configuration method and engineering configuration system integrating version management
EP2985662A1 (en) * 2014-08-11 2016-02-17 Siemens Aktiengesellschaft Automatic creation of hardware configuration in a distributed control system
CN107341646A (en) * 2017-05-31 2017-11-10 北京广利核系统工程有限公司 Configuration software coordination management system and method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102299933A (en) * 2010-06-22 2011-12-28 中国国电集团公司 Engineering configuration management method and system for distributed control system (DCS)
CN104134109A (en) * 2014-06-24 2014-11-05 青岛海信网络科技股份有限公司 Engineering configuration method and engineering configuration system integrating version management
EP2985662A1 (en) * 2014-08-11 2016-02-17 Siemens Aktiengesellschaft Automatic creation of hardware configuration in a distributed control system
CN107341646A (en) * 2017-05-31 2017-11-10 北京广利核系统工程有限公司 Configuration software coordination management system and method

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111158690A (en) * 2020-01-02 2020-05-15 北京东土科技股份有限公司 Desktop application framework, construction method, desktop application running method and storage medium
CN111158690B (en) * 2020-01-02 2023-11-17 北京东土科技股份有限公司 Desktop application framework, construction method, desktop application running method and storage medium
CN113067833A (en) * 2021-03-30 2021-07-02 杭州和利时自动化有限公司 Collaborative configuration service method and related components
CN113110335A (en) * 2021-04-19 2021-07-13 西安热工研究院有限公司 Multi-node picture file synchronization method for DCS (distributed control system)
CN114422533A (en) * 2021-12-29 2022-04-29 成都鲁易科技有限公司 Method and device for processing path conflict in cloud backup and electronic equipment
CN114422533B (en) * 2021-12-29 2023-05-09 成都鲁易科技有限公司 Method and device for processing path conflict in cloud backup and electronic equipment

Also Published As

Publication number Publication date
CN110532021B (en) 2024-02-13

Similar Documents

Publication Publication Date Title
CN110532021A (en) The processing method and processing device of the configuration file of dcs
CN106886410B (en) A kind of software version management system
CN110290189A (en) A kind of container cluster management method, apparatus and system
CN105701159B (en) A kind of data synchronization unit and method
CN105653630B (en) Data migration method and device for distributed database
CN109857668A (en) UI automated function test method, test device, test equipment and storage medium
CN106855882B (en) A kind of urban track traffic electronic map data generation system and method
CN109189758B (en) Operation and maintenance flow design method, device and equipment, operation method, device and host
CN105592122A (en) Cloud platform monitoring method and cloud platform monitoring system
CN109426510A (en) Software processing method, device, electronic equipment and computer readable storage medium
CN110196800A (en) Distributed transaction test method, apparatus and system
CN110339571A (en) Event generation method and device, storage medium and electronic device
CN112669110A (en) Server label management method and related equipment
CN114328217A (en) Application testing method, device, equipment, medium and computer program product
CN109995787A (en) A kind of data processing method and relevant device
CN110347593A (en) Flow testing method and device
CN112559525B (en) Data checking system, method, device and server
CN112464497B (en) Fault drilling method, device, equipment and medium based on distributed system
CN114372105A (en) ETL tool based method for realizing system automatic inspection
CN110347522A (en) A kind of server-side and the integrated implementation method of client
CN110083504A (en) The running state monitoring method and device of distributed task scheduling
CN109714214A (en) A kind of processing method and management equipment of server exception
CN106330556B (en) A kind of method and apparatus calling related information for generating service module
CN109224451A (en) Development of games method, equipment and storage medium based on block chain subchain
Schiefer et al. Simulating business process scenarios for event-based systems

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
EE01 Entry into force of recordation of patent licensing contract
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20191203

Assignee: Beijing Shuili Intelligent Building Technology Co.,Ltd.

Assignor: KYLAND TECHNOLOGY Co.,Ltd.

Contract record no.: X2022990000047

Denomination of invention: Processing method and device of configuration file of distributed control system

License type: Common License

Record date: 20220121

GR01 Patent grant
GR01 Patent grant