CN106534091B - Pid parameter setting method and device based on cloud - Google Patents
Pid parameter setting method and device based on cloud Download PDFInfo
- Publication number
- CN106534091B CN106534091B CN201610947377.7A CN201610947377A CN106534091B CN 106534091 B CN106534091 B CN 106534091B CN 201610947377 A CN201610947377 A CN 201610947377A CN 106534091 B CN106534091 B CN 106534091B
- Authority
- CN
- China
- Prior art keywords
- circuit
- adjusted
- session
- data
- information
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 78
- 238000012545 processing Methods 0.000 claims abstract description 42
- 238000013475 authorization Methods 0.000 claims abstract description 33
- 239000000284 extract Substances 0.000 claims abstract description 8
- 230000008569 process Effects 0.000 claims description 48
- 238000012856 packing Methods 0.000 claims description 9
- 230000009897 systematic effect Effects 0.000 claims description 6
- 235000013399 edible fruits Nutrition 0.000 claims description 4
- 238000000605 extraction Methods 0.000 claims description 4
- 239000003607 modifier Substances 0.000 claims 2
- 238000012795 verification Methods 0.000 abstract description 10
- 230000000694 effects Effects 0.000 abstract description 9
- 230000009977 dual effect Effects 0.000 abstract description 5
- 238000005516 engineering process Methods 0.000 abstract description 5
- 238000010977 unit operation Methods 0.000 abstract description 5
- 230000005540 biological transmission Effects 0.000 description 7
- 238000010586 diagram Methods 0.000 description 7
- 238000004886 process control Methods 0.000 description 4
- 230000008901 benefit Effects 0.000 description 2
- 238000004891 communication Methods 0.000 description 2
- 239000000203 mixture Substances 0.000 description 2
- 238000009825 accumulation Methods 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000011217 control strategy Methods 0.000 description 1
- 238000007405 data analysis Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000005265 energy consumption Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
- 238000012797 qualification Methods 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
- 238000010200 validation analysis Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/08—Network architectures or network communication protocols for network security for authentication of entities
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B11/00—Automatic controllers
- G05B11/01—Automatic controllers electric
- G05B11/36—Automatic controllers electric with provision for obtaining particular characteristics, e.g. proportional, integral, differential
- G05B11/42—Automatic controllers electric with provision for obtaining particular characteristics, e.g. proportional, integral, differential for obtaining a characteristic which is both proportional and time-dependent, e.g. P. I., P. I. D.
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
- H04L67/141—Setup of application sessions
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Hardware Design (AREA)
- Computer Security & Cryptography (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Automation & Control Theory (AREA)
- Computer And Data Communications (AREA)
Abstract
Pid parameter setting method and device proposed by the present invention based on cloud belongs to automation control area, including determines circuit to be adjusted and data to be adjusted, and is uploaded to cloud server, extracts circuit information, verifies to circuit information;Data to be adjusted are uploaded after being verified, and are treated adjusting data and are carried out adjusting processing, export processing result.It is run by the way that the step of subscriber authentication and circuit Information Authentication to be all placed at cloud server; single-unit operation mode in compared with the existing technology; realize concentration empowerment management; in conjunction with the dual identity verification technique for combining circuit message identification based on user; it solves the problems, such as to cause authorization control to fail by refitting system after on probation expire; protect intellectual property; the manufacturer for providing adjusting tool is enabled to be controlled according to the payment situation of user authorization simultaneously; authorization control effect is improved, ensure that the level of profitability of manufacturer.
Description
Technical field
The invention belongs to automation control areas, in particular to pid parameter setting method and device based on cloud.
Background technique
90% or more automatic control loop has been all made of PID(proportion- ratio according to statistics, integral- is integrated,
Differential- differential) control strategy, due to adding up with runing time, the performance of automatic control loop can be moved back gradually
Change, if cannot be safeguarded in time to important automatic control loop, will affect device traveling comfort, product quality and
Energy consumption, it is therefore desirable to adjusting processing be carried out to pid parameter after a certain time.
When current progress pid parameter adjusting, need to adjust the parameter in pid loop by adjusting tool.As
Pid parameter adjusts the user of tool, before buying adjusting tool, often proposes first free use, and then according to result on trial
Decide whether purchase of paying again.But in most cases, the user really bought after on probation is fewer and fewer, for providing
For the manufacturer of adjusting tool, due to that can not control the authorization of parameter tuning tool, so that the profit of itself is by very
It is big to influence.
Summary of the invention
In order to solve shortcoming and defect existing in the prior art, the present invention provides for improving to parameter tuning tool
The method and apparatus of the pid parameter adjusting based on cloud of authorization control effect.
In order to reach above-mentioned technical purpose, the embodiment of the present invention is provided the following technical solutions:
Pid parameter setting method based on cloud, the parameter tuning method, comprising:
Determine circuit to be adjusted and data to be adjusted corresponding with circuit to be adjusted, it will circuit be adjusted and number to be adjusted
According to packing processing is carried out, data packet to be adjusted is obtained, data packet to be adjusted is uploaded to cloud server;
It extracts wait adjust the circuit information in data packet, circuit information is verified, create session after through verifying;
Data to be adjusted are uploaded according to session, adjusting data is treated and carries out adjusting processing, export processing result;
It wherein, include the user information for carrying out parameter tuning in the information of circuit.
Optionally, described to extract wait adjust the circuit information in data packet, circuit information is verified, verifying is being passed through
Creating session afterwards includes:
First re-examination is demonstrate,proved, and what is stored in the user name, password, authorization code, with background data base in extraction circuit information returns
Road information is matched one by one;
After whole successful match, is demonstrate,proved by the first re-examination, then create session;Or
The case where it fails to match if there is at least one is not demonstrate,proved by the first re-examination then.
Optionally, if do not demonstrate,proved by the first re-examination, the second re-examination card is carried out:
Extract the circuit identification strings in the information of circuit;
If not inquiring the circuit identification strings in background data base, by the circuit identification strings pair
The circuit information answered is stored, while the setting time that the circuit identification strings correspond to circuit is updated to current system
Time then creates session;
If inquiring the circuit identification strings in background data base, it is corresponding to obtain the circuit identification strings
The last setting time in circuit, if the difference of last setting time and present system time is less than the period of time for approval,
It is demonstrate,proved by the second re-examination, that is, is proved to be successful, then creates session, otherwise do not demonstrate,proved by the second re-examination, i.e. authentication failed.
Optionally, the creation session, comprising:
After being verified, session access voucher is obtained according to the token, creation meeting is called according to session access voucher
It talks about interface and creates session, each session is equipped with state value.
Optionally, described that session is created after being verified, data to be adjusted are uploaded according to session, treat adjusting data into
Row adjusting processing, exports processing result, comprising:
After being verified, session access voucher is obtained according to the token, creation meeting is called according to session access voucher
It talks about interface and creates session, each session is equipped with state value;
The data to be adjusted for being directed to a circuit to be adjusted are uploaded in each session, by the state value after upload
It is revised as operating status from idle state, and then carries out parameter tuning process;
After the completion of parameter tuning, the state value is revised as by completion status or error shape according to parameter tuning result
State exports parameter tuning result.
Optionally, the data packet to be adjusted is encrypted, obtains systematic difference interface locating for the cloud server;
It calls the token interface in the application interface to obtain token, encrypted data packet to be adjusted is uploaded to cloud
Server.
Optionally, the parameter tuning method, further includes:
The circuit information in the circuit to be adjusted, the data to be adjusted and the processing result are stored.
The embodiment of the invention also provides the pid parameter setting device based on cloud, the parameter tuning device, comprising:
Acquiring unit will be wait adjust for determining circuit to be adjusted and data to be adjusted corresponding with circuit to be adjusted
Circuit and data to be adjusted carry out packing processing, obtain data packet to be adjusted, data packet to be adjusted is uploaded to cloud server;
Authentication unit is verified circuit information, for extracting wait adjust the circuit information in data packet by testing
Session is created after card;
Processing unit treats adjusting data and carries out adjusting processing, output processing for uploading data to be adjusted according to session
As a result;
It wherein, include the user information for carrying out parameter tuning in the information of circuit.
Optionally, the authentication unit is specifically used for carrying out:
First re-examination is demonstrate,proved, and what is stored in the user name, password, authorization code, with background data base in extraction circuit information returns
Road information is matched one by one;
After whole successful match, is demonstrate,proved by the first re-examination, then create session;Or
The case where it fails to match if there is at least one is not demonstrate,proved by the first re-examination then.
Optionally, the authentication unit, is also used to:
If do not demonstrate,proved by the first re-examination, the second re-examination card is carried out:
Extract the circuit identification strings in the information of circuit;
If not inquiring the circuit identification strings in background data base, by the circuit identification strings pair
The circuit information answered is stored, while the setting time that the circuit identification strings correspond to circuit is updated to current system
Time then creates session;
If inquiring the circuit identification strings in background data base, it is corresponding to obtain the circuit identification strings
The last setting time in circuit, if the difference of last setting time and present system time is less than the period of time for approval,
It is demonstrate,proved by the second re-examination, that is, is proved to be successful, then creates session, otherwise do not demonstrate,proved by the second re-examination, i.e. authentication failed.
Optionally, the authentication unit, is used for:
After being verified, session access voucher is obtained according to the token, creation meeting is called according to session access voucher
It talks about interface and creates session, each session is equipped with state value.
Optionally, the processing unit, is used for:
After being verified, session access voucher is obtained according to the token, creation meeting is called according to session access voucher
It talks about interface and creates session, each session is equipped with state value;
The data to be adjusted for being directed to a circuit to be adjusted are uploaded in each session, by the state value after upload
It is revised as operating status from idle state, and then carries out parameter tuning process;
After the completion of parameter tuning, the state value is revised as by completion status or error shape according to parameter tuning result
State exports parameter tuning result.
Optionally, the authentication unit, is used for:
The data packet to be adjusted is encrypted, systematic difference interface locating for the cloud server is obtained;
It calls the token interface in the application interface to obtain token, encrypted data packet to be adjusted is uploaded to cloud
Server.
Optionally, the parameter tuning device, further includes:
Storage unit, for tying the circuit information in the circuit to be adjusted, the data to be adjusted and the processing
Fruit is stored.
Technical solution provided by the invention has the benefit that
It is run by the way that the step of subscriber authentication and circuit Information Authentication to be all placed at cloud server, relatively
In single-unit operation mode in the prior art, concentration empowerment management is realized, in conjunction with dual based on user+circuit message identification
Identity validation technology solves the problems, such as to cause authorization control to fail by refitting system after on probation expire, knowledge is protected to produce
Power, while the manufacturer for providing adjusting tool controls authorization according to the payment situation of user, improve authorization
Control effect ensure that the level of profitability of manufacturer.
Detailed description of the invention
It, below will be to attached drawing needed in embodiment description in order to illustrate more clearly of technical solution of the present invention
It is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, general for this field
For logical technical staff, without creative efforts, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is the flow diagram of the pid parameter setting method provided by the invention based on cloud;
Fig. 2 is the data structure schematic diagram of circuit identification strings provided by the invention;
Fig. 3 is the flow diagram of verification process provided by the invention;
Fig. 4 is the long form schematic diagram of storing data provided by the invention;
Fig. 5 is the structural schematic diagram one of the pid parameter setting device provided by the invention based on cloud;
Fig. 6 is the structural schematic diagram two of the pid parameter setting device provided by the invention based on cloud.
Specific embodiment
To keep the purposes, technical schemes and advantages of the embodiment of the present invention apparent, below in conjunction with the embodiment of the present invention
In attached drawing, the technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is
A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art
Every other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.
Embodiment one
The embodiment of the invention provides the pid parameter setting method based on cloud, this method is based on the visitor that local is arranged in
The cloud server of family end and setting beyond the clouds is completed jointly, and client is used to obtain the circuit information in local pid loop
And loop data, the place of the choosing circuit to be adjusted from local pid loop, and circuit corresponding with circuit to be adjusted information and to whole
Fixed number evidence.The circuit information that cloud server is then used to treat adjusting circuit is verified, to determine to possess this wait adjust back
Whether the user on road has the qualification adjusted using cloud, and adjusting data are treated after being verified and are adjusted.
As shown in Figure 1, being somebody's turn to do the pid parameter setting method based on cloud, specifically include:
101, the circuit information and data to be adjusted corresponding with circuit to be adjusted for determining circuit to be adjusted, will be wait adjust
The circuit information and data to be adjusted in circuit carry out packing processing, obtain data packet to be adjusted, data packet to be adjusted is uploaded to
Cloud server;
102, it extracts wait adjust the circuit information in data packet, circuit information is verified, created after through verifying
Session;
103, data to be adjusted are uploaded according to session, treats adjusting data and carry out adjusting processing, exports processing result.
It wherein, include the user information for carrying out parameter tuning in the information of circuit.
In the present embodiment, the user information comprising carrying out parameter tuning that client obtains local whole pid loops exists
The loop data of interior circuit information and whole pid loops, and then choosing from whole pid loops according to actual needs need to
Circuit to be adjusted and corresponding circuit information and the data to be adjusted for carrying out pid parameter adjusting are handled in packing
Afterwards, obtained data packet to be adjusted is uploaded to cloud server.
Cloud server receives after adjusting data packet, treats the user information in the circuit information in adjusting circuit first
It is verified, it is for the purpose of safety, and the characteristics of combination pid loop, preferred by the way of the certification of two steps, only pass through
The data to be adjusted for crossing verifying just can enter parameter tuning process.
Existing single user is replaced to adjust mode by using the mode of cloud adjusting, it is a variety of in conjunction with implementing to user information
The mode of verifying can more effectively be managed user right, only carry out parameter tuning to the user to have paid the fees, prevent from borrowing
It helps the mode of other tools or means to carry out the generation of free this behavior of parameter tuning, improves and adjusting tool manufacturer is provided
Profit.
It proposes in a step 101 and determines data packet to be adjusted and data packet to be adjusted is uploaded to cloud server
Process, the process specifically include:
Firstly, the circuit information of local whole pid loops is obtained, especially by OPC(OLE for Process
Control is used for the OLE of process control) from DCS(Distributed Control System, dcs) in adopt
Collection includes the circuits information such as process units title, control station name, circuit title, circuit description.In view of under normal circumstances, on
Stating circuit information can not repeat, therefore can combine above- mentioned information forming circuit identification strings, unique to identify
One circuit.For the purpose being easy to understand, the structure of circuit identification strings is as shown in Fig. 2, in turn together with collected complete
The historical data of portion's pid loop generates the binary data file for being convenient for computer disposal.Here it is complete for collecting historical data
Data to be adjusted in portion's pid loop.
Then, binary data file importing workbench is shown, enables staff can be according to display content
In process units name, control station name, circuit name, circuit description etc. contents selections need to carry out parameter calibration circuit and
Data corresponding with such circuit select circuit to be adjusted, and data to be adjusted corresponding with circuit to be adjusted.
Finally, data packet to be adjusted can be sent to cloud server after the completion of selection.In transmission process, out
In the purpose of data transmission security, can be encrypted in packing process.After encryption, cloud server is obtained
Locating systematic difference interface.Here application interface is that cloud server is actively provided by RESTful Web API mode
Acquisition to client, convenient for client to application interface.It is noted that the calling of the application interface has run through subsequent
Verification process, can the safety effectively to user identity and parameter tuning process provide guarantee.
After treating adjusting data packet and being decrypted, the token interface in application interface is called, is got so as to basis
The process that data packet to be adjusted is uploaded to cloud server is completed after token.
In a step 102, the process for treating transmission, reception and the verifying of adjusting data packet is proposed, is specifically included:
201, cloud server is extracted wait adjust the circuit information in data packet, carries out the first re-examination card first.First weight
The principle of verifying is whether just to verify user name and password using the composition characteristic of circuit identification strings and the independence of user
Really, since authorization code can be got when subscriber payment early period buys parameter Identification Service, when carrying out the first re-examination card
Authorization code can be included in verifying range, so as to determine the user for sending data packet to be identified be paid expense in or do not pay the fees
Free users, to carry out different subsequent processings.
If the user name, password and authorization code in the information of circuit are consistent with what is stored in background data base, sentence
The fixed user is paid expense family, directly carries out subsequent calling application interface creation session process;If above-mentioned three kinds of data
In have stored in one or more contents and background data base it is inconsistent, then determine the user be unpaid expense family, need to hold
The heavy verification process of row second.
202, in order to improve the effect of empowerment management, for the data for not passing through the first re-examination and demonstrate,proving, it is also necessary to carry out second
Re-examination card.It needs to extract the circuit identification strings in the information of circuit, and inquires circuit mark character in background data base
The storage condition of string.
If not inquiring circuit identification strings not in background data base, show that circuit to be detected is never to carry out
Parameter tuning, it is deposited by the verifying to this circuit to be detected, while by the corresponding circuit information of the circuit identification strings
The corresponding setting time of loop circuit representation character string after storage, is updated to current system into background data base by storage
Time, and it is called application interface creation session process.
If inquiring circuit identification strings in background data base, show the corresponding circuit of circuit identification strings
Parameter tuning was carried out before, then inquires the setting time of circuit last time, if last setting time and current
The difference of system time is less than the period of time for approval, then is demonstrate,proved by the second re-examination, carries out subsequent application interface and calls creation session
Process.It is on the contrary then by the second re-examination demonstrate,prove.
Here why be set the period of time for approval, be because in most cases, what it is not by the first re-examination card is not pay the fees
Free users, it is contemplated that the demand of promotion business gives certain time on probation for such user;If such user
After the time on probation, do not pay the fees still, the parameter tuning request submitted can be more than the period of time for approval because of time difference without
Method is demonstrate,proved by the second re-examination, it is achieved that the control of user's authorization.
Although the multiple-authentication including the first re-examination card and the second re-examination card is provided with here, for having paid the fees
User, as long as guaranteeing that user name, password and authorization code are not revealed, it is only necessary to can be completed after carrying out the first re-examination card
Verify process;For unpaid expense family, just need to carry out the second re-examination card, to take into account process performance and authorization control.
In order to enable above-mentioned verification process apparent, there is provided herein verifying flow diagrams as shown in Figure 3.From Fig. 3
As can be seen that meaning all to be verified by the first re-examination card in if, directly carries out subsequent application interface and call wound
Build session process;If second is verified, and equally carries out subsequent answer after the first weight authentication failed enters the second re-examination card again
Call creation session process, if the second heavy authentication failed, no longer carry out follow-up process with interface.
203, after completing such as verifying of the step 201 to 202, client successfully obtains session access voucher, then according to
Session access voucher calls creation session interface to create at least one session (Session), and each session is equipped with corresponding shape
State value, default conditions are idle state (idle).
In step 103, it proposes to get parms and adjusts the process of result, specifically:
In each session created, by calling upload data file and adjusting interface will be with one wait adjust
The corresponding data to be adjusted in circuit upload, and carry out the process of parameter tuning after upload in server beyond the clouds, while will be empty
Not busy state (idle) is revised as operating status (running), and expression is currently running parameter tuning program.
Adjusting is got parms after parameter tuning the end of the program as a result, if adjusting result is normal program operation knot
What fruit got, then operating status (running) is revised as completion status (completed), is showing parameter tuning program just
Often complete;Opposite, then operating status (running) is revised as error status (error), shows parameter tuning program exception
Stop.
When detecting as completion status (completed), client obtains adjusting result interface and obtains journey by calling
Adjusting result after sort run;When detecting as error status (error), client obtains error message and connects by calling
Mouth obtains the postrun error message of program.
In the data transmission procedure of above-mentioned client and cloud server, using SSL(Secure Sockets Layer
Secure Socket Layer) agreement ensures the data communication safety in client and cloud.
In the pid parameter setting method as described above based on cloud, by the way that subscriber authentication and circuit are believed
Breath verifying the step of be all placed at cloud server run, compared with the existing technology in single-unit operation mode, realize collection
Middle empowerment management, in conjunction with passing through weight after based on user+circuit message identification dual identity verification technique, solving on probation expire
The problem of dress system causes authorization control to fail protects intellectual property, while enabling and providing manufacturer's root of adjusting tool
Authorization is controlled according to the payment situation of user, improves authorization control effect, ensure that the level of profitability of manufacturer.
Furthermore it is also possible to by the circuit information, data to be adjusted and parameter tuning journey in circuit to be adjusted in tuning process
Processing result after sort run is stored, and realizes the unified accumulation of adjusting database, based on big data analysis and is changed to be subsequent
Into optimization setting algorithm, improves adjusting effect and lay the foundation.The long form of storing data in storing data as shown in figure 4, have
Body includes the contents such as circuit message identification, adjusting historical data, setting parameter, adjusting result and setting time stamp.
The pid parameter setting method based on cloud proposed in the embodiment of the present invention, including determine circuit to be adjusted with to
Data are adjusted, cloud server is uploaded to, circuit information is extracted, circuit information is verified;After being verified upload to
Data are adjusted, adjusting data is treated and carries out adjusting processing, export processing result.By by subscriber authentication and circuit information
The step of verifying be all placed at cloud server run, compared with the existing technology in single-unit operation mode, realize concentration
Empowerment management, in conjunction with passing through refitting after based on user+circuit message identification dual identity verification technique, solving on probation expire
The problem of system causes authorization control to fail protects intellectual property, at the same enable provide adjusting tool manufacturer according to
The payment situation of user controls authorization, improves authorization control effect, ensure that the level of profitability of manufacturer.
Embodiment two
The embodiment of the invention also provides the pid parameter setting devices based on cloud, as shown in figure 5, the parameter tuning
Device 3, comprising:
Acquiring unit 31, circuit information and number to be adjusted corresponding with circuit to be adjusted for determining circuit to be adjusted
According to, the circuit information in circuit to be adjusted and data to be adjusted are subjected to packing processing, obtain data packet to be adjusted, it will number be adjusted
Cloud server is reached according to wrapping;
Authentication unit 32 is verified circuit information, is being passed through for extracting wait adjust the circuit information in data packet
Session is created after verifying;
Processing unit 33 treats adjusting data and carries out adjusting processing for uploading data to be adjusted according to session, at output
Manage result;
It wherein, include the user information for carrying out parameter tuning in the information of circuit.
In an implementation, acquiring unit 31 is in order to complete to obtain data packet to be adjusted and data packet to be adjusted is uploaded to cloud
The process for holding server, needs to be implemented following steps:
Firstly, the circuit information of local whole pid loops is obtained, especially by OPC(OLE for Process
Control is used for the OLE of process control) from DCS(Distributed Control System, dcs) in adopt
Collection includes the circuits information such as process units title, control station name, circuit title, circuit description.In view of under normal circumstances, on
Stating circuit information can not repeat, therefore can combine above- mentioned information forming circuit identification strings, unique to identify
One circuit.For the purpose being easy to understand, the structure of circuit identification strings is as shown in Fig. 2, in turn together with collected complete
The historical data of portion's pid loop generates the binary data file for being convenient for computer disposal.Here it is complete for collecting historical data
Data to be adjusted in portion's pid loop.
Then, binary data file importing workbench is shown, enables staff can be according to display content
In process units name, control station name, circuit name, circuit description etc. contents selections need to carry out parameter calibration circuit and
Data corresponding with such circuit select circuit to be adjusted, and data to be adjusted corresponding with circuit to be adjusted.
Finally, data packet to be adjusted can be sent to cloud server after the completion of selection.In transmission process, out
In the purpose of data transmission security, can be encrypted in packing process.After encryption, cloud server is obtained
Locating systematic difference interface.Here application interface is that cloud server is actively provided by RESTful Web API mode
Acquisition to client, convenient for client to application interface.It is noted that the calling of the application interface has run through subsequent
Verification process, can the safety effectively to user identity and parameter tuning process provide guarantee.
After treating adjusting data packet and being decrypted, the token interface in application interface is called, is got so as to basis
The process that data packet to be adjusted is uploaded to cloud server is completed after token.
Authentication unit 32 in order to complete verifying process, need to be implemented following steps:
301, cloud server is extracted wait adjust the circuit information in data packet, carries out the first re-examination card first.First weight
The principle of verifying is whether just to verify user name and password using the composition characteristic of circuit identification strings and the independence of user
Really, since authorization code can be got when subscriber payment early period buys parameter Identification Service, when carrying out the first re-examination card
Authorization code can be included in verifying range, so as to determine the user for sending data packet to be identified be paid expense in or do not pay the fees
Free users, to carry out different subsequent processings.
If the user name, password and authorization code in the information of circuit are consistent with what is stored in background data base, sentence
The fixed user is paid expense family, directly carries out subsequent calling application interface creation session process;If above-mentioned three kinds of data
In there are one or more contents to take a fancy to the inconsistent of storage with back-end data, then determine the user be unpaid expense family, need to hold
The heavy verification process of row second.
302, in order to improve the effect of empowerment management, for the data for having passed through the first re-examination card, it is also necessary to carry out second
Re-examination card.It needs to extract the circuit identification strings in the information of circuit, and inquires circuit mark character in background data base
The storage condition of string.
If not inquiring circuit identification strings not in background data base, show that circuit to be detected is never to carry out
Parameter tuning, it is deposited by the verifying to this circuit to be detected, while by the corresponding circuit information of the circuit identification strings
The corresponding setting time of loop circuit representation character string after storage, is updated to current system into background data base by storage
Time, and it is called application interface creation session process.
If inquiring circuit identification strings in background data base, show the corresponding circuit of circuit identification strings
Parameter tuning was carried out before, then inquires the setting time of circuit last time, if last setting time and current
The difference of system time is less than the period of time for approval, then is demonstrate,proved by the second re-examination, carries out subsequent application interface and calls creation session
Process.It is on the contrary then by the second re-examination demonstrate,prove.
Here why be set the period of time for approval, be because in most cases, what it is not by the first re-examination card is not pay the fees
Free users, it is contemplated that the demand of promotion business gives certain time on probation for such user;If such user
After the time on probation, do not pay the fees still, the parameter tuning request submitted can be more than the period of time for approval because of time difference without
Method is demonstrate,proved by the second re-examination, it is achieved that the control of user's authorization.
If meaning all to be verified by the first re-examination card, directly carries out subsequent application interface and call creation meeting
Talk about process;If second is verified, and equally carries out subsequent application and connects after the first weight authentication failed enters the second re-examination card again
Mouth calls creation session process, if the second heavy authentication failed, no longer carry out follow-up process.
Although the multiple-authentication including the first re-examination card and the second re-examination card is provided with here, for having paid the fees
User, as long as guaranteeing that user name, password and authorization code are not revealed, it is only necessary to can be completed after carrying out the first re-examination card
Verify process;For unpaid expense family, just need to carry out the second re-examination card, to take into account process performance and authorization control.
Complete as after aforementioned authentication step, client successfully obtains session access voucher, then according to session access with
Card calls creation session interface to create at least one session (Session), and each session is equipped with corresponding state value, defaults shape
State is idle state (idle).
Processing unit 33 is used to execute parameter tuning process, specifically:
In session created, by calling upload data file and adjusting interface will be with a circuit to be adjusted
Corresponding data to be adjusted upload, and carry out the process of parameter tuning after upload in server beyond the clouds, while by idle shape
State (idle) is revised as operating status (running), and expression is currently running parameter tuning program.
Adjusting is got parms after parameter tuning the end of the program as a result, if adjusting result is normal program operation knot
What fruit got, then operating status (running) is revised as completion status (completed), is showing parameter tuning program just
Often complete;Opposite, then operating status (running) is revised as error status (error), shows parameter tuning program exception
Stop.
When detecting as completion status (completed), client obtains adjusting result interface and obtains journey by calling
Adjusting result after sort run;When detecting as error status (error), client obtains error message and connects by calling
Mouth obtains the postrun error message of program.
In the data transmission procedure of above-mentioned client and cloud server, using SSL(Secure Sockets Layer
Secure Socket Layer) agreement ensures the data communication safety in client and cloud.
Optionally, as shown in fig. 6, the parameter tuning device 3, further includes:
Storage unit 34, for by the circuit information in the circuit to be adjusted, the data to be adjusted and the processing
As a result it is stored.
The pid parameter setting device based on cloud proposed in the embodiment of the present invention, including for obtaining data to be adjusted
The acquiring unit of packet, the authentication unit for connecting with acquiring unit, being verified for treating the circuit information in adjusting data packet,
It is connect with authentication unit, the processing unit of parameter tuning processing is carried out for treating adjusting data.By by subscriber authentication
And the step of circuit Information Authentication be all placed at cloud server run, compared with the existing technology in single-unit operation side
Formula realizes concentration empowerment management, in conjunction with based on user+circuit message identification dual identity verification technique, solves on probation
The problem of causing authorization control to fail by refitting system after expiring protects intellectual property, while to provide adjusting tool
Manufacturer authorization can be controlled according to the payment situation of user, improve authorization control effect, ensure that being full of for manufacturer
It is sharp horizontal.
Each serial number in above-described embodiment is for illustration only, the assembling for not representing each component or the elder generation in use process
Sequence afterwards.
The above description is only an embodiment of the present invention, is not intended to limit the invention, all in the spirit and principles in the present invention
Within, any modification, equivalent replacement, improvement and so on should all be included in the protection scope of the present invention.
Claims (10)
1. the pid parameter setting method based on cloud, which is characterized in that the parameter tuning method, comprising:
The circuit information and data to be adjusted corresponding with circuit to be adjusted for determining circuit to be adjusted, by returning for circuit to be adjusted
Road information and data to be adjusted carry out packing processing, obtain data packet to be adjusted, data packet to be adjusted is uploaded to cloud service
Device;
It extracts wait adjust the circuit information in data packet, circuit information is verified, create session after through verifying;
Data to be adjusted are uploaded according to session, adjusting data is treated and carries out adjusting processing, export processing result;
It wherein, include the user information for carrying out parameter tuning in the information of circuit;
It is described to extract wait adjust the circuit information in data packet, circuit information is verified, creates session after through verifying
Include:
First re-examination is demonstrate,proved, the circuit letter stored in the user name, password, authorization code, with background data base in extraction circuit information
Breath is matched one by one;
After whole successful match, is demonstrate,proved by the first re-examination, then create session;Or
The case where it fails to match if there is at least one is not demonstrate,proved by the first re-examination then;
If do not demonstrate,proved by the first re-examination, the second re-examination card is carried out:
Extract the circuit identification strings in the information of circuit;
It is if not inquiring the circuit identification strings in background data base, the circuit identification strings are corresponding
Circuit information is stored, while when the setting time that the circuit identification strings correspond to circuit is updated to current system
Between, then create session;
If inquiring the circuit identification strings in background data base, obtains the circuit identification strings and correspond to circuit
Last setting time pass through if the difference of last setting time and present system time is less than the period of time for approval
Second re-examination card, that is, be proved to be successful, then create session, is not otherwise demonstrate,proved by the second re-examination, i.e. authentication failed.
2. the pid parameter setting method according to claim 1 based on cloud, which is characterized in that the creation session, packet
It includes:
After being verified, session access voucher is obtained according to token, creation session interface wound is called according to session access voucher
Session is built, each session is equipped with state value.
3. the pid parameter setting method according to claim 2 based on cloud, which is characterized in that described according in session
Data to be adjusted are passed, adjusting data is treated and carries out adjusting processing, export processing result, comprising:
The data to be adjusted for being directed to a circuit to be adjusted are uploaded in each session, by the state value from sky after upload
Not busy status modifier is operating status, and then carries out parameter tuning process;
After the completion of parameter tuning, the state value is revised as by completion status or error status according to parameter tuning result, it will
The output of parameter tuning result.
4. the pid parameter setting method according to claim 1 based on cloud, which is characterized in that it is described will number be adjusted
Cloud server is reached according to wrapping, comprising:
The data packet to be adjusted is encrypted, systematic difference interface locating for the cloud server is obtained;
It calls the token interface in the application interface to obtain token, encrypted data packet to be adjusted is uploaded to cloud service
Device.
5. the pid parameter setting method according to claim 1 based on cloud, which is characterized in that the parameter tuning side
Method, further includes:
The circuit information in the circuit to be adjusted, the data to be adjusted and the processing result are stored.
6. the pid parameter setting device based on cloud, which is characterized in that the parameter tuning device, comprising:
Acquiring unit will circuit be adjusted for determining circuit to be adjusted and data to be adjusted corresponding with circuit to be adjusted
Packing processing is carried out with data to be adjusted, obtains data packet to be adjusted, data packet to be adjusted is uploaded to cloud server;
Authentication unit is verified circuit information, after through verifying for extracting wait adjust the circuit information in data packet
Create session;
Processing unit treats adjusting data and carries out adjusting processing, output processing knot for uploading data to be adjusted according to session
Fruit;
It wherein, include the user information for carrying out parameter tuning in the information of circuit;
The authentication unit is specifically used for carrying out:
First re-examination is demonstrate,proved, the circuit letter stored in the user name, password, authorization code, with background data base in extraction circuit information
Breath is matched one by one;
After whole successful match, is demonstrate,proved by the first re-examination, then create session;Or
The case where it fails to match if there is at least one is not demonstrate,proved by the first re-examination then;
The authentication unit, is also used to:
If do not demonstrate,proved by the first re-examination, the second re-examination card is carried out:
Extract the circuit identification strings in the information of circuit;
It is if not inquiring the circuit identification strings in background data base, the circuit identification strings are corresponding
Circuit information is stored, while when the setting time that the circuit identification strings correspond to circuit is updated to current system
Between, then create session;
If inquiring the circuit identification strings in background data base, obtains the circuit identification strings and correspond to circuit
Last setting time pass through if the difference of last setting time and present system time is less than the period of time for approval
Second re-examination card, that is, be proved to be successful, then create session, is not otherwise demonstrate,proved by the second re-examination, i.e. authentication failed.
7. the pid parameter setting device according to claim 6 based on cloud, which is characterized in that the authentication unit is used
In:
After being verified, session access voucher is obtained according to token, creation session interface wound is called according to session access voucher
Session is built, each session is equipped with state value.
8. the pid parameter setting device according to claim 7 based on cloud, which is characterized in that the processing unit is used
In:
The data to be adjusted for being directed to a circuit to be adjusted are uploaded in each session, by the state value from sky after upload
Not busy status modifier is operating status, and then carries out parameter tuning process;
After the completion of parameter tuning, the state value is revised as by completion status or error status according to parameter tuning result, it will
The output of parameter tuning result.
9. the pid parameter setting device according to claim 6 based on cloud, which is characterized in that the acquiring unit is used
In:
The data packet to be adjusted is encrypted, systematic difference interface locating for the cloud server is obtained;
It calls the token interface in the application interface to obtain token, encrypted data packet to be adjusted is uploaded to cloud service
Device.
10. the pid parameter setting device according to claim 6 based on cloud, which is characterized in that the parameter tuning dress
It sets, further includes:
Storage unit, for by the circuit information in the circuit to be adjusted, the data to be adjusted and the processing result into
Row storage.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610947377.7A CN106534091B (en) | 2016-10-26 | 2016-10-26 | Pid parameter setting method and device based on cloud |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610947377.7A CN106534091B (en) | 2016-10-26 | 2016-10-26 | Pid parameter setting method and device based on cloud |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106534091A CN106534091A (en) | 2017-03-22 |
CN106534091B true CN106534091B (en) | 2019-07-23 |
Family
ID=58292924
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610947377.7A Active CN106534091B (en) | 2016-10-26 | 2016-10-26 | Pid parameter setting method and device based on cloud |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106534091B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2019046026A (en) * | 2017-08-31 | 2019-03-22 | アズビル株式会社 | Control device and parameter setting method |
CN110781189B (en) * | 2019-10-25 | 2022-08-26 | 北京达佳互联信息技术有限公司 | Document platform construction method and device, electronic equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103581333A (en) * | 2013-11-13 | 2014-02-12 | 复旦大学 | Runtime virtual resource dynamic allocation method and system based on feedforward and feedback control |
CN103809472A (en) * | 2012-11-05 | 2014-05-21 | 洛克威尔自动控制技术股份有限公司 | Online integration of model-based optimization and model-less control |
WO2015089996A1 (en) * | 2013-12-20 | 2015-06-25 | 中兴通讯股份有限公司 | Security authentication method and authorization authentication server |
CN105027010A (en) * | 2013-03-14 | 2015-11-04 | 株式会社东芝 | Control parameter adjustment method and control parameter adjustment system |
-
2016
- 2016-10-26 CN CN201610947377.7A patent/CN106534091B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103809472A (en) * | 2012-11-05 | 2014-05-21 | 洛克威尔自动控制技术股份有限公司 | Online integration of model-based optimization and model-less control |
CN105027010A (en) * | 2013-03-14 | 2015-11-04 | 株式会社东芝 | Control parameter adjustment method and control parameter adjustment system |
CN103581333A (en) * | 2013-11-13 | 2014-02-12 | 复旦大学 | Runtime virtual resource dynamic allocation method and system based on feedforward and feedback control |
WO2015089996A1 (en) * | 2013-12-20 | 2015-06-25 | 中兴通讯股份有限公司 | Security authentication method and authorization authentication server |
Also Published As
Publication number | Publication date |
---|---|
CN106534091A (en) | 2017-03-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11615677B2 (en) | Systems for multiple legal game providers with digital ledger | |
CN105450617B (en) | A kind of payment verification method, apparatus and system | |
CN104486343B (en) | A kind of method and system of double factor two-way authentication | |
CN104599119B (en) | Based on embedded and cloud computing automatic vending machine mobile electronic payment method | |
CN108399572A (en) | block chain transaction processing method, device and storage medium | |
CN108243259A (en) | Transmission method, the apparatus and system of car networking data | |
CN1659563A (en) | Transferable meter licenses using smartcard technology | |
CN107204077A (en) | A kind of business model for being used to share moving automobile battery | |
CN108876384A (en) | A kind of processing method and processing device of transaction data | |
CN109347866A (en) | Login method, device, system and computer readable storage medium | |
CN103905491B (en) | Terminal remote method for down loading and its system based on POS access systems | |
CN106534091B (en) | Pid parameter setting method and device based on cloud | |
CN108600315A (en) | Block chain route processing method, device and storage medium | |
CN104937618A (en) | Risk control method and system for Internet financing funds and project progress | |
CN112669129A (en) | Insurance letter generation method and system, electronic equipment and computer readable storage medium | |
CN106910063A (en) | A kind of offline payment method and system | |
CN108011767A (en) | A kind of configurable operational system of non-intruding | |
US20230230456A1 (en) | Systems for multiple legal game providers with digital ledger | |
CN107634989A (en) | A kind of cloud wallet construction method and server | |
CN108280620A (en) | Amending method, device, storage medium and the terminal of account name | |
CN104184607B (en) | The communication means that LKJ remote datas are loaded into | |
CN109885790A (en) | The method and apparatus for obtaining satisfaction evaluation data | |
CN107548059A (en) | A kind of authentication method and system | |
CN108734005A (en) | A kind of safety/auth method, mobile device and storage device | |
CN105224541B (en) | Uniqueness control method, information storage means and the device of data |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |