CN108508752A - A kind of dynamic regulation method and system shared based on variable - Google Patents

A kind of dynamic regulation method and system shared based on variable Download PDF

Info

Publication number
CN108508752A
CN108508752A CN201810434909.6A CN201810434909A CN108508752A CN 108508752 A CN108508752 A CN 108508752A CN 201810434909 A CN201810434909 A CN 201810434909A CN 108508752 A CN108508752 A CN 108508752A
Authority
CN
China
Prior art keywords
data
client
basic environment
environment monitoring
monitoring data
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.)
Pending
Application number
CN201810434909.6A
Other languages
Chinese (zh)
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.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN201810434909.6A priority Critical patent/CN108508752A/en
Publication of CN108508752A publication Critical patent/CN108508752A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B13/00Adaptive control systems, i.e. systems automatically adjusting themselves to have a performance which is optimum according to some preassigned criterion
    • G05B13/02Adaptive control systems, i.e. systems automatically adjusting themselves to have a performance which is optimum according to some preassigned criterion electric
    • G05B13/04Adaptive control systems, i.e. systems automatically adjusting themselves to have a performance which is optimum according to some preassigned criterion electric involving the use of models or simulators
    • G05B13/042Adaptive control systems, i.e. systems automatically adjusting themselves to have a performance which is optimum according to some preassigned criterion electric involving the use of models or simulators in which a parameter or coefficient is automatically adjusted to optimise the performance

Landscapes

  • Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Evolutionary Computation (AREA)
  • Medical Informatics (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses a kind of dynamic regulation method and system shared based on variable.Client of the present invention is by way of account binding, different sensors and the basic environment monitoring data of third-party platform can be got from server, by way of this data sharing, the basic environment monitoring data that client is obtained can be the data of multiple sensor fusions, and third-party platform can be specialized department's supply, the data obtained to client are relatively reliable and standard compared with oneself placement sensor, client based on these shared datas analyze and intelligentized control method, so that when user job more in place to the control of standard, the quality and Objective benefits of target product are improved to a certain extent.

Description

A kind of dynamic regulation method and system shared based on variable
Technical field
The present invention relates to intelligent Production Technology fields, and in particular to it is a kind of based on variable share dynamic regulation method and System.
Background technology
When existing peasant household's operation, typically by rule of thumb or intuition controls production process.Certainly, also have large-scale Farm or farm are monitored some basic environment states by way of arrangement sensor, based on monitoring data come Regulate and control production process, or carry out disaster alarm, in most cases, user only by rule of thumb or fortuitous phenomena carry out disaster alarm Judgement be not accurate enough and not prompt enough.Also, the ambient condition of different zones is all different, also to a certain extent Increase the cost of arrangement sensor.
Invention content
The present invention solves the technical problem of how intelligent production regulation and control control is realized by the way of data sharing System.
In order to solve the above technical problems, one aspect of the present invention is:There is provided it is a kind of based on variable share Dynamic regulation method, the method includes:Server obtains basic environment monitoring data, and corresponding storage respectively in real time, described Basic environment monitoring data come from each clusters of sensors and third party monitoring platform;Receive the data requesting instructions of client; Judge whether the client has and authorizes identifier;When the client has and authorizes identifier, will know with the mandate The corresponding basic environment monitoring data of alias are issued to the client;The client receives corresponding with the mandate identifier The basic environment monitoring data;The client monitors number according to the basic environment corresponding with identifier is authorized According to, and default control rule is combined to carry out analyzing processing, obtains control instruction, and issues the control instruction to implement, To carry out dynamic regulation to implement.
Wherein, before the data requesting instructions for receiving client, further include:To the basic environment monitoring data into Row processing is converted into universal character string and corresponding storage.
Wherein, basic environment monitoring data corresponding with the mandate identifier are issued to the client includes:It adopts The data requesting instructions are decrypted with private key, and verifies the data requesting instructions and sends out the time, when judging with the server Whether clock difference is in specified time range in advance;If so, further verify the data requesting instructions whether with MD5 data phases Symbol, if so, reading the instruction description format of the client, carries out fractionation extraction to the universal character string, re-assemblies At the corresponding proprietary protocol character string of described instruction descriptor format, and it is issued to the client, otherwise, it is desirable that retransmit number According to request instruction;The client receives the basic environment monitoring data corresponding with the mandate identifier:It is described Client receives the proprietary protocol character string, and is monitored through being analyzed and acquired by basic environment corresponding with the mandate identifier Data.
Wherein, server obtains basic environment monitoring data in real time, and corresponding storage includes respectively:Server obtains in real time Basic environment monitoring data;Current network time and system time are proofreaded, check and correction is by then further obtaining globally unique identifier Symbol;Time and the globally unique identifier are obtained into the first data using AES encryption;By the basic environment monitoring data into Row RSA public key encryptions obtain the second data;First data and second data are generated into MD5 using the encryption of AES secret keys Afterwards, further corresponding storage respectively after addition separator.
Wherein, before the request of data for receiving client, further include:Receive the account bind request of client, institute State in account bind request includes the client specified data source device and implement;It distributes and authorizes for the client Identifier, and the client account and the specified data-source device and implement are bound;The service The basic environment monitoring data of the specified data source device are issued to the client by device in real time.
Wherein, the method further includes:Data-source device and the implement described in the client real-time display Operating status.
Wherein, the default control rule includes configuration name, Limit Type, the upper limit or illegal state, lower limit, comes into force At least one of time limit, Limit Type, issuing organization, configuration instruction and regular checking mark field.
Wherein, the client is according to the basic environment monitoring data corresponding with the mandate identifier, and combines Default control rule carries out analyzing processing, obtains control instruction, and issue the control instruction with to implement into Mobile state Regulation and control include:The client combines default according to the basic environment monitoring data corresponding with the mandate identifier Control rule, using in approximate entropy algorithm, linear regression algorithm, Bezier and ratio, integral, plusderivative control method At least one carries out comprehensive analysis processing to the basic environment monitoring data, obtains control instruction;Obtain the implement Corresponding control instruction format, and it is issued to implement after encapsulating the control instruction with the control instruction format, with control It makes the implement and makes corresponding early warning and regulation measure.
Wherein, the basic environment monitoring data include temperature, humidity, carbon dioxide, atmospheric pressure, water quality pH, At least one of PM2.5, rainfall.
Wherein, the method further includes:The client receives the setting instruction of user, not for implement configuration Same control rule and corresponding priority simultaneously preserve.
It is shared based on variable in order to solve the above technical problems, another technical solution provided by the invention is to provide one kind Dynamic regulation system, the dynamic regulation system includes server and client, wherein the server includes that data obtain Modulus block, request receiving module, judgment module and data transmission blocks, the client include data reception module, analysis Module and instruction issue module, wherein:The data acquisition module for obtaining basic environment monitoring data, and difference in real time Corresponding storage, the basic environment monitoring data come from each clusters of sensors and third party monitoring platform;The request receives Module is used to receive the data requesting instructions of client;The judgment module is known for judging whether the client has to authorize Alias;The data transmission blocks are used for when the client has and authorizes identifier, will be corresponding with the mandate identifier Basic environment monitoring data be issued to the client;The data reception module is for receiving and the mandate identifier pair The basic environment monitoring data answered;The analysis module is used for the foundation ring corresponding with identifier is authorized according to described Border monitoring data, and default control rule is combined to carry out analyzing processing, obtain control instruction;Described instruction issues module and is used for down Send out control instruction described to implement, to carry out dynamic regulation to implement.
Wherein, the server further includes data processing module, and the data processing module is used for the basic environment Monitoring data are handled, and universal character string and corresponding storage are converted into.
Wherein, the data transmission blocks include decryption unit, judging unit and data assembling unit, wherein:It is described Decryption unit is used to decrypt the data requesting instructions using private key;The judging unit is for verifying the data requesting instructions The time is sent out, judgement is differed with the server clock whether in specified time range in advance, while being verified the request of data and being referred to Whether order is consistent with MD5 data;The data assembling unit reads the client when the judging unit is judged as YES Instruction description format carries out fractionation extraction to the universal character string, is reassembled into the corresponding private of described instruction descriptor format There is agreement character string and be issued to the client, otherwise, it is desirable that retransmits data requesting instructions.
Wherein, the data acquisition module includes acquiring unit, proofreads unit, encryption unit, wherein:The acquiring unit For obtaining basic environment monitoring data in real time;The check and correction unit is proofreaded for proofreading current network time and system time By then further obtaining globally unique identifier;The encryption unit is used to use time and the globally unique identifier AES encryption obtains the first data;The encryption unit is used to obtain basic environment monitoring data progress RSA public key encryptions Second data;The encryption unit is used to first data and second data generating MD5 using the encryption of AES secret keys Afterwards, further corresponding storage respectively after addition separator.
Wherein, the server further includes account binding module, wherein:The request receiving module is for receiving client Account bind request, include the client specified data source device and implement in the account bind request;Institute State account binding module for be client distribution mandate identifier, and by the client account and the specified number It is bound according to source device and implement;The data transmission blocks are used in real time by the base of the specified data source device Plinth environmental monitoring data is issued to the client.
Wherein, the client further includes display module, and the display module is for data-source device described in real-time display With the operating status of the implement.
Wherein, the default control rule includes configuration name, Limit Type, the upper limit or illegal state, lower limit, comes into force At least one of time limit, Limit Type, issuing organization, configuration instruction and regular checking mark field.
Wherein, the analysis module is used for according to the basic environment monitoring data corresponding with the mandate identifier, And default control rule is combined, using approximate entropy algorithm, linear regression algorithm, Bezier and ratio, integral, differential control At least one of method processed carries out comprehensive analysis processing to the basic environment monitoring data, obtains control instruction;The finger Order issues module for obtaining the corresponding control instruction format of the implement, and with described in control instruction format encapsulation It is issued to implement after control instruction, corresponding early warning and regulation measure are made to control the implement.
Wherein, the basic environment monitoring data include temperature, humidity, carbon dioxide, atmospheric pressure, water quality pH, At least one of PM2.5, rainfall.
Wherein, the client further includes setup module, and the setup module is used to receive the setting instruction of user, for institute Implement is stated to configure different control rules and corresponding priority and preserve.
In order to solve the above technical problems, what is provided also has a kind of technical solution to be to provide a kind of dynamic shared based on variable Regulator control system, the dynamic regulation system shared based on variable includes processor, memory and its computer program of storage, The step of processor realizes the above method when executing the computer program.
The beneficial effects of the invention are as follows:The case where being different from the prior art, the present invention obtain basic environment by server Monitoring data, the basic environment monitoring data are tied up from each clusters of sensors and third party monitoring platform, client by account Determine mode, specified data source device and implement are bound to server, to which client refers to from server acquisition in real time The basic environment monitoring data of fixed data-source device, and number is monitored based on default control rule and acquired basic environment According to analyzing processing is carried out, control instruction is obtained to control implement, makes dynamic regulation and control and Forewarning Measures.In this way Mode, client can get the basis of different sensors and third-party platform by way of account binding from server Environmental monitoring data, by way of this data sharing, the basic environment monitoring data that client is obtained can be multiple The data of sensor fusion, and third-party platform can be specialized department's supply, so that the data that client is obtained are compared with oneself Placement sensor is relatively reliable and standard, and client based on these shared datas analyze and intelligentized control method, to make User job when to the control of standard more in place, improve the quality and Objective benefits of target product to a certain extent.
Description of the drawings
Fig. 1 is the flow diagram for the dynamic regulation method shared the present invention is based on variable;
Fig. 2 is the flow diagram that acquired basic environment monitoring data are encrypted in server of the present invention;
Fig. 3 is the flow diagram of client account binding provided in an embodiment of the present invention;
Fig. 4 is that server of the present invention shows the flow for authorizing the corresponding basic environment monitoring data of identifier to issue client It is intended to;
Fig. 5 is the content example of data paraphrase resolve command symbol of the present invention;
Fig. 6 is the physical essence schematic diagram of approximate entropy algorithm of the present invention;
Fig. 7 is data pick-up collecting part schematic diagram data in certain campus of the invention;
Fig. 8 is the notable time data schematic diagram of temperature change of the present invention;
Fig. 9 is the schematic diagram after temperature monitoring data of the present invention are overlapped;
Figure 10 is that the present invention carries out approximate entropy predicted value schematic diagram for temperature monitoring data;
Figure 11 is Analog control flow diagram of the present invention;
Figure 12 is the curvature and movement range schematic diagram of the control point adjusting control amplitude of Bezier of the present invention;
Figure 13 is the structural schematic diagram for the dynamic regulation system that one of which of the present invention is shared based on variable;
Figure 14 is the structural schematic diagram of data acquisition module of the present invention;
Figure 15 is the structural schematic diagram of data transmission blocks of the present invention;
Figure 16 is the structural schematic diagram of another dynamic regulation system shared based on variable of the invention.
Specific implementation mode
Refering to fig. 1, Fig. 1 is that a kind of flow of dynamic regulation method shared based on variable provided in an embodiment of the present invention is shown It is intended to, as shown, a kind of dynamic regulation method shared based on variable of the present embodiment is included the following steps:
S101:Server obtains basic environment monitoring data, and corresponding storage respectively in real time.
Wherein, basic environment monitoring data here come from each clusters of sensors and third party monitoring platform.
Here each clusters of sensors refers to all environment monitoring sensors disposed.And third party monitoring platform refers to The data platform that the professional testing agency and relevant departments of specialized department or government organs are monitored.Wherein, each sensor Data are uniformly uploaded to server by cluster and third party monitoring platform data by specified SDK interfaces.
Wherein, basic environment monitoring data mentioned here are to refer to all parameters of reflection ambient condition.For example it wraps Include but be not limited to temperature, humidity, carbon dioxide, atmospheric pressure, water quality pH, PM2.5, rainfall etc..
During specific implementation, the number for each sensor that collection terminal back end concentrated collection has been disposed can be passed through According to, and server is uniformly issued to by gathered data node.
The mode that automatic regular polling sensing data specifically may be used in back end acquires sensing data, in each biography of acquisition Software can all read the equipment files in spot database before sensor data, to determine the communication modes with equipment.
Timers triggers timing uploads task, journey after timing upload task is triggered after the completion of reading device data etc. The data of caching are carried out the unified of data and assemble and verify by sequence, are sent to server after finally encrypted, are completed one in this way A complete data acquisition obtains flow, and specific frequency acquisition is by user's sets itself.Wherein, it is adopted between gathered data node With asynchronous acquisition data.Server will be data cached in real time and be recorded to historical data after collection terminal back end uploads data In table.
After server gets basic environment monitoring data, basic environment monitoring data are handled, are converted into general Character string and corresponding storage.
When specific implementation, the device data that acquired original arrives after the data comparison in field device descriptive data base, Each section of character in initial data is subjected to data paraphrase, to inform how follow-up equipment reads and use this data. Meanwhile because this instructs the meaning expressed by each section, server that can be carried out easily according to the equipment of different agreement " fractionation " and " assembling ".It is difficult to solve equipment room adaptation, compatibility, linkage difference and the low problem of operating efficiency.
The part is the initial data after only Preliminary Analysis, back segment as the form similar to complementary data, wherein leading portion For data paraphrase character string.After server or client or back end receive such data, initial data is deposited first Enter caching, then read Back end data paraphrase character string, which will tell each word in program this initial data The meaning that Fu is represented.Generally comprise following information (device numbering, device address, device type, operation address, operation data, association Discuss format, data bit, data assembling leading portion, data assembling back segment).For example it as shown in figure 5, is parsed for data paraphrase in the present invention The content example of designator.
In the present invention, corresponding data self-analytic data will be arranged according to each equipment to instruct.I.e. as unit of equipment and Data parsing is carried out not as unit of all kinds of agreements.The data that each equipment uploads can be considered as a kind of only in back end Vertical protocol form is parsed, and both ensure that can mutually be communicated so between different devices, simultaneously for non-through With disclosure agreement equipment, the data analysis mode and device data of each equipment can be arranged in user or manufacturer according to voluntarily demand Processing mode.Such as:Sensors A sends out an instruction (R), wherein sensing numerical value, data type and data unit are contained, when After remainder data node receives the data, the field device descriptive data base needed in device to be controlled is read, according to new Communications protocol dynamically by (R) sensing numerical value and data unit extract, then according to the data of new equipment (N) Protocol contents are sent after replacing the character data of corresponding position.
Wherein, all transmission datas in the present invention are all encrypted processing, to ensure the safety of data transmission.Please In conjunction with referring to Fig.2, Fig. 2 provides the flow signal that acquired basic environment monitoring data are encrypted in server of the present invention Figure, as shown, including the following steps:
S201:Server obtains basic environment monitoring data in real time.
S202:Proofread current network time and system time.
S203:Whether check and correction passes through.
S204:Further obtain globally unique identifier.
S205:Time and globally unique identifier are obtained into the first data using AES encryption.
S206:Basic environment monitoring data progress RSA public key encryptions are obtained into the second data.
S207:After first data and the second data are generated MD5 using the encryption of AES secret keys, after further adding separator Corresponding storage respectively.
And after client receives data, MD5 is verified first, requires to retransmit number if if MD5 verifications According to further using the decryption of AES secret keys if MD5 verifications pass through, then checking time, checking time is by then further making With RSA private key ciphertext datas, it is stored in and caches through data.As checking time does not require to retransmit data if.
It should be noted that in the present invention, the information exchange of server and client is all based on client account binding Under the premise of carry out, therefore, in the present invention, server receives before client data request instruction, it is necessary to complete visitor The process of family end account binding.Fig. 3 is please referred to, Fig. 3 is the flow of client account binding provided in an embodiment of the present invention Schematic diagram, as shown, including the following steps:
S301:The account bind request of client is received, account bind request includes client specified data source device And implement.
S302:It is distributed for client and authorizes identifier, and client account and specified data source device and operation are set It is standby to be bound.
S303:The basic environment monitoring data of specified data source device are issued to client by server in real time.
It is bound by account, user can specify in corresponding sensor to account, and to corresponding control terminal data section Data-source device is arranged in point (node for controlling implement).Data-source device can be connected to local sensor, It can also be the sensor of long-range professional observing and controlling department arrangement.Between control terminal back end under the premise of binding account, It is to allow mutually control, i.e., user can configure the control terminal back end progress combined operation of multiple and different regions, so both Ensure promptness, linkage and the agility of operation.
For example, somewhere meteorological department is provided with weather station, then user can be straight by way of client account binding It connects and specifies the weather station as data-source device, do not had to by reading the shared data of the weather station so as to directly independent Purchase sensing equipment can be obtained the related measurement datas such as humiture, rainfall, has both saved sensor arrangement cost or has ensured The accuracys of data.
Here mandate identifier is the exclusive evidence that user obtains data and the corresponding implement of control from server.
S102:Receive the data requesting instructions of client.
S103:Judge whether client has and authorizes identifier.
In the present invention, only by authorizing the client for carrying out account binding that can get shared data.It is logical Client account binding is crossed, server is that client distribution authorizes identifier, so as to determine client according to mandate identifier The data source for holding requested data, to get the requested data of client from data-source device.For example customer end A is specified Data-source device is sensor a, sensor b and third-party platform data, then when server receives client data request And after authentication, i.e., obtains latest data and passing historical data from corresponding data-source device and be handed down to client End.
Server first determines whether instruction includes mandate identifier, if do not had after receiving the instruction of client There is mandate identifier, then gives tacit consent to the instruction ignore, not respond.If there is mandate identifier, it can determine that the client is Account client is bound, then response data request instruction executes corresponding data communication.
S104:The corresponding basic environment monitoring data of identifier will be authorized to be issued to client.
Specifically, Fig. 4 is please referred to, Fig. 4, which is server of the present invention, will authorize the corresponding basic environment monitoring of identifier The flow diagram of data distributing client, as shown, including the following steps:
S401:Using private key ciphertext data request instruction.
S402:Verification data request instruction sends out the time, and whether judgement is differed with server clock in specified time range in advance It is interior.
After server uses private key ciphertext data request instruction, the instruction of meeting checking command rear end sends out the time, if with clothes Business device clock differs by more than the predetermined time, then it is assumed that the instruction ignore executes S405, it is desirable that retransmits request.If verification is logical It crosses, then further executes S403.
Wherein.Here pre- specified time range can be voluntarily arranged as needed, for example can be 5 seconds or 3 seconds etc..
S403:Whether checking command is consistent with MD5 data.
If verification passes through, S404 is executed.
S404:The instruction description format of reading client carries out fractionation extraction to universal character string, is reassembled into instruction The corresponding proprietary protocol character string of descriptor format, and it is issued to client.
Server is carried out by the instruction description format of reading client to treat the basic environment monitoring data issued Again extraction is split, is assembled into the proprietary protocol character string that client instructions descriptor format is consistent, then be issued to client.
The process informs other side similar to equipment while transmission data, and the positions data X1 are sensing data, X2 Position is numerical value unit, and the positions X3 are device type.After the data is correctly received, server (A) knows that this refers to So-and-so the data meaning that partly represents for enabling content, can then realize arbitrary data being converted into target device equipment state Data Concurrent, which is sent to target social security or be stored in, to be subordinate in database.It is controlled as needed after control terminal back end (B) is received The equipment of system takes out the control instruction format of controlled device in the database.The control terminal back end (B) will be according to quilt simultaneously The communication format of equipment is controlled, such as:The positions XX XX data are attracting electric relay, dynamically will be assembled to control after the data separating of reception Then the designated position for making instruction sends control instruction to the equipment.It completes once so inconsistent in both sides' communications protocol In the case of complete equipment room mutual control.
As an example, please refer to the following table 1, table 1 is that paraphrase instruction character part forms example, the example only for Self-defining device works (last column is example):
Table 1:
Wherein, H represents HEX, and A/ASC represents ASCII.
Character length intercepts explanation:Such as 01 00 02 01 08 BB 9A, #01#02 representatives of burst of data intercept out Be " 01 00 ".
S405:It is required that retransmitting data requesting instructions.
S105:Client receives basic environment monitoring data corresponding with identifier is authorized.
Client receives proprietary protocol character string, and is monitored through being analyzed and acquired by basic environment corresponding with identifier is authorized Data.
Wherein, when client carries out Refresh Data, no longer than 1 timing acquisition period can obtain data, obtain Speed and acquisition range are effectively promoted, and real-time data distributing speed can shorten hundreds of numbers compared with traditional data acquisition modes Thousand times of time.
Wherein, client can Refresh Device Status data at predetermined time intervals, device status data here includes institute Specified data source device and implement.
S106:Client combines default control rule according to basic environment monitoring data corresponding with identifier is authorized Analyzing processing is carried out, control instruction is obtained, and issues control instruction to implement, to carry out dynamic regulation to implement.
Wherein, during specific implementation, client according to authorize the corresponding basic environment monitoring data of identifier, and In conjunction with default control rule, controlled using approximate entropy algorithm, linear regression algorithm, Bezier and ratio, integral, differential At least one of method carries out comprehensive analysis processing to the basic environment monitoring data, obtains control instruction.
1, approximate entropy (approximate entropy, ApEn) algorithm is Pincus in 1991 from gauge signal sequence What the angle of complexity proposed, the probability size for generating new model in metric signal:The probability that signal generates new model is got over Greatly, show that the complexity of sequence is bigger, go measurement to will appear as corresponding entropy with approximate entropy bigger.That is approximate entropy algorithm is with one Nonnegative number carrys out the complexity and scrambling of quantificational expression signal sequence, and entropy increases with the increase of sequence complexity.
It can be seen that, mean value, variance, standard deviation scheduling algorithm are lost by the document of the principle and practical application of pairing approximation entropy Signal sequence lies in the information in distribution pattern, and approximate entropy then considers distribution pattern information, therefore reflects signal sequence The complexity being listed in structure distribution.So approximate entropy algorithm can detect the scrambling of signal and be to the greatest extent The complexity of system signal intensity.Due to that can select and possess a large amount of data using user after shared sensor monitoring data It is analyzed and is calculated, therefore this kind of algorithm can be used to carry out accurate theoretical early warning.
The core procedure of approximate entropy algorithm is calculated at certain pattern dimension m, distance between 2 m dimensional feature vectors Statistics in calculating and marginal range apart from number.Essence combination Fig. 6 explanations that its distance calculates:As m=2, feature is to X (i) =[x (i), x (i+1)] is equivalent to the line segment that 2 sampled point x (i) adjacent in sequence and x (i+1) are unified into;When similar tolerance threshold When value is r, in figure A, B Qu Jian Alto not Biao Shi sampled point x (i) and x (i+1) marginal range, if feature vector, X (j)=[x (j), x (j+1)] 2 endpoint x (j) and x (j+1) fall successively in the section A, B respectively, then with regard to defined feature vector x (i) and x (j) the distance d [x (i), x (j)] between is less than tolerance threshold r, that is, thinks the pattern of 2 dimensional feature vector x (j) and x (i) in tolerance r It is lower close.Similarly, as dimension m=3, d [x (i), x (j)]<R then indicates the broken line X (j) that adjacent 3 sampled point is unified into The pattern of=[x (j), x (j+1), x (j+2)] and broken line X (j)=[x (i), x (i+1), x (i+2)] is close at tolerance r Seemingly.
The physical essence of approximate entropy be exactly weigh when dimension changes new model in signal sequence occur it is general to said conditions Rate mean value, therefore theoretically approximate entropy has definite meaning in terms of the scrambling and complexity of characterization signal sequence.
In the present invention, for specified vectorial Xi, institute's directed quantity and its phase in addition to Xi at given lock value ε are calculated As probability:
In formula:1≤j≤n-m+1, Θ are unit jump function
To Ci(m, ε) is averaged again after taking natural logrithm:
Finally, it is contemplated that the approximate entropy of finite data length in practical operation, system can be with approximate representation:
Sa(m, ε, n)=Φm(ε)-Φm+1(ε).
Here, we with typical temperature change in one day, (data are from temperature sensor gathered data in certain campus As shown in Figure 7).
Then it will change more apparent part separately as analysis part, the notable time data of temperature change such as Fig. 8 It is shown, then as shown in figure 9, then approximate entropy predicted value is as indicated by 10 after continuous temperature monitoring data are overlapped.
It can see from above, in the case of data fluctuations are very small, approximate entropy numerical value change will be millesimal (0.042~0.043) is fluctuated in range.
If similar in meteorological condition, it can be seen that temperature change is regular in one day, then continuously Several days status temperatures are overlapped analysis, will occurrence law variation.
When variation degree is larger, then correct early warning can be made by calculating.Therefore, the present invention utilizes approximate entropy Algorithm come to basic environment monitoring data carry out assessment and early warning.
2, linear regression method:The method for determining straight line is least square method, and the basic thought of least square method is:Most there is generation The straight line of table should be that the distance of straight line to each point is nearest.Then it is predicted with this straight line, purpose is to ask single or more It is a absolutely not can primary data best function matching.Preferable use is suffered from for multilinear fitting and nonlinear fitting Effect.
Since in the present invention, data are constituted by putting one by one, therefore 3 variate models need not be used, therefore linear regression method Equation be given by the following formula:
By continuing to monitor the calculating of data to one group to show whether future time period data transfinite to determine whether needing Start Forewarning Measures.
3, with the accuracy controlling of Bezier and progress numerical value
Bezier (B é zier curve), also known as Bezier curve or Bezier surface, are answered applied to X-Y scheme With the mathematic curve of program.Computer very can easily draw smooth curve by this kind of mode.
Bezier is the smooth curve drawn out according to four arbitrary point coordinates in position.In history, it grinds The people for studying carefully Bezier is initially to determine that it is bent that the thinking of four points designs this vector according to known curve parametric equation Line draws method.The interesting place of Bezier is more its " rubber band effect ", that is to say, that as point regularly moves Dynamic, curve will generate the transformation as rubber band extends, and bring visual impact.
Such as Analog control flow diagram shown in Figure 11.Assuming that the temperature control system for a classification regulation and control System, with the rising (rising of Y-axis numerical value) of environment temperature, the secondary speed of cooling system increases step by step with the rising of temperature (increase of X-axis numerical value) greatly.So for such system, the mode of regulation and control is the lock value regulation and control based on segmentation, therefore is being supervised It surveys controller when parameter is in critical value variation and makes stable judgement by more difficult, and cannot be satisfied more sensitive to environmental change Production demand.
It, can be into for the execution class equipment for analog output according to the control mode of above curvilinear equation Row stepless regulating carries out being classified minimum regulation and control, that is, is similar to continuous curve type and regulates and controls, to solve the essence of control The problem of thin degree, simultaneous computer can come curvature and the action of adjusting control amplitude according to adjustable two " control points " Amplitude size, for traditional control mode, continuous data are divided into minimum section and carry out segmentation tune by computer Control, to intelligent control system increase a variety of operability and convenience, this be other functions or control mode institute not It has the advantage that.
In conjunction with refering to fig. 12 it is found that according to functional form, using the cube formula of Bezier, thirdly power curve Formula is provided by following equation, note:It is hereby bent that tetra- points of P0, P1, P2, P3 define cube shellfish in plane or in three dimensions Line.Curve originates in P0 and moves towards P1, and from the direction of P2 to P3.
The parametric form of curve is:
B (t)=p0(1-t)3+3p1t(1-t)2+3p2t2(1-t)+p3t3,t∈[0,1]
4, with the controlling party of PID (ratio (proportion), integral (integral), differential (derivative)) Method carries out dynamic feedback control.
Wherein, in client, each there are one unique identity ID and equipment files, these archives for controlled implement It is stored in field equipment data library, after receiving the data of server or client needs to carry out controlled implement When control, corresponding equipment files are read first, to determine that the communication way between equipment and equipment is (including address, logical News mode, communications protocol etc.), then implement is controlled by issuing control instruction.
Meanwhile once shared data from server acquisition after, client is deposited into monitor database, so as to it is subsequent from Dynamicization controls and data early warning part carries out the read operation of data.
Here default control rule refers to the pre-set control rule for implement of client, control rule May include then certain numberical ranges, and for be more than either be less than the corresponding operation measure of the numberical range or early warning knot By.
In addition, in order to expand the application range of the method for the present invention, the control rule that client is configured is standard configurations File configuration, by the configuration of standard configurations file, professional institution can to the manufacturing parameters of certain keys into line range or The limitation of state and regulation, when user carries out the production of a certain product, which can be configured to oneself of some product In dynamicization control, when numerical value exceeds or does not meet, the rule can set out and execute a series of counter-measure.
In addition, being configured by standard configuration file, unified standard convention can be carried out, user can be configured flexibly Different Rule, and be arranged and come into force object and time, while specialized department can also have a try and change control rule as required, and unite One is issued to all clients.
As a kind of possible realization method, default control rule (i.e. standard configurations database) includes but not limited to It is configuration name, Limit Type, the upper limit or illegal state, lower limit, time limit of coming into force, Limit Type, issuing organization, configuration instruction And regular checking mark.
As an example, contained field is described in table 2 below in standard configurations database:
Table 2
Configuration name:This standard configurations title.
Limit Type:Analog quantity or switching value equipment
The upper limit/illegal state:Then it is upper limit value herein if analog quantity equipment;Then it is tactile herein if switching value equipment Send out the on-off state of alarm.
Lower limit:Then it is lower limiting value herein if analog quantity equipment;Then it is NULL herein if switching value equipment.
It comes into force the time limit:By user's sets itself at this, the normalisation rule can just come into force within the time limit of coming into force.
Limit Type (data bit 6):For indicating whether the rule is compulsory execution, only specialized department is specified makes for the part With.
Issuing organization:Issue the organization names of the rule.
Configuration instruction:Issuer is to the configuration instruction of the rule, including application method etc..
Rule verification ID:Per the unique identifier of rule, whether control terminal can periodically be usurped to server-side verification rule Change.
Wherein, since in the present invention, client is carried out at the same time judgement in all kinds of control rules of execution.I.e. once obtaining After new shared data, then implementation procedure is triggered, but when needing to operate implement, then needs to set for threading operation operation It is standby that a priority is set to operate implement.
As an example, table 3 is please referred to, table 3 is the operation that client provided by the invention is each implement Priority facility example:
Table 3:
Wherein, for the ease of user's observation and adjustment in real time, client displaying data in real-time source device and implement Operating status.
Wherein, during collection terminal back end gathered data, if mistake, acquisition occur for the sensor values of acquisition End data node can be attempted to report server after determining sensor error reason first, by the biography after server reception error message Sensor is set to offline or abnormal, then the sensor no longer provides data to the user.
The dynamic regulation method of the present invention shared based on variable is described in detail in above example, Ke Yili Solution, the present invention obtain basic environment monitoring data by server, the basic environment monitoring data from each clusters of sensors and Third party monitoring platform, client bind specified data source device to server and operation are set by account binding mode It is standby, to which client obtains the basic environment monitoring data of specified data source device from server in real time, and based on default control System rule and acquired basic environment monitoring data carry out analyzing processing, obtain control instruction to control implement, do Go out dynamic regulation and control and Forewarning Measures.In this way, client can be obtained by way of account binding from server Different sensors and the basic environment monitoring data of third-party platform are got, by way of this data sharing, client institute The basic environment monitoring data of acquisition can be the data of multiple sensor fusions, and third-party platform can be that specialized department supplies It gives, the data obtained to client are relatively reliable and standard compared with oneself placement sensor, and client is shared based on these Data analyze and intelligentized control method, so that when user job more in place to the control of standard, carrying to a certain extent The quality and Objective benefits of target product are risen.
Meanwhile based on the unitized processing of data and personalized encapsulation, so that the method for the present invention can be compatible with 95% or more equipment control instruction requirement, can be by the equipment of required control by instructing dynamic to release using the form of pure software The mode of justice, which is realized, to interconnect, to realize the connected target of object object.
In addition, by controlling the configuration of rule criterion database, professional institution and individual can be easily to certain passes The manufacturing parameter of key is into line range or state limit and regulation, and in automation control, when numerical value exceeds or does not meet When the rule can be triggered and execute a series of counter-measures.And user can flexible configuration or change Different Rule, and set It sets come into force object and time, professional institution can also change rule as required, and uniformly be issued to all users.
On the basis of the above dynamic regulation method provided by the invention shared based on variable, the present invention further provides Based on the dynamic regulation system that variable is shared, for realizing the above-mentioned dynamic regulation method shared based on variable.Such as Figure 13 institutes Show, the dynamic regulation system shared the present invention is based on variable includes server 100 and client 200, wherein server 100 Including data acquisition module 11, request receiving module 12, judgment module 13 and data transmission blocks 14, client 200 includes Data reception module 21, analysis module 22 and instruction issue module 23, wherein:
Data acquisition module 11 for obtaining basic environment monitoring data, and corresponding storage respectively, basic environment prison in real time Measured data comes from each clusters of sensors and third party monitoring platform.
Here each clusters of sensors refers to all environment monitoring sensors disposed.And third party monitoring platform refers to The data platform that the professional testing agency and relevant departments of specialized department or government organs are monitored.Wherein, each sensor Data are uniformly uploaded to server by cluster and third party monitoring platform data by specified SDK interfaces.
Wherein, basic environment monitoring data mentioned here are to refer to all parameters of reflection ambient condition.For example it wraps Include but be not limited to temperature, humidity, carbon dioxide, atmospheric pressure, water quality pH, PM2.5, rainfall etc..
During specific implementation, the number for each sensor that collection terminal back end concentrated collection has been disposed can be passed through According to, and server is uniformly issued to by gathered data node.
The mode that automatic regular polling sensing data specifically may be used in back end acquires sensing data, in each biography of acquisition Software can all read the equipment files in spot database before sensor data, to determine the communication modes with equipment.
Timers triggers timing uploads task, journey after timing upload task is triggered after the completion of reading device data etc. The data of caching are carried out the unified of data and assemble and verify by sequence, are sent to server after finally encrypted, are completed one in this way A complete data acquisition obtains flow, and specific frequency acquisition is by user's sets itself.Wherein, it is adopted between gathered data node With asynchronous acquisition data.Server will be data cached in real time and be recorded to historical data after collection terminal back end uploads data In table.
Wherein, please continue to refer to Figure 13, server further includes data processing module 15, and data processing module 15 is used for base Plinth environmental monitoring data is handled, and universal character string and corresponding storage are converted into.
After data acquisition module 11 gets basic environment monitoring data, basic environment monitoring data are handled, are turned Change universal character string and corresponding storage into.
When specific implementation, the device data that acquired original arrives after the data comparison in field device descriptive data base, Each section of character in initial data is subjected to data paraphrase, to inform how follow-up equipment reads and use this data. Meanwhile because this instructs the meaning expressed by each section, server that can be carried out easily according to the equipment of different agreement " fractionation " and " assembling ".It is difficult to solve equipment room adaptation, compatibility, linkage difference and the low problem of operating efficiency.
The part is the initial data after only Preliminary Analysis, back segment as the form similar to complementary data, wherein leading portion For data paraphrase character string.After server or client or back end receive such data, initial data is deposited first Enter caching, then read Back end data paraphrase character string, which will tell each word in program this initial data The meaning that Fu is represented.Generally comprise following information (device numbering, device address, device type, operation address, operation data, association Discuss format, data bit, data assembling leading portion, data assembling back segment).For example it as shown in figure 5, is parsed for data paraphrase in the present invention The content example of designator.
In the present invention, corresponding data self-analytic data will be arranged according to each equipment to instruct.I.e. as unit of equipment and Data parsing is carried out not as unit of all kinds of agreements.The data that each equipment uploads can be considered as a kind of only in back end Vertical protocol form is parsed, and both ensure that can mutually be communicated so between different devices, simultaneously for non-through With disclosure agreement equipment, the data analysis mode and device data of each equipment can be arranged in user or manufacturer according to voluntarily demand Processing mode.Such as:Sensors A sends out an instruction (R), wherein sensing numerical value, data type and data unit are contained, when After remainder data node receives the data, the field device descriptive data base needed in device to be controlled is read, according to new Communications protocol dynamically by (R) sensing numerical value and data unit extract, then according to the data of new equipment (N) Protocol contents are sent after replacing the character data of corresponding position.
Wherein, all transmission datas in the present invention are all encrypted processing, to ensure the safety of data transmission.Cause This, is please the structural schematic diagram of data acquisition module 11 of the present invention, data acquisition module 11 further combined with 4, Figure 14 refering to fig. 1 Including acquiring unit 111, check and correction unit 112, encryption unit 113, wherein:
Acquiring unit 111 for obtaining basic environment monitoring data in real time.
Check and correction unit 112 is used to proofread current network time and system time, and check and correction is by then further obtaining the overall situation only One identifier.
Encryption unit 113 is used to time and globally unique identifier obtaining the first data using AES encryption.
Encryption unit 113 is used to basic environment monitoring data progress RSA public key encryptions obtaining the second data.
After encryption unit 113 is used to the first data and the second data generating MD5 using the encryption of AES secret keys, further add Storage is corresponded to respectively after adding separator.
Wherein, in the present invention, the information exchange of server and client, under the premise of being all based on client account binding It carries out, therefore, with continued reference to Figure 13, server still further comprises account binding module 16, and request receiving module 12 is used for The account bind request of client is received, includes client specified data source device and implement in account bind request.
Account binding module 16 is used to authorize identifier for client distribution, and by client account and specified data source Equipment and implement are bound.
Data transmission blocks 14 by the basic environment monitoring data of specified data source device for being issued to client in real time End.
It is bound by account, user can specify in corresponding sensor to account, and to corresponding control terminal data section Data-source device is arranged in point (node for controlling implement).Data-source device can be connected to local sensor, It can also be the sensor of long-range professional observing and controlling department arrangement.Between control terminal back end under the premise of binding account, It is to allow mutually control, i.e., user can configure the control terminal back end progress combined operation of multiple and different regions, so both Ensure promptness, linkage and the agility of operation.
For example, somewhere meteorological department is provided with weather station, then user can be straight by way of client account binding It connects and specifies the weather station as data-source device, do not had to by reading the shared data of the weather station so as to directly independent Purchase sensing equipment can be obtained the related measurement datas such as humiture, rainfall, has both saved sensor arrangement cost or has ensured The accuracys of data.
Here mandate identifier is the exclusive evidence that user obtains data and the corresponding implement of control from server.
Request receiving module 12 is used to receive the data requesting instructions of client.
Judgment module 13 authorizes identifier for judging whether client has.
In the present invention, only by authorizing the client for carrying out account binding that can get shared data.It is logical Client account binding is crossed, server is that client distribution authorizes identifier, so as to determine client according to mandate identifier The data source for holding requested data, to get the requested data of client from data-source device.For example customer end A is specified Data-source device is sensor a, sensor b and third-party platform data, then when request receiving module 12 receives client Request of data and after authentication, data transmission blocks 14 obtain latest data and mistake from corresponding data-source device Toward historical data and it is handed down to client.
Judgment module 13 first determines whether instruction includes mandate identifier, such as after receiving the instruction of client Fruit with no authorized identifier, then give tacit consent to the instruction ignore, not respond.If there is mandate identifier, the client can be determined It is to have bound account client, then response data request instruction executes corresponding data communication.
Data transmission blocks 14 are used for when client has and authorizes identifier, will foundation ring corresponding with identifier is authorized Border monitoring data are issued to client.
Wherein, further referring to Figure 15, in wherein a kind of possible embodiment, data transmission blocks 14 include decryption Unit 141, judging unit 142 and data assembling unit 143, wherein:
Decryption unit 141 is used to use private key ciphertext data request instruction.
Judging unit 142 sends out the time for verification data request instruction, and whether judgement is differed with server clock pre- It definites time-lag in range, while whether verification data request instruction is consistent with MD5 data.
For decryption unit 141 using after private key ciphertext data request instruction, the instruction of meeting checking command rear end sends out the time, if The predetermined time is differed by more than with server clock, then it is assumed that the instruction ignore, it is desirable that retransmit request.If verification passes through, Further verification data request instruction whether with MD5 data fits.
Wherein.Here pre- specified time range can be voluntarily arranged as needed, for example can be 5 seconds or 3 seconds etc..
Data assembling unit 143 is when judging unit is judged as YES, the instruction description format of reading client, to general words Symbol string carries out fractionation extraction, is reassembled into the corresponding proprietary protocol character string of instruction description format and is issued to client, no Then, it is desirable that retransmit data requesting instructions.
Data assembling unit 143 is supervised by the instruction description format of reading client to treat the basic environment issued Measured data carries out splitting extraction again, is assembled into the proprietary protocol character string that client instructions descriptor format is consistent, then under It is sent to client.
The process informs other side similar to equipment while transmission data, and the positions data X1 are sensing data, X2 Position is numerical value unit, and the positions X3 are device type.After the data is correctly received, server (A) knows that this refers to So-and-so the data meaning that partly represents for enabling content, can then realize arbitrary data being converted into target device equipment state Data Concurrent, which is sent to target social security or be stored in, to be subordinate in database.It is controlled as needed after control terminal back end (B) is received The equipment of system takes out the control instruction format of controlled device in the database.The control terminal back end (B) will be according to quilt simultaneously The communication format of equipment is controlled, such as:The positions XX XX data are attracting electric relay, dynamically will be assembled to control after the data separating of reception Then the designated position for making instruction sends control instruction to the equipment.It completes once so inconsistent in both sides' communications protocol In the case of complete equipment room mutual control.
Data reception module 21 is for receiving basic environment monitoring data corresponding with identifier is authorized.
And after data reception module 21 receives data, MD5 is verified first, and weight is required if if MD5 verifications New transmission data further uses the decryption of AES secret keys if MD5 verifications pass through, and then checking time, checking time pass through RSA private key ciphertext datas are then further used, is stored in and caches through data.As checking time does not require to retransmit number if According to.
Data reception module 21 receives proprietary protocol character string, and through being analyzed and acquired by basis corresponding with identifier is authorized Environmental monitoring data.
When data reception module 21 carries out Refresh Data, no longer than 1 timing acquisition period can obtain data, obtain It takes speed and obtains range and effectively promoted, real-time data distributing speed can shorten hundreds of compared with traditional data acquisition modes Thousands of times of time.
Data reception module 21 can Refresh Device Status data, device status data here include at predetermined time intervals Specified data-source device and implement.
Analysis module 22 is used for according to basic environment monitoring data corresponding with identifier is authorized, and default control is combined to advise Analyzing processing is then carried out, control instruction is obtained.
Wherein, during specific implementation, analysis module 22 monitors number according to basic environment corresponding with identifier is authorized According to and default control rule being combined, using approximate entropy algorithm, linear regression algorithm, Bezier and ratio, integral, micro- Divide at least one of control method to carry out comprehensive analysis processing to the basic environment monitoring data, obtains control instruction.It is right The detailed description for please referring to above method embodiment is realized in the concrete analysis of analysis module, which is not described herein again.
Instruction issues module 23 for issuing control instruction to implement, to carry out dynamic regulation to implement.
Wherein, in client, each there are one unique identity ID and equipment files, these archives for controlled implement It is stored in field equipment data library, after receiving the data of server or client needs to carry out controlled implement When control, corresponding equipment files are read first, to determine that the communication way between equipment and equipment is (including address, logical News mode, communications protocol etc.), then implement is controlled by issuing control instruction.
Instruction issues module for obtaining the corresponding control instruction format of implement, and is encapsulated and controlled with control instruction format It is issued to implement after system instruction, corresponding early warning and regulation measure are made to control implement.
Meanwhile once shared data from server acquisition after, client is deposited into monitor database, so as to it is subsequent from Dynamicization controls and data early warning part carries out the read operation of data.
Here default control rule refers to the pre-set control rule for implement of client, control rule May include then certain numberical ranges, and for be more than either be less than the corresponding operation measure of the numberical range or early warning knot By.Therefore, please continue to refer to Figure 13, client further includes setup module 24, and the setting that setup module 24 is used to receive user refers to It enables, different control rules and corresponding priority are configured for implement and preserves.
In addition, in order to expand the application range of the method for the present invention, the control rule that setup module 24 is configured is standardization Configuration file configures, and by the configuration of standard configurations file, professional institution can carry out model to the manufacturing parameter of certain keys It encloses or the limitation of state and regulation, when user carries out the production of a certain product, which can be configured to some product Automation control in, when numerical value exceeds or does not meet, the rule can set out and execute a series of counter-measure.
In addition, being configured by standard configuration file, unified standard convention can be carried out, user can be configured flexibly Different Rule, and be arranged and come into force object and time, while specialized department can also have a try and change control rule as required, and unite One is issued to all clients.
As a kind of possible realization method, default control rule (i.e. standard configurations database) includes but not limited to It is configuration name, Limit Type, the upper limit or illegal state, lower limit, time limit of coming into force, Limit Type, issuing organization, configuration instruction And regular checking mark.
Wherein, since in the present invention, client is carried out at the same time judgement in all kinds of control rules of execution.I.e. once obtaining After new shared data, then implementation procedure is triggered, but when needing to operate implement, then needs to set for threading operation operation It is standby that a priority is set to operate implement.
Further different control rules and corresponding operator precedence grade is arranged according to user instruction in setup module 24.
Wherein, as a kind of possible realization method, please continue to refer to Figure 13, client of the invention further includes display mould Block 25, display module 25 are used for the operating status of displaying data in real-time source device and implement.
By display module 25, user the data of called data source device or control terminal implement can look at any time It sees, understands the operating status of data-source device and control terminal implement in real time.
For example, during collection terminal back end gathered data, if mistake, acquisition occur for the sensor values of acquisition End data node can be attempted to report server after determining sensor error reason first, by the biography after server reception error message Sensor is set to offline or abnormal, then the sensor no longer provides data to the user.
Further, another embodiment of the present invention provides another dynamic regulation system shared based on variable, please join Read Fig. 7, Fig. 7 be the dynamic regulation system 300 shared based on variable that another embodiment of the present invention provides include processor 301, Memory 302 and the computer program being stored on memory 302.
Optionally, processor 301 can be CPU (Central Processing Unit, central processing unit). It can be a kind of IC chip, there is calculating (including judgement) and control ability, processor 301 can also be general procedure Device, application-specific integrated circuit (ASIC), ready-made programmable gate array (FPGA) or other programmable logic device, discrete gate or crystal Pipe logical device or discrete hardware components etc., are not specifically limited herein.General processor can be microprocessor or appoint What conventional processor etc..
Processor 301 be used for run memory storage computer program, with realize described in above-described embodiment based on change The shared dynamic regulation method of amount.
Memory 302, can be used for memory system data, these system datas include the basic database, cognition assessment Project exam pool;Memory 302 is additionally operable to store instruction, when the instruction 303 that memory 302 stores is read simultaneously by processor 301 When execution, the step of realizing above-mentioned adaptivity cognitive function appraisal procedure.From the dynamic regulation system 300 shared based on variable For the hierarchical structure of composition, the computer program based on the shared dynamic regulation system 300 of variable can be divided into microcommand, machine Device instructs and macro-instruction, wherein microcommand is the order of microlevel, belongs to hardware;Macro-instruction is by several machine instructions The software instruction of composition, belongs to software;Machine instruction often referred to simply as instructs, each between microcommand and macro-instruction Instruction can complete an independent arithmetical operation or logical operation etc., as above also be illustrated to a certain extent in intelligence In terminal system (such as computer system), software and hardware does not have specific boundary, the function of software realization that can use hardware To realize (hardening);Hard-wired function can also realize (softening) with software, and such as common playout software replaces video card.
Program, that is, server can identify the instruction set of operation, therefore server may also include program, and program can wrap again System program and application program are included, program can be background service.The dynamic tune that system program can be used for share based on variable Control system 300 is connected to network, it may also be used for configures the notification bar for the dynamic regulation system 300 shared based on variable;Also it can be used In the notification bar for monitoring the dynamic regulation system 300 shared based on variable;It can also be used to obtain the request received and message etc.. Application program can be used for building interaction platform, and receive interactive information.
The detailed description of above method embodiment is please referred to for the concrete function realization of processor 301, it is no longer superfluous herein It states.
The dynamic regulation method and system that aforementioned present invention is shared based on variable, server obtain basic environment and monitor number Come from each clusters of sensors and third party monitoring platform according to, the basic environment monitoring data, client by account binding mode, Specified data source device and implement are bound to server, to which client obtains specified data from server in real time The basic environment monitoring data of source device, and divided based on default control rule and acquired basic environment monitoring data Analysis is handled, and obtains control instruction to control implement, makes dynamic regulation and control and Forewarning Measures.In this way, objective Family end can get the basic environment monitoring of different sensors and third-party platform by way of account binding from server Data, by way of this data sharing, the basic environment monitoring data that client is obtained can be that multiple sensors melt The data of conjunction, and third-party platform can be specialized department's supply, to which the data that client is obtained are sensed compared with oneself arrangement Device is relatively reliable and standard, and client based on these shared datas analyze and intelligentized control method, so that user makees When industry more in place to the control of standard, the quality and Objective benefits of target product are improved to a certain extent.
Meanwhile based on the unitized processing of data and personalized encapsulation, so that the method for the present invention can be compatible with 95% or more equipment control instruction requirement, can be by the equipment of required control by instructing dynamic to release using the form of pure software The mode of justice, which is realized, to interconnect, to realize the connected target of object object.
In addition, by controlling the configuration of rule criterion database, professional institution and individual can be easily to certain passes The manufacturing parameter of key is into line range or state limit and regulation, and in automation control, when numerical value exceeds or does not meet When the rule can be triggered and execute a series of counter-measures.And user can flexible configuration or change Different Rule, and set It sets come into force object and time, professional institution can also change rule as required, and uniformly be issued to all users.
Example the above is only the implementation of the present invention is not intended to limit the scope of the invention, every to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (21)

1. a kind of dynamic regulation method shared based on variable, which is characterized in that the method includes:
Server obtains basic environment monitoring data, and corresponding storage respectively in real time, and the basic environment monitoring data are from each Clusters of sensors and third party monitoring platform;
Receive the data requesting instructions of client;
Judge whether the client has and authorizes identifier;
When the client has and authorizes identifier, basic environment monitoring data corresponding with the mandate identifier are issued To the client;
The client receives the basic environment monitoring data corresponding with the mandate identifier;
The client combines default control to advise according to the basic environment monitoring data corresponding with identifier is authorized Then carry out analyzing processing, obtain control instruction, and issue the control instruction to implement, with to implement into Mobile state Regulation and control.
2. the dynamic regulation method according to claim 1 shared based on variable, which is characterized in that the reception client Data requesting instructions before, further include:
The basic environment monitoring data are handled, universal character string and corresponding storage are converted into.
3. the dynamic regulation method according to claim 2 shared based on variable, which is characterized in that will know with the mandate The corresponding basic environment monitoring data of alias are issued to the client and include:
The data requesting instructions are decrypted using private key, and verifies the data requesting instructions and sends out the time, are judged and the clothes Whether device clock difference of being engaged in is in specified time range in advance;
If so, further verifying whether the data requesting instructions are consistent with MD5 data, if so, reading the client Instruction description format, fractionation extraction is carried out to the universal character string, it is corresponding to be reassembled into described instruction descriptor format Proprietary protocol character string, and it is issued to the client, otherwise, it is desirable that retransmit data requesting instructions;
The client receives the basic environment monitoring data corresponding with the mandate identifier:
The client receives the proprietary protocol character string, and through being analyzed and acquired by basis corresponding with the mandate identifier Environmental monitoring data.
4. the dynamic regulation method according to claim 1 shared based on variable, which is characterized in that server obtains in real time Basic environment monitoring data, and corresponding storage includes respectively:
Server obtains basic environment monitoring data in real time;
Current network time and system time are proofreaded, check and correction is by then further obtaining globally unique identifier;
Time and the globally unique identifier are obtained into the first data using AES encryption;
Basic environment monitoring data progress RSA public key encryptions are obtained into the second data;
After using the encryption of AES secret keys to generate MD5 first data and second data, divide after further adding separator It Dui Ying not store.
5. the dynamic regulation method according to claim 1 shared based on variable, which is characterized in that the reception client Request of data before, further include:
The account bind request of client is received, includes the client specified data source device in the account bind request And implement;
It is distributed for the client and authorizes identifier, and by the client account and the specified data-source device and work Industry equipment is bound;
The basic environment monitoring data of the specified data source device are issued to the client by the server in real time.
6. the dynamic regulation method according to claim 5 shared based on variable, which is characterized in that the method is also wrapped It includes:
The operating status of data-source device and the implement described in the client real-time display.
7. the dynamic regulation method according to claim 1 shared based on variable, which is characterized in that the default control rule Include then configuration name, Limit Type, the upper limit or illegal state, lower limit, time limit of coming into force, Limit Type, issuing organization, configuration Illustrate and at least one of regular checking mark field.
8. it is according to claim 1 based on variable share dynamic regulation method, which is characterized in that the client according to The basic environment monitoring data corresponding with the mandate identifier, and default control rule is combined to carry out analyzing processing, it obtains To control instruction, and issues the control instruction and include to carry out dynamic regulation to implement:
The client combines default control to advise according to the basic environment monitoring data corresponding with the mandate identifier Then, using at least one in approximate entropy algorithm, linear regression algorithm, Bezier and ratio, integral, plusderivative control method Kind carries out comprehensive analysis processing to the basic environment monitoring data, obtains control instruction;
Obtain the corresponding control instruction format of the implement, and after encapsulating the control instruction with the control instruction format It is issued to implement, corresponding early warning and regulation measure are made to control the implement.
9. the dynamic regulation method shared based on variable according to claim 1-8 any one of them, which is characterized in that the base Plinth environmental monitoring data includes at least one in temperature, humidity, carbon dioxide, atmospheric pressure, water quality pH, PM2.5, rainfall Kind.
10. the dynamic regulation method according to claim 1 shared based on variable, which is characterized in that the method is also wrapped It includes:
The client receives the setting instruction of user, and it is regular and corresponding excellent to configure different control for the implement First grade simultaneously preserves.
11. a kind of dynamic regulation system shared based on variable, which is characterized in that the dynamic regulation system include server with And client, wherein the server includes that data acquisition module, request receiving module, judgment module and data send mould Block, the client include data reception module, analysis module and instruction issue module, wherein:
The data acquisition module for obtaining basic environment monitoring data, and corresponding storage respectively, the basic environment in real time Monitoring data come from each clusters of sensors and third party monitoring platform;
The request receiving module is used to receive the data requesting instructions of client;
The judgment module authorizes identifier for judging whether the client has;
The data transmission blocks are used for when the client has and authorizes identifier, will be corresponding with the mandate identifier Basic environment monitoring data are issued to the client;
The data reception module is for receiving the basic environment monitoring data corresponding with the mandate identifier;
The analysis module is used for the basic environment monitoring data corresponding with identifier is authorized according to described, and combines default Control rule carries out analyzing processing, obtains control instruction;
Described instruction issues module for issuing the control instruction to implement, to carry out dynamic regulation to implement.
12. the dynamic regulation system according to claim 11 shared based on variable, which is characterized in that the server is also Including data processing module, the data processing module is converted into leading to for handling the basic environment monitoring data With character string and corresponding storage.
13. the dynamic regulation system according to claim 12 shared based on variable, which is characterized in that the data are sent Module includes decryption unit, judging unit and data assembling unit, wherein:
The decryption unit is used to decrypt the data requesting instructions using private key;
The judging unit sends out the time for verifying the data requesting instructions, judgement differed with the server clock whether In specified time range in advance, while verifying whether the data requesting instructions are consistent with MD5 data;
The data assembling unit reads the instruction description format of the client when the judging unit is judged as YES, right The universal character string carries out fractionation extraction, be reassembled into the corresponding proprietary protocol character string of described instruction descriptor format and under It is sent to the client, otherwise, it is desirable that retransmit data requesting instructions.
14. the dynamic regulation system according to claim 11 shared based on variable, which is characterized in that the data acquisition Module includes acquiring unit, proofreads unit, encryption unit, wherein:
The acquiring unit for obtaining basic environment monitoring data in real time;
The check and correction unit is for proofreading current network time and system time, and check and correction is by then further obtaining globally unique mark Know symbol;
The encryption unit is used to time and the globally unique identifier obtaining the first data using AES encryption;
The encryption unit is used to basic environment monitoring data progress RSA public key encryptions obtaining the second data;
After the encryption unit is used to first data and second data generating MD5 using the encryption of AES secret keys, into one Corresponding storage respectively after step addition separator.
15. the dynamic regulation system according to claim 11 shared based on variable, which is characterized in that the server is also Including account binding module, wherein:
The request receiving module is used to receive the account bind request of client, includes the visitor in the account bind request Family end specified data source device and implement;
The account binding module is used to authorize identifier for client distribution, and by the client account and the finger Fixed data-source device and implement is bound;
The data transmission blocks by the basic environment monitoring data of the specified data source device for being issued to institute in real time State client.
16. the dynamic regulation system according to claim 15 shared based on variable, which is characterized in that the client is also Including display module, operating status of the display module for data-source device and the implement described in real-time display.
17. the dynamic regulation system according to claim 11 shared based on variable, which is characterized in that the default control Rule includes configuration name, Limit Type, the upper limit or illegal state, lower limit, the time limit of coming into force, Limit Type, issuing organization, matches Set at least one of explanation and regular checking mark field.
18. the dynamic regulation system according to claim 11 shared based on variable, which is characterized in that the analysis module For the basis basic environment monitoring data corresponding with the mandate identifier, and default control rule is combined, using close Like at least one of entropy algorithm, linear regression algorithm, Bezier and ratio, integral, plusderivative control method to described Basic environment monitoring data carry out comprehensive analysis processing, obtain control instruction;
Described instruction issues module for obtaining the corresponding control instruction format of the implement, and with the control instruction lattice Formula is issued to implement after encapsulating the control instruction, and to control, the implement makes corresponding early warning and regulation and control are arranged It applies.
19. the dynamic regulation system shared based on variable according to claim 11-18 any one of them, which is characterized in that institute State basic environment monitoring data include in temperature, humidity, carbon dioxide, atmospheric pressure, water quality pH, PM2.5, rainfall at least It is a kind of.
20. the dynamic regulation system according to claim 11 shared based on variable, which is characterized in that the client is also Including setup module, the setup module is used to receive the setting instruction of user, and different control is configured for the implement Regular and corresponding priority simultaneously preserves.
21. a kind of dynamic regulation system shared based on variable, which is characterized in that the dynamic regulation system shared based on variable System includes processor, memory and its computer program of storage, and the processor realizes power when executing the computer program Profit requires the step of any one of 1-11 the methods.
CN201810434909.6A 2018-05-08 2018-05-08 A kind of dynamic regulation method and system shared based on variable Pending CN108508752A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810434909.6A CN108508752A (en) 2018-05-08 2018-05-08 A kind of dynamic regulation method and system shared based on variable

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810434909.6A CN108508752A (en) 2018-05-08 2018-05-08 A kind of dynamic regulation method and system shared based on variable

Publications (1)

Publication Number Publication Date
CN108508752A true CN108508752A (en) 2018-09-07

Family

ID=63399977

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810434909.6A Pending CN108508752A (en) 2018-05-08 2018-05-08 A kind of dynamic regulation method and system shared based on variable

Country Status (1)

Country Link
CN (1) CN108508752A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109857774A (en) * 2018-12-26 2019-06-07 广州海达安控智能科技有限公司 Based on Multi-sensor Fusion deformation measurement data statistical method and device

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8594850B1 (en) * 2012-09-30 2013-11-26 Nest Labs, Inc. Updating control software on a network-connected HVAC controller
CN103634345A (en) * 2012-08-23 2014-03-12 杭州新锐信息技术有限公司 Information acquisition transmission method for physical distribution consignment supervisory system
CN105137770A (en) * 2015-07-23 2015-12-09 江苏大学 Web-based aquiculture remote monitoring system and control method thereof
CN105516210A (en) * 2016-02-05 2016-04-20 山东信通电子股份有限公司 System and method for terminal security access authentication
CN105830052A (en) * 2013-12-20 2016-08-03 西门子公司 Method for an integrated data handling for the engineering and operation of a plant
CN106933176A (en) * 2017-04-24 2017-07-07 武汉大学 Distributed water quality supervision measurement equipment is managed collectively and control system and method online
CN106941534A (en) * 2017-04-17 2017-07-11 上海庆科信息技术有限公司 A kind of data sharing service system and smart machine monitoring system
CN106960128A (en) * 2017-04-01 2017-07-18 武汉康慧然信息技术咨询有限公司 Intelligent medical treatment data managing method and system based on distributed validation technology
CN106960393A (en) * 2017-03-27 2017-07-18 福建强闽信息科技有限公司 A kind of Monitoring Data of wisdom aquaculture systems is shared and rent method
CN107086914A (en) * 2017-04-24 2017-08-22 武汉康慧然信息技术咨询有限公司 Individual health data based on big data technology integrates distribution method and system
CN107194822A (en) * 2017-05-25 2017-09-22 河南嘉禾智慧农业科技有限公司 A kind of agricultural data shared system and method based on block chain
CN107426172A (en) * 2017-06-05 2017-12-01 国政通科技股份有限公司 The matching method for pushing and device of a kind of identity information
CN107439477A (en) * 2017-08-30 2017-12-08 张爱军 It is a kind of based on the interactive pig-breeding system and cultural method for tracing system
CN207283595U (en) * 2017-11-02 2018-04-27 国网重庆市电力公司合川区供电分公司 User power utilization data analysis integrated system based on power information collection

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103634345A (en) * 2012-08-23 2014-03-12 杭州新锐信息技术有限公司 Information acquisition transmission method for physical distribution consignment supervisory system
US8594850B1 (en) * 2012-09-30 2013-11-26 Nest Labs, Inc. Updating control software on a network-connected HVAC controller
CN105830052A (en) * 2013-12-20 2016-08-03 西门子公司 Method for an integrated data handling for the engineering and operation of a plant
CN105137770A (en) * 2015-07-23 2015-12-09 江苏大学 Web-based aquiculture remote monitoring system and control method thereof
CN105516210A (en) * 2016-02-05 2016-04-20 山东信通电子股份有限公司 System and method for terminal security access authentication
CN106960393A (en) * 2017-03-27 2017-07-18 福建强闽信息科技有限公司 A kind of Monitoring Data of wisdom aquaculture systems is shared and rent method
CN106960128A (en) * 2017-04-01 2017-07-18 武汉康慧然信息技术咨询有限公司 Intelligent medical treatment data managing method and system based on distributed validation technology
CN106941534A (en) * 2017-04-17 2017-07-11 上海庆科信息技术有限公司 A kind of data sharing service system and smart machine monitoring system
CN106933176A (en) * 2017-04-24 2017-07-07 武汉大学 Distributed water quality supervision measurement equipment is managed collectively and control system and method online
CN107086914A (en) * 2017-04-24 2017-08-22 武汉康慧然信息技术咨询有限公司 Individual health data based on big data technology integrates distribution method and system
CN107194822A (en) * 2017-05-25 2017-09-22 河南嘉禾智慧农业科技有限公司 A kind of agricultural data shared system and method based on block chain
CN107426172A (en) * 2017-06-05 2017-12-01 国政通科技股份有限公司 The matching method for pushing and device of a kind of identity information
CN107439477A (en) * 2017-08-30 2017-12-08 张爱军 It is a kind of based on the interactive pig-breeding system and cultural method for tracing system
CN207283595U (en) * 2017-11-02 2018-04-27 国网重庆市电力公司合川区供电分公司 User power utilization data analysis integrated system based on power information collection

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109857774A (en) * 2018-12-26 2019-06-07 广州海达安控智能科技有限公司 Based on Multi-sensor Fusion deformation measurement data statistical method and device
CN109857774B (en) * 2018-12-26 2024-04-23 广州市中海达测绘仪器有限公司 Deformation monitoring data statistics method and device based on multi-sensor fusion

Similar Documents

Publication Publication Date Title
CN109901533B (en) Method and apparatus for use in a process control system
US11076290B2 (en) Assigning an agent device from a first device registry to a second device registry
US10539936B2 (en) Methods and apparatus for configuring remote access of process control data
US20190349345A1 (en) Registry apparatus, agent device, application providing apparatus and corresponding methods
CN108881312A (en) Intelligent contract upgrade method, system and relevant device and storage medium
US10146945B2 (en) Apparatus and a method for processing data
US10440121B2 (en) Endpoints for performing distributed sensing and control and methods of operating the same
CN102200993A (en) Method and apparatus to display process data
CN110383625A (en) Power transmission network control system based on peer-to-peer network
CN103763469A (en) Simulation camera and parameter configuration method thereof
CN104853341B (en) Device and method, non-transient computer readable storage medium and wireless communication system is arranged in information
CN108989042A (en) For authorizing the method for updating automatic technology field device
WO2016123537A1 (en) Interior user-comfort energy efficiency modeling and control systems and apparatuses
CN108508752A (en) A kind of dynamic regulation method and system shared based on variable
US20230198771A1 (en) Systems and methods for providing secure internet of things data notifications using blockchain
US20210092107A1 (en) Secure off-premises access of process control data by a mobile device
CN108243179B (en) Control system and control method
US20190349348A1 (en) Registry apparatus, agent device, application providing apparatus and corresponding methods
CN108848503A (en) A kind of smart home dynamic encryption means of communication and system transmitted using merogenesis
US11016457B1 (en) Supervisory control and data acquisition (SCADA) system for use with SCADA devices having disparate communication technologies
CN109240179A (en) Distributed sand table model control system
CN216596008U (en) Site communicator equipment
US20230306099A1 (en) Multi-factor authentication of industrial assets
CN104808605A (en) Monitoring and control system
Robles et al. Security Encryption Scheme for Communication of Web Based Control 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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180907